EgtExecutor :
- aggiunta CurveAreaXY in EXE e LUA - corretta ExeCreateOutRegion.
This commit is contained in:
@@ -196,17 +196,17 @@ ExeCreateOutRegion( int nParentId, int nOutCrvId)
|
||||
// accorcio inizio
|
||||
pCompo->TrimStartAtLen( 5 * EPS_SMALL) ;
|
||||
// creo curva della parte esterna
|
||||
PolyLine PL2 ;
|
||||
Point3d ptStart ;
|
||||
pCompo->GetStartPoint( ptStart) ;
|
||||
Point3d ptEnd ;
|
||||
pCompo->GetEndPoint( ptEnd) ;
|
||||
PolyLine PL2 ;
|
||||
PL2.AddUPoint( 0, ptEnd) ;
|
||||
PL2.AddUPoint( 1, b3Box.GetMax()) ;
|
||||
PL2.AddUPoint( 1, Point3d( ptEnd.x, b3Box.GetMax().y, b3Box.GetMin().z)) ;
|
||||
PL2.AddUPoint( 2, Point3d( b3Box.GetMin().x, b3Box.GetMax().y, b3Box.GetMin().z)) ;
|
||||
PL2.AddUPoint( 3, b3Box.GetMin()) ;
|
||||
PL2.AddUPoint( 4, Point3d( b3Box.GetMax().x, b3Box.GetMin().y, b3Box.GetMin().z)) ;
|
||||
PL2.AddUPoint( 5, b3Box.GetMax() - Vector3d( 0, 5 * EPS_SMALL, 0)) ;
|
||||
Point3d ptStart ;
|
||||
pCompo->GetStartPoint( ptStart) ;
|
||||
PL2.AddUPoint( 5, Point3d( b3Box.GetMax().x, ptStart.y, b3Box.GetMin().z)) ;
|
||||
PL2.AddUPoint( 6, ptStart) ;
|
||||
// la converto in curva composita
|
||||
PtrOwner<ICurveComposite> pCompo2( CreateCurveComposite()) ;
|
||||
|
||||
Reference in New Issue
Block a user