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

fz_objt_segt_get_end_pindx

Description

Returns the index of the end point 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 segment is from the facetted topology and it is the last segment of an open wire, the end point index is -1 (i.e. there is always a dummy segment at the end of an open wire).
As this is not the case in the smooth topology, the last segment of an open wire always has a valid end point index.

Plugin Prototype

fzrt_error_td fz_objt_segt_get_end_pindx(

fzrt_int

windex,

fz_objt_ptr

obj,

fzrt_int

sindx,

fz_objt_model_type_enum

model_type,

fzrt_int *

pindx )

Parameters

windex [Input]

project window index

obj [Input]

object

sindx [Input]

segment index

model_type [Input]

object topology type

pindx [Result]

point index of end point of segment

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_next, , fz_objt_segt_get_fromcurv

Function Set

fz_model_fset


Defined in

fz_objt_otop_api.h