compas-dev / compas_view2

Standalone viewer for COMPAS
https://compas.dev/compas_view2/
MIT License
6 stars 8 forks source link

Frame scaling #196

Open petrasvestartas opened 9 months ago

petrasvestartas commented 9 months ago

This is a question related to scaling of the Frame. Should the frame edge length be reset after scaling? Or the Frame could have its own shader, instead being created as a geometry object.

When written: my_frame.matrix = Scale.from_factors([scale, scale, scale]).matrix

Example: user has a model that is scaled by 0.001, the frames in this situation looks like points:

image

For sure the other way around is to scale the compas frame and do not touch the viewer matrix.

image
ZacZhangzhuo commented 9 months ago

Thanks for the suggestion! I think the best way is to integrate the variable 'frame view scale' into the configuration file so the user can set the frame size as they want!

petrasvestartas commented 9 months ago

@ZacZhangzhuo Completely agree, it would be great to have such global attributes that are controlled independently of geometry :)