|
static GT_PrimitiveHandle | pointMesh (GT_BuilderStatus &err, int npoints, const GT_VariadicAttributes &attribs=GT_VariadicAttributes()) |
|
static GT_PrimitiveHandle | polygon (GT_BuilderStatus &err, int npoints, const GT_VariadicAttributes &attribs=GT_VariadicAttributes()) |
|
static GT_PrimitiveHandle | polygonMesh (GT_BuilderStatus &err, int npolys, const int *counts, const int *vtxlist, const GT_VariadicAttributes &attribs=GT_VariadicAttributes()) |
|
static GT_PrimitiveHandle | subdivisionMesh (GT_BuilderStatus &err, GT_Scheme scheme, int npolys, const int *counts, const int *vtxlist, const GT_VariadicAttributes &attribs=GT_VariadicAttributes()) |
|
static GT_PrimitiveHandle | curve (GT_BuilderStatus &err, GT_Basis basis, int npoints, bool wrap, const GT_VariadicAttributes &attribs=GT_VariadicAttributes()) |
|
static GT_PrimitiveHandle | curveMesh (GT_BuilderStatus &err, GT_Basis basis, int ncurves, const int *counts, bool wrap, const GT_VariadicAttributes &attribs=GT_VariadicAttributes()) |
|
static GT_PrimitiveHandle | patch (GT_BuilderStatus &err, GT_Basis basis, int nu, bool uwrap, int nv, bool vwrap, const GT_VariadicAttributes &attribs=GT_VariadicAttributes()) |
|
static GT_PrimitiveHandle | patchMesh (GT_BuilderStatus &err, int npatches, GT_Basis basis, const int *nu, const bool *uwrap, const int *nv, const bool *vwrap, const GT_VariadicAttributes &attribs=GT_VariadicAttributes()) |
|
static GT_PrimitiveHandle | nucurves (GT_BuilderStatus &err, int ncurves, const int *counts, const int *orders, const fpreal *knots, const fpreal *tmin, const fpreal *tmax, const GT_VariadicAttributes &attribs=GT_VariadicAttributes()) |
|
static GT_PrimitiveHandle | nupatch (GT_BuilderStatus &err, int nu, int uorder, const fpreal *uknots, int nv, int vorder, const fpreal *vknots, const GT_VariadicAttributes &attribs=GT_VariadicAttributes()) |
|
static GT_PrimitiveHandle | box (GT_BuilderStatus &err, const UT_BoundingBox &box, const GT_VariadicAttributes &attribs=GT_VariadicAttributes()) |
|
static GT_PrimitiveHandle | wireBox (GT_BuilderStatus &err, const UT_BoundingBox &box, const GT_VariadicAttributes &attribs=GT_VariadicAttributes()) |
|
static GT_PrimitiveHandle | sphere (GT_BuilderStatus &err, const GT_TransformHandle &transform, const GT_VariadicAttributes &attribs=GT_VariadicAttributes()) |
|
static GT_PrimitiveHandle | circle (GT_BuilderStatus &err, const GT_TransformHandle &transform, const GT_VariadicAttributes &attribs=GT_VariadicAttributes()) |
|
static GT_PrimitiveHandle | tube (GT_BuilderStatus &err, const GT_TransformHandle &transform, fpreal taper, bool caps, const GT_VariadicAttributes &attribs=GT_VariadicAttributes()) |
|
static GT_PrimitiveHandle | hyperboloid (GT_BuilderStatus &err, const GT_TransformHandle &transform, const UT_Vector3D &p0, const UT_Vector3D &p1, const GT_VariadicAttributes &attribs=GT_VariadicAttributes()) |
|
static GT_TrimNuCurves * | trimcurves (GT_BuilderStatus &err, int nloops, const int *curves_per_loop, const int *points_per_curve, const int *curve_orders, const fpreal *knots, const fpreal *min, const fpreal *max, const UT_Vector3D *uvw) |
|
Create specific primitives by building from existing arrays.
These methods construct GT primitives based on the attribute parsing style defined in GT_AttributeBuilder.
Each builder function specifies a number of fixed arguments describing the topology of the primitive. The function also takes variadic arguments which are passed through to the GT_AttributeBuilder function.
A simple example creating a simple point mesh
#define NPOINTS 4
"vertex point32 P", P,
"vertex real32 width", width,
NULL);
A simple example creating a curve mesh that has deformation motion blur
#define NCURVES 3
#define PTS_PER_CURVE 3
int points_per_curve[NCURVES];
for (int i = 0; i < ncurves; ++i)
{
initCurveP(i, P0+i*PTS_PER_CURVE,
time=0);
initCurveP(i, P1+i*PTS_PER_CURVE,
time=1);
initCurveColor(i, Cd + i*PTS_PER_CURVE);
points_per_curve[i] = PTS_PER_CURVE;
}
NCURVES, points_per_curve, false,
"vertex point32 P", P0,
"vertex point32 P", P1,
"vertex color32 Cd", Cd,
NULL);
Definition at line 68 of file GT_PrimitiveBuilder.h.