The misprint leading to the problems was fixed.
"Draw" tests were created to check the fix.
"Draw" test bugs/modalg_7/bug28784 was corrected
for right changes of the results.
if (d2 < 0) ad2 = -d2;
pp = ad1 / ( ad1 + ad2 );
if (TrFlags & HLRAlgo_PolyMask_EMskGrALin2)
- pdp = (thePoints.PntP1.X() + (thePoints.Pnt2.X() - thePoints.PntP1.X()) * pp - theTriangle.V2.X()) / aD.X();
+ pdp = (thePoints.PntP1.X() + (thePoints.PntP2.X() - thePoints.PntP1.X()) * pp - theTriangle.V2.X()) / aD.X();
else
pdp = (thePoints.PntP1.Y() + (thePoints.PntP2.Y() - thePoints.PntP1.Y()) * pp - theTriangle.V2.Y()) / aD.Y();
Standard_Boolean OutSideP = Standard_False;
restore [locate_data_file bug28784_MHX_SKG_MS_Pos1_simplified.brep] a
OCC28784 result a
-checknbshapes result -edge 236
+checknbshapes result -edge 235
smallview
top
--- /dev/null
+puts "========"
+puts "0029956: HLR polygonal algorithm: regression in 7.1 relative to 7.0"
+puts "========"
+puts ""
+
+pload XSDRAW
+testreadstep [locate_data_file example_auto_tooling_01.stp] s
+vinit
+vdisplay s
+vfit
+vhlrtype polyAlgo s
+vhlr on
+
+vdump ${imagedir}/${casename}.png
--- /dev/null
+puts "========"
+puts "0030243: Regression in HLR PolyAlgo in OCCT 7.1.0"
+puts "========"
+puts ""
+
+pload XSDRAW
+testreadstep [locate_data_file BFC_10000.stp] s
+vinit
+vdisplay s
+vfit
+vhlrtype polyAlgo s
+vhlr on
+
+vdump ${imagedir}/${casename}.png