35 using namespace HDK_Sample;
73 list->
append(prim_list[0]);
88 if (!offsets.entries())
95 static const int vertex_order[] = {
105 for (
exint i = 0; i < offsets.entries(); ++i)
109 for (
int face = 0; face < 4; ++face)
115 for (
int voff = 0; voff < 3; ++voff)
117 int vidx = vertex_order[face*3 + voff];
144 shared = geometry->getPointAttributes(filter);
151 vertex = geometry->getVertexAttributes(filter, &ga_vertices);
157 uniform = geometry->getPrimitiveAttributes(filter, &ga_faces);
160 detail = geometry->getDetailAttributes(filter);
171 shared, vertex, uniform, detail);
SIM_API const UT_StringHolder vertex
void bind(const GA_PrimitiveTypeId &id) const
GT_DataArrayHandle createVertexPointArray(const GA_Detail &gdp) const
GT_GEOPrimCollectData * beginCollecting(const GT_GEODetailListHandle &geometry, const GT_RefineParms *parms) const override
Return a structure to capture all the tet primitives.
Class to filter attributes when building GT_AttributeLists.
Collection data container.
GLuint GLsizei const GLuint const GLintptr * offsets
SYS_FORCE_INLINE GEO_Primitive * getGEOPrimitive(GA_Offset primoff)
UT_IntrusivePtr< GT_DataArray > GT_DataArrayHandle
GT_PrimTetraCollect(const GA_PrimitiveTypeId &id)
static void registerPrimitive(const GA_PrimitiveTypeId &id)
Register the GT collector.
Collection data container to store primitive offsets.
void append(GA_Offset offset)
SYS_FORCE_INLINE GA_Offset getVertexOffset(GA_Size primvertexnum) const
GT_DAConstantValue< int64 > GT_IntConstant
~GT_PrimTetraCollect() override
Destructor.
GT_PrimitiveHandle collect(const GT_GEODetailListHandle &geometry, const GEO_Primitive *const *prim_list, int nsegments, GT_GEOPrimCollectData *data) const override
When refining a single tet primitive, we add it to the container.
virtual void append(const GA_Primitive *prim)
GT_PrimitiveHandle endCollecting(const GT_GEODetailListHandle &geometry, GT_GEOPrimCollectData *data) const override
At the end of collecting, the single outside skin is generated.
UT_IntrusivePtr< GT_Primitive > GT_PrimitiveHandle
UT_SharedPtr< GT_GEODetailList > GT_GEODetailListHandle
const GT_GEOOffsetList & getPrimitives() const
GLint GLint GLint GLint GLint GLint GLint GLbitfield GLenum filter