|
RayMarching
0.0.1
Simple 3D engine based on a ray marching rendering
|
Scene containing all objects. More...
#include <scene.h>
Public Member Functions | |
| Scene ()=default | |
| Scene (SDFObject **const &items, size_t size) | |
| ~Scene () | |
| shapeDist | signedPairFunction (Eigen::Vector3d const &p) const |
| SDFObject * | signedShapeFunction (Eigen::Vector3d const &p) const |
| double | signedDistFunction (Eigen::Vector3d const &p) const |
| size_t | getShapesSize () const |
| SDFObject * | getShape (size_t index) const |
| void | pushShape (SDFObject *sh) |
| void | destroyShape (size_t index) |
Static Public Member Functions | |
| static Scene | getFromFile (const std::string &filename) |
Scene containing all objects.
Scene is responsible for handling SDF request, aggregating results from all Shapes
|
default |
Default empty Scene constructor
|
inline |
| RayMarching::Scene::~Scene | ( | ) |
Default destructor
| void RayMarching::Scene::destroyShape | ( | size_t | index | ) |
Remove SDFObject at a given index
| index | requested index |
|
static |
|
inline |
|
inline |
|
inline |
| double RayMarching::Scene::signedDistFunction | ( | Eigen::Vector3d const & | p | ) | const |
SDF function returning distance
| p | Requesting point |
| shapeDist RayMarching::Scene::signedPairFunction | ( | Eigen::Vector3d const & | p | ) | const |
SDF function returning pair of distance and object
| p | Requesting point |
| SDFObject * RayMarching::Scene::signedShapeFunction | ( | Eigen::Vector3d const & | p | ) | const |
SDF function returning closest object
| p | Requesting point |