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

# fz_objt_alys_get_segt_perp_pts

Description

Returns all possible perpendicularly projected points on a segment from a given world point For straight lines theres is only one such point. For arcs there are two possible points except for its center which has infinite projections. For spline segments there could be many such points.

Plugin Prototype

fzrt_error_td fz_objt_alys_get_segt_perp_pts(

fzrt_int | windex,
fz_objt_ptr | obj,
fzrt_int | sindx,
fz_objt_model_type_enum | model_type,
fz_xyz_td * | pt,
fz_type_list_ptr | pts_list )

Parameters

windex [Input]

project window index

obj [Input]

object

sindx [Input]

segment index

model_type [Input]

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

pt [Input]

world point

pts_list [Result]

list of projected points

Returns

Error codes

Availability

7.0.0.0

Example Files

util_objt_alys_segt.fsl

See Also

fz_objt_alys_get_segt_geom_type, fz_objt_alys_get_segt_bbox,, fz_objt_alys_get_segt_arc_parm, fz_objt_alys_get_segt_spline_parm, fz_objt_alys_get_pnt_on_segt

Function Set

fz_model_fset

Defined in

fz_objt_alys_api.h