Exemplo n.º 1
0
 public static void FixAllBoundaryEdges(Remesher r)
 {
     if (r.Constraints == null)
     {
         r.SetExternalConstraints(new MeshConstraints());
     }
     FixAllBoundaryEdges(r.Constraints, r.Mesh);
 }
Exemplo n.º 2
0
 public static void PreserveBoundaryLoops(Remesher r)
 {
     if (r.Constraints == null)
     {
         r.SetExternalConstraints(new MeshConstraints());
     }
     PreserveBoundaryLoops(r.Constraints, r.Mesh);
 }
Exemplo n.º 3
0
 public static void ConstrainVtxSpanTo(Remesher r, int[] spanV, IProjectionTarget target, int setID = -1)
 {
     if (r.Constraints == null)
     {
         r.SetExternalConstraints(new MeshConstraints());
     }
     ConstrainVtxSpanTo(r.Constraints, r.Mesh, spanV, target);
 }
Exemplo n.º 4
0
 public static void FixAllGroupBoundaryEdges(Remesher r, bool bPinVertices)
 {
     if (r.Constraints == null)
     {
         r.SetExternalConstraints(new MeshConstraints());
     }
     FixAllGroupBoundaryEdges(r.Constraints, r.Mesh, bPinVertices);
 }
 public static IEnumerable <int> InteractiveRemesh(Remesher r, int nPasses)
 {
     for (int k = 0; k < nPasses; ++k)
     {
         r.BasicRemeshPass();
         yield return(k);
     }
 }
Exemplo n.º 6
0
 public static void ConstrainVtxLoopTo(Remesher r, int[] loopV, IProjectionTarget target)
 {
     if (r.Constraints == null)
     {
         r.SetExternalConstraints(new MeshConstraints());
     }
     ConstrainVtxLoopTo(r.Constraints, r.Mesh, loopV, target);
 }