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

# fz_objt_get_segt_count

Description

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

Plugin Prototype

fzrt_error_td fz_objt_get_segt_count(

fzrt_int | windex,
fz_objt_ptr | obj,
fz_objt_model_type_enum | model_type,
fzrt_int * | nsegt )

Parameters

windex [Input]

project window index

obj [Input]

object

model_type [Input]

object topology type

nsegt [Result]

number of segments

Returns

Error codes

Availability

5.0.0.0

Example Files

util_low_level.fsl
util_objt_alys_face.fsl

See Also

fz_objt_get_face_count,, fz_objt_get_point_count

Function Set

fz_model_fset

Defined in

fz_objt_otop_api.h