EgtExchange 2.2f5 :

- in import BTL ad Outline e Aperture aggiunte curve associate.
This commit is contained in:
Dario Sassi
2020-06-26 07:59:27 +00:00
parent dfc9983ca2
commit 4805d018c0
2 changed files with 25 additions and 0 deletions
+25
View File
@@ -75,6 +75,16 @@ BtlGeom::AddPartOutline( int nSide, const FCEDEQUE& dqFce, const STRVECTOR& vsUA
int nId = m_pGDB->AddGeoObj( GDB_ID_NULL, m_nOutsId, Release( pStm)) ;
if ( nId == GDB_ID_NULL)
return false ;
// copio la curva per inserirla nel DBG
PtrOwner<ICurve> pCopy( pCrvCompo->Clone()) ;
if ( IsNull( pCopy))
return false ;
pCopy->SetThickness( -GetSideHeight( nSide)) ;
pCopy->SetExtrusion( frRef.VersZ()) ;
// eseguo trim con le facce della trave
TrimFlatCurveWithBox( pCopy) ;
// inserisco la curva nel DB geometrico
int nTId = m_pGDB->AddGeoObj( GDB_ID_NULL, m_nOutsId, Release( pCopy)) ;
// colore
Color cCol = m_ProcsCol ;
//cCol.SetAlpha( 80) ;
@@ -88,6 +98,8 @@ BtlGeom::AddPartOutline( int nSide, const FCEDEQUE& dqFce, const STRVECTOR& vsUA
// elenco degli eventuali attributi utente
if ( ! SetUserAttributes( nId, vsUAtt))
return false ;
// identificativi di geometrie ausiliarie
SetAuxId( nId, {nTId}) ;
// Creo le regioni sopra e sotto
PtrOwner<ISurfFlatRegion> pSfr1( CreateSurfFlatRegion()) ;
if ( IsNull( pSfr1) || ! pSfr1->AddExtLoop( Release( pCrvCompo)))
@@ -159,6 +171,17 @@ BtlGeom::AddPartAperture( int nSide, const FCEDEQUE& dqFce, const STRVECTOR& vsU
int nId = m_pGDB->AddGeoObj( GDB_ID_NULL, m_nOutsId, Release( pStm)) ;
if ( nId == GDB_ID_NULL)
return false ;
// copio la curva per inserirla nel DBG
PtrOwner<ICurve> pCopy( pCrvCompo->Clone()) ;
if ( IsNull( pCopy))
return false ;
pCopy->Invert() ;
pCopy->SetThickness( -GetSideHeight( nSide)) ;
pCopy->SetExtrusion( frRef.VersZ()) ;
// eseguo trim con le facce della trave
TrimFlatCurveWithBox( pCopy) ;
// inserisco la curva nel DB geometrico
int nTId = m_pGDB->AddGeoObj( GDB_ID_NULL, m_nOutsId, Release( pCopy)) ;
// colore
Color cCol = m_ProcsCol ;
//cCol.SetAlpha( 80) ;
@@ -172,6 +195,8 @@ BtlGeom::AddPartAperture( int nSide, const FCEDEQUE& dqFce, const STRVECTOR& vsU
// elenco degli eventuali attributi utente
if ( ! SetUserAttributes( nId, vsUAtt))
return false ;
// identificativi di geometrie ausiliarie
SetAuxId( nId, {nTId}) ;
// Creo le regioni sopra e sotto
PtrOwner<ISurfFlatRegion> pSfr1( CreateSurfFlatRegion()) ;
if ( IsNull( pSfr1) || ! pSfr1->AddExtLoop( Release( pCrvCompo)))
BIN
View File
Binary file not shown.