1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-29 14:00:49 +03:00

0032701: Modeling Algorithms - 2d curve has bending near the degenerated edge of the face

ApproxInt_Approx, ApproxInt_KnotTools, BRepApprox_Approx,
GeomInt_IntSS, IntTools_FaceFace:
  Analysis of curvature is added for adjusting ParametrizationType

IntPatch_Intersection.cxx - adding methods for estimation of UV max step depending on used surfaces

GeomInt_IntSS.cxx, IntTools_FaceFace.cxx - using methods for max step estimation

Approx_SameParameter.cxx - adding control against big values.

BOPAlgo_PaveFiller_6.cxx - adjusting position of faces before intersection
This commit is contained in:
ifv
2021-12-02 17:02:17 +03:00
committed by smoskvin
parent dbfb0666b2
commit 04ecb233f2
22 changed files with 776 additions and 135 deletions

View File

@@ -7,7 +7,7 @@ puts ""
###############################
puts "TODO OCC29501 ALL: Error in ii12_22"
puts "TODO OCC29501 All: Error: The curve ii12_22 is possible"
set MaxToler 1.5e-4
restore [locate_data_file bug24472_Pipe_1.brep] b1

View File

@@ -7,7 +7,7 @@ puts ""
#######################################################################
set MaxTol 1.e-3
set GoodNbCurv 11
set GoodNbCurv 12
restore [locate_data_file bug27167_pipe.brep] a1
pcylinder a2 100 300

View File

@@ -6,7 +6,7 @@ puts ""
# Incomplete intersection curve from the attached shapes
#################################################
set ExpTol 1.1e-7
set ExpTol 1.e-5
set GoodNbCurv 3
set GoodLength 0.6288896355727489

View File

@@ -18,7 +18,7 @@ fit
# Before the fix: Exception in Debug-mode only
regexp {Tolerance Reached=+([-0-9.+eE]+)\n+([-0-9.+eE]+)} [bopcurves f_1 f_2 -2d] full Toler NbCurv
checkreal Tolerance $Toler 4.601149532364662e-008 1.0e-7 0.0
checkreal Tolerance $Toler 2.1053092622220167e-07 1.0e-7 0.0
if {$NbCurv != 1} {
puts "Error: Please check NbCurves for intersector"

View File

@@ -32,8 +32,8 @@ while { $AllowRepeat != 0 } {
puts "Error: Wrong curve's range!"
}
xdistcs res_$ic s1 U1 U2 100 2.0e-7
xdistcs res_$ic s2 U1 U2 100 2.0e-7
xdistcs res_$ic s1 U1 U2 100 6.0e-7
xdistcs res_$ic s2 U1 U2 100 6.0e-7
mkedge ee res_$ic
baddobjects ee

View File

@@ -0,0 +1,56 @@
puts "========"
puts "0032701: Modeling Algorithms - 2d curve has bending near the degenerated edge of the face"
puts "========"
puts ""
restore [locate_data_file bug32701s.brep] s
restore [locate_data_file bug32701t.brep] t
explode t f
set log [bopcurves s t_3 -2d]
regexp {Tolerance Reached=+([-0-9.+eE]+)\n+([-0-9.+eE]+)} $log full Toler NbCurv
if {$NbCurv != 1} {
puts "Error: Number of curves is wrong"
}
if { $Toler > 3.0e-5} {
puts "Error: Big tolerance value"
}
set log [bopcurves s t_4 -2d]
regexp {Tolerance Reached=+([-0-9.+eE]+)\n+([-0-9.+eE]+)} $log full Toler NbCurv
if {$NbCurv != 1} {
puts "Error: Number of curves is wrong"
}
if { $Toler > 8.0e-5} {
puts "Error: Big tolerance value"
}
bcommon cc s t
checkshape cc
checkprops cc -s 19899.6
##checkview -display cc -2d -path ${imagedir}/${test_image}.png
bcut cct s t
checkshape cct
checkprops cct -s 32252.5
compound cc cct qq
checkview -display qq -2d -path ${imagedir}/${test_image}.png