EgtGeomKernel 2.1k1 :

- a Polygon3d aggiunta ClearSides
- piccola correzione in GetSurfTriMeshPlaneInBox.
This commit is contained in:
Dario Sassi
2019-11-05 17:21:07 +00:00
parent 45c5c45672
commit f840bd4a6f
3 changed files with 10 additions and 2 deletions
BIN
View File
Binary file not shown.
+9 -1
View File
@@ -26,6 +26,14 @@ Polygon3d::Clear( void)
return true ;
}
//----------------------------------------------------------------------------
bool
Polygon3d::ClearSides( void)
{
m_vVert.clear() ;
return true ;
}
//----------------------------------------------------------------------------
bool
Polygon3d::FromRectangle( double dDimX, double dDimY)
@@ -181,7 +189,7 @@ Polygon3d::Trim( const Plane3d& plPlane, bool bInVsOut, bool bOnEq)
bool
Polygon3d::Trim( const Polygon3d& plyOther, bool bInVsOut, bool bOnEq)
{
if ( GetSideCount() == 0 || plyOther.GetSideCount() == 0)
if ( GetSideCount() == 0 || ! plyOther.IsValid())
return true ;
return Trim( plyOther.m_Plane, bInVsOut, bOnEq) ;
}
+1 -1
View File
@@ -170,7 +170,7 @@ GetSurfTriMeshPlaneInBox( const Plane3d& plPlane, const BBox3d& b3Box)
// creo la trimesh con questo contorno
PtrOwner<ISurfTriMesh> pStm( CreateSurfTriMesh()) ;
if ( IsNull( pStm) || ! pStm->CreateByFlatContour( Polyg.GetPolyLine()))
return false ;
return nullptr ;
// restituisco la superficie
return Release( pStm) ;
}