mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-16 10:08:36 +03:00
0028150: Exception is raised during Boolean operation
ProjLib_ComputeApproxOnPolarSurface::BuildInitialCurve2d - Using the correct number of points (computed in GCPnts_QuasiUniformAbscissa class) for creation of the initial curve.
This commit is contained in:
parent
cd803dcd59
commit
8444aedb1d
@ -885,6 +885,7 @@ Handle(Adaptor2d_HCurve2d)
|
|||||||
|
|
||||||
Standard_Integer NbOfPnts = 61;
|
Standard_Integer NbOfPnts = 61;
|
||||||
GCPnts_QuasiUniformAbscissa QUA(Curve->GetCurve(),NbOfPnts);
|
GCPnts_QuasiUniformAbscissa QUA(Curve->GetCurve(),NbOfPnts);
|
||||||
|
NbOfPnts = QUA.NbPoints();
|
||||||
TColgp_Array1OfPnt Pts(1,NbOfPnts);
|
TColgp_Array1OfPnt Pts(1,NbOfPnts);
|
||||||
TColStd_Array1OfReal Param(1,NbOfPnts);
|
TColStd_Array1OfReal Param(1,NbOfPnts);
|
||||||
Standard_Integer i, j;
|
Standard_Integer i, j;
|
||||||
|
24
tests/bugs/modalg_7/bug28150_1
Normal file
24
tests/bugs/modalg_7/bug28150_1
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
puts "========"
|
||||||
|
puts "OCC28150"
|
||||||
|
puts "========"
|
||||||
|
puts ""
|
||||||
|
#####################################################
|
||||||
|
# Exception is raised during Boolean operation
|
||||||
|
#####################################################
|
||||||
|
|
||||||
|
restore [locate_data_file bug28150_shapes.brep] b
|
||||||
|
explode b
|
||||||
|
bclearobjects
|
||||||
|
bcleartools
|
||||||
|
baddobjects b_1
|
||||||
|
baddtools b_2
|
||||||
|
bfillds
|
||||||
|
# Before fix: error
|
||||||
|
bbop result 0
|
||||||
|
|
||||||
|
checkshape result
|
||||||
|
|
||||||
|
checknbshapes result -wire 5 -face 2
|
||||||
|
checkprops result -s 14.5302
|
||||||
|
|
||||||
|
checkview -display result -2d -path ${imagedir}/${test_image}.png
|
21
tests/bugs/modalg_7/bug28150_2
Normal file
21
tests/bugs/modalg_7/bug28150_2
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
puts "========"
|
||||||
|
puts "OCC28150"
|
||||||
|
puts "========"
|
||||||
|
puts ""
|
||||||
|
#####################################################
|
||||||
|
# Exception is raised during Boolean operation
|
||||||
|
#####################################################
|
||||||
|
|
||||||
|
restore [locate_data_file bug28150_ef.brep] b
|
||||||
|
explode b
|
||||||
|
mkcurve c b_1
|
||||||
|
mksurface s b_2
|
||||||
|
project c2d c s
|
||||||
|
|
||||||
|
checklength c2d -l 2.6097941390190726e-006
|
||||||
|
|
||||||
|
v2d
|
||||||
|
display c2d
|
||||||
|
2dfit
|
||||||
|
|
||||||
|
checkview -screenshot -2d -path ${imagedir}/${test_image}.png
|
Loading…
x
Reference in New Issue
Block a user