formZ SDK | 5.0 API Reference | Project | Modeling | Objects | Editing Operations

fz_objt_edit_plin_separate

Description

Separates a composite curve (pline) into a set of objects, each of which corresponds to one of the component curves of the composite curve. For example, a composite curve, that was drawn starting with an arc, then drawn with a cubic bezier and finished with a straight line is split into three objects. The first is an arc object, the second a spline object and the third a single segment wire object. The group_lines option indicates, whether consecutive straight line segments are constructed as a single object (for efficiency purpose) or as separate objects.

Plugin Prototype

fzrt_error_td fz_objt_edit_plin_separate(

fzrt_int

windex,

fz_objt_ptr

obj,

fzrt_boolean

group_lines,

fz_enty_list_ptr

ent_list )

Parameters

windex [Input]

project window index

obj [Input]

the composite curve object to be separated

group_lines [Input]

If set to TRUE, multiple conswcutive straight lines are created a one new object. If set to FALSE, they are created as separate objects.

ent_list [Result]

list with new object pointers

Returns

Error codes
MODEL_ERR_WRONG_OBJT_TYPE the object passed in is not a composite curve

Availability

5.5.0.0

See Also

, fz_objt_edit_join_open_wires_multi

Function Set

fz_model_fset


Defined in

fz_objt_api.h