HM_ExtAPI::ComponentGetNextGeomSolid()

Returns the next solid of the component.

Syntax

bool ComponentGetNextGeomSolid(
const HM_EntityComponent& comp,
HM_EntityGeomSolid& solid
);

Type

HyperMesh Ext API

Description

The function ComponentGetNextGeomSolid is used together with the function HM_ExtAPI::ComponentGetFirstGeomSolid() to iterate through all solids contained in the component. The call to ComponentGetFirstGeomSolid resets internal component counter to the first solid. The following calls to ComponentGetNextGeomSolid increment the counter until all solids of the component are iterated.

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

comp
[in] - Handle to component object that was returned by previous calls to API functions.
solid
[out] - Handle to the next solid of the component. The value of the handle is zero in case if component does not contain solids or if all solids were already returned by previous calls to ComponentGetFirstGeomSolid and ComponentGetNextGeomSolid.

Errors

None.