Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
threevis
threevis
Commits
82cba126
Commit
82cba126
authored
Apr 03, 2018
by
Isaak Lim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add all optional params for openmesh display functions that display_faces allows
parent
53a8c65f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
4 deletions
+15
-4
threevis/openmesh_utils.py
threevis/openmesh_utils.py
+15
-4
No files found.
threevis/openmesh_utils.py
View file @
82cba126
...
...
@@ -2,11 +2,22 @@
import
openmesh
as
om
from
.immediate
import
display_faces
def
display_openmesh
(
mesh
):
display_faces
(
mesh
.
points
(),
mesh
.
face_vertex_indices
())
def
display_file
(
path
):
def
display_openmesh
(
mesh
,
normals
=
None
,
colors
=
None
,
uvs
=
None
,
shading
=
'flat'
,
z_offset
=
0.5
,
texture
=
None
,
width
=
600
,
height
=
400
,
background_color
=
'#dddddd'
,
clipping_planes
=
[],
show_bounds
=
False
):
display_faces
(
mesh
.
points
(),
mesh
.
face_vertex_indices
(),
normals
,
colors
,
uvs
,
shading
,
z_offset
,
texture
,
width
,
height
,
background_color
,
clipping_planes
,
show_bounds
)
def
display_file
(
path
,
normals
=
None
,
colors
=
None
,
uvs
=
None
,
shading
=
'flat'
,
z_offset
=
0.5
,
texture
=
None
,
width
=
600
,
height
=
400
,
background_color
=
'#dddddd'
,
clipping_planes
=
[],
show_bounds
=
False
):
m
=
om
.
TriMesh
()
om
.
read_mesh
(
m
,
path
)
display_openmesh
(
m
)
display_openmesh
(
m
,
normals
,
colors
,
uvs
,
shading
,
z_offset
,
texture
,
width
,
height
,
background_color
,
clipping_planes
,
show_bounds
)
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