Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenVolumeMesh
OpenVolumeMesh
Commits
5c6e58ee
Commit
5c6e58ee
authored
Jun 27, 2019
by
Martin Heistermann
Browse files
simplify length()
parent
a0a5767c
Pipeline
#11124
passed with stage
in 6 minutes and 16 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/OpenVolumeMesh/Core/GeometryKernel.hh
View file @
5c6e58ee
...
...
@@ -170,15 +170,11 @@ public:
}
typename
PointT
::
value_type
length
(
const
HalfEdgeHandle
&
_heh
)
const
{
const
typename
TopologyKernelT
::
Edge
&
e
=
TopologyKernelT
::
halfedge
(
_heh
);
return
(
vertex
(
e
.
to_vertex
())
-
vertex
(
e
.
from_vertex
())).
length
();
return
vector
(
_heh
).
length
();
}
typename
PointT
::
value_type
length
(
const
EdgeHandle
&
_eh
)
const
{
const
typename
TopologyKernelT
::
Edge
&
e
=
TopologyKernelT
::
edge
(
_eh
);
return
(
vertex
(
e
.
to_vertex
())
-
vertex
(
e
.
from_vertex
())).
length
();
return
vector
(
_eh
).
length
();
}
PointT
vector
(
const
HalfEdgeHandle
&
_heh
)
const
{
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment