Search Results for

    Show / Hide Table of Contents

    Class CurveUtils

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

    Methods

    ArcLength(Vector3d[], Boolean)

    Declaration
    public static double ArcLength(Vector3d[] vertices, bool bLoop = false)
    Parameters
    Type Name Description
    Vector3d[] vertices
    Boolean bLoop
    Returns
    Type Description
    Double

    ArcLength(IEnumerable<Vector3d>)

    Declaration
    public static double ArcLength(IEnumerable<Vector3d> vertices)
    Parameters
    Type Name Description
    IEnumerable<Vector3d> vertices
    Returns
    Type Description
    Double

    ArcLength(List<Vector3d>, Boolean)

    Declaration
    public static double ArcLength(List<Vector3d> vertices, bool bLoop = false)
    Parameters
    Type Name Description
    List<Vector3d> vertices
    Boolean bLoop
    Returns
    Type Description
    Double

    FindClosestRayIntersection(ISampledCurve3d, Double, Ray3d, out Double)

    Declaration
    public static bool FindClosestRayIntersection(ISampledCurve3d c, double segRadius, Ray3d ray, out double minRayT)
    Parameters
    Type Name Description
    ISampledCurve3d c
    Double segRadius
    Ray3d ray
    Double minRayT
    Returns
    Type Description
    Boolean

    FindNearestIndex(ISampledCurve3d, Vector3d)

    Declaration
    public static int FindNearestIndex(ISampledCurve3d c, Vector3d v)
    Parameters
    Type Name Description
    ISampledCurve3d c
    Vector3d v
    Returns
    Type Description
    Int32

    GetTangent(List<Vector3d>, Int32, Boolean)

    Declaration
    public static Vector3d GetTangent(List<Vector3d> vertices, int i, bool bLoop = false)
    Parameters
    Type Name Description
    List<Vector3d> vertices
    Int32 i
    Boolean bLoop
    Returns
    Type Description
    Vector3d

    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
    Type Name Description
    IList<Vector3d> vertices
    Double alpha
    Int32 nIterations
    Boolean bClosed

    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
    Type Name Description
    IList<Vector3d> vertices
    Int32 iStart
    Int32 iEnd
    Double alpha
    Int32 nIterations
    Boolean bClosed

    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
    Type Name Description
    IList<Vector3d> vertices
    Double alpha
    Int32 nIterations
    Boolean bClosed

    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
    Type Name Description
    IList<Vector3d> vertices
    Int32 iStart
    Int32 iEnd
    Double alpha
    Int32 nIterations
    Boolean bClosed
    Vector3d[] buffer
    In This Article
    Back to top ViRGIS VR GIS