To have basic CSG meshes in bpp two ideas popped up:
1) Create an OpenSCAD class, which on instantiation creates from the OpenSCAD text an STL file, which gets loaded into bpp. The class should do caching of the generated STL files, i.e.: create a checksum of the OpenSCAD input text and cache the STL data in ~/.bpp/cache/stl and only call OpenSCAD if the input changed or the STL file does not yet exist.
Example:
To have basic CSG meshes in bpp two ideas popped up:
1) Create an OpenSCAD class, which on instantiation creates from the OpenSCAD text an STL file, which gets loaded into bpp. The class should do caching of the generated STL files, i.e.: create a checksum of the OpenSCAD input text and cache the STL data in
~/.bpp/cache/stl
and only call OpenSCAD if the input changed or the STL file does not yet exist. Example:2) hgpovray exports STL files from basic POV objects, see: https://github.com/LeForgeron/povray/wiki/Tesselation