Skip to content

Commit 89aebde

Browse files
msvapn
authored andcommitted
0027033: Modeling -- ensure stable result of area calculation
The method BRepGProp_Face::LKnots has been corrected to make proper initialization of the output data for the case of a circle. Added test case bugs/modalg_6/bug27033
1 parent 168077a commit 89aebde

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

src/BRepGProp/BRepGProp_Face.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ void BRepGProp_Face::LKnots(TColStd_Array1OfReal& Knots) const
470470
break;
471471
case GeomAbs_Circle:
472472
case GeomAbs_Ellipse:
473-
Knots(1) = 0.0; Knots(2) = M_PI*2.0/3.0; Knots(3) = M_PI*4.0/3.0; Knots(2) = M_PI*6.0/3.0;
473+
Knots(1) = 0.0; Knots(2) = M_PI*2.0/3.0; Knots(3) = M_PI*4.0/3.0; Knots(4) = M_PI*6.0/3.0;
474474
break;
475475
case GeomAbs_Parabola:
476476
case GeomAbs_Hyperbola:

tests/bugs/modalg_6/bug27033

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
puts "========="
2+
puts "OCC27033"
3+
puts "========="
4+
puts ""
5+
#############################################################
6+
# Modeling -- ensure stable result of area calculation
7+
#############################################################
8+
9+
pload XDE
10+
stepread [locate_data_file OCC11856.stp] a *
11+
12+
for {set i 1} {$i < 100} {incr i} {
13+
checkprops a_1 -s 647779 -eps 0.1
14+
}
15+
16+
checkview -display a_1 -2d -path ${imagedir}/${test_image}.png

0 commit comments

Comments
 (0)