Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
iMSTK
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ruiliang Gao
iMSTK
Commits
4f68dcb9
Commit
4f68dcb9
authored
9 years ago
by
Alexis Girault
Browse files
Options
Downloads
Patches
Plain Diff
ENH: Implement setRenderFaces
This is to complete the use of renderFaces()
parent
f2462fb5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Core/RenderDetail.cpp
+13
-0
13 additions, 0 deletions
Core/RenderDetail.cpp
Core/RenderDetail.h
+5
-0
5 additions, 0 deletions
Core/RenderDetail.h
with
18 additions
and
0 deletions
Core/RenderDetail.cpp
+
13
−
0
View file @
4f68dcb9
...
...
@@ -434,6 +434,19 @@ bool RenderDetail::renderWireframe() const
return
this
->
renderType
&
SIMMEDTK_RENDER_WIREFRAME
;
}
//---------------------------------------------------------------------------
void
RenderDetail
::
setRenderFaces
(
bool
value
)
{
if
(
value
)
{
this
->
renderType
|=
SIMMEDTK_RENDER_FACES
;
}
else
{
this
->
renderType
|=
~
SIMMEDTK_RENDER_FACES
;
}
}
//---------------------------------------------------------------------------
bool
RenderDetail
::
renderFaces
()
const
{
...
...
This diff is collapsed.
Click to expand it.
Core/RenderDetail.h
+
5
−
0
View file @
4f68dcb9
...
...
@@ -304,6 +304,11 @@ public:
///
void
setRenderWireframe
(
bool
value
);
bool
renderWireframe
()
const
;
///
/// \brief Returns true if you want to draw faces
///
void
setRenderFaces
(
bool
value
);
bool
renderFaces
()
const
;
///
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment