ObjectGeometryBrep
The ObjectGeometryBrep class provides brep-based geometry support to ObjectGeometry. It defined rendered geometry by offsets within ObjectBrep buffers. The class supports multiple geometry batches that can be shaded by different Material references from ObjectGeometry.
#include <scene/TellusimObjectBrep.h>
Inheritance
- Inherits from ObjectGeometry
Constructors
Brep Face.
explicit ObjectGeometryBrep(const char *name = nullptr)
explicit ObjectGeometryBrep(ObjectBrep &brep, const char *name = nullptr)
Methods
Geometry batch.
void setBaseBatch(Type face, uint32_t num_indices, uint32_t index)
void setWrapBatch(Type face, uint32_t num_indices, uint32_t index)
void setBatch(Type face, bool wrap, uint32_t num_indices, uint32_t index)
void clearBatch()
uint32_t getNumBaseBatchIndices(Type face) const
uint32_t getNumWrapBatchIndices(Type face) const
uint32_t getNumBatchIndices(Type face, bool wrap) const
uint32_t getBaseBatchIndex(Type face) const
uint32_t getWrapBatchIndex(Type face) const
uint32_t getBatchIndex(Type face, bool wrap) const
Material batches.
void clearMaterialBatches()
void setNumMaterialBatches(uint32_t num_batches, bool clear = true)
void setMaterialBaseBatch(uint32_t batch, Type face, uint32_t num_indices, uint32_t index)
void setMaterialWrapBatch(uint32_t batch, Type face, uint32_t num_indices, uint32_t index)
void setMaterialBatch(uint32_t batch, Type face, bool wrap, uint32_t num_indices, uint32_t index)
void clearMaterialBatch(uint32_t batch)
uint32_t getNumMaterialBatches() const
uint32_t getNumMaterialBaseBatchIndices(uint32_t batch, Type face) const
uint32_t getNumMaterialWrapBatchIndices(uint32_t batch, Type face) const
uint32_t getNumMaterialBatchIndices(uint32_t batch, Type face, bool wrap) const
uint32_t getMaterialBaseBatchIndex(uint32_t batch, Type face) const
uint32_t getMaterialWrapBatchIndex(uint32_t batch, Type face) const
uint32_t getMaterialBatchIndex(uint32_t batch, Type face, bool wrap) const
Types
using Face = BrepFace::Type