def plane(self): """ :return: The reference surface if it is a plane. :rtype: afem.geometry.entities.Plane :raise TypeError: If the reference surface is not a plane. """ if CheckGeom.is_plane(self.sref): return self.sref raise TypeError('Reference surface is not a plane.')
def is_pln_out(self, pln): """ Check to see if the plane intersects the box. :param afem.geometry.entities.Plane pln: The plane. :return: *True* if outside, *False* if it intersects. :rtype: bool :raise TypeError: If *pln* is not a plane. """ if not CheckGeom.is_plane(pln): msg = 'Methods requires a Plane instance.' raise TypeError(msg) return self.IsOut(pln.object)