sgenoud / replicad

The library to build browser based 3D models with code.
https://replicad.xyz
MIT License
323 stars 38 forks source link

Add Support for Exporting Reference Geometry #101

Closed andrewkrippner closed 10 months ago

andrewkrippner commented 10 months ago

It would be helpful to export axes and planes in a STEP file to mark locations and mounting points etc. Happy to sponsor if possible.

sgenoud commented 10 months ago

I am quite busy until the end of year - but I'll see what I can do. I guess you are talking about a standard CAD feature I am not aware of (I came into it from the hobbyist side). Can you point me to an implementation of this feature (i.e. how it is called in Fusion360 or FreeCAD for instance).

andrewkrippner commented 10 months ago

I actually was able to make reference planes in your demo here: https://github.com/sgenoud/replicad/blob/a1f85c09babb215e7a0df0b72578e7bdd498a76d/packages/replicad-docs/docs/tutorial-overview/planes-and-sketches.md?plain=1#L27-L42

This problem would be solved if we could export all of these planes in a single step file, rather than three separate ones as this does. Is that possible?

sgenoud commented 10 months ago

It is possible - but it will be in the same colour. Something like this.

andrewkrippner commented 10 months ago

Thats actually perfect, that's all I was looking for thank you!