Analyze

verb.eval.Analyze

CLASS

Source code

Analyze contains static immutable methods for analyzing NURBS geometry. This includes, but is not limited to:

knotMultiplicities

STATIC METHOD

Source code

knotMultiplicities(knots : KnotArray) : Array<KnotMultiplicity>

Determine the multiplicities of the values in a knot vector

params

returns

isRationalSurfaceClosed

STATIC METHOD

Source code

isRationalSurfaceClosed(surface : NurbsSurfaceData, uDir : Bool) : Bool

Determine whether a NURBS surface is "closed" in the given direction. Essentially, this determines if the end of the surface in the given direction is continuous at its end. This is an experimental method and not hightly reliable.

params

returns

rationalSurfaceClosestPoint

STATIC METHOD

Source code

rationalSurfaceClosestPoint(surface : NurbsSurfaceData, p : Point) : Point

Determine the closest point on a NURBS surface to a given point. This is an experimental method and not hightly reliable.

params

returns

rationalSurfaceClosestParam

STATIC METHOD

Source code

rationalSurfaceClosestParam(surface : NurbsSurfaceData, p : Point) : UV

Determine the closest parameters on a NURBS surface to a given point. This is an experimental method and not hightly reliable.

params

returns

rationalCurveClosestPoint

STATIC METHOD

Source code

rationalCurveClosestPoint(curve : NurbsCurveData, p : Point) : Point

Determine the closest point on a NURBS curve to a given point.

params

returns

rationalCurveClosestParam

STATIC METHOD

Source code

rationalCurveClosestParam(curve : NurbsCurveData, p : Point) : Float

Determine the closest parameters on a NURBS curve to a given point.

params

returns

rationalCurveParamAtArcLength

STATIC METHOD

Source code

rationalCurveParamAtArcLength(curve : NurbsCurveData, len : Float, tol : Float, e-3 : undefined, beziers : Array<NurbsCurveData>, bezierLengths : Array<Float>) : Float

Approximate the parameter at a given arc length on a NURBS curve

params

returns

rationalBezierCurveParamAtArcLength

STATIC METHOD

Source code

rationalBezierCurveParamAtArcLength(curve : NurbsCurveData, len : Float, tol : Float, totalLength : Float) : Float

Get the curve parameter at an arc length

params

returns

rationalCurveArcLength

STATIC METHOD

Source code

rationalCurveArcLength(curve : NurbsCurveData, u : Float, gaussDegIncrease : Int)

Approximate the length of a rational curve by gaussian quadrature - assumes a smooth curve

params

returns

rationalBezierCurveArcLength

STATIC METHOD

Source code

rationalBezierCurveArcLength(curve : NurbsCurveData, u : Float, gaussDegIncrease : Int) : Float

Approximate the length of a rational bezier curve by gaussian quadrature - assumes a smooth curve

params

returns

KnotMultiplicity

verb.eval.KnotMultiplicity

CLASS

Source code

A simple helper class to represent the multiplicity of a knot at a given position.

constructor

METHOD

Source code

new KnotMultiplicity(knot : Float, mult : Int)

Create a new KnotMultiplicity object params

inc

METHOD

Source code

inc()

Increments the multiplicity of the knot

knot

PROPERTY

Source code

knot : Float

The parameter of the knot

mult

PROPERTY

Source code

mult : Int

The multiplicity (i.e. the number of repeated occurrences) of the given knot in a knot vector