Ejemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        private static void Set(V vertex, HeMesh3d.Face face)
        {
            if (!face.IsUnused)
            {
                vertex.Position = face.GetBarycenter();
            }

            vertex.Normal = face.Normal;
        }
Ejemplo n.º 2
0
 /// <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);
 }
Ejemplo n.º 3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="mesh"></param>
 /// <param name="start"></param>
 public static void DetachFaceCycles(HeMesh3d mesh, HeMesh3d.Face start)
 {
     DetachFaceCycles(mesh, start, Set);
 }
Ejemplo n.º 4
0
 /// <summary>
 ///
 /// </summary>
 private static void Set(HeMesh3d.Face face, V vertex)
 {
     face.Normal = vertex.Normal;
 }