bool NaiveScene::Build |
( |
| ) |
|
|
overridevirtual |
Build acceleration structure. Some scene may have an acceleration structure for the optimization. The function must be called after Load. The function must be called before any intersection queries.
- Return values
-
true | Succeeded to build. |
false | Failed to build. |
Implements Scene.
virtual bool NaiveScene::Configure |
( |
const ConfigNode & |
node | ) |
|
|
inlineoverridevirtual |
Configure the scene.
- Parameters
-
node | XML node for the configuration. |
- Return values
-
true | Succeeded to configure the scene. |
false | Failed to configure the scene. |
Implements Scene.
virtual boost::signals2::connection NaiveScene::Connect_ReportBuildProgress |
( |
const std::function< void(double, bool)> & |
func | ) |
|
|
inlineoverridevirtual |
Connect to ReportBuildProgress signal. The signal is emitted when the progress of asset loading is changed.
- Parameters
-
Implements Scene.
virtual AABB NaiveScene::GetAABBTriangles |
( |
| ) |
const |
|
inlineoverridevirtual |
Get AABB of triangles in the scene.
- Returns
- AABB of triangles in the scene.
Implements Scene.
bool NaiveScene::IntersectTriangles |
( |
Ray & |
ray, |
|
|
Intersection & |
isect |
|
) |
| const |
|
overridevirtual |
Intersection query with triangles. The function checks if #ray hits with the scene. This function is supposed to be accelerated by spatial acceleration structure. When intersected, information on the hit point is stored in the intersection data.
- Parameters
-
- Return values
-
true | Intersected with the scene. |
false | Not intersected with the scene. |
Implements Scene.
The documentation for this class was generated from the following file:
- /home/travis/build/hi2p-perim/lightmetrica/src/liblightmetrica/scene.naive.cpp