EgtExecutor 1.8j4 :

- aggiustamenti per modifiche a Plane3d.
This commit is contained in:
Dario Sassi
2017-10-16 07:57:43 +00:00
parent 824733913d
commit cd3db614dd
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -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) ;
+1 -1
View File
@@ -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() ;
BIN
View File
Binary file not shown.
+4 -4
View File
@@ -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 ;
}