Commit 82cba126 authored by Isaak Lim's avatar Isaak Lim

add all optional params for openmesh display functions that display_faces allows

parent 53a8c65f
......@@ -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)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment