HM_ExtAPI::OffsetFaces()

Offsets faces in the model in the direction of their normal.

Syntax

bool OffsetFaces(
int num_faces,
const HM_EntityGeomFace*	input_faces,
const double* offset_dists,
HM_OffsetParamStruct& offset_params
);

Type

HyperMesh Ext API Function

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().

Requires including hm_extapi.h.

Inputs

num_faces
[in] - Number of faces to offset.
input_faces
[in] - Array of faces to offset. The number of entries in the array must be num_faces.
offset_dists
[in] - If not NULL then points to the array of offset distances for each face. The number of entries in the array in this case must be num_faces. If the value in the array is positive then corresponding face is offset in the direction defined by its normal. If the value is negative then corresponding face is offset in the direction opposite to the direction defined by its normal.
If the value of offset_dists pointer is NULL then offset distance specified in the structure offset_params is used for all faces.
offset_params
[in/out] - Offset parameters. See HM_OffsetParamStruct for details.

Errors

None.