1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-07-30 13:05:50 +03:00
occt/tests/bugs/modalg_6/bug27325
nbv 6ca1c7466b 0027325: [Regression to 6.9.1] geom/revolution_00/A1: BOPTools_AlgoTools2D::AttachExistingPCurve doesn't work
1. Check, if edge is same-range, is now made with some tolerance (not strictly) in GeomLib_CheckCurveOnSurface class. Default value of this tolerance is Precision::PConfusion(). However, this value can be changed with corresponding interface.

2. DRAW-command "attachpcurve" has been added to BOPTest_UtilityCommands.cxx file. This command creates p-curve of given edge on given face. It can assign 2D-curve of one of the edge already included in the face or (if it is not possible) rebuilds new 2D-curve.

Creation of test case for this issue.
Adjusting test case boolean volumemaker A8 according to its new behavior on Windows.
2016-04-04 16:45:39 +03:00

22 lines
563 B
Plaintext

puts "============"
puts "OCC27325"
puts "============"
puts ""
###############################
## [Regression to 6.9.1] geom/revolution_00/A1: BOPTools_AlgoTools2D::AttachExistingPCurve doesn't work
###############################
restore [locate_data_file bug27325_edge.brep] en
restore [locate_data_file bug27325_face.brep] f
explode f e
attachpcurve f_3 en f
#Check attached p-curve
pcurve result en f
#whatis result
set ind [string first "2d curve" [whatis result]]
if {${ind} < 0} {
puts "Error: PCurve has not been attached"
} else {
dump result
}