VPNurbsGenerator BinarySearch Method Virtual Photonics - VTS Library
Virtual Photonics
Binary search used to determine the span index where the parametric point belongs.

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

public int BinarySearch(
	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 mapped in the interval 0-1

Return Value

Type: OnlineInt32
index of the knot span where the parametric point belongs
Exceptions

ExceptionCondition
OnlineSystem ArgumentExceptionThrown when the search has to be performed on missing dimension
See Also