/// <summary> /// /// </summary> private static void Set(V vertex, HeMesh3d.Face face) { if (!face.IsUnused) { vertex.Position = face.GetBarycenter(); } vertex.Normal = face.Normal; }
/// <summary> /// /// </summary> /// <param name="mesh"></param> /// <param name="start"></param> /// <param name="setUnrolledPosition"></param> /// <param name="getUnrollFactor"></param> public static void Unroll(HeMesh3d mesh, HeMesh3d.Face start, Action <HeMesh3d.Vertex, Vector3d> setUnrolledPosition, Func <HeMesh3d.Halfedge, double> getUnrollFactor = null) { Unroll(mesh, start, _getPosition, setUnrolledPosition, getUnrollFactor); }
/// <summary> /// /// </summary> /// <param name="mesh"></param> /// <param name="start"></param> public static void DetachFaceCycles(HeMesh3d mesh, HeMesh3d.Face start) { DetachFaceCycles(mesh, start, Set); }
/// <summary> /// /// </summary> private static void Set(HeMesh3d.Face face, V vertex) { face.Normal = vertex.Normal; }