Commit 8cbfefd0 authored by Jan Möbius's avatar Jan Möbius
Browse files

Merge branch 'hasBsp' into 'master'

Added hasBsp() function to MeshObject.



See merge request !55
parents 076bf510 4f558200
Pipeline #700 failed with stage
...@@ -805,6 +805,13 @@ ...@@ -805,6 +805,13 @@
} }
template < class MeshT >
bool
MeshObject< MeshT >::hasBsp() const {
return triangle_bsp_ != 0;
}
//============================================================================= //=============================================================================
template < class MeshT > template < class MeshT >
......
...@@ -340,6 +340,16 @@ class DLLEXPORTONLY MeshObject : public BaseObjectData { ...@@ -340,6 +340,16 @@ class DLLEXPORTONLY MeshObject : public BaseObjectData {
*/ */
OMTriangleBSP* resetTriangleBsp(); OMTriangleBSP* resetTriangleBsp();
/** \brief check if a BSP has been computed and is valid
*
* This function checks if a bsp has been computed for this mesh object and
* if it is still valid (meaning, nothing has been changed on the object after
* the BSP has been computed
*
* @return BSP valid?
*/
bool hasBsp() const;
private : private :
/// If requested a bsp is created for this object /// If requested a bsp is created for this object
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment