EgtGeomKernel :

- inizio modifica al calcolo di tagli multipli ad una superficie di Bezier.
This commit is contained in:
Daniele Bariletti
2024-02-23 10:19:04 +01:00
parent 156d0eea4b
commit 4bada73c83
2 changed files with 197 additions and 35 deletions
+8 -8
View File
@@ -3685,13 +3685,13 @@ Tree::AddCutsToRoot( POLYLINEVECTOR& vCuts)
IntersCurveCurve icc2( *pCL, *pCL2) ;
IntersCurveCurve icc3( *pCL, *pCL3) ;
IntCrvCrvInfo iccInfo ;
if (icc0.GetCrossIntersCount() != 0)
if (icc0.GetIntersCount() != 0)
icc0.GetIntCrvCrvInfo( 0, iccInfo) ;
else if (icc1.GetCrossIntersCount() != 0)
else if (icc1.GetIntersCount() != 0)
icc1.GetIntCrvCrvInfo( 0, iccInfo) ;
else if (icc2.GetCrossIntersCount() != 0)
else if (icc2.GetIntersCount() != 0)
icc2.GetIntCrvCrvInfo( 0, iccInfo) ;
else if (icc3.GetCrossIntersCount() != 0)
else if (icc3.GetIntersCount() != 0)
icc3.GetIntCrvCrvInfo( 0, iccInfo) ;
pt = iccInfo.IciA[0].ptI ;
if ( ! OnWhichEdge(nRoot, pt, nEdgeIn))
@@ -3718,13 +3718,13 @@ Tree::AddCutsToRoot( POLYLINEVECTOR& vCuts)
IntersCurveCurve icc2( *pCL, *pCL2) ;
IntersCurveCurve icc3( *pCL, *pCL3) ;
IntCrvCrvInfo iccInfo ;
if (icc0.GetCrossIntersCount() != 0)
if (icc0.GetIntersCount() != 0)
icc0.GetIntCrvCrvInfo( 0, iccInfo) ;
else if (icc1.GetCrossIntersCount() != 0)
else if (icc1.GetIntersCount() != 0)
icc1.GetIntCrvCrvInfo( 0, iccInfo) ;
else if (icc2.GetCrossIntersCount() != 0)
else if (icc2.GetIntersCount() != 0)
icc2.GetIntCrvCrvInfo( 0, iccInfo) ;
else if (icc3.GetCrossIntersCount() != 0)
else if (icc3.GetIntersCount() != 0)
icc3.GetIntCrvCrvInfo( 0, iccInfo) ;
pt = iccInfo.IciA[0].ptI ;
vInters.pop_back() ;