22#include "../object/object.h"
39 std::shared_ptr<BoundingBox>
getBoundingBox(
const std::shared_ptr<Primitive>& primitive);
The Primitive class represents a basic building block for rendering 3D objects.
Definition primitive.h:30
std::shared_ptr< Material > material
This is a shared pointer to a Material object. It references the material properties that define the ...
Definition primitive.h:33
std::shared_ptr< Geometry > geometry
This is a shared pointer to a Geometry object. It references the actual geometric data(vertex and ind...
Definition primitive.h:32
int priority
This is an integer value representing the priority of the primitive during rendering.
Definition primitive.h:34
std::shared_ptr< BoundingBox > getBoundingBox(const std::shared_ptr< Geometry > &geometry, const std::string &attribName="positions")