mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-24 13:50:49 +03:00
0032977: OCC V7.5, V7.6 cannot read STEP color correctly for the root label, but v6.8 can
- color overriding mechanism is implemented for assembles, parts and instances
This commit is contained in:
58
tests/bugs/step/bug32977
Normal file
58
tests/bugs/step/bug32977
Normal file
@@ -0,0 +1,58 @@
|
||||
puts "===================================="
|
||||
puts "0032977: OCC V7.5, V7.6 cannot read STEP color correctly for the root label, but v6.8 can"
|
||||
puts "===================================="
|
||||
puts ""
|
||||
|
||||
pload ALL
|
||||
|
||||
# Read files
|
||||
# Check colors number
|
||||
|
||||
ReadStep D1 [locate_data_file bug32977_1.stp]
|
||||
set info1 [XStat D1]
|
||||
regexp {Number +of +colors += +([-0-9.+eE]+)} $info1 full nbcolor
|
||||
regexp {Number +of +colors += +[-0-9.+eE]+\n([^\n]*)} $info1 full colors
|
||||
if {[string compare ${colors} "RED BLACK GRAY74 GRAY26 "] != 0} {
|
||||
puts "Error: not expected colors ${colors}"
|
||||
}
|
||||
if {$nbcolor != 4} {
|
||||
puts "Error: not expected number of colors"
|
||||
}
|
||||
|
||||
ReadStep D2 [locate_data_file bug32977_2.step]
|
||||
set info2 [XStat D2]
|
||||
regexp {Number +of +colors += +([-0-9.+eE]+)} $info2 full nbcolor
|
||||
regexp {Number +of +colors += +[-0-9.+eE]+\n([^\n]*)} $info2 full colors
|
||||
if {[string compare ${colors} "LIGHTSTEELBLUE2 WHITE VIOLETRED3 GRAY25 "] != 0} {
|
||||
puts "Error: not expected colors ${colors}"
|
||||
}
|
||||
if {$nbcolor != 4} {
|
||||
puts "Error: not expected number of colors"
|
||||
}
|
||||
|
||||
ReadStep D3 [locate_data_file trj10_pm8-id-214.stp]
|
||||
set info3 [XStat D3]
|
||||
regexp {Number +of +colors += +([-0-9.+eE]+)} $info3 full nbcolor
|
||||
regexp {Number +of +colors += +[-0-9.+eE]+\n([^\n]*)} $info3 full colors
|
||||
if {[string compare ${colors} "MAGENTA RED ORANGERED ORANGE DEEPSKYBLUE2 GREEN "] != 0} {
|
||||
puts "Error: not expected colors ${colors}"
|
||||
}
|
||||
if {$nbcolor != 6} {
|
||||
puts "Error: not expected number of colors"
|
||||
}
|
||||
|
||||
vinit View1
|
||||
XDisplay D1 -dispmode 1
|
||||
vfit
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}1.png
|
||||
|
||||
vclear
|
||||
XDisplay D2 -dispmode 1
|
||||
vfit
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}2.png
|
||||
|
||||
vclear
|
||||
XDisplay D3 -dispmode 1
|
||||
vfit
|
||||
checkview -screenshot -3d -path ${imagedir}/${test_image}3.png
|
||||
|
@@ -8,10 +8,10 @@ CHECKSHAPE : Wires = 0 ( 0 ) Faces = 0 ( 0 ) Shells = 0 ( 0 ) So
|
||||
NBSHAPES : Solid = 3 ( 3 ) Shell = 3 ( 3 ) Face = 492 ( 492 )
|
||||
STATSHAPE : Solid = 57 ( 57 ) Shell = 57 ( 57 ) Face = 1894 ( 1894 ) FreeWire = 0 ( 0 )
|
||||
TOLERANCE : MaxTol = 1e-007 ( 1e-007 ) AvgTol = 1e-007 ( 1e-007 )
|
||||
LABELS : N0Labels = 5 ( 5 ) N1Labels = 31 ( 31 ) N2Labels = 0 ( 0 ) TotalLabels = 36 ( 36 ) NameLabels = 36 ( 36 ) ColorLabels = 3 ( 3 ) LayerLabels = 0 ( 0 )
|
||||
LABELS : N0Labels = 5 ( 5 ) N1Labels = 32 ( 32 ) N2Labels = 0 ( 0 ) TotalLabels = 37 ( 37 ) NameLabels = 36 ( 36 ) ColorLabels = 4 ( 4 ) LayerLabels = 0 ( 0 )
|
||||
PROPS : Centroid = 0 ( 0 ) Volume = 0 ( 0 ) Area = 0 ( 0 )
|
||||
NCOLORS : NColors = 3 ( 3 )
|
||||
COLORS : Colors = CYAN GREEN YELLOW ( CYAN GREEN YELLOW )
|
||||
NCOLORS : NColors = 4 ( 4 )
|
||||
COLORS : Colors = CYAN GREEN RED YELLOW ( CYAN GREEN RED YELLOW )
|
||||
NLAYERS : NLayers = 0 ( 0 )
|
||||
LAYERS : Layers = ( )
|
||||
|
||||
|
@@ -8,10 +8,10 @@ CHECKSHAPE : Wires = 0 ( 0 ) Faces = 0 ( 0 ) Shells = 0 ( 0 ) So
|
||||
NBSHAPES : Solid = 3 ( 3 ) Shell = 3 ( 3 ) Face = 492 ( 492 )
|
||||
STATSHAPE : Solid = 57 ( 57 ) Shell = 57 ( 57 ) Face = 1894 ( 1894 ) FreeWire = 0 ( 0 )
|
||||
TOLERANCE : MaxTol = 1e-007 ( 1e-007 ) AvgTol = 1e-007 ( 1e-007 )
|
||||
LABELS : N0Labels = 5 ( 5 ) N1Labels = 31 ( 31 ) N2Labels = 0 ( 0 ) TotalLabels = 36 ( 36 ) NameLabels = 36 ( 36 ) ColorLabels = 3 ( 3 ) LayerLabels = 0 ( 0 )
|
||||
LABELS : N0Labels = 5 ( 5 ) N1Labels = 32 ( 32 ) N2Labels = 0 ( 0 ) TotalLabels = 37 ( 37 ) NameLabels = 36 ( 36 ) ColorLabels = 4 ( 4 ) LayerLabels = 0 ( 0 )
|
||||
PROPS : Centroid = 0 ( 0 ) Volume = 0 ( 0 ) Area = 0 ( 0 )
|
||||
NCOLORS : NColors = 3 ( 3 )
|
||||
COLORS : Colors = CYAN GREEN YELLOW ( CYAN GREEN YELLOW )
|
||||
NCOLORS : NColors = 4 ( 4 )
|
||||
COLORS : Colors = CYAN GREEN RED YELLOW ( CYAN GREEN RED YELLOW )
|
||||
NLAYERS : NLayers = 0 ( 0 )
|
||||
LAYERS : Layers = ( )
|
||||
|
||||
|
Reference in New Issue
Block a user