f3d icon indicating copy to clipboard operation
f3d copied to clipboard

Add a `--normalize-coordinates` CLI option

Open mwestphal opened this issue 1 month ago • 1 comments

Is your feature request related to a problem? Please describe. F3D (and VTK) is not great a showing data located on larger bounds or on small bounds but far away from the origin. This is a typical issue with rendering and 3D computation.

Lets add a --normalize-coordinates CLI option that will normalize the coordinates of the displayed models

Describe the solution you'd like

  • Add a new --normalize-coordinates CLI options
  • Add a new corresponding libf3d options
  • Implement this options in the right location (see notes)
  • Add testing and doc

Notes It is not clear where the implementation should happen, there is three possibilities:

  • At specific importer level: Not possible, this require changes in VTK
  • At vtkF3DMetaImporter level: Possible but will normalize each actor, not the whole scene
  • At vtkF3DRendererLevel: Possible, but special care for the sciviz mode is needed

mwestphal avatar Nov 15 '25 07:11 mwestphal

I drafted command line option support. I got stuck since rendering issue persists after I apply the shift.

draft.patch

Image

jia-kai avatar Nov 19 '25 14:11 jia-kai