44 using namespace HDK_Sample;
112 float rad = RADIUS(now);
141 for (
int i = 0; i < 4; i++)
SYS_FORCE_INLINE void bumpDataId()
SYS_FORCE_INLINE GA_Offset getPointOffset(GA_Size i) const
static GEO_PrimTetra * build(GA_Detail *gdp, bool appendpts=true)
Optional build function.
GA_Primitive * getPrimitiveByIndex(GA_Index prim_idx)
PRM_API const PRM_Type PRM_FLT
void clearAndDestroy()
Clear all the points/primitives out of this detail.
GA_Attribute * getP()
Convenience method to access the P attribute.
#define OP_FLAG_GENERATOR
SYS_FORCE_INLINE const GA_PrimitiveTypeId & getTypeId() const
bool addOperator(OP_Operator *op, std::ostream *err=nullptr)
PRM_API const PRM_Type PRM_XYZ
static PRM_Template myTemplateList[]
static const GA_PrimitiveTypeId & theTypeId()
Allows you to find out what this primitive type was named.
SOP_Tetra(OP_Network *net, const char *name, OP_Operator *op)
GLuint const GLchar * name
GLenum GLenum GLsizei void * table
void setManagesDataIDs(bool onOff)
OP_ERROR cookMySop(OP_Context &context) override
PRM_API PRM_Default PRMoneDefaults[]
SYS_FORCE_INLINE void setPos3(GA_Offset ptoff, const UT_Vector3 &pos)
Set P from a UT_Vector3.
SYS_FORCE_INLINE GA_Size getNumPrimitives() const
Return the number of primitives.
void newSopOperator(OP_OperatorTable *table)
void select(GU_SelectionType stype)
PUGI__FN char_t * translate(char_t *buffer, const char_t *from, const char_t *to, size_t to_length)
PRM_API PRM_Name PRMradiusName
static OP_Node * myConstructor(OP_Network *, const char *, OP_Operator *)
PRM_API PRM_Name PRMcenterName