formZ SDK | 5.0 API Reference | System | Nurbs Surface

# fz_nsrf_sample_srf_arclength_based2

Description

Samples NURBS surface based on arclength to obtain points. The points are spaced evenly along the middle of the surface in both the directions. The rest of the sample points are generated based on this grid of parameter values. The list ( fz_type_list_ptr) passed in needs to be initialized before calling this function. The sample points are returned in the given list row-wise. That is, a row of v control points for the first u value is returned first. Then, the row of v control points for the next u value. Optionally, the [u,v]s corresponding to the sample points are returned in the uv list, which is parallel to the point list and also needs to be intialised.

Plugin Prototype

fzrt_error_td fz_nsrf_sample_srf_arclength_based2(

fz_nurbs_srf_ptr | srf,
fzrt_int | n_upts,
fzrt_int | n_vpts,
fz_type_list_ptr | pt_list,
fz_type_list_ptr | uv_list )

Parameters

srf [Input]

NURBS surface

n_upts [Input]

Number of points in U

n_vpts [Input]

Number of points in V

pt_list [Result]

Sample points list

uv_list [Result, Optional]

Parameters[u,v] list

Returns

Error codes

Availability

6.5.7.0

Example Files

util_nsrf.fsl

See Also

,

Function Set

fz_nsrf_fset

Defined in

fz_nsrf_api.h