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
Philip Trettner
polymesh
Commits
6c4ec531
Commit
6c4ec531
authored
Sep 02, 2020
by
Philip Trettner
Browse files
Merge branch 'feature/bugfix-can-add(-.)' into 'develop'
Fixed usage of non-existent function See merge request
!25
parents
6c1f006d
642b2f5e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/polymesh/impl/impl_ranges.hh
View file @
6c4ec531
...
...
@@ -889,24 +889,15 @@ bool face_collection<iterator>::can_add(std::vector<halfedge_index> const& half_
template
<
class
iterator
>
bool
face_collection
<
iterator
>::
can_add
(
vertex_handle
v0
,
vertex_handle
v1
,
vertex_handle
v2
)
const
{
halfedge_index
hs
[
3
]
=
{
low_level_api
(
this
->
m
).
can_add_or_get_halfedge
(
v2
.
idx
,
v0
.
idx
),
//
low_level_api
(
this
->
m
).
can_add_or_get_halfedge
(
v0
.
idx
,
v1
.
idx
),
//
low_level_api
(
this
->
m
).
can_add_or_get_halfedge
(
v1
.
idx
,
v2
.
idx
),
//
};
return
low_level_api
(
this
->
m
).
can_add_face
(
hs
,
3
);
vertex_index
vs
[
3
]
=
{
v0
.
idx
,
v1
.
idx
,
v2
.
idx
};
return
low_level_api
(
this
->
m
).
can_add_face
(
vs
,
3
);
}
template
<
class
iterator
>
bool
face_collection
<
iterator
>::
can_add
(
vertex_handle
v0
,
vertex_handle
v1
,
vertex_handle
v2
,
vertex_handle
v3
)
const
{
halfedge_index
hs
[
4
]
=
{
low_level_api
(
this
->
m
).
can_add_or_get_halfedge
(
v3
.
idx
,
v0
.
idx
),
//
low_level_api
(
this
->
m
).
can_add_or_get_halfedge
(
v0
.
idx
,
v1
.
idx
),
//
low_level_api
(
this
->
m
).
can_add_or_get_halfedge
(
v1
.
idx
,
v2
.
idx
),
//
low_level_api
(
this
->
m
).
can_add_or_get_halfedge
(
v2
.
idx
,
v3
.
idx
),
//
};
return
low_level_api
(
this
->
m
).
can_add_face
(
hs
,
4
);
vertex_index
vs
[
4
]
=
{
v0
.
idx
,
v1
.
idx
,
v2
.
idx
,
v3
.
idx
};
return
low_level_api
(
this
->
m
).
can_add_face
(
vs
,
4
);
}
template
<
class
iterator
>
...
...
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