mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-26 10:19:45 +03:00
Support of CIE Lab and Lch color spaces is introduced in Quantity_Color: - Enumeration Quantity_TypeOfColor is extended by new values representing CIE Lab and Lch color spaces (with D65 2 deg illuminant). - Conversion of RGB color to and from these color spaces is implemented in Quantity_Color class (within existing API). - Color difference calculation using CIE Delta E 200 formula is implemented in method DeltaE2000(). New methods MakeUniformColors() and SetUniformColors() are added in class AIS_ColorScale, generating and setting color scale based on colors of the same lightness in CIE Lch color model. DRAW commands vcolorconvert and vcolordiff are added to perform conversions and compute difference, respectively. A new option -uniform is added in DRAW command vcolorscale, to set uniform color scale. Added test grid v3d colors (color conversions and difference), test bugs vis bug31454 (uniform color scale)
10 lines
409 B
Plaintext
10 lines
409 B
Plaintext
# Auxiliary procedure to compare triplet of numbers
|
|
# against reference values, with tolerance
|
|
proc check3reals {name value1 value2 value3 ref1 ref2 ref3 tol} {
|
|
checkreal "${name}, component 1" $value1 $ref1 $tol 1e-6
|
|
checkreal "${name}, component 2" $value2 $ref2 $tol 1e-6
|
|
checkreal "${name}, component 3" $value3 $ref3 $tol 1e-6
|
|
}
|
|
|
|
# weird way to disable unnecessary screen dumps
|
|
set to_dump_screen 0 |