mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
0030243: Regression in HLR PolyAlgo in OCCT 7.1.0
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.
This commit is contained in:
parent
6e7791948b
commit
23babb36ec
@ -470,7 +470,7 @@ void HLRAlgo_PolyData::hideByOneTriangle (const HLRAlgo_BiPoint::PointsT& thePoi
|
||||
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;
|
||||
|
@ -11,7 +11,7 @@ pload QAcommands
|
||||
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
|
||||
|
14
tests/bugs/modalg_7/bug29956
Normal file
14
tests/bugs/modalg_7/bug29956
Normal file
@ -0,0 +1,14 @@
|
||||
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
|
14
tests/bugs/modalg_7/bug30243
Normal file
14
tests/bugs/modalg_7/bug30243
Normal file
@ -0,0 +1,14 @@
|
||||
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
|
Loading…
x
Reference in New Issue
Block a user