scenerygraphics / sciview

sciview is a tool for visualization and interaction with ND image and mesh data
BSD 2-Clause "Simplified" License
64 stars 17 forks source link

Bounding grid updates on properties panel change of scale #234

Open kephale opened 4 years ago

kephale commented 4 years ago

Check that the bounding box is regenerated when an object is rescaled

kephale commented 4 years ago

This is probably a scenery thing @skalarproduktraum

kephale commented 4 years ago

The problem is that generateBoundingBox in scenery doesn't use scale factors

kephale commented 1 year ago

This is still a problem but it manifests differently.

To reproduce:

  1. Add an object like a sphere
  2. Toggle bounding box of the sphere
  3. Set the scale of the sphere

The bounding box adjusts for the scale, but the font and legend does too. See:

image
kephale commented 1 year ago

@skalarproduktraum @moreApi I suspect this is the kind of thing that we want to solve in scenery.

moreApi commented 1 year ago

I think we should make the text "scale resistant". At least for non isomorph scalings.

kephale commented 1 year ago

Yeah, in this case I'd hope for the text to say isotropic, and adjust size with the smallest change in scale for the plane the text is rendered in.

It might be worthwhile to do that for the tic marks on the bounding box, because they won't be symmetric across the whole BB this way.

kephale commented 1 year ago

@skalarproduktraum should we make a corresponding issue in scenery?