formZ SDK | 5.0 API Reference | Project | Modeling | Objects | Control Objects | Formula Surface and Curve

# fz_objt_cnstr_formula_curve

Description

Creates a Formula Curve object by custom function. This function constructs a Smooth controlled object. A curve is constructed from the parametric functions x(u), y(u) and z(u) defined in the domain [umin < u < umax]. The parametric functions are specified by the strings str_x, str_y and str_z.

Plugin Prototype

fzrt_error_td fz_objt_cnstr_formula_curve(

fzrt_int | windex,
char * | str_x,
char * | str_y,
char * | str_z,
double | umin,
double | umax,
fz_xyz_td * | scale,
fz_xyz_td * | origin,
fz_xyz_td * | rotation,
fz_attr_refn_ptr | refn_opts,
fz_objt_ptr * | obj )

Parameters

windex [Input]

project window index

str_x [Input]

X Function string

str_y [Input]

Y Function string

str_z [Input]

Z Function string

umin [Input]

Lower bound for u

umax [Input]

Upper bound for u

scale [Input, Optional]

scale factors

Default Value: {1,1,1}

origin [Input, Optional]

origin

Default Value: {0,0,0}

rotation [Input, Optional]

rotation angles, applied in z,y,x order

Default Value: {0,0,0}

refn_opts [Input, Optional]

display resolution options. For defaults see fz_attr_refn_parm_enum

obj [Result]

new object

Returns

Error codes

Availability

5.0.0.0

Example Files

util_objt_surf.fsl

Function Set

fz_model_fset

Defined in

fz_objt_surf_api.h