Search Results for

    Show / Hide Table of Contents

    Class FastTriWinding

    Formulas for triangle winding number approximation

    Inheritance
    Object
    FastTriWinding
    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 FastTriWinding

    Methods

    ComputeCoeffs(DMesh3, IEnumerable<Int32>, ref Vector3d, ref Double, ref Vector3d, ref Matrix3d, MeshTriInfoCache)

    precompute constant coefficients of triangle winding number approximation p: 'center' of expansion for triangles (area-weighted centroid avg) r: max distance from p to triangles order1: first-order vector coeff order2: second-order matrix coeff triCache: optional precomputed triangle centroid/normal/area

    Declaration
    public static void ComputeCoeffs(DMesh3 mesh, IEnumerable<int> triangles, ref Vector3d p, ref double r, ref Vector3d order1, ref Matrix3d order2, MeshTriInfoCache triCache = null)
    Parameters
    Type Name Description
    DMesh3 mesh
    IEnumerable<Int32> triangles
    Vector3d p
    Double r
    Vector3d order1
    Matrix3d order2
    MeshTriInfoCache triCache

    EvaluateOrder1Approx(ref Vector3d, ref Vector3d, ref Vector3d)

    Evaluate first-order FWN approximation at point q, relative to center c

    Declaration
    public static double EvaluateOrder1Approx(ref Vector3d center, ref Vector3d order1Coeff, ref Vector3d q)
    Parameters
    Type Name Description
    Vector3d center
    Vector3d order1Coeff
    Vector3d q
    Returns
    Type Description
    Double

    EvaluateOrder2Approx(ref Vector3d, ref Vector3d, ref Matrix3d, ref Vector3d)

    Evaluate second-order FWN approximation at point q, relative to center c

    Declaration
    public static double EvaluateOrder2Approx(ref Vector3d center, ref Vector3d order1Coeff, ref Matrix3d order2Coeff, ref Vector3d q)
    Parameters
    Type Name Description
    Vector3d center
    Vector3d order1Coeff
    Matrix3d order2Coeff
    Vector3d q
    Returns
    Type Description
    Double

    Order1Approx(ref Triangle3d, ref Vector3d, ref Vector3d, ref Double, ref Vector3d)

    Declaration
    public static double Order1Approx(ref Triangle3d t, ref Vector3d p, ref Vector3d xn, ref double xA, ref Vector3d q)
    Parameters
    Type Name Description
    Triangle3d t
    Vector3d p
    Vector3d xn
    Double xA
    Vector3d q
    Returns
    Type Description
    Double

    Order2Approx(ref Triangle3d, ref Vector3d, ref Vector3d, ref Double, ref Vector3d)

    Declaration
    public static double Order2Approx(ref Triangle3d t, ref Vector3d p, ref Vector3d xn, ref double xA, ref Vector3d q)
    Parameters
    Type Name Description
    Triangle3d t
    Vector3d p
    Vector3d xn
    Double xA
    Vector3d q
    Returns
    Type Description
    Double
    In This Article
    Back to top ViRGIS VR GIS