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
eacdcab4
Commit
eacdcab4
authored
Jun 28, 2019
by
Jan Möbius
Browse files
Merge branch 'halfedge-vector-and-length' into 'master'
Halfedge vector and length See merge request
!67
parents
2ef5fbed
5c6e58ee
Pipeline
#11138
passed with stage
in 4 minutes and 58 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/OpenVolumeMesh/Core/GeometryKernel.hh
View file @
eacdcab4
...
...
@@ -169,10 +169,18 @@ public:
TopologyKernelT
::
clear
(
_clearProps
);
}
typename
PointT
::
value_type
length
(
const
HalfEdgeHandle
&
_heh
)
const
{
return
vector
(
_heh
).
length
();
}
typename
PointT
::
value_type
length
(
const
EdgeHandle
&
_eh
)
const
{
return
vector
(
_eh
).
length
();
}
const
typename
TopologyKernelT
::
Edge
&
e
=
TopologyKernelT
::
edge
(
_eh
);
return
(
vertex
(
e
.
to_vertex
())
-
vertex
(
e
.
from_vertex
())).
length
();
PointT
vector
(
const
HalfEdgeHandle
&
_heh
)
const
{
const
typename
TopologyKernelT
::
Edge
&
e
=
TopologyKernelT
::
halfedge
(
_heh
);
return
(
vertex
(
e
.
to_vertex
())
-
vertex
(
e
.
from_vertex
()));
}
PointT
vector
(
const
EdgeHandle
&
_eh
)
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