mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
In method Approx_SameParameter::Build() for case when 2D and 3D curves is not same parameter calculation of maximal deviation is modified by following way : Projection is considered as done only if parameter projected point falls within the current interval of parameters. In the Approx_SameParameter considering tolerance after static method ProjectPointOnCurve was added. In BRepAlgoAPI_Sewing catch of exception was added and computation of tolerance of edge if same parameter was changed in according to check in BRepCheck_Analyzer In method Approx_SameParameter::Build() for case when 2D and 3D curves is not same parameter calculation of maximal deviation is modified by following way : Modification in order to avoid warning Test case for issue CR24357
32 lines
977 B
Plaintext
Executable File
32 lines
977 B
Plaintext
Executable File
puts "============"
|
|
puts "CR25378"
|
|
puts "============"
|
|
puts ""
|
|
###################################################################################
|
|
# Building of triangulation for distored surfaces can take very long using BRepMesh_IncrementalMesh
|
|
#
|
|
# Test case was created to control bad situation, building of triangulation takes
|
|
# very long time and it is expected by the meaning of issue #25378.
|
|
# Case when it is passed too fast should be considered as failure.
|
|
###################################################################################
|
|
|
|
cpulimit 900
|
|
|
|
restore [locate_data_file bug25378_Blower_bad.brep] b
|
|
trinfo b
|
|
|
|
tclean b
|
|
set t_01 [expr [lindex [time {incmesh b 0.01}] 0]/1000000]
|
|
puts "t_01=${t_01}"
|
|
trinfo b
|
|
|
|
if { [regexp {Debug mode} [dversion]] } {
|
|
set max_t_01 180
|
|
} else {
|
|
set max_t_01 50
|
|
}
|
|
|
|
if {${max_t_01} > ${t_01}} {
|
|
puts "Error. Time of building of triangulation, ${t_01} seconds, is less than expected minimum time - ${max_t_01} seconds"
|
|
}
|