11 #ifndef __GT_PrimQuadricMesh__
12 #define __GT_PrimQuadricMesh__
30 , myVertex(src.myVertex)
31 , myDetail(src.myDetail)
32 , myTransforms(src.myTransforms)
41 init(vertex, detail, xforms);
47 const char *
className()
const override {
return "GT_PrimQuadricMesh"; }
51 return myTransforms->save(*j) &&
58 int nsegments)
const override;
74 GT_Size getQuadricCount()
const;
80 {
return myTransforms; }
82 {
return myTransforms->get(i); }
105 void hardenAttributes();
SIM_API const UT_StringHolder vertex
virtual int getMotionSegments() const =0
const GT_AttributeListHandle & getDetailAttributes() const override
virtual bool updateGeoPrim(const GU_ConstDetailHandle &dtl, const GT_RefineParms &parms)
update any cached data for geometry and its attributes
virtual bool refine(GT_Refine &refiner, const GT_RefineParms *parms=NULL) const
virtual int getPrimitiveType() const
const GT_AttributeListHandle & getDetail() const
const GT_TransformHandle & getTransform(GT_Size i) const
GT_TransformArrayHandle myTransforms
Class which writes ASCII or binary JSON streams.
GLdouble GLdouble GLdouble q
GT_AttributeListHandle myVertex
const GT_AttributeListHandle & getVertexAttributes() const override
GLuint const GLchar * name
A virtual container used by sphere, circle and tube meshes.
const GT_AttributeListHandle & getVertex() const
bool saveQuadricMesh(UT_JSONWriter &w, const char *name) const
The base class for all GT primitive types.
virtual bool getBaseTransform(UT_Matrix4D &) const
const GT_TransformArrayHandle & getTransforms() const
virtual int64 getMemoryUsage() const =0
Processes primitives generated by refinement process.
const char * className() const override
GLfloat GLfloat GLfloat GLfloat h
bool saveAttributeLists(UT_JSONWriter &w) const
GLubyte GLubyte GLubyte GLubyte w
GT_PrimQuadricMesh()
Default c-tor.
virtual void enlargeBounds(UT_BoundingBox boxes[], int nsegments) const =0
GT_PrimQuadricMesh(const GT_AttributeListHandle &vertex, const GT_AttributeListHandle &detail, const GT_TransformArrayHandle &xforms)
Construct a full list of quadrics.
GT_PrimQuadricMesh(const GT_PrimQuadricMesh &src)
GT_AttributeListHandle myDetail