# This file was automatically generated by SWIG (http://www.swig.org).
# Version 4.0.1
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.

"""
FilletSurf module, see official documentation at
https://www.opencascade.com/doc/occt-7.4.0/refman/html/package_filletsurf.html
"""

from sys import version_info as _swig_python_version_info
if _swig_python_version_info < (2, 7, 0):
    raise RuntimeError("Python 2.7 or later required")

# Import the low-level C/C++ module
if __package__ or "." in __name__:
    from . import _FilletSurf
else:
    import _FilletSurf

try:
    import builtins as __builtin__
except ImportError:
    import __builtin__

_swig_new_instance_method = _FilletSurf.SWIG_PyInstanceMethod_New
_swig_new_static_method = _FilletSurf.SWIG_PyStaticMethod_New

def _swig_repr(self):
    try:
        strthis = "proxy of " + self.this.__repr__()
    except __builtin__.Exception:
        strthis = ""
    return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)


def _swig_setattr_nondynamic_instance_variable(set):
    def set_instance_attr(self, name, value):
        if name == "thisown":
            self.this.own(value)
        elif name == "this":
            set(self, name, value)
        elif hasattr(self, name) and isinstance(getattr(type(self), name), property):
            set(self, name, value)
        else:
            raise AttributeError("You cannot add instance attributes to %s" % self)
    return set_instance_attr


def _swig_setattr_nondynamic_class_variable(set):
    def set_class_attr(cls, name, value):
        if hasattr(cls, name) and not isinstance(getattr(cls, name), property):
            set(cls, name, value)
        else:
            raise AttributeError("You cannot add class attributes to %s" % cls)
    return set_class_attr


def _swig_add_metaclass(metaclass):
    """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
    def wrapper(cls):
        return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
    return wrapper


class _SwigNonDynamicMeta(type):
    """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
    __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)


class SwigPyIterator(object):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")

    def __init__(self, *args, **kwargs):
        raise AttributeError("No constructor defined - class is abstract")
    __repr__ = _swig_repr
    __swig_destroy__ = _FilletSurf.delete_SwigPyIterator
    value = _swig_new_instance_method(_FilletSurf.SwigPyIterator_value)
    incr = _swig_new_instance_method(_FilletSurf.SwigPyIterator_incr)
    decr = _swig_new_instance_method(_FilletSurf.SwigPyIterator_decr)
    distance = _swig_new_instance_method(_FilletSurf.SwigPyIterator_distance)
    equal = _swig_new_instance_method(_FilletSurf.SwigPyIterator_equal)
    copy = _swig_new_instance_method(_FilletSurf.SwigPyIterator_copy)
    next = _swig_new_instance_method(_FilletSurf.SwigPyIterator_next)
    __next__ = _swig_new_instance_method(_FilletSurf.SwigPyIterator___next__)
    previous = _swig_new_instance_method(_FilletSurf.SwigPyIterator_previous)
    advance = _swig_new_instance_method(_FilletSurf.SwigPyIterator_advance)
    __eq__ = _swig_new_instance_method(_FilletSurf.SwigPyIterator___eq__)
    __ne__ = _swig_new_instance_method(_FilletSurf.SwigPyIterator___ne__)
    __iadd__ = _swig_new_instance_method(_FilletSurf.SwigPyIterator___iadd__)
    __isub__ = _swig_new_instance_method(_FilletSurf.SwigPyIterator___isub__)
    __add__ = _swig_new_instance_method(_FilletSurf.SwigPyIterator___add__)
    __sub__ = _swig_new_instance_method(_FilletSurf.SwigPyIterator___sub__)
    def __iter__(self):
        return self

# Register SwigPyIterator in _FilletSurf:
_FilletSurf.SwigPyIterator_swigregister(SwigPyIterator)


