EgtExecutor :
- modificata funzione per la regolarize.
This commit is contained in:
+8
-5
@@ -868,8 +868,8 @@ ExeTrimmingGetSurfBzSyncPoints( int nParentId, int nEdge1Id, int nEdge2Id, doubl
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
bool
|
||||
ExeRegolarizeSurfaceLocally( int nSurfId, int nSyncStartId, int nSyncEndId, double dLinTol)
|
||||
int
|
||||
ExeRegolarizeSurfaceLocally( int nParentId, int nSurfId, int nSyncStartId, int nSyncEndId, double dLinTol)
|
||||
{
|
||||
bool bOk = true ;
|
||||
// Verifica database geometrico
|
||||
@@ -888,8 +888,11 @@ ExeRegolarizeSurfaceLocally( int nSurfId, int nSyncStartId, int nSyncEndId, doub
|
||||
Point3d ptS2 ; pSyncEnd->GetStartPoint( ptS2) ;
|
||||
Point3d ptE2 ; pSyncEnd->GetEndPoint( ptE2) ;
|
||||
BIPOINT bpIsoEnd( ptS2, ptE2) ;
|
||||
|
||||
PtrOwner<ISurfBezier> pNewSurf( RegolarizeBordersLocally( pSurfBez, bpIsoStart, bpIsoEnd, dLinTol)) ;
|
||||
if ( IsNull( pNewSurf))
|
||||
return GDB_ID_NULL ;
|
||||
int nId = pGeomDB->AddGeoObj( GDB_ID_NULL, nParentId, Release( pNewSurf)) ;
|
||||
|
||||
bOk = RegolarizeBordersLocally( pSurfBez, bpIsoStart, bpIsoEnd, 0.2) ;
|
||||
|
||||
return bOk ;
|
||||
return nId ;
|
||||
}
|
||||
+8
-6
@@ -287,17 +287,19 @@ LuaTrimmingGetSurfBzSyncPoints( lua_State* L)
|
||||
static int
|
||||
LuaRegolarizeSurfaceLocally( lua_State* L)
|
||||
{
|
||||
int nParentId = GDB_ID_NULL ;
|
||||
LuaCheckParam( L, 1, nParentId)
|
||||
int nSurfId = GDB_ID_NULL ;
|
||||
LuaCheckParam( L, 1, nSurfId)
|
||||
LuaCheckParam( L, 2, nSurfId)
|
||||
int nSyncStartId ;
|
||||
LuaCheckParam( L, 2, nSyncStartId)
|
||||
LuaCheckParam( L, 3, nSyncStartId)
|
||||
int nSyncEndId ;
|
||||
LuaCheckParam( L, 3, nSyncEndId)
|
||||
LuaCheckParam( L, 4, nSyncEndId)
|
||||
double dLinTol ;
|
||||
LuaCheckParam( L, 4, dLinTol)
|
||||
LuaCheckParam( L, 5, dLinTol)
|
||||
|
||||
bool bOk = ExeRegolarizeSurfaceLocally( nSurfId, nSyncStartId, nSyncEndId, dLinTol) ;
|
||||
LuaSetParam( L, bOk) ;
|
||||
int nId = ExeRegolarizeSurfaceLocally( nParentId, nSurfId, nSyncStartId, nSyncEndId, dLinTol) ;
|
||||
LuaSetParam( L, nId) ;
|
||||
return 1 ;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user