HDK
|
#include <GT_PrimHyperboloid.h>
Protected Member Functions | |
GT_PrimQuadric * | clone (const GT_Parametric &uv) const override |
Clone a new hyperbolic sheet with a different parametric range. More... | |
void | adjustTesselationCounts (GT_Size &nu, GT_Size &nv) const override |
Hyperboloids can be evaluated with just 2 rows of data. More... | |
void | getQBounds (UT_BoundingBox &box) const override |
void | fillQP (UT_Vector3F *P, GT_Size n, const fpreal *u, fpreal v) const override |
void | fillQP (UT_Vector3D *P, GT_Size n, const fpreal *u, fpreal v) const override |
void | fillQN (UT_Vector3F *N, GT_Size n, const fpreal *u, fpreal v) const override |
void | fillQN (UT_Vector3D *N, GT_Size n, const fpreal *u, fpreal v) const override |
Protected Member Functions inherited from GT_PrimQuadric | |
void | hardenAttributes () |
Harden attributes etc. More... | |
virtual GT_PrimitiveHandle | createMesh (GT_Size nu, GT_Size nv, fpreal u0, fpreal u1, fpreal v0, fpreal v1, bool create_normals=true, bool create_uv=true, GT_Storage Pstorage=GT_STORE_REAL32, GT_Storage Nstorage=GT_STORE_REAL32) const |
Protected Member Functions inherited from GT_Primitive | |
void | enlargeP (UT_BoundingBox &box, const GT_AttributeListHandle &list, int segment) const |
void | enlargeP (UT_BoundingBox &B, const GT_DataArrayHandle &P) const |
Convenience method to enlarge a bounding box given a position attribute. More... | |
void | enlargePw (UT_BoundingBox &B, const GT_DataArrayHandle &P) const |
Protected Member Functions inherited from UT_IntrusiveRefCounter< GT_Primitive > | |
SYS_FORCE_INLINE | ~UT_IntrusiveRefCounter () |
Destructor: Only derived classes can destruct this. More... | |
Generic hyperboloid primitive
The hyperboloid primitive is a parametric surface defined by revolving a line segment around the z azis. Given the hyperboloid is defined by points p0, p1 and parametric coordinates u and v:
Examples:
Definition at line 42 of file GT_PrimHyperboloid.h.
|
inline |
Definition at line 45 of file GT_PrimHyperboloid.h.
|
inline |
Definition at line 47 of file GT_PrimHyperboloid.h.
|
inline |
Definition at line 56 of file GT_PrimHyperboloid.h.
|
inline |
Definition at line 61 of file GT_PrimHyperboloid.h.
|
override |
|
overrideprotectedvirtual |
Hyperboloids can be evaluated with just 2 rows of data.
Reimplemented from GT_PrimQuadric.
|
inlineoverridevirtual |
Implements GT_Primitive.
Definition at line 68 of file GT_PrimHyperboloid.h.
|
inlineoverrideprotectedvirtual |
Clone a new hyperbolic sheet with a different parametric range.
Implements GT_PrimQuadric.
Definition at line 124 of file GT_PrimHyperboloid.h.
|
overridevirtual |
Methods defined on GT_Primitive
Reimplemented from GT_Primitive.
|
inlineoverridevirtual |
Methods defined on GT_Primitive
Implements GT_Primitive.
Definition at line 85 of file GT_PrimHyperboloid.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.
|
inline |
Accessor
Definition at line 119 of file GT_PrimHyperboloid.h.
|
inline |
Accessor
Definition at line 117 of file GT_PrimHyperboloid.h.
|
inline |
Accessor
Definition at line 118 of file GT_PrimHyperboloid.h.
|
overridevirtual |
Methods defined on GT_Primitive
Reimplemented from GT_Primitive.
|
overrideprotectedvirtual |
Methods defined on GT_PrimQuadric
Implements GT_PrimQuadric.
|
inline |
Initialize hyperboloid with
p0 | First point defining hyperboloid axis |
p1 | Second point defining hyperboloid axis |
attribs | Attributes defined on the hyperboloid |
transform | Transform on the hyperboloid |
uv | The parametric range for the hyperboloid. For the hyperboloid, u coordinate represents the rotation, while v represents the interpolant between p0 and p1 . |
Definition at line 102 of file GT_PrimHyperboloid.h.
|
inlineoverridevirtual |
Save the primitive to a JSON stream. The default method does nothing and returns false.
Reimplemented from GT_Primitive.
Definition at line 70 of file GT_PrimHyperboloid.h.