public void SaveToPlyPolygonFileFormat(string filename, string comment) { BinaryWriter bw=new BinaryWriter(File.Open(filename, FileMode.OpenOrCreate)); PLYPolygonFileFormat.EmitHeader(bw, VertexCount(), comment); foreach (PointCloud pc in mapPointClouds) pc.SaveToPlyPolygonFileFormat(bw); bw.Close(); }
public void SaveToPlyPolygonFileFormat(BinaryWriter bw) { PLYPolygonFileFormat.EmitVertices(bw, mesh_vertices, AssignedCount()); }