Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
threevis
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
11
Issues
11
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
threevis
threevis
Commits
07b82258
Commit
07b82258
authored
Feb 01, 2018
by
Dario Seyb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added linewidth attribute to edge drawing
parent
4fa60dec
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
408 additions
and
165 deletions
+408
-165
examples/.ipynb_checkpoints/Untitled-checkpoint.ipynb
examples/.ipynb_checkpoints/Untitled-checkpoint.ipynb
+202
-81
examples/Untitled.ipynb
examples/Untitled.ipynb
+202
-81
meshvis/context.py
meshvis/context.py
+2
-1
meshvis/immediate.py
meshvis/immediate.py
+2
-2
No files found.
examples/.ipynb_checkpoints/Untitled-checkpoint.ipynb
View file @
07b82258
This diff is collapsed.
Click to expand it.
examples/Untitled.ipynb
View file @
07b82258
This diff is collapsed.
Click to expand it.
meshvis/context.py
View file @
07b82258
...
...
@@ -78,9 +78,10 @@ class Context(object):
self
.
scene
.
add
(
mesh_obj
)
return
self
def
draw_edges
(
self
,
vertices
,
edge_indices
=
None
,
colors
=
None
,
uvs
=
None
,
z_offset
=
0
):
def
draw_edges
(
self
,
vertices
,
edge_indices
=
None
,
colors
=
None
,
uvs
=
None
,
z_offset
=
0
,
linewidth
=
1
):
mat
=
three
.
LineBasicMaterial
(
color
=
'#000000'
)
mat
.
linewidth
=
linewidth
if
z_offset
is
not
0
:
mat
.
polygonOffset
=
True
...
...
meshvis/immediate.py
View file @
07b82258
...
...
@@ -3,8 +3,8 @@ from .context import *
def
display_faces
(
vertices
,
face_indices
,
normals
=
None
,
colors
=
None
,
uvs
=
None
,
shading
=
'flat'
,
z_offset
=
0.5
):
Context
().
draw_faces
(
vertices
,
face_indices
,
normals
,
colors
,
uvs
,
shading
,
z_offset
).
display
()
def
display_edges
(
vertices
,
edge_indices
=
None
,
colors
=
None
,
uvs
=
None
,
z_offset
=
0
):
Context
().
draw_edges
(
vertices
,
edge_indices
,
colors
,
uvs
,
z_offset
).
display
()
def
display_edges
(
vertices
,
edge_indices
=
None
,
colors
=
None
,
uvs
=
None
,
z_offset
=
0
,
linewidth
=
1
):
Context
().
draw_edges
(
vertices
,
edge_indices
,
colors
,
uvs
,
z_offset
,
linewidth
).
display
()
def
display_vertices
(
vertices
,
colors
=
None
,
point_size
=
1
,
z_offset
=
0
,
perspective
=
False
):
Context
().
draw_vertices
(
vertices
,
colors
,
point_size
,
z_offset
,
perspective
).
display
()
Write
Preview
Markdown
is supported
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