bezier_surf
Constructor of a cubic Bézier surface sheet.
Signatures
- bezier_surf( vector ctrlpt[4][4] )
Details
Creates a cubic Bézier surface sheet from a 4 x 4 control point array.
Example
vector ctrlpt[4][4]
for( int v = 0; v < 4; ++v )
for( int u = 0; u < 4; ++u )
{
float z = ( v % 3 == 0 || u % 3 == 0 ) ? 0.0 : 1.0
ctrlpt[u][v] = <[v, u, z]>
}
make sheets_to_solid( [ bezier_surf( ctrlpt ) ] )
Parameters
- ctrlpt
-
A 4 x 4 array containing the 16 control points of the cubic Bézier surface.