12 #ifndef __GD_PrimPoly_H__
13 #define __GD_PrimPoly_H__
52 unsigned du=0,
int uOffset=-1)
const override;
55 int uoffset=-1)
const override;
74 bool binary)
const override;
78 int create(
int npts,
int closed = 0,
int appendPts = 1);
88 friend class GD_PrimitiveFactory;
bool saveH9(std::ostream &os, bool binary, const UT_Array< GA_AttribSaveDataH9 > &prim_attribs, const UT_Array< GA_AttribSaveDataH9 > &vtx_attribs) const override
virtual int evaluate(float u, UT_Vector3 &pos, unsigned du=0, int uOffset=-1) const =0
virtual bool loadPrivateH9(UT_IStream &is)=0
const GLuint GLenum const void * binary
virtual bool savePrivateH9(std::ostream &os, bool binary) const =0
static GA_IntrinsicManager::Registrar registerIntrinsics(GA_PrimitiveDefinition &definition)
virtual GD_TrimLoop * trimLoop(float ustart, float ustop) const =0
virtual int64 getMemoryUsage() const
GD_PrimPoly(GD_Detail *d, GA_Offset offset=GA_INVALID_OFFSET)
#define GA_INVALID_OFFSET
static const UT_Array< GA_AttribSaveDataH9 > & theEmptySaveAttribs
Convience objects to pass as arguments to saveH9()/loadH9().
friend std::ostream & operator<<(std::ostream &os, const GD_PrimPoly &d)
virtual void countMemory(UT_MemoryCounter &counter) const
virtual const GA_PrimitiveJSON * getJSON() const =0
Provide a JSON interface to a primitive.
A handle to simplify manipulation of multiple attributes.
GLfloat GLfloat GLfloat GLfloat h
virtual int breakCount() const =0
virtual unsigned getOrder() const =0
Definition of a geometric primitive.
virtual const GA_PrimitiveDefinition & getTypeDef() const =0
static GA_IntrinsicManager::Registrar registerIntrinsics(GA_PrimitiveDefinition &definition)