NurbsSurface.to_triangles

NurbsSurface.to_triangles(nu=16, nv=16, du=None, dv=None)[source]

Convert the surface to a list of triangles.

Parameters:
nuint, optional

The number of faces in the u direction. Default is 16.

nvint, optional

The number of faces in the v direction. Default is 16.

dutuple, optional

The subset of the domain in the u direction. Default is None, in which case the entire domain is used.

dvtuple, optional

The subset of the domain in the v direction. Default is None, in which case the entire domain is used.

Returns:
list[list[compas.geometry.Point]]