Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenMesh
OpenMesh
Commits
20a0d0b1
Commit
20a0d0b1
authored
Nov 26, 2015
by
Hans-Christian Ebke
Committed by
Jan Möbius
Nov 26, 2015
Browse files
Added static versions of ArrayKernel::edge_handle and ...::halfedge_handle.
parent
da5d4278
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/OpenMesh/Core/Mesh/ArrayKernel.hh
View file @
20a0d0b1
...
...
@@ -444,15 +444,23 @@ public:
{
return
next_halfedge_handle
(
opposite_halfedge_handle
(
_heh
));
}
// --- edge connectivity ---
HalfedgeHandle
halfedge_handle
(
EdgeHandle
_eh
,
unsigned
int
_i
)
const
static
HalfedgeHandle
s_
halfedge_handle
(
EdgeHandle
_eh
,
unsigned
int
_i
)
{
assert
(
_i
<=
1
);
return
HalfedgeHandle
((
_eh
.
idx
()
<<
1
)
+
_i
);
}
EdgeHandle
edge_handle
(
HalfedgeHandle
_heh
)
const
static
EdgeHandle
s_
edge_handle
(
HalfedgeHandle
_heh
)
{
return
EdgeHandle
(
_heh
.
idx
()
>>
1
);
}
HalfedgeHandle
halfedge_handle
(
EdgeHandle
_eh
,
unsigned
int
_i
)
const
{
return
s_halfedge_handle
(
_eh
,
_i
);
}
EdgeHandle
edge_handle
(
HalfedgeHandle
_heh
)
const
{
return
s_edge_handle
(
_heh
);
}
// --- face connectivity ---
HalfedgeHandle
halfedge_handle
(
FaceHandle
_fh
)
const
{
return
face
(
_fh
).
halfedge_handle_
;
}
...
...
Write
Preview
Supports
Markdown
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