11 #ifndef __GEO_PrimPlane_H__
12 #define __GEO_PrimPlane_H__
36 float v = 0,
float w = 0)
const override;
82 unsigned du,
unsigned dv)
const override;
85 unsigned du = 0,
unsigned dv = 0)
const override;
fpreal calcPerimeter() const override
fpreal calcVolume(const UT_Vector3 &) const override
GEO_PrimPlane(GEO_Detail *d, GA_Offset offset=GA_INVALID_OFFSET)
static GA_IntrinsicManager::Registrar registerIntrinsics(GA_PrimitiveDefinition &defn)
friend std::ostream & operator<<(std::ostream &os, const GEO_PrimPlane &d)
UT_Vector3D computeNormalD() const override
SYS_FORCE_INLINE TO_T UTverify_cast(FROM_T from)
fpreal calcArea() const override
exint GA_Size
Defines the bit width for index and offset types in GA.
#define GA_INVALID_OFFSET
static GA_Offset buildBlock(GA_Detail &detail, GA_PrimitiveTypeId type, GA_Size nprims, bool append_points=true)
virtual const GA_PrimitiveJSON * getJSON() const =0
Provide a JSON interface to a primitive.
A handle to simplify manipulation of multiple attributes.
~GEO_PrimPlane() override
static const UT_Array< GA_AttribSaveDataH9 > & theEmptySaveAttribs
Convience objects to pass as arguments to saveH9()/loadH9().
static GEO_PrimPlane * build(GA_Detail &detail, GA_Offset existing_ptoff=GA_INVALID_OFFSET)
bool saveH9(std::ostream &os, bool binary, const UT_Array< GA_AttribSaveDataH9 > &prim_attribs, const UT_Array< GA_AttribSaveDataH9 > &vtx_attribs) const override
static GA_PrimitiveFamilyMask buildFamilyMask()
Return the family mask for all quadric sub-classes.
virtual int evaluateNormalVector(UT_Vector3 &nml, float u, float v=0, float w=0) const
virtual bool evaluatePointRefMap(GA_Offset result_vtx, GA_AttributeRefMap &map, fpreal u, fpreal v=0, uint du=0, uint dv=0) const =0
virtual void addToBSphere(UT_BoundingSphere *bsphere) const
Container class for all geometry.
static GA_Offset buildBlock(GA_Detail &detail, GA_Size nplanes, bool append_points=true)
GLubyte GLubyte GLubyte GLubyte w
Definition of a geometric primitive.
bool getBBox(UT_BoundingBox *bbox) const override=0
static GA_IntrinsicManager::Registrar registerIntrinsics(GA_PrimitiveDefinition &defn)
static GEO_Quadric * build(GA_Detail &detail, GA_PrimitiveTypeId type, GA_Offset existing_ptoff=GA_INVALID_OFFSET)
UT_Vector3 computeNormal() const override
Return a normal vector for the primitive.
virtual int evaluatePointV4(UT_Vector4 &pos, float u, float v=0, unsigned du=0, unsigned dv=0) const
static GA_PrimitiveFamilyMask buildFamilyMask()