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

fz_objt_get_face_count

Description

Returns the number of faces in an object.
The model_type parameter determines whether the face count is taken from the facetted or smooth topology.
If model_type is not specified, the "natural" face count is returned (i.e. smooth face count if object is smooth, facetted face count otherwise).

Plugin Prototype

fzrt_error_td fz_objt_get_face_count(

fzrt_int

windex,

fz_objt_ptr

obj,

fz_objt_model_type_enum

model_type,

fzrt_int *

nface )

Parameters

windex [Input]

project window index

obj [Input]

object

model_type [Input]

object topology type

nface [Result]

number of faces

Returns

Error codes

Availability

5.0.0.0

Example Files

util_low_level.fsl
util_objt_alys_objt.fsl
util_objt_alys_face.fsl

See Also

, fz_objt_get_segt_count, fz_objt_get_point_count

Function Set

fz_model_fset


Defined in

fz_objt_otop_api.h