Close

Relief for ODA Team in Ukraine

Learn more
ODA Kernel SDK
OdGeKnotVector::insert Method
Syntax
C++
OdGeKnotVector& insert(double param);

Inserts a knot in the appropriate knot interval as specified by param, and returns a reference to this vector. 

 

Parameters
Description
param
[in] Parameter to specify a point on the vector.

If the specified point is within the knot equality tolerance of another knot, said knot's multiplicity is incremented. 

Will never insert value at position 0 in non-empty vector. If we have vector with any single value, insertion will be after this one no matter inserted value >, < or = to this value

OdGeKnotVector v; v.insert(1); v.insert(-100). Result will be {1, -100}. OdGeKnotVector v; {1, 5, 12, 30}; v.insert(-1); v.insert(50); v.insert(8); Result will be {1, -1, 5, 8, 12, 30, 50};

Copyright © 2002-2022. Open Design Alliance All rights reserved.