HM_ExtAPI::CreateSurfaceExtruded()

Creates extruded surface object.

Syntax

bool CreateSurfaceExtruded(
HM_EntityGeometrySurface& new_surf,
const HM_EntityGeometryCurve& generator_curve,
const HM_Vector& dir
);

Type

HyperMesh Ext API Function

Description

The function creates the surface object of the type HM_ExtAPI::EXTRUDED_SURFACE().

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 used by CreateSurfaceExtruded 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

new_surf
[out] - Handle to new surface object.
generator_curve
[in] - Handle to curve object that represents the curve used to generate extruded surface. The handle that was returned by previous calls to API functions must be used.
dir
[in] - 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.