Irev-Dev / cadhub

We're out to raise awareness and put CodeCAD on the map. The success of CadHub can be measured by the amount it promotes the use of CodeCAD within the mechanical/manufacturing industry and the strength the CadHub community.
https://cadhub.xyz
GNU General Public License v3.0
316 stars 59 forks source link

Zoom to fit for openscad #569

Closed Irev-Dev closed 2 years ago

Irev-Dev commented 2 years ago

This is achieved by using the --viewall flag in the OpenSCAD cli and also collection the openSCAD camera information so that the three.js camera can be synced in after the fact.

Similar to the camera syncing in the other direction, I'm not very certain why the maths I've done works which make writing read-able code difficult.

Irev-Dev commented 2 years ago

9b0cc5e also contains a bunch of social image capture fixes.