Beispiel #1
0
def write_brep(shape, fn):
    """
    Write a BREP file using the shape.

    :param afem.topology.entities.Shape shape: The shape.
    :param str fn: The filename.

    :return: None.
    """
    BRepTools.Write_(shape.object, fn)
Beispiel #2
0
    def write_brep(shape, fn):
        """
        Write a BREP file using the shape.

        :param OCCT.TopoDS.TopoDS_Shape shape: The shape to export.
        :param str fn: Filename.

        :return: ``True`` if successful, ``False`` otherwise.
        :rtype: bool
        """
        return BRepTools.Write_(shape, fn)