formZ SDK | 5.0 API Reference | System | Nurbs Curve

# fz_ncrv_insert_control_point

Description

Adds a control point to a NURBS curve after the nth control point. The new control point is added in between the (n)th and (n+1)th point at a distance interpolated by the specified ratio. For instance, a ratio of 0.5 would add a control point exactly in between the (n)th and (n+1)th points. A ratio < 0.5 would make a new control point closer to the (n)th point than the (n+1)th point while a ratio > 0.5 would make it closer to the (n+1)th point.

Plugin Prototype

fzrt_error_td fz_ncrv_insert_control_point(

fz_nurbs_cur_ptr | crv,
fzrt_int | npt,
double | ratio )

Parameters

crv [Input]

NURBS curve

npt [Input]

nth control point

ratio [Input]

ratio

Returns

Error codes

Availability

5.0.0.0

Example Files

util_ncrv.fsl

Function Set

fz_ncrv_fset

Defined in

fz_ncrv_api.h