mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-05-21 10:55:33 +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
33 lines
802 B
Plaintext
Executable File
33 lines
802 B
Plaintext
Executable File
puts "========"
|
|
puts "OCC24357"
|
|
puts "========"
|
|
puts ""
|
|
###########################################################
|
|
# BRepBuilderAPI_Sewing returns result with too high tolerance
|
|
###########################################################
|
|
|
|
restore [locate_data_file bug24357_faces.brep] f
|
|
whatis f
|
|
tolerance f
|
|
sewing r 0.2 f
|
|
whatis r
|
|
|
|
regexp {Tolerance +MAX=([-0-9.+eE]+)} [tolerance r] full MaxTolerance
|
|
puts "MaxTolerance=$MaxTolerance"
|
|
|
|
set expected_MaxTolerance 0.00082956492865075794
|
|
set tol_abs_MaxTolerance 0.00001
|
|
set tol_rel_MaxTolerance 0.00001
|
|
checkreal "MaxTolerance" ${MaxTolerance} ${expected_MaxTolerance} ${tol_abs_MaxTolerance} ${tol_rel_MaxTolerance}
|
|
|
|
smallview
|
|
donly r
|
|
fit
|
|
xwd ${imagedir}/${casename}_1.png
|
|
|
|
vinit
|
|
vsetdispmode 1
|
|
vdisplay r
|
|
vfit
|
|
vdump ${imagedir}/${casename}_2.png
|