Use V3d_ColorScale from OCC 6.1 in OCC 5.2.4 ???

Hello OCC-User,

i want to compute the maximum distance of two surfaces and display this distances as a colored surface (with colors depending of the distance),

therefore i want to use the new class of OCC 6.1 V3d_ColorScale for 3D_Viewer,

Does anybody knows, if this using is possible, when i import this package?

many greetings,
OccUser

juri's picture

i have the same challenge. did you solve that?
thanks, juri

Pawel's picture

You can do the following while initializing your viewer:

Handle_Aspect_ColorScale colorScale = myView->ColorScale();
colorScale->SetRange(-10,10);
myView->ColorScaleDisplay();

Regards
Pawel

Pawel's picture

That was just an example. Just look for the ColorScale class in source files.

Pawel