13 #ifndef __GEO_PrimCircle_H__
14 #define __GEO_PrimCircle_H__
21 #define GEO_CIRCLE_XSECT_XP 0
22 #define GEO_CIRCLE_XSECT_XN 1
23 #define GEO_CIRCLE_XSECT_YP 2
24 #define GEO_CIRCLE_XSECT_YN 3
26 #define GEO_CIRCLE_GUIDEEDGE_X 0
27 #define GEO_CIRCLE_GUIDEEDGE_Y 1
84 float u_unit,
float=0,
85 unsigned du=0,
unsigned = 0)
const override;
fpreal calcPerimeter() const override
fpreal calcVolume(const UT_Vector3 &) const override
GLboolean GLboolean GLboolean GLboolean a
UT_Vector3D computeNormalD() const override
fpreal calcArea() const override
#define GA_INVALID_OFFSET
virtual const GA_PrimitiveJSON * getJSON() const =0
Provide a JSON interface to a primitive.
A handle to simplify manipulation of multiple attributes.
UT_Vector3 baryCenter() const override
friend std::ostream & operator<<(std::ostream &os, const GEO_PrimCircle &d)
GEO_PrimCircle(GEO_Detail *d, GA_Offset offset=GA_INVALID_OFFSET)
GLboolean GLboolean GLboolean b
~GEO_PrimCircle() override
static GA_PrimitiveFamilyMask buildFamilyMask()
static GA_IntrinsicManager::Registrar registerIntrinsics(GA_PrimitiveDefinition &defn)
static const UT_Array< GA_AttribSaveDataH9 > & theEmptySaveAttribs
Convience objects to pass as arguments to saveH9()/loadH9().
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 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
Definition of a geometric primitive.
bool getBBox(UT_BoundingBox *bbox) const override=0
virtual bool hasGuideEdge(int edgeid, UT_Vector3 &a, UT_Vector3 &b) const
static GA_IntrinsicManager::Registrar registerIntrinsics(GA_PrimitiveDefinition &defn)
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
virtual bool hasXsectPoint(int pointid, UT_Vector3 &p) const