Class CurveUtils
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
Methods
ArcLength(Vector3d[], Boolean)
Declaration
public static double ArcLength(Vector3d[] vertices, bool bLoop = false)
Parameters
Returns
ArcLength(IEnumerable<Vector3d>)
Declaration
public static double ArcLength(IEnumerable<Vector3d> vertices)
Parameters
Returns
ArcLength(List<Vector3d>, Boolean)
Declaration
public static double ArcLength(List<Vector3d> vertices, bool bLoop = false)
Parameters
Returns
FindClosestRayIntersection(ISampledCurve3d, Double, Ray3d, out Double)
Declaration
public static bool FindClosestRayIntersection(ISampledCurve3d c, double segRadius, Ray3d ray, out double minRayT)
Parameters
Returns
FindNearestIndex(ISampledCurve3d, Vector3d)
Declaration
public static int FindNearestIndex(ISampledCurve3d c, Vector3d v)
Parameters
Returns
GetTangent(List<Vector3d>, Int32, Boolean)
Declaration
public static Vector3d GetTangent(List<Vector3d> vertices, int i, bool bLoop = false)
Parameters
Returns
InPlaceSmooth(IList<Vector3d>, Double, Int32, Boolean)
smooth set of vertices in-place (will not produce a symmetric result, but does not require extra buffer)
Declaration
public static void InPlaceSmooth(IList<Vector3d> vertices, double alpha, int nIterations, bool bClosed)
Parameters
InPlaceSmooth(IList<Vector3d>, Int32, Int32, Double, Int32, Boolean)
smooth set of vertices in-place (will not produce a symmetric result, but does not require extra buffer)
Declaration
public static void InPlaceSmooth(IList<Vector3d> vertices, int iStart, int iEnd, double alpha, int nIterations, bool bClosed)
Parameters
IterativeSmooth(IList<Vector3d>, Double, Int32, Boolean)
smooth set of vertices using extra buffer
Declaration
public static void IterativeSmooth(IList<Vector3d> vertices, double alpha, int nIterations, bool bClosed)
Parameters
IterativeSmooth(IList<Vector3d>, Int32, Int32, Double, Int32, Boolean, Vector3d[])
smooth set of vertices using extra buffer
Declaration
public static void IterativeSmooth(IList<Vector3d> vertices, int iStart, int iEnd, double alpha, int nIterations, bool bClosed, Vector3d[] buffer = null)
Parameters