Repository navigation
v0.1.0a5
Pre-release
Pre-release
Notebook display
- A shape at the end of a notebook cell displays as an interactive 3D view in Jupyter, VS Code, and other notebook frontends, with no extra Python packages. The view uses vtk.js, loaded from a CDN at a pinned version.
- Where scripts can't run (GitHub, nbviewer, untrusted notebooks) or the CDN is unreachable, a static isometric SVG shows instead.
Reprs
Shape,Face,Edge,Vertex,Curve2D,Path2D,Path3D, andProfilehave readable reprs, such as<Shape: 10 faces, 18 edges>,<Face plane, normal (0, 0, 1)>, or<Edge circle r=10, (10, 0, 10) to (10, 0, 10)>. They avoid costly computations such as volume or face centroids.
Try it in the browser
examples/try_solidfunc.ipynbopens in Colab from the badge in the README.
Development
- The dev container installs
ipykerneland the VS Code Jupyter extension.
See the API reference for signatures and conventions.