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
567c4e07
Commit
567c4e07
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
a06630e6
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 @
567c4e07
...
...
@@ -189,7 +189,7 @@ void HoleFillerPlugin::slotItemSelectionChanged() {
// TYPE is TRIMESH
if
(
o_it
->
dataType
(
DATA_TRIANGLE_MESH
)
)
{
TriMeshObject
*
object
=
PluginFunctions
::
triMeshObject
(
*
o_it
);
TriMeshObject
*
object
=
PluginFunctions
::
triMeshObject
(
o_it
);
TriMesh
*
mesh
=
PluginFunctions
::
triMesh
(
o_it
);
//get perObjectData
...
...
@@ -230,7 +230,7 @@ void HoleFillerPlugin::slotItemSelectionChanged() {
// DATATYPE is POLYMESH
else
if
(
o_it
->
dataType
(
DATA_POLY_MESH
)
)
{
PolyMeshObject
*
object
=
PluginFunctions
::
polyMeshObject
(
*
o_it
);
PolyMeshObject
*
object
=
PluginFunctions
::
polyMeshObject
(
o_it
);
PolyMesh
*
mesh
=
PluginFunctions
::
polyMesh
(
o_it
);
//get perObjectData
...
...
@@ -335,7 +335,7 @@ void HoleFillerPlugin::detectButton( )
HoleInfo
<
TriMesh
>*
holeInfo
=
dynamic_cast
<
HoleInfo
<
TriMesh
>*
>
(
o_it
->
objectData
(
HOLEINFO
)
);
if
(
holeInfo
==
0
){
TriMesh
*
mesh
=
PluginFunctions
::
triMesh
(
*
o_it
);
TriMesh
*
mesh
=
PluginFunctions
::
triMesh
(
o_it
);
holeInfo
=
new
HoleInfo
<
TriMesh
>
(
mesh
);
o_it
->
setObjectData
(
HOLEINFO
,
holeInfo
);
}
...
...
@@ -349,7 +349,7 @@ void HoleFillerPlugin::detectButton( )
HoleInfo
<
PolyMesh
>*
holeInfo
=
dynamic_cast
<
HoleInfo
<
PolyMesh
>*
>
(
o_it
->
objectData
(
HOLEINFO
)
);
if
(
holeInfo
==
0
){
PolyMesh
*
mesh
=
PluginFunctions
::
polyMesh
(
*
o_it
);
PolyMesh
*
mesh
=
PluginFunctions
::
polyMesh
(
o_it
);
holeInfo
=
new
HoleInfo
<
PolyMesh
>
(
mesh
);
o_it
->
setObjectData
(
HOLEINFO
,
holeInfo
);
}
...
...
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