You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
352 B
14 lines
352 B
import pathlib
|
|
|
|
from occwl.compound import Compound
|
|
from occwl.viewer import Viewer
|
|
|
|
|
|
# Returns a list of bodies from the step file, we only need the first one
|
|
compound = Compound.load_from_step(pathlib.Path(__file__).resolve().parent.joinpath("example.stp"))
|
|
solid = next(compound.solids())
|
|
|
|
v = Viewer(backend="wx")
|
|
v.display(solid)
|
|
v.fit()
|
|
v.show()
|
|
|