예제 #1
0
파일: utils.py 프로젝트: gitter-badger/AFEM
    def is_subshape_by_mesh(shape, mesh):
        """
        Check to see if the shape is a sub-shape in a mesh.

        :param afem.topology.entities.Shape shape: The shape.
        :param afem.smesh.meshes.Mesh mesh: The mesh.

        :return: *True* if a sub-shape, *False* if not.
        :rtype: bool
        """
        return SMESH_MesherHelper.IsSubShape_(shape.object, mesh.object)
예제 #2
0
파일: utils.py 프로젝트: gitter-badger/AFEM
    def is_subshape_by_shape(shape, main_shape):
        """
        Check to see if the shape is a sub-shape in a shape.

        :param afem.topology.entities.Shape shape: The shape.
        :param afem.topology.entities.Shape main_shape: The main shape.

        :return: *True* if a sub-shape, *False* if not.
        :rtype: bool
        """
        return SMESH_MesherHelper.IsSubShape_(shape.object, main_shape.object)