Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Plugin-InfoMeshObject
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
OpenFlipper-Free
Plugin-InfoMeshObject
Commits
79341f0a
Commit
79341f0a
authored
2 years ago
by
Jan Möbius
Browse files
Options
Downloads
Patches
Plain Diff
CPPcheck cleanup
parent
28c90e9f
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
MeshObjectInfoPlugin.cc
+4
-6
4 additions, 6 deletions
MeshObjectInfoPlugin.cc
ValenceHistogramDialog.hh
+2
-2
2 additions, 2 deletions
ValenceHistogramDialog.hh
with
6 additions
and
8 deletions
MeshObjectInfoPlugin.cc
+
4
−
6
View file @
79341f0a
...
...
@@ -602,15 +602,12 @@ int InfoMeshObjectPlugin::getClosestVertexInFace(MeshT* _mesh, int _face_idx, AC
int
closest_v_idx
=
0
;
double
dist
=
DBL_MAX
;
ACG
::
Vec3d
vTemp
=
ACG
::
Vec3d
(
0.0
,
0.0
,
0.0
);
typename
MeshT
::
Point
p
;
for
(
auto
fv_it
:
OpenMesh
::
SmartFaceHandle
(
_face_idx
,
_mesh
).
vertices
())
{
p
=
_mesh
->
point
(
fv_it
);
// Find closest vertex to selection
vTemp
=
ACG
::
Vec3d
(
p
[
0
],
p
[
1
],
p
[
2
]);
const
typename
MeshT
::
Point
p
=
_mesh
->
point
(
fv_it
);
const
ACG
::
Vec3d
vTemp
=
ACG
::
Vec3d
(
p
[
0
],
p
[
1
],
p
[
2
]);
const
double
temp_dist
=
(
vTemp
-
_hitPoint
).
length
();
if
(
temp_dist
<
dist
)
{
...
...
@@ -746,11 +743,12 @@ InfoMeshObjectPlugin::
}
}
target
=
ACG
::
SceneGraph
::
PICK_FACE
;
if
(
info_
->
pickMode
->
currentIndex
()
==
1
)
target
=
ACG
::
SceneGraph
::
PICK_EDGE
;
else
if
(
info_
->
pickMode
->
currentIndex
()
==
2
)
target
=
ACG
::
SceneGraph
::
PICK_VERTEX
;
else
target
=
ACG
::
SceneGraph
::
PICK_FACE
;
if
(
PluginFunctions
::
scenegraphPick
(
target
,
_clickedPoint
,
node_idx
,
target_idx
,
&
hit_point
))
{
BaseObjectData
*
object
;
...
...
This diff is collapsed.
Click to expand it.
ValenceHistogramDialog.hh
+
2
−
2
View file @
79341f0a
...
...
@@ -52,8 +52,8 @@ class ValenceHistogramDialog: public QDialog, public Ui::ValenceHistogramsDlg {
Q_OBJECT
public:
ValenceHistogramDialog
(
TriMesh
&
mesh
,
QWidget
*
parent
=
0
);
ValenceHistogramDialog
(
PolyMesh
&
mesh
,
QWidget
*
parent
=
0
);
explicit
ValenceHistogramDialog
(
TriMesh
&
mesh
,
QWidget
*
parent
=
0
);
explicit
ValenceHistogramDialog
(
PolyMesh
&
mesh
,
QWidget
*
parent
=
0
);
template
<
class
MeshT
>
void
init
(
MeshT
&
mesh
);
...
...
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