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
Plugin-HoleFilling
Commits
a06630e6
Commit
a06630e6
authored
Oct 30, 2020
by
Jan Möbius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use ranges for Object Iteration to simplify code
parent
f283da85
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
HoleFillerPlugin.cc
HoleFillerPlugin.cc
+4
-4
No files found.
HoleFillerPlugin.cc
View file @
a06630e6
...
...
@@ -126,7 +126,7 @@ void HoleFillerPlugin::slotFillSelection(){
int
counter
=
0
;
//iterate over all objects with holes that should be filled
for
(
PluginFunctions
::
O
bject
Iterator
o_it
(
PluginFunctions
::
ALL_OBJECTS
)
;
o_it
!=
PluginFunctions
::
objectsEnd
();
++
o_it
)
{
for
(
auto
*
o_it
:
PluginFunctions
::
o
bject
s
(
PluginFunctions
::
ALL_OBJECTS
)
)
{
// TYPE is TRIMESH
if
(
o_it
->
dataType
(
DATA_TRIANGLE_MESH
)
)
{
...
...
@@ -184,7 +184,7 @@ void HoleFillerPlugin::slotItemSelectionChanged() {
getSelectedHoles
(
holes
,
objects
);
//iterate over all objects with holes that should be displayed
for
(
PluginFunctions
::
O
bject
Iterator
o_it
(
PluginFunctions
::
ALL_OBJECTS
)
;
o_it
!=
PluginFunctions
::
objectsEnd
();
++
o_it
)
{
for
(
auto
*
o_it
:
PluginFunctions
::
o
bject
s
(
PluginFunctions
::
ALL_OBJECTS
)
)
{
// TYPE is TRIMESH
if
(
o_it
->
dataType
(
DATA_TRIANGLE_MESH
)
)
{
...
...
@@ -327,7 +327,7 @@ void HoleFillerPlugin::slotCellDoubleClicked(int _row , int /*_col*/) {
/// detect holes on all objects
void
HoleFillerPlugin
::
detectButton
(
)
{
for
(
PluginFunctions
::
O
bject
Iterator
o_it
(
PluginFunctions
::
ALL_OBJECTS
)
;
o_it
!=
PluginFunctions
::
objectsEnd
();
++
o_it
)
{
for
(
auto
*
o_it
:
PluginFunctions
::
o
bject
s
(
PluginFunctions
::
ALL_OBJECTS
)
)
{
//case TRIMESH
if
(
o_it
->
dataType
(
DATA_TRIANGLE_MESH
)
)
{
...
...
@@ -422,7 +422,7 @@ void HoleFillerPlugin::update_menu() {
int
count
=
0
;
//iterate over all objects
for
(
PluginFunctions
::
O
bject
Iterator
o_it
(
PluginFunctions
::
ALL_OBJECTS
)
;
o_it
!=
PluginFunctions
::
objectsEnd
();
++
o_it
)
{
for
(
auto
*
o_it
:
PluginFunctions
::
o
bject
s
(
PluginFunctions
::
ALL_OBJECTS
)
)
{
// DATATYPE is TRIMESH
if
(
o_it
->
dataType
(
DATA_TRIANGLE_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