HM_ExtAPI::SurfaceComposedGetSizes()

Returns sizes of rectangular grid of composition surfaces.

Syntax

bool SurfaceComposedGetSizes(
const HM_EntityGeometrySurface & surface,
int& u_cnt,
int& v_cnt
);

Type

HyperMesh Ext API

Description

The function expects that the type of surface object is HM_ExtAPI::COMPOSED_SURFACE(). Application should call the function HM_ExtAPI::GeomSurfaceGetType() to verify the type before calling SurfaceComposedGetSizes function.

See Description section for SurfaceComposedGetPatch for explanation of the structure of the composed surface.

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_cnt
[out] - Number of composition surfaces in U direction of composed surface.
v_cnt
[out] - Number of composition surfaces in V direction of composed surface.

Errors

None.