1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-08 14:17:06 +03:00
Files
occt/tests/bugs/modalg_5/bug25224
nbv bbeb1850e4 0026675: Eliminate normalization of coordinates in ApproxInt package
Normalization has been eliminated.

Additionally,
1. Some methods of AppDef_Compute and ApproxInt_MultiLine classes have become inline (for speeding up performance).
2. Interfaces of AppDef_Compute::Parametrization(...) and BRepAlgo_BooleanOperations::SetApproxParameters() methods have been changed.
3. Overloaded methods for ApproxInt_Approx::SetParameters(...), TopOpeBRepTool_GeomTool::GetTolerances(...) and TopOpeBRepTool_GeomTool::SetTolerances(...) have been removed (because some fields of these classes are not used more).
4. Lost comments have been added in BRepApprox_TheMultiLineOfApprox.hxx and GeomInt_TheMultiLineOfWLApprox.hxx files.
5. Some fields have been deleted from ApproxInt_MultiLine class. Kept members have become constant.
6. Interface of ksection DRAW-command has been changed.
7. Some code fragments have been rewritten to make them easier.
8. Function CleanWline(...) has been added in IntPatch_Intersection.cxx file. See comments in code for detail description.

Adjusting some test case according to their new behavior.
Creation test case for this issue.
2015-10-29 16:49:32 +03:00

45 lines
1.2 KiB
Plaintext
Executable File

puts "================"
puts "OCC25224"
puts "================"
puts ""
#######################################################################
# The section curve between two cylindrical faces is incomplete
#######################################################################
puts "TODO OCC26431 ALL: Faulty shapes in variables faulty_1 to faulty_2"
restore [locate_data_file bug25224_Input_5.brep] b1
restore [locate_data_file bug25224_Input_21.brep] b2
# 1. bopcurves
explode b1 f
explode b2 f
set log [bopcurves b1_1 b2_1]
regexp {Tolerance Reached=+([-0-9.+eE]+)\n+([-0-9.+eE]+)} ${log} full Toler NbCurv
set MaxTol 1.e-7
if {${Toler} > ${MaxTol}} {
puts "Error: Tolerance is too big!"
}
regexp {The length c_1 is ([-0-9.+eE]+)} [length c_1] full Curve_Length
set expected_length 0.52377379499528021
set tol_abs_length 1.e-7
set tol_rel_length 0.01
checkreal "Curve length" ${Curve_Length} ${expected_length} ${tol_abs_length} ${tol_rel_length}
# 2. BOP
bclearobjects
bcleartools
baddobjects b1
baddtools b2
bfillds
bbuild result
set square 21.4983
checknbshapes result -vertex 10 -edge 19 -wire 13 -face 13 -shell 3 -solid 3 -compsolid 0 -compound 1 -shape 62
set 3dviewer 1