pyvista / pyiges

Python IGES Reader
https://pyvista.github.io/pyiges/
MIT License
33 stars 8 forks source link

Use MultiBlock container #1

Closed banesullivan closed 5 years ago

banesullivan commented 5 years ago

When merge is False, use a pyvista.MultiBlock container to make plotting and everything easier.

Currently, I am trying to think of a way to find the watertight regions of the mesh and trim out all the other parts...

import pyiges
from pyiges import examples

# load an example impeller
iges = pyiges.read(examples.impeller)

# convert all surfaces to a vtk mesh and plot it
mesh = iges.to_vtk(bsplines=False, surfaces=True, merge=False, delta=0.05)
mesh.plot(smooth_shading=True, multi_colors=True)

download

akaszynski commented 5 years ago

Good idea for plotting. Next commit will include faces instead of the entire surfaces.