Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenFlipper-Free
Type-OpenMesh
Commits
6fd2a19e
Commit
6fd2a19e
authored
Feb 04, 2019
by
Janis Born
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add const mesh() getter for MeshObject
parent
a3fa0e6a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
ObjectTypes/MeshObject/MeshObjectT.cc
ObjectTypes/MeshObject/MeshObjectT.cc
+9
-1
ObjectTypes/MeshObject/MeshObjectT.hh
ObjectTypes/MeshObject/MeshObjectT.hh
+3
-0
No files found.
ObjectTypes/MeshObject/MeshObjectT.cc
View file @
6fd2a19e
...
...
@@ -343,7 +343,7 @@
// Content
// ===============================================================================
/** Get a pointer to the objects mesh.
/** Get a pointer to the object
'
s mesh.
* @return Pointer to the mesh
*/
template
<
class
MeshT
>
...
...
@@ -351,6 +351,14 @@
return
mesh_
;
}
/** Get a const pointer to the object's mesh.
* @return Const pointer to the mesh
*/
template
<
class
MeshT
>
const
MeshT
*
MeshObject
<
MeshT
>::
mesh
()
const
{
return
mesh_
;
}
/** Updates the visualization of the object. Calls MeshObject::updateGeometry,
* MeshObject::updateTopology, MeshObject::updateSelection and
* MeshObject::updateModelingRegions.
...
...
ObjectTypes/MeshObject/MeshObjectT.hh
View file @
6fd2a19e
...
...
@@ -147,6 +147,9 @@ class DLLEXPORTONLY MeshObject : public BaseObjectData {
/// return a pointer to the mesh
MeshT
*
mesh
();
/// return a const pointer to the mesh
const
MeshT
*
mesh
()
const
;
private:
/// pointer to the mesh
MeshT
*
mesh_
;
...
...
Write
Preview
Markdown
is supported
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