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
16f9f501
Commit
16f9f501
authored
3 years ago
by
Jan Möbius
Browse files
Options
Downloads
Patches
Plain Diff
Fixed nullptr dereference
parent
1ef135e8
No related branches found
No related tags found
1 merge request
!5
updated the circulators and iterators and included smarthandles in all of Plugin-InfoMeshObject
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
MeshObjectInfoScripting.cc
+5
-5
5 additions, 5 deletions
MeshObjectInfoScripting.cc
with
5 additions
and
5 deletions
MeshObjectInfoScripting.cc
+
5
−
5
View file @
16f9f501
...
...
@@ -584,7 +584,7 @@ double InfoMeshObjectPlugin::edgeLength(int _id, int _edgeHandle)
return
-
1.0
;
}
OpenMesh
::
SmartEdgeHandle
eh
(
_edgeHandle
);
OpenMesh
::
SmartEdgeHandle
eh
(
_edgeHandle
,
mesh
);
if
(
!
eh
.
is_valid
()
)
{
emit
log
(
LOGERR
,
tr
(
"Unable to get edge handle"
));
...
...
@@ -605,7 +605,7 @@ double InfoMeshObjectPlugin::edgeLength(int _id, int _edgeHandle)
return
-
1.0
;
}
OpenMesh
::
SmartEdgeHandle
eh
(
_edgeHandle
);
OpenMesh
::
SmartEdgeHandle
eh
(
_edgeHandle
,
mesh
);
if
(
!
eh
.
is_valid
()
)
{
emit
log
(
LOGERR
,
tr
(
"Unable to get edge handle"
));
...
...
@@ -674,7 +674,7 @@ double InfoMeshObjectPlugin::faceArea(int _id, int _faceHandle)
return
-
1.0
;
}
OpenMesh
::
SmartFaceHandle
fh
(
_faceHandle
);
OpenMesh
::
SmartFaceHandle
fh
(
_faceHandle
,
mesh
);
if
(
!
fh
.
is_valid
()
)
{
emit
log
(
LOGERR
,
tr
(
"Unable to get face handle"
));
...
...
@@ -775,7 +775,7 @@ int InfoMeshObjectPlugin::vertexValence (int _id, int _vertexHandle)
return
-
1
;
}
OpenMesh
::
SmartVertexHandle
vh
(
_vertexHandle
);
OpenMesh
::
SmartVertexHandle
vh
(
_vertexHandle
,
mesh
);
if
(
!
vh
.
is_valid
()
)
{
emit
log
(
LOGERR
,
tr
(
"Unable to get vertex handle"
));
...
...
@@ -798,7 +798,7 @@ int InfoMeshObjectPlugin::vertexValence (int _id, int _vertexHandle)
return
-
1
;
}
OpenMesh
::
SmartVertexHandle
vh
(
_vertexHandle
);
OpenMesh
::
SmartVertexHandle
vh
(
_vertexHandle
,
mesh
);
if
(
!
vh
.
is_valid
()
)
{
emit
log
(
LOGERR
,
tr
(
"Unable to get vertex handle"
));
...
...
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