HM_ExtAPI::GeomSurfaceConvertToNURBS()

Converts parametric region of a surface of any type to NURBS surface.

Syntax

bool GeomSurfaceConvertToNURBS(
const HM_EntityGeometrySurface & surface,
double u_start_param,
double u_end_param,
double v_start_param,
double v_end_param,
HM_EntityGeometrySurface& surf_nurbs
);

Type

HyperMesh Ext API

Description

The function call creates new NURBS surface object. To free the object use the function HM_ExtAPI::ReleaseGeomSurface.

If the function succeeds, the return value is true. If the function fails, the return value is false. To get extended value information, call HM_ExtAPI::GetLastErrorCode().

Requires including hm_extapi.h.

Inputs

surface
[in] - Handle to surface object that was returned by previous calls to API functions.
u_start_param
[in] - Start parameter of the U parameter range of the surface region that is converted.
u_end_param
[in] - End parameter of the U parameter range of the surface region that is converted.
v_start_param
[in] - Start parameter of the V parameter range of the surface region that is converted.
v_end_param
[in] - End parameter of the V parameter range of the surface region that is converted.
surf_nurbs
[in] - Handle to surface object of NURBS type.

Errors

None.