HM_ExtAPI::SurfaceExtrudedGetData()
Returns parameters that define extruded surface.
Syntax
bool SurfaceExtrudedGetData(
const HM_EntityGeometrySurface & surface,
HM_EntityGeometryCurve & generator_curve,
HM_Vector& dir
);
Type
HyperMesh Ext API
Description
The function expects that the type of surface object is HM_ExtAPI::EXTRUDED_SURFACE(). Application should call the function HM_ExtAPI::GeomSurfaceGetType() to verify the type before calling SurfaceExtrudedGetData function.
Extruded surface is defined by parametric equation
S(U, V) = C(U) + V D,
where C(U) is parametric curve and D is extrusion vector.
Parameters returned by SurfaceExtrudedGetData | Extruded surface parameters |
---|---|
generator_curve | C(U) |
dir | D |
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.
- generator_curve
- [out] - Handle to curve object that represents the curve used to generate extruded surface.
- dir
- [out] - Extrusion vector. The length of the vector defines parameterization scaling of extruded surface in V parameter. The direction of the vector defines extrusion direction.
Errors
None.