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
642b2f5e
Commit
642b2f5e
authored
4 years ago
by
Julius Nehring-Wirxel
Browse files
Options
Downloads
Patches
Plain Diff
Made previous "fix" side-effect free.
parent
8c3d8d77
No related branches found
No related tags found
1 merge request
!25
Fixed usage of non-existent function
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/polymesh/impl/impl_ranges.hh
+4
-13
4 additions, 13 deletions
src/polymesh/impl/impl_ranges.hh
with
4 additions
and
13 deletions
src/polymesh/impl/impl_ranges.hh
+
4
−
13
View file @
642b2f5e
...
...
@@ -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
).
add_or_get_halfedge
(
v2
.
idx
,
v0
.
idx
),
//
low_level_api
(
this
->
m
).
add_or_get_halfedge
(
v0
.
idx
,
v1
.
idx
),
//
low_level_api
(
this
->
m
).
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
).
add_or_get_halfedge
(
v3
.
idx
,
v0
.
idx
),
//
low_level_api
(
this
->
m
).
add_or_get_halfedge
(
v0
.
idx
,
v1
.
idx
),
//
low_level_api
(
this
->
m
).
add_or_get_halfedge
(
v1
.
idx
,
v2
.
idx
),
//
low_level_api
(
this
->
m
).
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
>
...
...
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