mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-21 10:13:43 +03:00
0027534: [Regression to 6.9.1]: Infinite loop in Curve on Surface projection algorithm
Add test case.
This commit is contained in:
parent
9eefb360a7
commit
7a74087601
42
tests/bugs/moddata_3/bug27534
Normal file
42
tests/bugs/moddata_3/bug27534
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
puts "========"
|
||||||
|
puts "CR27534"
|
||||||
|
puts "========"
|
||||||
|
puts ""
|
||||||
|
####################################################################
|
||||||
|
## [Regression to 6.9.1]: Infinite loop in Curve on Surface projection algorithm
|
||||||
|
####################################################################
|
||||||
|
|
||||||
|
# This test produces different results on windows and linux.
|
||||||
|
# Windows result is unstable. Linux result is used as reference.
|
||||||
|
puts "TODO ?OCC29268 Windows: The length of result shape is"
|
||||||
|
|
||||||
|
# Prepare initial data
|
||||||
|
sphere s 0 0 0 10
|
||||||
|
circle c 0 0 0 0 0 1 10
|
||||||
|
|
||||||
|
# Trim curve
|
||||||
|
trim c c 0 pi
|
||||||
|
|
||||||
|
# Convert geometry to topology
|
||||||
|
mkface f s
|
||||||
|
mkedge e c
|
||||||
|
|
||||||
|
# Convert to splines
|
||||||
|
nurbsconvert f f
|
||||||
|
nurbsconvert e e
|
||||||
|
|
||||||
|
# Switch back to geometry
|
||||||
|
mksurface s f
|
||||||
|
mkcurve c e
|
||||||
|
|
||||||
|
# Build projection
|
||||||
|
project c2d c s -t 0.2
|
||||||
|
|
||||||
|
# Length check
|
||||||
|
checklength c2d -l 3.1415926535897931
|
||||||
|
|
||||||
|
# Visual Check
|
||||||
|
v2d
|
||||||
|
2dfit
|
||||||
|
|
||||||
|
checkview -screenshot -2d -path ${imagedir}/${test_image}.png
|
Loading…
x
Reference in New Issue
Block a user