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

# fz_objt_segt_get_next

Description

Returns the index of the next segment of a given segment.
The model_type parameter determines whether the segment is taken from the facetted or smooth topology. model_type must be specified.
If the curve to which the segment belongs is an open wire and the given segment is the last segment, next is returned as -1.
Recall, that an open wire in the facetted topology has a dummy segment at the end.
For example, a wire which appears with two segments on the screen is composed of three segments. This last dummy segment holds the point index for the end point of the previous to last segment.
In the smooth topology there is no dummy segment, as each segment stores start and end point indices.

Plugin Prototype

fzrt_error_td fz_objt_segt_get_next(

fzrt_int | windex,
fz_objt_ptr | obj,
fzrt_int | sindx,
fz_objt_model_type_enum | model_type,
fzrt_int * | next )

Parameters

windex [Input]

project window index

obj [Input]

object

sindx [Input]

segment index

model_type [Input]

object topology type

next [Result]

next segment index

Returns

Error codes

Availability

5.0.0.0

Example Files

util_objt_nurbs_sections.fsl
util_low_level.fsl

See Also

,, fz_objt_segt_get_prev, , fz_objt_segt_get_fromcurv

Function Set

fz_model_fset

Defined in

fz_objt_otop_api.h