Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenFlipper-Free
OpenFlipper-Free
Commits
8cbfefd0
Commit
8cbfefd0
authored
Jan 09, 2016
by
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
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ObjectTypes/MeshObject/MeshObjectT.cc
View file @
8cbfefd0
...
@@ -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
>
...
...
ObjectTypes/MeshObject/MeshObjectT.hh
View file @
8cbfefd0
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment