ON_BOOL32 ON_PointCloud::Transform( const ON_Xform& xform ) { TransformUserData(xform); ON_BOOL32 rc = m_P.Transform(xform); if (rc && HasPlane() ) rc = m_plane.Transform(xform); m_bbox.Destroy(); return rc; }
ON_BOOL32 ON_PointCloud::SwapCoordinates( int i, int j // indices of coords to swap ) { ON_BOOL32 rc = m_P.SwapCoordinates(i,j); if ( rc && HasPlane() ) { rc = m_plane.SwapCoordinates(i,j); } if ( rc && m_bbox.IsValid() ) { rc = m_bbox.SwapCoordinates(i,j); } return rc; }
bool DBrush::operator ==(DBrush* other) { list<DPlane *>::const_iterator chkPlane; for(chkPlane=faceList.begin(); chkPlane!=faceList.end(); chkPlane++) { if(!other->HasPlane((*chkPlane))) return FALSE; } for(chkPlane=faceList.begin(); chkPlane!=faceList.end(); chkPlane++) { if(!HasPlane((*chkPlane))) return FALSE; } return TRUE; }