HDK
|
A sphere primitive. More...
#include <GT_PrimSphere.h>
Static Public Member Functions | |
static void | computeSphereBounds (UT_BoundingBox &box, const GT_Parametric &uv) |
Static method to compute bounds for a sphere. More... | |
static GT_PrimitiveHandle | makePolygonMesh (const GT_RefineParms *parms) |
Static Public Member Functions inherited from GT_Primitive | |
static int | createPrimitiveTypeId () |
static GT_AttributeListHandle | mergeAttributeLists (bool &changed, const GT_AttributeListHandle &src, const GT_AttributeListHandle &merge, const UT_StringMMPattern *pattern, const UT_StringMMPattern *alternate=NULL) |
static bool | computeVelocityRange (UT_Vector3 &vmin, UT_Vector3 &vmax, const GT_DataArrayHandle &v) |
static GT_PrimitiveHandle | refineDetail (const GU_ConstDetailHandle &detail, const GT_RefineParms *parms) |
static GT_PrimitiveHandle | refinePrimitive (const GT_PrimitiveHandle &primh, const GT_RefineParms *parms) |
static void * | operator new (size_t size) |
static void * | operator new (size_t size, void *p) |
static void | operator delete (void *p, size_t size) |
Additional Inherited Members | |
Static Protected Member Functions inherited from GT_PrimQuadric | |
static void | extractRefineParms (const GT_RefineParms *parms, GT_Size &nu, GT_Size &nv, fpreal &u0, fpreal &u1, fpreal &v0, fpreal &v1) |
Extract refinement parameters. More... | |
Protected Attributes inherited from GT_PrimQuadric | |
GT_AttributeListHandle | myAttributes |
GT_Parametric | myUV |
A sphere primitive.
The sphere primitive represents a parametric patch of a sphere primitive The sphere is parametrized so u
(0 to 1) represents longitude, while v
(0 to 1) is goes from pole to pole. That is:
Definition at line 31 of file GT_PrimSphere.h.
|
inline |
Default constructor (full unit sphere, no attributes)
Definition at line 35 of file GT_PrimSphere.h.
|
inline |
Useful constructor.
Definition at line 39 of file GT_PrimSphere.h.
|
inline |
Copy constructor with different parametric range.
Definition at line 45 of file GT_PrimSphere.h.
|
inline |
Copy constructor.
Definition at line 50 of file GT_PrimSphere.h.
|
override |
Destructor.
|
inlineoverridevirtual |
Reimplemented from GT_PrimQuadric.
Definition at line 57 of file GT_PrimSphere.h.
|
inlineoverrideprotectedvirtual |
|
static |
Static method to compute bounds for a sphere.
|
overridevirtual |
Methods defined on GT_Primitive
Reimplemented from GT_Primitive.
|
inlineoverridevirtual |
Methods defined on GT_Primitive
Implements GT_Primitive.
Definition at line 64 of file GT_PrimSphere.h.
|
overrideprotectedvirtual |
Methods defined on GT_PrimQuadric
Implements GT_PrimQuadric.
|
overrideprotectedvirtual |
Methods defined on GT_PrimQuadric
Implements GT_PrimQuadric.
|
overrideprotectedvirtual |
Methods defined on GT_PrimQuadric
Implements GT_PrimQuadric.
|
overrideprotectedvirtual |
Methods defined on GT_PrimQuadric
Implements GT_PrimQuadric.
|
overridevirtual |
Methods defined on GT_Primitive
Reimplemented from GT_Primitive.
|
overrideprotectedvirtual |
Methods defined on GT_PrimQuadric
Implements GT_PrimQuadric.
|
inline |
Initialize a sphere with
attribs | Attributes defined on the sphere |
transform | The transform attribute list should contain a single transform representing the 4x4 transform of the sphere. |
uv | The parametric range for the sphere. The sphere is parametrized so u (0 to 1) represents longitude, while v (0 to 1) is goes from pole to pole. |
Definition at line 79 of file GT_PrimSphere.h.
|
static |
Get a tesselation of a full sphere with a given set of refinement parameters.
|
inlineoverridevirtual |
Save the primitive to a JSON stream. The default method does nothing and returns false.
Reimplemented from GT_Primitive.
Definition at line 58 of file GT_PrimSphere.h.