11 #ifndef __GT_PrimPatch__
12 #define __GT_PrimPatch__
24 , myVertex(src.myVertex)
25 , myUniform(src.myUniform)
26 , myDetail(src.myDetail)
30 , myUWrap(src.myUWrap)
31 , myVWrap(src.myVWrap)
45 , myUWrap(src.myUWrap)
46 , myVWrap(src.myVWrap)
54 init(basis, nu, uwrap, nv, vwrap, vertex, uniform, detail);
58 const char *
className()
const override {
return "GT_PrimPatch"; }
64 int nsegments)
const override;
157 {
return myUniform; }
171 bool myUWrap, myVWrap;
SIM_API const UT_StringHolder vertex
virtual int getMotionSegments() const =0
virtual bool refine(GT_Refine &refiner, const GT_RefineParms *parms=NULL) const
virtual int getPrimitiveType() const
A mesh of linear or cubic patches.
const GT_AttributeListHandle & getUniformAttributes() const override
Class which writes ASCII or binary JSON streams.
const GT_AttributeListHandle & getVertexAttributes() const override
GT_PrimPatch(const GT_PrimPatch &src)
GT_PrimPatch(const GT_PrimPatch &src, const GT_AttributeListHandle &vertex, const GT_AttributeListHandle &uniform, const GT_AttributeListHandle &detail)
GT_PrimitiveHandle doSoftCopy() const override
The base class for all GT primitive types.
virtual GT_PrimitiveHandle doHarden() const
virtual int64 getMemoryUsage() const =0
Processes primitives generated by refinement process.
GT_PrimPatch(GT_Basis basis, int nu, bool uwrap, int nv, bool vwrap, const GT_AttributeListHandle &vertex, const GT_AttributeListHandle &uniform, const GT_AttributeListHandle &detail)
GT_Basis getBasis() const
const GT_AttributeListHandle & getDetail() const
virtual bool save(UT_JSONWriter &w) const
GLubyte GLubyte GLubyte GLubyte w
virtual GT_PrimitiveHandle doAttributeMerge(const GT_Primitive &src, const UT_StringMMPattern *vertex, const UT_StringMMPattern *point, const UT_StringMMPattern *uniform, const UT_StringMMPattern *detail) const
The virtual implementation of attribute merging.
const GT_AttributeListHandle & getVertex() const
const GT_AttributeListHandle & getDetailAttributes() const override
virtual void enlargeBounds(UT_BoundingBox boxes[], int nsegments) const =0
const char * className() const override
const GT_AttributeListHandle & getUniform() const