Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Plugin-PropertyVis
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
9
Issues
9
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenFlipper-Free
Plugin-PropertyVis
Commits
853805dd
Commit
853805dd
authored
Feb 14, 2020
by
Jan Möbius
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix_crash_vec2' into 'master'
Fix crash vec2 See merge request
!16
parents
cd820f70
c296b114
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
OpenMesh/OMPropertyVisualizerT_impl.hh
OpenMesh/OMPropertyVisualizerT_impl.hh
+6
-6
OpenMesh/OMPropertyVisualizerVector2T_impl.hh
OpenMesh/OMPropertyVisualizerVector2T_impl.hh
+1
-1
No files found.
OpenMesh/OMPropertyVisualizerT_impl.hh
View file @
853805dd
...
...
@@ -139,7 +139,7 @@ inline void OMPropertyVisualizer<MeshT>::duplicateProperty_stage1() {
template
<
typename
MeshT
>
QString
OMPropertyVisualizer
<
MeshT
>::
getPropertyText
(
unsigned
int
index
)
QString
OMPropertyVisualizer
<
MeshT
>::
getPropertyText
(
unsigned
int
/*index*/
)
{
return
""
;
}
...
...
@@ -220,7 +220,7 @@ unsigned int OMPropertyVisualizer<MeshT>::getClosestPrimitiveId(unsigned int _fa
}
template
<
typename
MeshT
>
unsigned
int
OMPropertyVisualizer
<
MeshT
>::
getClosestFaceId
(
unsigned
int
_face
,
ACG
::
Vec3d
&
_hitPoint
)
unsigned
int
OMPropertyVisualizer
<
MeshT
>::
getClosestFaceId
(
unsigned
int
_face
,
ACG
::
Vec3d
&
/*_hitPoint*/
)
{
return
_face
;
}
...
...
@@ -405,25 +405,25 @@ void OMPropertyVisualizer<MeshT>::clearVertexProp()
}
template
<
typename
MeshT
>
void
OMPropertyVisualizer
<
MeshT
>::
setFacePropertyFromText
(
unsigned
int
index
,
QString
text
)
void
OMPropertyVisualizer
<
MeshT
>::
setFacePropertyFromText
(
unsigned
int
/*index*/
,
QString
/*text*/
)
{
emit
log
(
LOGERR
,
"Setting face property not implemented"
);
}
template
<
typename
MeshT
>
void
OMPropertyVisualizer
<
MeshT
>::
setEdgePropertyFromText
(
unsigned
int
index
,
QString
text
)
void
OMPropertyVisualizer
<
MeshT
>::
setEdgePropertyFromText
(
unsigned
int
/*index*/
,
QString
/*text*/
)
{
emit
log
(
LOGERR
,
"Settingedge property not implemented"
);
}
template
<
typename
MeshT
>
void
OMPropertyVisualizer
<
MeshT
>::
setHalfedgePropertyFromText
(
unsigned
int
index
,
QString
text
)
void
OMPropertyVisualizer
<
MeshT
>::
setHalfedgePropertyFromText
(
unsigned
int
/*index*/
,
QString
/*text*/
)
{
emit
log
(
LOGERR
,
"Setting halfedge property not implemented"
);
}
template
<
typename
MeshT
>
void
OMPropertyVisualizer
<
MeshT
>::
setVertexPropertyFromText
(
unsigned
int
index
,
QString
text
)
void
OMPropertyVisualizer
<
MeshT
>::
setVertexPropertyFromText
(
unsigned
int
/*index*/
,
QString
/*text*/
)
{
emit
log
(
LOGERR
,
"Setting vertex property not implemented"
);
}
...
...
OpenMesh/OMPropertyVisualizerVector2T_impl.hh
View file @
853805dd
...
...
@@ -405,7 +405,7 @@ void OMPropertyVisualizerVector2<MeshT, VectorType>::visualizeHalfedgePropAsStro
typename
MeshT
::
Point
v1
=
OMPropertyVisualizer
<
MeshT
>::
mesh
->
point
(
vh0
)
+
0.5
*
(
OMPropertyVisualizer
<
MeshT
>::
mesh
->
point
(
vh1
)
-
OMPropertyVisualizer
<
MeshT
>::
mesh
->
point
(
vh0
));
VectorType
v
=
OMPropertyVisualizer
<
MeshT
>::
mesh
->
property
(
prop
,
*
he_it
);
ACG
::
Vec3d
normal
=
OMPropertyVisualizer
<
MeshT
>::
mesh
->
normal
(
*
he_it
);
ACG
::
Vec3d
normal
=
OMPropertyVisualizer
<
MeshT
>::
mesh
->
normal
(
OMPropertyVisualizer
<
MeshT
>::
mesh
->
face_handle
(
*
he_it
)
);
if
(
vectorWidget
->
normalize
->
isChecked
()
&&
v
.
sqrnorm
()
>
1e-12
)
v
.
normalize
();
...
...
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