formZ SDK | 5.0 API Reference | Project | Modeling | Objects | Analysis

# fz_objt_alys_get_face_cog

Description

Gets the center of gravity of a face of an object.

Plugin Prototype

fzrt_error_td fz_objt_alys_get_face_cog(

fzrt_int | windex,
fz_objt_ptr | obj,
fzrt_int | findx,
fz_objt_model_type_enum | model_type,
fz_xyz_td * | cog )

Parameters

windex [Input]

project window index

obj [Input]

object

findx [Input]

face index

model_type [Input]

object topology type. FZ_OBJT_MODEL_TYPE_UNSPEC may be used to use the object's natural model type.

cog [Result]

face's center of gravity

Returns

Error codes

Availability

5.0.0.0

Example Files

util_objt_alys_face.fsl

See Also

, fz_objt_alys_get_face_geom_type, fz_objt_alys_get_face_pnt_parm, fz_objt_alys_get_face_plne_parm, fz_objt_alys_get_face_sphr_parm, fz_objt_alys_get_face_cyln_parm, , fz_objt_alys_get_face_tors_parm,, fz_objt_alys_get_face_area, fz_objt_alys_get_face_circumference,

Function Set

fz_model_fset

Defined in

fz_objt_alys_api.h