Class FastTriWinding
Formulas for triangle winding number approximation
Inheritance
FastTriWinding
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
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
Returns
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
Returns
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
Returns
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
Returns