public static void WritePoly(this SectionDefinition sec, string filename) { var poly = sec.BuildPolygon(); TriangleFile fne = new TriangleFile(); fne.Write(poly, filename); }
public static void WriteMesh(this SectionDefinition sec, string filename) { var poly = sec.BuildPolygon(); var mesh = sec.Triangulate(poly); TriangleFile fne = new TriangleFile(); fne.Write(mesh, filename); }