NAME

cxGeoPatchDefine - define a NURB spline patch
#include <cx/Geometry.h>

cxGeo cxGeoPatchDefine( int nu, int nv, float *point, int nku, float *uknot, int nkv, float *vknot)
integer function cxGeoPatchDefine(nu,nv,point,nku,uknot,nkv,vknot)
integer nu
integer nv
real point(4, nu, nv)
integer nku
float uknot(nku)
integer nkv
float vknot(nkv)
nu
Number of control points in the u direction.
nv
Number of control points in the v direction.
point
An nu*nv array of 4-vector (x,y,z,w) control points.
nku
Number of knots in the u direction.
uknot
The u knot vector.
nkv
Number of knots in the v direction.
vknot
The v knot vector.
This function creates a non-uniform rational B-spline (NURBS) patch. The rational control points are specified in point and the knot vectors are defined in uknot and vknot. Note that the control points are 4-vectors, not 3-vectors as in other geometry routines. There should be nu*nv control points in the array point with nv major (varying fastest).

The return value is a tag for this object that may be used to reference it at a later time with cxGeoFocus(3E).

Valid attributes are color and transparency. Attribute distribution may be CX_GEO_PER_OBJECT.

cxGeoFocus(3E)
Last modified: Mon Nov 6 16:33:16 GMT 2000
[ Documentation Home ]
© The Numerical Algorithms Group Ltd, Oxford UK. 1999