mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-07 18:30:55 +03:00
0024989: Visualization - workaround vc12 32-bit compiler optimizer bug resulted in crash in AIS_Axis
Test case for issue CR24989
This commit is contained in:
parent
e3a6386d18
commit
26e17b5721
@ -261,10 +261,11 @@ void AIS_Axis::ComputeFields()
|
|||||||
if (myIsXYZAxis){
|
if (myIsXYZAxis){
|
||||||
// calcul de myPFirst,myPlast
|
// calcul de myPFirst,myPlast
|
||||||
Handle(Prs3d_DatumAspect) DA = myDrawer->DatumAspect();
|
Handle(Prs3d_DatumAspect) DA = myDrawer->DatumAspect();
|
||||||
gp_Pnt Orig = myAx2->Ax2().Location();
|
gp_Ax2 anAxis = myAx2->Ax2();
|
||||||
gp_Dir oX = myAx2->Ax2().XDirection();
|
const gp_Pnt& Orig = anAxis.Location();
|
||||||
gp_Dir oY = myAx2->Ax2().YDirection();
|
const gp_Dir& oX = anAxis.XDirection();
|
||||||
gp_Dir oZ = myAx2->Ax2().Direction();
|
const gp_Dir& oY = anAxis.YDirection();
|
||||||
|
const gp_Dir& oZ = anAxis.Direction();
|
||||||
Quantity_Length xo,yo,zo,x = 0.,y = 0.,z = 0.;
|
Quantity_Length xo,yo,zo,x = 0.,y = 0.,z = 0.;
|
||||||
Orig.Coord(xo,yo,zo);
|
Orig.Coord(xo,yo,zo);
|
||||||
myPfirst.SetCoord(xo,yo,zo);
|
myPfirst.SetCoord(xo,yo,zo);
|
||||||
|
11
tests/bugs/vis/bug24989
Executable file
11
tests/bugs/vis/bug24989
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
puts "============"
|
||||||
|
puts "OCC24989"
|
||||||
|
puts "============"
|
||||||
|
puts ""
|
||||||
|
#######################################################################
|
||||||
|
# Visualization - workaround vc12 32-bit compiler optimizer bug resulted in crash in AIS_Axis
|
||||||
|
#######################################################################
|
||||||
|
|
||||||
|
vinit
|
||||||
|
vtrihedron vtr
|
||||||
|
set only_screen 1
|
Loading…
x
Reference in New Issue
Block a user