def _dumps_object(klass):
    """ Overwrite default string output for any wrapped object.
    By default, __repr__ method returns something like:
    <OCC.Core.TopoDS.TopoDS_Shape; proxy of <Swig Object of type 'TopoDS_Shape *' at 0x02BB0758> >
    This is too much verbose.
    We prefer :
    <class 'gp_Pnt'>
    or
    <class 'TopoDS_Shape'>
    """
    klass_name = str(klass.__class__).split(".")[3].split("'")[0]
    repr_string = "<class '" + klass_name + "'"
# for TopoDS_Shape, we also look for the base type
    if klass_name == "TopoDS_Shape":
        if klass.IsNull():
            repr_string += ": Null>"
            return repr_string
        st = klass.ShapeType()
        types = {OCC.Core.TopAbs.TopAbs_VERTEX: "Vertex",
                 OCC.Core.TopAbs.TopAbs_SOLID: "Solid",
                 OCC.Core.TopAbs.TopAbs_EDGE: "Edge",
                 OCC.Core.TopAbs.TopAbs_FACE: "Face",
                 OCC.Core.TopAbs.TopAbs_SHELL: "Shell",
                 OCC.Core.TopAbs.TopAbs_WIRE: "Wire",
                 OCC.Core.TopAbs.TopAbs_COMPOUND: "Compound",
                 OCC.Core.TopAbs.TopAbs_COMPSOLID: "Compsolid"}
        repr_string += "; Type:%s" % types[st]        
    elif hasattr(klass, "IsNull"):
        if klass.IsNull():
            repr_string += "; Null"
    repr_string += ">"
    return repr_string


from six import with_metaclass
import warnings
from OCC.Wrapper.wrapper_utils import Proxy, deprecated

