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