mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0029430: [Regression] Curve evaluation at boundary point.
Before the fix, BRepAdaptor_CompCurve considered the input wire to be periodic with period LastParameter()-FirstParameter(). Now, method IsPeriodic will always return FALSE because it is impossible to obtain correspondence between the members of BRepAdaptor_CompCurve class and its periodicity status. New behavior has been documented in upgrade-guide.
This commit is contained in:
46
tests/bugs/modalg_7/bug29430
Normal file
46
tests/bugs/modalg_7/bug29430
Normal file
@@ -0,0 +1,46 @@
|
||||
puts "========"
|
||||
puts "OCC29430"
|
||||
puts "========"
|
||||
puts ""
|
||||
#################################################
|
||||
# [Regression] Curve evaluation at boundary point.
|
||||
#################################################
|
||||
|
||||
pload QAcommands
|
||||
|
||||
# After launching the command below we will obtain
|
||||
# some wire (stored in "result" variable) containing
|
||||
# a single edge based on arc of circle and its first and last
|
||||
# 3D-points (p1 and p2 correspondingly) taken from
|
||||
# composite curve (BRepAdaptor_CompCurve) built on this wire.
|
||||
|
||||
OCC29430 result p1 p2
|
||||
|
||||
vertex v1 p1
|
||||
vertex v2 p2
|
||||
|
||||
explode result v
|
||||
|
||||
# Now, let's check
|
||||
# 1. whether p1 and p2 match the vertices of the wire;
|
||||
# 2. whether p1 and p2 are different points.
|
||||
|
||||
distmini d11 result_1 v1
|
||||
distmini d12 result_1 v2
|
||||
distmini d21 result_2 v1
|
||||
distmini d22 result_2 v2
|
||||
distmini dv12 v1 v2
|
||||
|
||||
|
||||
if { ([dval d11_val] > 1.0e-7) && ([dval d21_val] > 1.0e-7) } {
|
||||
puts "Error: Start point of the wire does not match any its vertex."
|
||||
}
|
||||
if { ([dval d12_val] > 1.0e-7) && ([dval d22_val] > 1.0e-7) } {
|
||||
puts "Error: End point of the wire does not match any its vertex."
|
||||
}
|
||||
|
||||
if { [dval dv12_val] < 1.0e-7 } {
|
||||
puts "Error: Start and End points of the wire are the same."
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user