HM_ExtAPI::GeomSurfaceGetType()

Returns surface type.

Syntax

bool GeomSurfaceGetType(
const HM_EntityGeometrySurface& surface,
HM_ExtAPI::SurfaceType& styp
);

Type

HyperMesh Ext API

Description

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(). The parameter ctyp in case of failure is set to HM_ExtAPI::NOT_A_SURFACE().

Requires including hm_extapi.h.

Inputs

surface
[in] - Handle to surface object that was returned by previous calls to API functions.
styp
[out] - Surface type. When function returns, this parameter can have one of the following values.
HM_ExtAPI::PLANE- planar surface
HM_ExtAPI::SPHERE - spherical surface
HM_ExtAPI::CYLINDER - Cylindrical surface
HM_ExtAPI::CONE - Cone surface
HM_ExtAPI::TORUS - Torus surface
HM_ExtAPI::NURBS_SURFACE - NURBS spline surface
HM_ExtAPI::COMPOSED_SURFACE - Composed surface
HM_ExtAPI::EXTRUDED_SURFACE - Extended surface
HM_ExtAPI::REVOLUTION_SURFACE - Surface of revolution
HM_ExtAPI::NOT_A_SURFACE - Not recognized as a surface

Errors

None.