Search Results for

    Show / Hide Table of Contents

    Class MeshUtil

    Inheritance
    Object
    MeshUtil
    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 static class MeshUtil

    Methods

    CheckIfCollapseCreatesFlip(DMesh3, Int32, Vector3d)

    Check if collapsing edge edgeID to point newv will flip normal of any attached face

    Declaration
    public static bool CheckIfCollapseCreatesFlip(DMesh3 mesh, int edgeID, Vector3d newv)
    Parameters
    Type Name Description
    DMesh3 mesh
    Int32 edgeID
    Vector3d newv
    Returns
    Type Description
    Boolean

    CheckIfEdgeFlipCreatesFlip(DMesh3, Int32, Double)

    if before a flip we have normals (n1,n2) and after we have (m1,m2), check if the dot between any of the 4 pairs changes sign after the flip, or is less than the dot-product tolerance (ie angle tolerance)

    Declaration
    public static bool CheckIfEdgeFlipCreatesFlip(DMesh3 mesh, int eID, double flip_dot_tol = 0)
    Parameters
    Type Name Description
    DMesh3 mesh
    Int32 eID
    Double flip_dot_tol
    Returns
    Type Description
    Boolean

    CotanSmooth(DMesh3, Int32, Double)

    Declaration
    public static Vector3d CotanSmooth(DMesh3 mesh, int vID, double t)
    Parameters
    Type Name Description
    DMesh3 mesh
    Int32 vID
    Double t
    Returns
    Type Description
    Vector3d

    DiscreteGaussCurvature(DMesh3, Int32)

    computes sum of opening-angles in triangles around vid, minus 2pi. This is zero on flat areas.

    Declaration
    public static double DiscreteGaussCurvature(DMesh3 mesh, int vid)
    Parameters
    Type Name Description
    DMesh3 mesh
    Int32 vid
    Returns
    Type Description
    Double

    ExtractLoopV(IMesh, IEnumerable<Int32>)

    Declaration
    public static DCurve3 ExtractLoopV(IMesh mesh, IEnumerable<int> vertices)
    Parameters
    Type Name Description
    IMesh mesh
    IEnumerable<Int32> vertices
    Returns
    Type Description
    DCurve3

    ExtractLoopV(IMesh, Int32[])

    Declaration
    public static DCurve3 ExtractLoopV(IMesh mesh, int[] vertices)
    Parameters
    Type Name Description
    IMesh mesh
    Int32[] vertices
    Returns
    Type Description
    DCurve3

    GetEdgeFlipNormals(DMesh3, Int32, out Vector3d, out Vector3d, out Vector3d, out Vector3d)

    For given edge, return normals of it's two triangles, and normals of the triangles created if edge is flipped (used in edge-flip optimizers)

    Declaration
    public static void GetEdgeFlipNormals(DMesh3 mesh, int eID, out Vector3d n1, out Vector3d n2, out Vector3d on1, out Vector3d on2)
    Parameters
    Type Name Description
    DMesh3 mesh
    Int32 eID
    Vector3d n1
    Vector3d n2
    Vector3d on1
    Vector3d on2

    GetEdgeFlipTris(DMesh3, Int32, out Index3i, out Index3i, out Index3i, out Index3i)

    For given edge, return it's triangles and the triangles that would be created if it was flipped (used in edge-flip optimizers)

    Declaration
    public static void GetEdgeFlipTris(DMesh3 mesh, int eID, out Index3i orig_t0, out Index3i orig_t1, out Index3i flip_t0, out Index3i flip_t1)
    Parameters
    Type Name Description
    DMesh3 mesh
    Int32 eID
    Index3i orig_t0
    Index3i orig_t1
    Index3i flip_t0
    Index3i flip_t1

    MeanValueSmooth(DMesh3, Int32, Double)

    Declaration
    public static Vector3d MeanValueSmooth(DMesh3 mesh, int vID, double t)
    Parameters
    Type Name Description
    DMesh3 mesh
    Int32 vID
    Double t
    Returns
    Type Description
    Vector3d

    OpeningAngleD(DMesh3, Int32)

    computes opening angle between the two triangles connected to edge

    Declaration
    public static double OpeningAngleD(DMesh3 mesh, int eid)
    Parameters
    Type Name Description
    DMesh3 mesh
    Int32 eid
    Returns
    Type Description
    Double

    ScaleMesh(DMesh3, Frame3f, Vector3f)

    Declaration
    public static void ScaleMesh(DMesh3 mesh, Frame3f f, Vector3f vScale)
    Parameters
    Type Name Description
    DMesh3 mesh
    Frame3f f
    Vector3f vScale

    UniformSmooth(DMesh3, Int32, Double)

    Declaration
    public static Vector3d UniformSmooth(DMesh3 mesh, int vID, double t)
    Parameters
    Type Name Description
    DMesh3 mesh
    Int32 vID
    Double t
    Returns
    Type Description
    Vector3d
    In This Article
    Back to top ViRGIS VR GIS