1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-29 14:00:49 +03:00

0025549: Visualization - do not crash on attempt to display the Angle dimension between two parallel lines

- Handle cases of 0 and Pi angle depending on lines in edges and end points

Draw arcs in accordance with input normal for minimum angle, check correctness of input circle parameters
This commit is contained in:
aba
2015-11-10 09:49:39 +03:00
committed by bugmaster
parent bd485d9691
commit 4d147bf2a7
4 changed files with 122 additions and 53 deletions

22
tests/bugs/vis/bug25549_1 Normal file
View File

@@ -0,0 +1,22 @@
puts "============"
puts "CR25549"
puts "Visualization - do not crash on attempt to display the Angle dimension between two parallel lines"
puts "============"
puts ""
puts "Tests case of two edges with the same line but different end points parameters"
pload MODELING VISUALIZATION
line l 0 0 0 1 0 0
mkedge e1 l 50 100
mkedge e2 l 50 0
vinit View1
vclear
vaxo
vdisplay e1 e2
vdimension ad -angle -shapes e1 e2
vfit
set only_screen 1

21
tests/bugs/vis/bug25549_2 Normal file
View File

@@ -0,0 +1,21 @@
puts "============"
puts "CR25549"
puts "Visualization - do not crash on attempt to display the Angle dimension between two parallel lines"
puts "============"
puts ""
puts "Tests case of two edges with opposite lines directions"
pload MODELING VISUALIZATION
line Line1 0 0 0 1 0 0
copy Line1 Line2
reverse Line1
mkedge e1 Line1 0 50
mkedge e2 Line2 0 50
vinit View1
vclear
vaxo
vdisplay e1 e2
vdimension ad -angle -shapes e1 e2
vfit
set only_screen 1