Search Results for

    Show / Hide Table of Contents

    Class LaplacianMeshSmoother

    Inheritance
    Object
    LaplacianMeshSmoother
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    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
    public DMesh3 Mesh
    Field Value
    Type Description
    DMesh3

    UseSoftConstraintNormalEquations

    Declaration
    public bool UseSoftConstraintNormalEquations
    Field Value
    Type Description
    Boolean

    Methods

    ClearConstraints()

    Declaration
    public void ClearConstraints()

    Initialize()

    Declaration
    public void Initialize()

    IsConstrained(Int32)

    Declaration
    public bool IsConstrained(int vID)
    Parameters
    Type Name Description
    Int32 vID
    Returns
    Type Description
    Boolean

    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
    Type Name Description
    DMesh3 mesh
    IEnumerable<Int32> triangles
    Int32 nConstrainLoops
    Int32 nIncludeExteriorRings
    Boolean bPreserveExteriorRings
    Double borderWeight
    Double interiorWeight

    SetConstraint(Int32, Vector3d, Double, Boolean)

    Declaration
    public void SetConstraint(int vID, Vector3d targetPos, double weight, bool bForceToFixedPos = false)
    Parameters
    Type Name Description
    Int32 vID
    Vector3d targetPos
    Double weight
    Boolean bForceToFixedPos

    Solve(Vector3d[])

    Declaration
    public bool Solve(Vector3d[] Result)
    Parameters
    Type Name Description
    Vector3d[] Result
    Returns
    Type Description
    Boolean

    SolveAndUpdateMesh()

    Declaration
    public bool SolveAndUpdateMesh()
    Returns
    Type Description
    Boolean

    SolveMultipleCG(Vector3d[])

    Declaration
    public bool SolveMultipleCG(Vector3d[] Result)
    Parameters
    Type Name Description
    Vector3d[] Result
    Returns
    Type Description
    Boolean

    SolveMultipleRHS(Vector3d[])

    Declaration
    public bool SolveMultipleRHS(Vector3d[] Result)
    Parameters
    Type Name Description
    Vector3d[] Result
    Returns
    Type Description
    Boolean
    In This Article
    Back to top ViRGIS VR GIS