Table of Contents

Class ObjUtil

Namespace
Hi.Geom
Assembly
HiGeom.dll

Wavefront OBJ writer for RGB-coloured triangle buffers.

public static class ObjUtil
Inheritance
ObjUtil
Inherited Members

Methods

WriteText(string, double[])

Write a stride-15 RGB-triangle buffer as Wavefront OBJ text with the per-vertex colour extension (v x y z r g b). Triangle vertices are not shared; faces reference vertices/normals via negative (relative) indices, so no global counters are required.

public static void WriteText(string file, double[] rgbTrisNativeArray)

Parameters

file string

Destination OBJ file path.

rgbTrisNativeArray double[]

Stride-15 array: r,g,b, nx,ny,nz, p0.x,p0.y,p0.z, p1.x,p1.y,p1.z, p2.x,p2.y,p2.z, repeated once per triangle. RGB components are in the [0, 1] range. See Hi.Cbtr.CubeTree.GetRgbTrisNativeArray.