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
5456f285
Commit
5456f285
authored
Feb 01, 2018
by
Dario Seyb
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://www.graphics.rwth-aachen.de:9000/dseyb/meshvis
parents
b46b2a15
54f6bc11
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
6 deletions
+13
-6
meshvis/__init__.py
meshvis/__init__.py
+1
-0
meshvis/immediate.py
meshvis/immediate.py
+12
-6
No files found.
meshvis/__init__.py
View file @
5456f285
from
__future__
import
print_function
try
:
from
.openmesh_utils
import
*
...
...
meshvis/immediate.py
View file @
5456f285
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_faces
(
vertices
,
face_indices
,
normals
=
None
,
colors
=
None
,
uvs
=
None
,
shading
=
'flat'
,
z_offset
=
0.5
,
width
=
600
,
height
=
400
,
background_color
=
'#dddddd'
):
Context
(
width
,
height
,
background_color
).
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
,
linewidth
=
1
):
Context
().
draw_edges
(
vertices
,
edge_indices
,
colors
,
uvs
,
z_offset
,
linewidth
).
display
()
def
display_edges
(
vertices
,
edge_indices
=
None
,
colors
=
None
,
uvs
=
None
,
z_offset
=
0
,
linewidth
=
1
,
width
=
600
,
height
=
400
,
background_color
=
'#dddddd'
):
Context
(
width
,
height
,
background_color
).
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
()
def
display_vertices
(
vertices
,
colors
=
None
,
point_size
=
1
,
z_offset
=
0
,
perspective
=
False
,
width
=
600
,
height
=
400
,
background_color
=
'#dddddd'
):
Context
(
width
,
height
,
background_color
).
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