API Reference > OdDg Classes > OdDgBSplineSurface Class > OdDgBSplineSurface Methods > evaluate Method > OdDgBSplineSurface::evaluate Method (double, double, int, OdGePoint3d&, OdGeVector3dArray&)
OdDgBSplineSurface::evaluate Method (double, double, int, OdGePoint3d&, OdGeVector3dArray&)
Syntax
C++
OdResult evaluate(double dU, double dV, int iDerivDegree, OdGePoint3d& point, OdGeVector3dArray& derivatives) const;
Parameters 
Description 
double dU 
[in] u direction parameter.  
double dV 
[in] v direction parameter.  
int iDerivDegree 
[in] The degree of derivatives to evaluate.  
OdGePoint3d& point 
[out] A passed-in parameter for returning the evaluated position on the surface.  
OdGeVector3dArray& derivatives 
[out] A passed-in parameter for returning derivatives array of vectors, in the order of uDeriv, vDeriv, uuDeriv, uvDeriv, vvDeriv.
 

Returns eOk if evaluation is successfully done. If the surface doesn't contain any NURBS information, returns eFail. If the u or v value is out of range, returns eOutOfRange.

Evaluates the position and an arbitrary number of derivatives of the surface at the specified parameter value (u, v). 

 

This method is implemented only for Spatial modeler and returns eNotImplementedYet status for other modelers.

Copyright © 2002–2020. Open Design Alliance. All rights reserved.