private static void SaveMesh(Mesh mesh, string filename) { System.IO.File.Delete(filename); using (StreamWriter sw = File.AppendText(filename)) { STL.AppendMeshToSTL(mesh, sw); Vector3D aStart = H3Ruled.Transform(new Vector3D(0, 0, -1)); Vector3D aEnd = H3Ruled.Transform(new Vector3D(0, 0, 1)); Mesh m3 = new Mesh(); AddEdge(m3, aStart, aEnd); //STL.AppendMeshToSTL( m3, sw ); } }
static double m_thresh = 0.1; //0.004; public static void H3Helicoid() { H3Ruled ruled = new H3Ruled(); H3.Cell.Edge[] edgesBall = ruled.Helicoid(); System.Func <H3.Cell.Edge, Vector3D[]> divider = e => { return(H3Models.Ball.GeodesicPoints(e.Start, e.End, 50)); }; Mesh thinMesh; List <Vector3D[]> boundaryPoints; ThinMesh(edgesBall, divider, out thinMesh, out boundaryPoints); HelicoidHelper(thinMesh, boundaryPoints); }