diff --git a/EXE_Trimming.cpp b/EXE_Trimming.cpp index f8141aa..7688b52 100644 --- a/EXE_Trimming.cpp +++ b/EXE_Trimming.cpp @@ -1435,7 +1435,7 @@ Exe5AxTrimmingModifyToolDir( int nCrvId, int nPathId, int nTrimLayId, const INTV // --------------------------------------------------------------------------- int -ExeRegolarizeSurfaceLocally( int nParentId, int nSurfId, int nSyncStartId, int nSyncEndId, double dLinTol) +ExeRegolarizeSurfaceLocally( int nParentId, int nSurfId, int nSyncStartId, int nSyncEndId, double dLinTol, int nType) { // Verifica database geometrico IGeomDB* pGeomDB = GetCurrGeomDB() ; @@ -1454,7 +1454,7 @@ ExeRegolarizeSurfaceLocally( int nParentId, int nSurfId, int nSyncStartId, int n Point3d ptE2 ; pSyncEnd->GetEndPoint( ptE2) ; BIPOINT bpIsoEnd( ptS2, ptE2) ; - PtrOwner pNewSurf( RegolarizeBordersLocally( pSurfBez, bpIsoStart, bpIsoEnd, dLinTol)) ; + PtrOwner pNewSurf( RegolarizeBordersLocally( pSurfBez, bpIsoStart, bpIsoEnd, dLinTol, nType)) ; if ( IsNull( pNewSurf)) return GDB_ID_NULL ; int nId = pGeomDB->AddGeoObj( GDB_ID_NULL, nParentId, Release( pNewSurf)) ; diff --git a/EgtExecutor.rc b/EgtExecutor.rc index 1c3dd1e..2091984 100644 Binary files a/EgtExecutor.rc and b/EgtExecutor.rc differ diff --git a/Lua_Trimming.cpp b/Lua_Trimming.cpp index 239fe5b..afb8451 100644 --- a/Lua_Trimming.cpp +++ b/Lua_Trimming.cpp @@ -375,8 +375,10 @@ LuaRegolarizeSurfaceLocally( lua_State* L) LuaCheckParam( L, 4, nSyncEndId) double dLinTol ; LuaCheckParam( L, 5, dLinTol) - - int nId = ExeRegolarizeSurfaceLocally( nParentId, nSurfId, nSyncStartId, nSyncEndId, dLinTol) ; + int nType = 0 ; + LuaCheckParam( L, 6, nType) + + int nId = ExeRegolarizeSurfaceLocally( nParentId, nSurfId, nSyncStartId, nSyncEndId, dLinTol, nType) ; LuaSetParam( L, nId) ; return 1 ; }