f3d icon indicating copy to clipboard operation
f3d copied to clipboard

Add an option to control the discretization of colormap

Open xyont opened this issue 3 years ago • 10 comments
trafficstars

Context F3D is able to display data using a color map. By default, the discretization of the colormap is 256. It would be nice to add a way to control that discretization.

Suggested Solution

  • Add a CLI option (--colormap-discretization) in F3DOptionParser
  • Add a libf3d option (model.scivis.discretization) in options
  • Add a dedicated member in vtkF3DRendererWithColoring and takes it into account in ConfigureRangeAndCTFForColoring

Original Issue

dear Developers,

i did not know is this feature available yet or not, several times i read the documentation but i can not find for such purpose.

Paraview has capability to setting number of color discretization, hopefully is not complex things and F3D also capable to do the same. it's a common in engineering representation.

best regards, SN

F3d_256discrettation Paravie_Number_Color_Discrtization_12

xyont avatar Feb 15 '22 04:02 xyont

What about using Step color space ?

mwestphal avatar Feb 15 '22 10:02 mwestphal

I think it's unrelated to step color space, just the number of computed colors in the lookup table.
We could use vtkDiscretizableColorTransferFunction and add a new option to set the number of colors.

Meakk avatar Feb 15 '22 11:02 Meakk

Indeed, but being able to choose the step color space resolve the usecase in a different way and open the door to other color spaces.

mwestphal avatar Feb 15 '22 12:02 mwestphal

That being said, adding the number of colors should be quite an easy feature to add. Feel free to contribute if you can @xyont

mwestphal avatar Feb 21 '22 14:02 mwestphal

i'm new to graphics especially in VTK, not a really programmer also. however, it's interesting subject in which lead me to start learn something.

xyont avatar Feb 21 '22 18:02 xyont

Added context and suggested solution.

mwestphal avatar Jan 22 '24 07:01 mwestphal

Hi! Maybe I can take this?

MarcosDanielTorres avatar Feb 05 '24 19:02 MarcosDanielTorres

Sure!

mwestphal avatar Feb 05 '24 19:02 mwestphal