Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
glow-extras
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
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
Glow
glow-extras
Commits
f5b88f78
Commit
f5b88f78
authored
1 year ago
by
Julius Nehring-Wirxel
Browse files
Options
Downloads
Patches
Plain Diff
Add add_line for pm edges and halfedges
parent
decfd2e3
No related branches found
No related tags found
1 merge request
!139
Add add_line for polymesh (half)edge handles
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
viewer/glow-extras/viewer/canvas.hh
+10
-0
10 additions, 0 deletions
viewer/glow-extras/viewer/canvas.hh
with
10 additions
and
0 deletions
viewer/glow-extras/viewer/canvas.hh
+
10
−
0
View file @
f5b88f78
...
...
@@ -897,6 +897,16 @@ public:
{
return
add_lines
(
tg
::
segment
(
p
,
p
+
dir
),
mat
);
}
template
<
class
PosT
>
line_ref
add_line
(
pm
::
edge_handle
edge
,
pm
::
vertex_attribute
<
PosT
>
const
&
pos
,
material
const
&
mat
=
{})
{
return
add_lines
(
tg
::
segment
(
pos
[
edge
.
vertexA
()],
pos
[
edge
.
vertexB
()]),
mat
);
}
template
<
class
PosT
>
line_ref
add_line
(
pm
::
halfedge_handle
edge
,
pm
::
vertex_attribute
<
PosT
>
const
&
pos
,
material
const
&
mat
=
{})
{
return
add_lines
(
tg
::
segment
(
pos
[
edge
.
vertex_from
()],
pos
[
edge
.
vertex_to
()]),
mat
);
}
// lines
public
:
...
...
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