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

0024144: BRepPrimAPI_MakeWedge wrong

fixed direction computing in gp_Lin Primitives_Wedge::Line.
Test cases for issue CR24144
This commit is contained in:
aml 2013-10-17 12:36:38 +04:00 committed by bugmaster
parent 2bc5e8f1e0
commit b70bbe5845
3 changed files with 99 additions and 1 deletions

View File

@ -758,7 +758,7 @@ gp_Lin Primitives_Wedge::Line
Y = YMin;
Z = ZMin;
if ( (XMin != X2Min) || (ZMin != Z2Min) )
D = gp_Vec(gp_Pnt(XMin,YMin,ZMin),gp_Pnt(X2Min,YMax,Z2Min));
D = gp_Vec( (X2Min-XMin)*VX + (YMax-YMin)*VY + (Z2Min-ZMin)*VZ);
break;
case 9 :

View File

@ -0,0 +1,49 @@
puts "========="
puts "OCC24144"
puts "========="
puts ""
###########################################################
# BRepPrimAPI_MakeWedge wrong
###########################################################
set Ox 0
set Oy 0
set Oz 0
set Zx 0
set Zy 0
set Zz 1
set Xx 0
set Xy 1
set Xz 0
set dx 200.0
set dy 620.0
set dz 2150.0
set xmin 0
set xmax 200
set zmin 1075
set zmax 1075
wedge result ${Ox} ${Oy} ${Oz} ${Zx} ${Zy} ${Zz} ${Xx} ${Xy} ${Xz} \
${dx} ${dy} ${dz} ${xmin} ${zmin} ${xmax} ${zmax}
#wedge result \
# ${dx} ${dy} ${dz} ${xmin} ${zmin} ${xmax} ${zmax}
set square 2.25939e+06
# Analysis of "nbshapes result"
set nb_v_good 6
set nb_e_good 9
set nb_w_good 5
set nb_f_good 5
set nb_sh_good 1
set nb_sol_good 1
set nb_compsol_good 0
set nb_compound_good 0
set nb_shape_good 27
set 2dviewer 1

View File

@ -0,0 +1,49 @@
puts "========="
puts "OCC24144"
puts "========="
puts ""
###########################################################
# BRepPrimAPI_MakeWedge wrong
###########################################################
set Ox 0
set Oy 0
set Oz 0
set Zx 0
set Zy 0
set Zz 1
set Xx 0
set Xy 1
set Xz 0
set dx 200.0
set dy 620.0
set dz 2150.0
set xmin 0
set xmax 200
set zmin 1075
set zmax 1075
#wedge result ${Ox} ${Oy} ${Oz} ${Zx} ${Zy} ${Zz} ${Xx} ${Xy} ${Xz} \
# ${dx} ${dy} ${dz} ${xmin} ${zmin} ${xmax} ${zmax}
wedge result \
${dx} ${dy} ${dz} ${xmin} ${zmin} ${xmax} ${zmax}
set square 2.25939e+06
# Analysis of "nbshapes result"
set nb_v_good 6
set nb_e_good 9
set nb_w_good 5
set nb_f_good 5
set nb_sh_good 1
set nb_sol_good 1
set nb_compsol_good 0
set nb_compound_good 0
set nb_shape_good 27
set 2dviewer 1