1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00

0028871: Various problems in SAT export

This commit is contained in:
anv 2017-06-28 16:10:30 +03:00 committed by bugmaster
parent 48691eaa2c
commit 6319b55bc6
2 changed files with 30 additions and 0 deletions

View File

@ -737,6 +737,7 @@ Standard_Integer ShapeAnalysis_Curve::SelectForwardSeam(const Handle(Geom2d_Curv
gp_Pnt2d StartBC1 = BC1->StartPoint();
gp_Pnt2d EndBC1 = BC1->EndPoint();
gp_Vec2d VecBC1(StartBC1, EndBC1);
if (VecBC1.SquareMagnitude() < gp::Resolution()) return theCurveIndice;
L1 = new Geom2d_Line(StartBC1, VecBC1);
}
@ -748,6 +749,7 @@ Standard_Integer ShapeAnalysis_Curve::SelectForwardSeam(const Handle(Geom2d_Curv
gp_Pnt2d StartBC2 = BC2->StartPoint();
gp_Pnt2d EndBC2 = BC2->EndPoint();
gp_Vec2d VecBC2(StartBC2, EndBC2);
if (VecBC2.SquareMagnitude() < gp::Resolution()) return theCurveIndice;
L2 = new Geom2d_Line(StartBC2, VecBC2);
}

28
tests/bugs/step/bug28871 Normal file
View File

@ -0,0 +1,28 @@
puts "========"
puts "OCC28871"
puts "========"
puts ""
##########################################################################
# Various problems in SAT export
##########################################################################
stepread [locate_data_file bug28871_cuffie.stp] a *
tpcompound result
checkprops result -s 170790
checkshape result
set nbshapes_expected "
Number of shapes in shape
VERTEX : 1387
EDGE : 2222
WIRE : 953
FACE : 928
SHELL : 53
SOLID : 39
COMPSOLID : 0
COMPOUND : 1
SHAPE : 5583
"
checknbshapes result -ref ${nbshapes_expected} -t -m "importing file"
checkview -display result -3d -path ${imagedir}/${test_image}.png