NAME
cxGeoPatchDefine
- define a NURB spline patch
C SPECIFICATION
#include <cx/Geometry.h>
cxGeo cxGeoPatchDefine(
int nu,
int nv,
float *point,
int nku,
float *uknot,
int nkv,
float *vknot)
FORTRAN SPECIFICATION
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)
PARAMETERS
-
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.
DESCRIPTION
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.
SEE ALSO
cxGeoFocus(3E)
Last modified: May 26 14:01 1999
[ Documentation Home ]
© The Numerical Algorithms Group Ltd, Oxford UK. 1999