EgtExecutor 1.8j4 :
- aggiustamenti per modifiche a Plane3d.
This commit is contained in:
@@ -202,7 +202,7 @@ ExeProjectCurveOnPlane( int nId, const Point3d& ptOn, const Vector3d& vtN, int n
|
||||
Vector3d vtNL = GetVectorLocal( pGeomDB, vtN, nRefType, frLoc) ;
|
||||
// calcolo il piano di proiezione
|
||||
Plane3d plPlane ;
|
||||
bOk = bOk && SetPlane( ptOnL, vtNL, plPlane) ;
|
||||
bOk = bOk && plPlane.Set( ptOnL, vtNL) ;
|
||||
// eseguo la proiezione
|
||||
PtrOwner<ICurve> pProCrv( bOk ? ProjectCurveOnPlane( *pCurve, plPlane) : nullptr) ;
|
||||
bOk = bOk && ! IsNull( pProCrv) ;
|
||||
|
||||
@@ -617,7 +617,7 @@ ExeCutSurfTm( int nId, const Point3d& ptOn, const Vector3d& vtN, bool bSaveOnEq,
|
||||
Vector3d vtNL = GetVectorLocal( pGeomDB, vtN, nRefType, frLoc) ;
|
||||
// calcolo il piano di taglio
|
||||
Plane3d plPlane ;
|
||||
bOk = bOk && SetPlane( ptOnL, vtNL, plPlane) ;
|
||||
bOk = bOk && plPlane.Set( ptOnL, vtNL) ;
|
||||
// eseguo il taglio
|
||||
bOk = bOk && pStm->Cut( plPlane, bSaveOnEq) ;
|
||||
ExeSetModified() ;
|
||||
|
||||
Binary file not shown.
+4
-4
@@ -343,8 +343,8 @@ LuaCurveIsFlat( lua_State* L)
|
||||
Plane3d Plane ;
|
||||
bool bFlat = ExeCurveIsFlat( nId, Plane) ;
|
||||
LuaSetParam( L, bFlat) ;
|
||||
LuaSetParam( L, Plane.vtN) ;
|
||||
LuaSetParam( L, Plane.dDist) ;
|
||||
LuaSetParam( L, Plane.GetVersN()) ;
|
||||
LuaSetParam( L, Plane.GetDist()) ;
|
||||
return 3 ;
|
||||
}
|
||||
|
||||
@@ -377,8 +377,8 @@ LuaCurveArea( lua_State* L)
|
||||
Plane3d Plane ;
|
||||
double dArea ;
|
||||
if ( ExeCurveArea( nId, Plane, dArea)) {
|
||||
LuaSetParam( L, Plane.vtN) ;
|
||||
LuaSetParam( L, Plane.dDist) ;
|
||||
LuaSetParam( L, Plane.GetVersN()) ;
|
||||
LuaSetParam( L, Plane.GetDist()) ;
|
||||
LuaSetParam( L, dArea) ;
|
||||
return 3 ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user