Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
polymesh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
Philip Trettner
polymesh
Commits
6abf39e9
Commit
6abf39e9
authored
6 years ago
by
Philip Trettner
Browse files
Options
Downloads
Patches
Plain Diff
added new splits to ranges
parent
c91c0b0e
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/polymesh/impl/impl_ranges.hh
+18
-0
18 additions, 0 deletions
src/polymesh/impl/impl_ranges.hh
src/polymesh/ranges.hh
+6
-0
6 additions, 0 deletions
src/polymesh/ranges.hh
with
24 additions
and
0 deletions
src/polymesh/impl/impl_ranges.hh
+
18
−
0
View file @
6abf39e9
...
...
@@ -734,6 +734,12 @@ vertex_handle face_collection<iterator>::split(face_handle f) const
return
this
->
mesh
->
handle_of
(
low_level_api
(
this
->
mesh
).
face_split
(
f
.
idx
));
}
template
<
class
iterator
>
void
face_collection
<
iterator
>::
split
(
face_handle
f
,
vertex_handle
v
)
const
{
low_level_api
(
this
->
mesh
).
face_split
(
f
.
idx
,
v
.
idx
);
}
template
<
class
iterator
>
face_handle
face_collection
<
iterator
>::
fill
(
halfedge_handle
h
)
const
{
...
...
@@ -746,6 +752,12 @@ vertex_handle edge_collection<iterator>::split(edge_handle e) const
return
this
->
mesh
->
handle_of
(
low_level_api
(
this
->
mesh
).
edge_split
(
e
.
idx
));
}
template
<
class
iterator
>
void
edge_collection
<
iterator
>::
split
(
edge_handle
e
,
vertex_handle
v
)
const
{
low_level_api
(
this
->
mesh
).
edge_split
(
e
.
idx
,
v
.
idx
);
}
template
<
class
iterator
>
void
vertex_collection
<
iterator
>::
collapse
(
vertex_handle
v
)
const
{
...
...
@@ -776,6 +788,12 @@ vertex_handle halfedge_collection<iterator>::split(halfedge_handle h) const
return
this
->
mesh
->
handle_of
(
low_level_api
(
this
->
mesh
).
halfedge_split
(
h
.
idx
));
}
template
<
class
iterator
>
void
halfedge_collection
<
iterator
>::
split
(
halfedge_handle
h
,
vertex_handle
v
)
const
{
low_level_api
(
this
->
mesh
).
halfedge_split
(
h
.
idx
,
v
.
idx
);
}
template
<
class
iterator
>
void
halfedge_collection
<
iterator
>::
attach
(
halfedge_handle
h
,
vertex_handle
v
)
const
{
...
...
This diff is collapsed.
Click to expand it.
src/polymesh/ranges.hh
+
6
−
0
View file @
6abf39e9
...
...
@@ -236,6 +236,8 @@ struct face_collection : smart_collection<Mesh*, face_tag, iterator>
/// Preserves half-edge attributes
/// The face itself is deleted and multiple new ones are created
vertex_handle
split
(
face_handle
f
)
const
;
/// same as before but splits at a given ISOLATED vertex
void
split
(
face_handle
f
,
vertex_handle
v
)
const
;
/// Fills the half-edge ring of a given boundary half-edge
/// Returns the new face
...
...
@@ -271,6 +273,8 @@ struct edge_collection : smart_collection<Mesh*, edge_tag, iterator>
/// Preserves face attributes
/// The edge itself is deleted and two new ones are created
vertex_handle
split
(
edge_handle
e
)
const
;
/// same as before but splits at a given ISOLATED vertex
void
split
(
edge_handle
e
,
vertex_handle
v
)
const
;
/// Moves both half-edges vertices to their next half-edge vertex
/// Equivalent to an edge flip if both faces are triangular
...
...
@@ -319,6 +323,8 @@ struct halfedge_collection : smart_collection<Mesh*, halfedge_tag, iterator>
/// Contrary to edges().split, the edge is preserved and a single new one is inserted AFTER h
/// (thus h->next() is the newly inserted edge and h->vertex_to() is the returned vertex)
vertex_handle
split
(
halfedge_handle
h
)
const
;
/// same as before but splits at a given ISOLATED vertex
void
split
(
halfedge_handle
h
,
vertex_handle
v
)
const
;
/// Given an isolated vertex v, inserts a self-adjacent edge at the to-vertex to v
void
attach
(
halfedge_handle
h
,
vertex_handle
v
)
const
;
...
...
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