Table of Contents

Class PlyUtil

Namespace
Hi.Geom
Assembly
HiGeom.dll

Stanford PLY writer for RGB-coloured triangle buffers.

public static class PlyUtil
Inheritance
PlyUtil
Inherited Members

Methods

WriteBin(string, double[])

Write a stride-15 RGB-triangle buffer as little-endian binary PLY with per-vertex RGB. Vertices are not shared between triangles (the input is a non-manifold soup), so each triangle contributes 3 unique vertices.

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

Parameters

file string

Destination PLY 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.