diff --git a/EXE_Trimming.cpp b/EXE_Trimming.cpp index 2cd8c32..62514b2 100644 --- a/EXE_Trimming.cpp +++ b/EXE_Trimming.cpp @@ -869,7 +869,7 @@ ExeTrimmingGetSurfBzSyncPoints( int nParentId, int nEdge1Id, int nEdge2Id, doubl // --------------------------------------------------------------------------- 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) { bool bOk = true ; // Verifica database geometrico @@ -889,7 +889,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/Lua_Trimming.cpp b/Lua_Trimming.cpp index 919a9ed..8f24b60 100644 --- a/Lua_Trimming.cpp +++ b/Lua_Trimming.cpp @@ -297,8 +297,10 @@ LuaRegolarizeSurfaceLocally( lua_State* L) LuaCheckParam( L, 4, nSyncEndId) double dLinTol ; LuaCheckParam( L, 5, dLinTol) + int nType = 0 ; + LuaCheckParam( L, 6, nType) - int nId = ExeRegolarizeSurfaceLocally( nParentId, nSurfId, nSyncStartId, nSyncEndId, dLinTol) ; + int nId = ExeRegolarizeSurfaceLocally( nParentId, nSurfId, nSyncStartId, nSyncEndId, dLinTol, nType) ; LuaSetParam( L, nId) ; return 1 ; }