formZ SDK | 5.0 API Reference | Project | Modeling | Objects | Control Objects | Formula Surface and Curve
Description
Creates a Formula Surface object by custom function. This function constructs a Smooth controlled object. A surface is constructed from the parametric functions x(u,v), y(u,v) and z(u,v) defined in the domain [umin < u < umax] [vmin < v < vmax]. The parametric functions are specified by the strings str_x, str_y and str_z.
Plugin Prototype
fzrt_error_td fz_objt_cnstr_formula_surface(
fzrt_int | windex, |
char * | str_x, |
char * | str_y, |
char * | str_z, |
double | umin, |
double | umax, |
double | vmin, |
double | vmax, |
scale, | |
origin, | |
rotation, | |
refn_opts, | |
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
vmin [Input]
Lower bound for v
vmax [Input]
Upper bound for v
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
Function Set
Defined in