VPNurbsGenerator FindSpan Method Virtual Photonics - VTS Library
Virtual Photonics
Searches for the knot span where the parametric point lies, with a classic binary search.If the point is larger then the last knot element returns the last span index to evaluate the value of a point on the edge of the surface, which is later used for derivative extrapolation. Adapted from algorithm 2.1 from 'The NURBS Book' page 68.

Namespace: Vts.Modeling.ForwardSolvers
Assembly: Vts (in Vts.dll) Version: 1.0.12.0 (1.0.12)
Syntax

public int FindSpan(
	NurbsValues nurbsValues,
	double parametricPoint
)

Parameters

nurbsValues
Type: Vts.Modeling.ForwardSolvers NurbsValues
NurbsValues class which contains the knot,degree and control points
parametricPoint
Type: OnlineSystem Double
parametric point

Return Value

Type: OnlineInt32
knot span where the parametric point belongs
Exceptions

ExceptionCondition
OnlineSystem ArgumentExceptionThrown when the input parametric point is negative
See Also