1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +03:00

0026014: Visualization - the IsAutoTriangulated flag is ignored for AIS_ColoredShape

Add test case
This commit is contained in:
osa 2015-04-09 16:59:14 +03:00 committed by bugmaster
parent d585e74e51
commit 306f5893ea
2 changed files with 30 additions and 3 deletions

View File

@ -318,11 +318,10 @@ void AIS_ColoredShape::Compute (const Handle(PrsMgr_PresentationManager3d)& ,
{
BRepTools::Clean (myshape);
}
// After this call if type of deflection is relative
// computed deflection coefficient is stored as absolute.
StdPrs_ShadedShape::Tessellate (myshape, myDrawer);
}
// After this call if type of deflection is relative
// computed deflection coefficient is stored as absolute.
StdPrs_ShadedShape::Tessellate (myshape, myDrawer);
}
else // WireFrame mode
{

28
tests/bugs/vis/bug26014 Normal file
View File

@ -0,0 +1,28 @@
puts "============"
puts "CR26014"
puts "Check that the colored shading shape doesn't have a shading presentation"
puts "due to its triangulation isn't computed in case of disabled auto triangulation feature."
puts "But in this case the shape should have special wireframe presentation."
puts "============"
puts ""
vinit View1
vclear
vaxo
vsetdispmode 1
vdefaults -autoTriang off
pcone c 0 5 10
vdisplay c
vfit
explode c F
vaspects c -subshapes c_2 -setcolor RED
set aColorWireframe [vreadpixel 200 31 rgb name]
set aColorShaded [vreadpixel 180 60 rgb name]
vdump $imagedir/${casename}_shape_pres.png
if {"$aColorWireframe" != "RED" || "$aColorShaded" != "BLACK"} {
puts "Error: presentation of shape is incorrect"
}