EgtGeomKernel 2.1k1 :
- a Polygon3d aggiunta ClearSides - piccola correzione in GetSurfTriMeshPlaneInBox.
This commit is contained in:
Binary file not shown.
+9
-1
@@ -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
@@ -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) ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user