speckleworks / SpeckleCore

Check a brand new Speckle at: https://github.com/specklesystems
https://speckle.systems
MIT License
38 stars 17 forks source link

Add Scaling support for Speckle objects #74

Closed didimitrie closed 6 years ago

didimitrie commented 6 years ago

Step 0:

In progress. Every speckle object will have a .Scale( double factor ) method that will make unit conversions easier at a pre-geometry level.

This will not work for breps though.

Eckart-S commented 6 years ago

Oh why does it not work for Breps?

didimitrie commented 6 years ago

because breps are stored as 3dm archives at the moment, so you need to deserialise them first

Eckart-S commented 6 years ago

Ah ok, right... it was stored as opennurbs. No problem then.

didimitrie commented 6 years ago

This has now made its way in the core. SpeckleObjects have a .Scale(double factor) method. It's not tested much @Eckart-S, so beware!