import OCC.Core.Standard
import OCC.Core.NCollection
import OCC.Core.Geom
import OCC.Core.gp
import OCC.Core.GeomAbs
import OCC.Core.TColgp
import OCC.Core.TColStd
import OCC.Core.TCollection
import OCC.Core.TopoDS
import OCC.Core.Message
import OCC.Core.TopAbs
import OCC.Core.TopLoc
import OCC.Core.TopTools
import OCC.Core.Geom2d
import OCC.Core.ChFi3d
import OCC.Core.BRepAdaptor
import OCC.Core.Adaptor3d
import OCC.Core.Adaptor2d
import OCC.Core.math
import OCC.Core.GeomAdaptor
import OCC.Core.Geom2dAdaptor
import OCC.Core.TopOpeBRepBuild
import OCC.Core.TopOpeBRepDS
import OCC.Core.TopOpeBRepTool
import OCC.Core.BRepClass3d
import OCC.Core.IntCurveSurface
import OCC.Core.Intf
import OCC.Core.Bnd
import OCC.Core.BVH
import OCC.Core.IntSurf
import OCC.Core.IntCurvesFace
import OCC.Core.TopExp
import OCC.Core.Extrema
import OCC.Core.ChFiDS
import OCC.Core.Law
import OCC.Core.BRepBlend
import OCC.Core.BlendFunc
import OCC.Core.Convert
import OCC.Core.Blend
import OCC.Core.Approx
import OCC.Core.AppCont
import OCC.Core.AppParCurves
import OCC.Core.AppBlend
import OCC.Core.GeomFill
import OCC.Core.TColGeom
FilletSurf_IsOk = _FilletSurf.FilletSurf_IsOk
FilletSurf_IsNotOk = _FilletSurf.FilletSurf_IsNotOk
FilletSurf_IsPartial = _FilletSurf.FilletSurf_IsPartial
FilletSurf_TwoExtremityOnEdge = _FilletSurf.FilletSurf_TwoExtremityOnEdge
FilletSurf_OneExtremityOnEdge = _FilletSurf.FilletSurf_OneExtremityOnEdge
FilletSurf_NoExtremityOnEdge = _FilletSurf.FilletSurf_NoExtremityOnEdge
FilletSurf_EmptyList = _FilletSurf.FilletSurf_EmptyList
FilletSurf_EdgeNotG1 = _FilletSurf.FilletSurf_EdgeNotG1
FilletSurf_FacesNotG1 = _FilletSurf.FilletSurf_FacesNotG1
FilletSurf_EdgeNotOnShape = _FilletSurf.FilletSurf_EdgeNotOnShape
FilletSurf_NotSharpEdge = _FilletSurf.FilletSurf_NotSharpEdge
FilletSurf_PbFilletCompute = _FilletSurf.FilletSurf_PbFilletCompute
class FilletSurf_Builder(object):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr
    CurveOnFace1 = _swig_new_instance_method(_FilletSurf.FilletSurf_Builder_CurveOnFace1)
    CurveOnFace2 = _swig_new_instance_method(_FilletSurf.FilletSurf_Builder_CurveOnFace2)
    EndSectionStatus = _swig_new_instance_method(_FilletSurf.FilletSurf_Builder_EndSectionStatus)

    def __init__(self, *args):
        r"""
        * initialize of the informations necessary for the computation of the fillet on the Shape S from a list of edges E and a radius R. //! Ta is the angular tolerance Tapp3d is the 3d approximation tolerance Tapp2d is the 2d approximation tolerance
        	:param S:
        	:type S: TopoDS_Shape
        	:param E:
        	:type E: TopTools_ListOfShape
        	:param R:
        	:type R: float
        	:param Ta: default value is 1.0e-2
        	:type Ta: float
        	:param Tapp3d: default value is 1.0e-4
        	:type Tapp3d: float
        	:param Tapp2d: default value is 1.0e-5
        	:type Tapp2d: float
        	:rtype: None
        """
        _FilletSurf.FilletSurf_Builder_swiginit(self, _FilletSurf.new_FilletSurf_Builder(*args))
    FirstParameter = _swig_new_instance_method(_FilletSurf.FilletSurf_Builder_FirstParameter)
    IsDone = _swig_new_instance_method(_FilletSurf.FilletSurf_Builder_IsDone)
    LastParameter = _swig_new_instance_method(_FilletSurf.FilletSurf_Builder_LastParameter)
    NbSection = _swig_new_instance_method(_FilletSurf.FilletSurf_Builder_NbSection)
    NbSurface = _swig_new_instance_method(_FilletSurf.FilletSurf_Builder_NbSurface)
    PCurve1OnFillet = _swig_new_instance_method(_FilletSurf.FilletSurf_Builder_PCurve1OnFillet)
    PCurve2OnFillet = _swig_new_instance_method(_FilletSurf.FilletSurf_Builder_PCurve2OnFillet)
    PCurveOnFace1 = _swig_new_instance_method(_FilletSurf.FilletSurf_Builder_PCurveOnFace1)
    PCurveOnFace2 = _swig_new_instance_method(_FilletSurf.FilletSurf_Builder_PCurveOnFace2)
    Perform = _swig_new_instance_method(_FilletSurf.FilletSurf_Builder_Perform)
    Section = _swig_new_instance_method(_FilletSurf.FilletSurf_Builder_Section)
    Simulate = _swig_new_instance_method(_FilletSurf.FilletSurf_Builder_Simulate)
    StartSectionStatus = _swig_new_instance_method(_FilletSurf.FilletSurf_Builder_StartSectionStatus)
    StatusError = _swig_new_instance_method(_FilletSurf.FilletSurf_Builder_StatusError)
    SupportFace1 = _swig_new_instance_method(_FilletSurf.FilletSurf_Builder_SupportFace1)
    SupportFace2 = _swig_new_instance_method(_FilletSurf.FilletSurf_Builder_SupportFace2)
    SurfaceFillet = _swig_new_instance_method(_FilletSurf.FilletSurf_Builder_SurfaceFillet)
    TolApp3d = _swig_new_instance_method(_FilletSurf.FilletSurf_Builder_TolApp3d)

    __repr__ = _dumps_object

    __swig_destroy__ = _FilletSurf.delete_FilletSurf_Builder

