Class LaplacianMeshSmoother
  
  
  
  
    Inheritance
    
    LaplacianMeshSmoother
   
  
  Namespace: g3
  Assembly: cs.temp.dll.dll
  Syntax
  
    public class LaplacianMeshSmoother
   
  Constructors
  
  
  
  
  LaplacianMeshSmoother(DMesh3)
  
  
  Declaration
  
    public LaplacianMeshSmoother(DMesh3 mesh)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | DMesh3 | 
        mesh | 
         | 
      
    
  
  Fields
  
  
  
  Mesh
  
  
  Declaration
  
  Field Value
  
  
  
  UseSoftConstraintNormalEquations
  
  
  Declaration
  
    public bool UseSoftConstraintNormalEquations
   
  Field Value
  
  Methods
  
  
  
  
  ClearConstraints()
  
  
  Declaration
  
    public void ClearConstraints()
   
  
  
  
  Initialize()
  
  
  Declaration
  
  
  
  
  IsConstrained(Int32)
  
  
  Declaration
  
    public bool IsConstrained(int vID)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | Int32 | 
        vID | 
         | 
      
    
  
  Returns
  
  
  
  
  RegionSmooth(DMesh3, IEnumerable<Int32>, Int32, Int32, Boolean, Double, Double)
  Apply LaplacianMeshSmoother to subset of mesh triangles. 
border of subset always has soft constraint with borderWeight, 
but is then snapped back to original vtx pos after solve.
nConstrainLoops inner loops are also soft-constrained, with weight falloff via square roots (defines continuity)
interiorWeight is soft constraint added to all vertices
 
  
  Declaration
  
    public static void RegionSmooth(DMesh3 mesh, IEnumerable<int> triangles, int nConstrainLoops, int nIncludeExteriorRings, bool bPreserveExteriorRings, double borderWeight = 10, double interiorWeight = 0)
   
  Parameters
  
  
  
  
  SetConstraint(Int32, Vector3d, Double, Boolean)
  
  
  Declaration
  
    public void SetConstraint(int vID, Vector3d targetPos, double weight, bool bForceToFixedPos = false)
   
  Parameters
  
  
  
  
  Solve(Vector3d[])
  
  
  Declaration
  
    public bool Solve(Vector3d[] Result)
   
  Parameters
  
  Returns
  
  
  
  
  SolveAndUpdateMesh()
  
  
  Declaration
  
    public bool SolveAndUpdateMesh()
   
  Returns
  
  
  
  
  SolveMultipleCG(Vector3d[])
  
  
  Declaration
  
    public bool SolveMultipleCG(Vector3d[] Result)
   
  Parameters
  
  Returns
  
  
  
  
  SolveMultipleRHS(Vector3d[])
  
  
  Declaration
  
    public bool SolveMultipleRHS(Vector3d[] Result)
   
  Parameters
  
  Returns