EgtExecutor :

- adattamenti per modifiche a calcolo silhouette con CollisionAvoid.
This commit is contained in:
Dario Sassi
2024-06-17 07:11:44 +02:00
parent 3de9f5c1c3
commit 9bc1f2d55c
+5 -3
View File
@@ -933,7 +933,7 @@ MyGetSurfTmParSilhouettes( const INTVECTOR& vIds, const Point3d& ptOn, const Vec
// recupero il riferimento di destinazione
Frame3d frDest ;
if ( ! pGeomDB->GetGroupGlobFrame( nDestGrpId, frDest))
return false ;
return GDB_ID_NULL ;
// recupero le superfici TriMesh e le porto tutte in locale alla prima
SURFLOCALVECTOR vSurfL ; vSurfL.reserve( vIds.size()) ;
CISURFTMPVECTOR vpStm ; vpStm.reserve( vIds.size()) ;
@@ -952,11 +952,13 @@ MyGetSurfTmParSilhouettes( const INTVECTOR& vIds, const Point3d& ptOn, const Vec
// recupero i contorni delle varie silhouette
int nFirstId = GDB_ID_NULL ;
int nTempCount = 0 ;
CAvParSilhouettesSurfTm cavParSilh( vpStm, frPlanes, dToler) ;
PtrOwner<ICAvParSilhouettesSurfTm> pCavParSilh( CreateCAvParSilhouettesSurfTm()) ;
if ( IsNull( pCavParSilh) || ! pCavParSilh->SetData( vpStm, frPlanes, dToler))
return GDB_ID_NULL ;
for ( auto dDist : vdDist) {
// recupero i loop come polilinee
POLYLINEVECTOR vPL ;
if ( ! cavParSilh.GetSilhouette( dDist, vPL))
if ( ! pCavParSilh->GetSilhouette( dDist, vPL))
return GDB_ID_NULL ;
// dalle polilinee creo le curve e le inserisco nel DB
for ( int i = 0 ; i < int( vPL.size()) ; ++ i) {