7 #include <DetailedVoxel.h>
11 #include <PyPrimitiveWrapper.h>
12 #include <PyTriangleWrapper.h>
13 #include <PyDetailedVoxelWrapper.h>
14 #include <PyAABBWrapper.h>
15 #include <PyRaySceneIntersectionWrapper.h>
41 v.
pos[0] = 0.0; v.
pos[1] = 0.0; v.
pos[2] = 0.0;
47 std::vector<int> vi({0, 0});
48 std::vector<double> vd({0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0});
57 PythonDVec3 * getGroundPointAt(
double x,
double y,
double z){
58 glm::dvec3 gp = glm::dvec3(x, y, z);
62 double ox,
double oy,
double oz,
63 double dx,
double dy,
double dz,
66 glm::dvec3 origin(ox, oy, oz);
67 glm::dvec3 direction(dx, dy, dz);
73 size_t getNumSceneParts(){
return scene.
parts.size();}
77 void setDynSceneStep(
size_t const stepInterval)
84 void writeObject(std::string path) {scene.
writeObject(path);}
Class which extends Voxel to support AMAPVox format with extra features.
Definition: DetailedVoxel.h:15
Dynamic scene base implementation.
Definition: DynScene.h:29
void setStepInterval(int const stepInterval)
Set the step interval for the dynamic scene.
Definition: DynScene.h:235
int getStepInterval() const
Obtain the current step interval for the dynamic scene.
Definition: DynScene.h:228
Class representing a scene asset.
Definition: Scene.h:28
glm::dvec3 getShift()
Obtain the minimum boundaries of the original axis aligned bounding box containing the scene,...
Definition: Scene.cpp:210
std::shared_ptr< RaySceneIntersection > getIntersection(glm::dvec3 const &rayOrigin, glm::dvec3 const &rayDir, bool const groundOnly) const
Obtain the intersection between the ray and the scene, if any.
Definition: Scene.cpp:168
std::vector< std::shared_ptr< ScenePart > > parts
Parts composing the scene with no repeats.
Definition: Scene.h:141
std::vector< Primitive * > primitives
Vector of primitives composing the scene.
Definition: Scene.h:132
virtual void writeObject(std::string path)
Serialize the scene and write it to given output file.
Definition: Scene.cpp:385
std::shared_ptr< AABB > getAABB()
Obtain the axis aligned bounding box defining scene boundaries.
Definition: Scene.cpp:142
bool finalizeLoading(bool const safe=false)
Handle scene loading finish process.
Definition: Scene.cpp:69
Class representing triangle primitive.
Definition: Triangle.h:13
Class representing a vertex.
Definition: Vertex.h:14
glm::dvec3 pos
Vertex 3D position.
Definition: Vertex.h:39
Wrapper for AABB class.
Definition: PyAABBWrapper.h:16
Wrapper for DetailedVoxel class.
Definition: PyDetailedVoxelWrapper.h:16
Wrapper for Primitive class.
Definition: PyPrimitiveWrapper.h:20
Wrapper for RaySceneIntersection.
Definition: PyRaySceneIntersectionWrapper.h:16
Wrapper for ScenePart class.
Definition: PyScenePartWrapper.h:18
Wrapper for Scene.
Definition: PySceneWrapper.h:26
DynScene & _asDynScene()
Obtain the scene as a dynamic scene if possible. Use with caution because an exception can be thrown ...
Definition: PySceneWrapper.cpp:9
Wrapper for Triangle class.
Definition: PyTriangleWrapper.h:17
Wrapper to communicate glm::dvec3 with python.
Definition: PythonDVec3.h:16