paireks / dotbim

Minimalist file format for BIM
MIT License
161 stars 20 forks source link

Feature suggestion: Add 'scale' property to Elements? #38

Open xeolabs opened 9 months ago

xeolabs commented 9 months ago

Hi again, would it be possible to add a scale property on elements as a feature? This way, it would be possible, for example, to reuse the same cube-shaped mesh by elements with various box shapes. I think this feature would be important for when saving a .bim from a model representation that relies on scaling as part of geometry instancing, because otherwise such an application would then need to bake the scale into each instance, then save each instance to .bim as a separate mesh.

paireks commented 9 months ago

Hello :)

There is a reason why there is only rotation + position described here, however what I can tell is the lack of it also seems weird in some scenarios. E.g. if platform has rotation, position and scale described already, than there is some unnatural coding required to make .bim file, cause first you have to scale the meshes, and later save rotation and position. So for these cases having scale property for elements would definitely help.

I'm leaving it here to consider it for 1.3.0 version :)

Also it will be good to consider what to do with "ugly" negative scaling scenarios then :)