# Register FilletSurf_Builder in _FilletSurf:
_FilletSurf.FilletSurf_Builder_swigregister(FilletSurf_Builder)

class FilletSurf_InternalBuilder(OCC.Core.ChFi3d.ChFi3d_FilBuilder):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr
    Add = _swig_new_instance_method(_FilletSurf.FilletSurf_InternalBuilder_Add)
    CurveOnFace1 = _swig_new_instance_method(_FilletSurf.FilletSurf_InternalBuilder_CurveOnFace1)
    CurveOnFace2 = _swig_new_instance_method(_FilletSurf.FilletSurf_InternalBuilder_CurveOnFace2)
    Done = _swig_new_instance_method(_FilletSurf.FilletSurf_InternalBuilder_Done)
    EndSectionStatus = _swig_new_instance_method(_FilletSurf.FilletSurf_InternalBuilder_EndSectionStatus)

    def __init__(self, *args):
        r"""
        :param S:
        	:type S: TopoDS_Shape
        	:param FShape: default value is ChFi3d_Polynomial
        	:type FShape: ChFi3d_FilletShape
        	:param Ta: default value is 1.0e-2
        	:type Ta: float
        	:param Tapp3d: default value is 1.0e-4
        	:type Tapp3d: float
        	:param Tapp2d: default value is 1.0e-5
        	:type Tapp2d: float
        	:rtype: None
        """
        _FilletSurf.FilletSurf_InternalBuilder_swiginit(self, _FilletSurf.new_FilletSurf_InternalBuilder(*args))
    FirstParameter = _swig_new_instance_method(_FilletSurf.FilletSurf_InternalBuilder_FirstParameter)
    LastParameter = _swig_new_instance_method(_FilletSurf.FilletSurf_InternalBuilder_LastParameter)
    NbSection = _swig_new_instance_method(_FilletSurf.FilletSurf_InternalBuilder_NbSection)
    NbSurface = _swig_new_instance_method(_FilletSurf.FilletSurf_InternalBuilder_NbSurface)
    PCurve1OnFillet = _swig_new_instance_method(_FilletSurf.FilletSurf_InternalBuilder_PCurve1OnFillet)
    PCurve2OnFillet = _swig_new_instance_method(_FilletSurf.FilletSurf_InternalBuilder_PCurve2OnFillet)
    PCurveOnFace1 = _swig_new_instance_method(_FilletSurf.FilletSurf_InternalBuilder_PCurveOnFace1)
    PCurveOnFace2 = _swig_new_instance_method(_FilletSurf.FilletSurf_InternalBuilder_PCurveOnFace2)
    Perform = _swig_new_instance_method(_FilletSurf.FilletSurf_InternalBuilder_Perform)
    Section = _swig_new_instance_method(_FilletSurf.FilletSurf_InternalBuilder_Section)
    Simulate = _swig_new_instance_method(_FilletSurf.FilletSurf_InternalBuilder_Simulate)
    StartSectionStatus = _swig_new_instance_method(_FilletSurf.FilletSurf_InternalBuilder_StartSectionStatus)
    SupportFace1 = _swig_new_instance_method(_FilletSurf.FilletSurf_InternalBuilder_SupportFace1)
    SupportFace2 = _swig_new_instance_method(_FilletSurf.FilletSurf_InternalBuilder_SupportFace2)
    SurfaceFillet = _swig_new_instance_method(_FilletSurf.FilletSurf_InternalBuilder_SurfaceFillet)
    TolApp3d = _swig_new_instance_method(_FilletSurf.FilletSurf_InternalBuilder_TolApp3d)

    __repr__ = _dumps_object

    __swig_destroy__ = _FilletSurf.delete_FilletSurf_InternalBuilder

# Register FilletSurf_InternalBuilder in _FilletSurf:
_FilletSurf.FilletSurf_InternalBuilder_swigregister(FilletSurf_InternalBuilder)



