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:
22
tests/bugs/vis/bug25549_1
Normal file
22
tests/bugs/vis/bug25549_1
Normal 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
21
tests/bugs/vis/bug25549_2
Normal 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
|
Reference in New Issue
Block a user