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

"""
BOPTools module, see official documentation at
https://dev.opencascade.org/doc/occt-7.9.0/refman/html/package_boptools.html
"""

from sys import version_info as _swig_python_version_info
# Import the low-level C/C++ module
if getattr(globals().get("__spec__"), "parent", None) or __package__ or "." in __name__:
    from . import _BOPTools
else:
    import _BOPTools

try:
    import builtins as __builtin__
except ImportError:
    import __builtin__

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 == "this":
            set(self, name, value)
        elif name == "thisown":
            self.this.own(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__ = _BOPTools.delete_SwigPyIterator

    def value(self):
        return _BOPTools.SwigPyIterator_value(self)

    def incr(self, n=1):
        return _BOPTools.SwigPyIterator_incr(self, n)

    def decr(self, n=1):
        return _BOPTools.SwigPyIterator_decr(self, n)

    def distance(self, x):
        return _BOPTools.SwigPyIterator_distance(self, x)

    def equal(self, x):
        return _BOPTools.SwigPyIterator_equal(self, x)

    def copy(self):
        return _BOPTools.SwigPyIterator_copy(self)

    def next(self):
        return _BOPTools.SwigPyIterator_next(self)

    def __next__(self):
        return _BOPTools.SwigPyIterator___next__(self)

    def previous(self):
        return _BOPTools.SwigPyIterator_previous(self)

    def advance(self, n):
        return _BOPTools.SwigPyIterator_advance(self, n)

    def __eq__(self, x):
        return _BOPTools.SwigPyIterator___eq__(self, x)

    def __ne__(self, x):
        return _BOPTools.SwigPyIterator___ne__(self, x)

    def __iadd__(self, n):
        return _BOPTools.SwigPyIterator___iadd__(self, n)

    def __isub__(self, n):
        return _BOPTools.SwigPyIterator___isub__(self, n)

    def __add__(self, n):
        return _BOPTools.SwigPyIterator___add__(self, n)

    def __sub__(self, *args):
        return _BOPTools.SwigPyIterator___sub__(self, *args)
    def __iter__(self):
        return self

# Register SwigPyIterator in _BOPTools:
_BOPTools.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


def process_exception(error, method_name, class_name):
    return _BOPTools.process_exception(error, method_name, class_name)

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

class ios_base(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")
    __repr__ = _swig_repr
    erase_event = _BOPTools.ios_base_erase_event
    imbue_event = _BOPTools.ios_base_imbue_event
    copyfmt_event = _BOPTools.ios_base_copyfmt_event

    def register_callback(self, __fn, __index):
        return _BOPTools.ios_base_register_callback(self, __fn, __index)

    def flags(self, *args):
        return _BOPTools.ios_base_flags(self, *args)

    def setf(self, *args):
        return _BOPTools.ios_base_setf(self, *args)

    def unsetf(self, __mask):
        return _BOPTools.ios_base_unsetf(self, __mask)

    def precision(self, *args):
        return _BOPTools.ios_base_precision(self, *args)

    def width(self, *args):
        return _BOPTools.ios_base_width(self, *args)

    @staticmethod
    def sync_with_stdio(__sync=True):
        return _BOPTools.ios_base_sync_with_stdio(__sync)

    def imbue(self, __loc):
        return _BOPTools.ios_base_imbue(self, __loc)

    def getloc(self):
        return _BOPTools.ios_base_getloc(self)

    @staticmethod
    def xalloc():
        return _BOPTools.ios_base_xalloc()

    def iword(self, __ix):
        return _BOPTools.ios_base_iword(self, __ix)

    def pword(self, __ix):
        return _BOPTools.ios_base_pword(self, __ix)
    __swig_destroy__ = _BOPTools.delete_ios_base

# Register ios_base in _BOPTools:
_BOPTools.ios_base_swigregister(ios_base)
cvar = _BOPTools.cvar
ios_base.boolalpha = _BOPTools.cvar.ios_base_boolalpha
ios_base.dec = _BOPTools.cvar.ios_base_dec
ios_base.fixed = _BOPTools.cvar.ios_base_fixed
ios_base.hex = _BOPTools.cvar.ios_base_hex
ios_base.internal = _BOPTools.cvar.ios_base_internal
ios_base.left = _BOPTools.cvar.ios_base_left
ios_base.oct = _BOPTools.cvar.ios_base_oct
ios_base.right = _BOPTools.cvar.ios_base_right
ios_base.scientific = _BOPTools.cvar.ios_base_scientific
ios_base.showbase = _BOPTools.cvar.ios_base_showbase
ios_base.showpoint = _BOPTools.cvar.ios_base_showpoint
ios_base.showpos = _BOPTools.cvar.ios_base_showpos
ios_base.skipws = _BOPTools.cvar.ios_base_skipws
ios_base.unitbuf = _BOPTools.cvar.ios_base_unitbuf
ios_base.uppercase = _BOPTools.cvar.ios_base_uppercase
ios_base.adjustfield = _BOPTools.cvar.ios_base_adjustfield
ios_base.basefield = _BOPTools.cvar.ios_base_basefield
ios_base.floatfield = _BOPTools.cvar.ios_base_floatfield
ios_base.badbit = _BOPTools.cvar.ios_base_badbit
ios_base.eofbit = _BOPTools.cvar.ios_base_eofbit
ios_base.failbit = _BOPTools.cvar.ios_base_failbit
ios_base.goodbit = _BOPTools.cvar.ios_base_goodbit
ios_base.app = _BOPTools.cvar.ios_base_app
ios_base.ate = _BOPTools.cvar.ios_base_ate
ios_base.binary = _BOPTools.cvar.ios_base_binary
ios_base.ios_base_in = _BOPTools.cvar.ios_base_ios_base_in
ios_base.out = _BOPTools.cvar.ios_base_out
ios_base.trunc = _BOPTools.cvar.ios_base_trunc
ios_base.beg = _BOPTools.cvar.ios_base_beg
ios_base.cur = _BOPTools.cvar.ios_base_cur
ios_base.end = _BOPTools.cvar.ios_base_end

class ios(ios_base):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr

    def rdstate(self):
        return _BOPTools.ios_rdstate(self)

    def clear(self, *args):
        return _BOPTools.ios_clear(self, *args)

    def setstate(self, __state):
        return _BOPTools.ios_setstate(self, __state)

    def good(self):
        return _BOPTools.ios_good(self)

    def eof(self):
        return _BOPTools.ios_eof(self)

    def fail(self):
        return _BOPTools.ios_fail(self)

    def bad(self):
        return _BOPTools.ios_bad(self)

    def exceptions(self, *args):
        return _BOPTools.ios_exceptions(self, *args)

    def __init__(self, __sb):
        _BOPTools.ios_swiginit(self, _BOPTools.new_ios(__sb))
    __swig_destroy__ = _BOPTools.delete_ios

    def tie(self, *args):
        return _BOPTools.ios_tie(self, *args)

    def rdbuf(self, *args):
        return _BOPTools.ios_rdbuf(self, *args)

    def copyfmt(self, __rhs):
        return _BOPTools.ios_copyfmt(self, __rhs)

    def fill(self, *args):
        return _BOPTools.ios_fill(self, *args)

    def imbue(self, __loc):
        return _BOPTools.ios_imbue(self, __loc)

    def narrow(self, __c, __dfault):
        return _BOPTools.ios_narrow(self, __c, __dfault)

    def widen(self, __c):
        return _BOPTools.ios_widen(self, __c)

# Register ios in _BOPTools:
_BOPTools.ios_swigregister(ios)
class ostream(ios):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr

    def __init__(self, __sb):
        _BOPTools.ostream_swiginit(self, _BOPTools.new_ostream(__sb))
    __swig_destroy__ = _BOPTools.delete_ostream

    def __lshift__(self, *args):
        return _BOPTools.ostream___lshift__(self, *args)

    def put(self, __c):
        return _BOPTools.ostream_put(self, __c)

    def write(self, __s, __n):
        return _BOPTools.ostream_write(self, __s, __n)

    def flush(self):
        return _BOPTools.ostream_flush(self)

    def tellp(self):
        return _BOPTools.ostream_tellp(self)

    def seekp(self, *args):
        return _BOPTools.ostream_seekp(self, *args)

# Register ostream in _BOPTools:
_BOPTools.ostream_swigregister(ostream)
class istream(ios):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr

    def __init__(self, __sb):
        _BOPTools.istream_swiginit(self, _BOPTools.new_istream(__sb))
    __swig_destroy__ = _BOPTools.delete_istream

    def __rshift__(self, *args):
        return _BOPTools.istream___rshift__(self, *args)

    def gcount(self):
        return _BOPTools.istream_gcount(self)

    def get(self, *args):
        return _BOPTools.istream_get(self, *args)

    def getline(self, *args):
        return _BOPTools.istream_getline(self, *args)

    def ignore(self, *args):
        return _BOPTools.istream_ignore(self, *args)

    def peek(self):
        return _BOPTools.istream_peek(self)

    def read(self, __s, __n):
        return _BOPTools.istream_read(self, __s, __n)

    def readsome(self, __s, __n):
        return _BOPTools.istream_readsome(self, __s, __n)

    def putback(self, __c):
        return _BOPTools.istream_putback(self, __c)

    def unget(self):
        return _BOPTools.istream_unget(self)

    def sync(self):
        return _BOPTools.istream_sync(self)

    def tellg(self):
        return _BOPTools.istream_tellg(self)

    def seekg(self, *args):
        return _BOPTools.istream_seekg(self, *args)

# Register istream in _BOPTools:
_BOPTools.istream_swigregister(istream)
class iostream(istream, ostream):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr

    def __init__(self, __sb):
        _BOPTools.iostream_swiginit(self, _BOPTools.new_iostream(__sb))
    __swig_destroy__ = _BOPTools.delete_iostream

# Register iostream in _BOPTools:
_BOPTools.iostream_swigregister(iostream)
cin = cvar.cin
cout = cvar.cout
cerr = cvar.cerr
clog = cvar.clog

endl_cb_ptr = _BOPTools.endl_cb_ptr
endl = _BOPTools.endl
ends_cb_ptr = _BOPTools.ends_cb_ptr
ends = _BOPTools.ends
flush_cb_ptr = _BOPTools.flush_cb_ptr
flush = _BOPTools.flush
import OCC.Core.Standard
import OCC.Core.NCollection
import OCC.Core.TopoDS
import OCC.Core.Message
import OCC.Core.TCollection
import OCC.Core.OSD
import OCC.Core.TColStd
import OCC.Core.TopAbs
import OCC.Core.TopLoc
import OCC.Core.gp
import OCC.Core.IntTools
import OCC.Core.BRepAdaptor
import OCC.Core.Adaptor3d
import OCC.Core.Geom
import OCC.Core.GeomAbs
import OCC.Core.TColgp
import OCC.Core.Adaptor2d
import OCC.Core.Geom2d
import OCC.Core.math
import OCC.Core.Geom2dAdaptor
import OCC.Core.GeomAdaptor
import OCC.Core.Bnd
import OCC.Core.BVH
import OCC.Core.Geom2dHatch
import OCC.Core.IntRes2d
import OCC.Core.HatchGen
import OCC.Core.Geom2dInt
import OCC.Core.IntCurve
import OCC.Core.Extrema
import OCC.Core.Intf
import OCC.Core.GeomAPI
import OCC.Core.Approx
import OCC.Core.AppCont
import OCC.Core.AppParCurves
import OCC.Core.BRepClass3d
import OCC.Core.IntCurveSurface
import OCC.Core.IntSurf
import OCC.Core.TopTools
import OCC.Core.IntCurvesFace
import OCC.Core.IntPatch
import OCC.Core.IntAna
import OCC.Core.GeomInt
import OCC.Core.IntImp
import OCC.Core.ApproxInt

from enum import IntEnum
from OCC.Core.Exception import *



class BOPTools_IndexedDataMapOfSetShape(OCC.Core.NCollection.NCollection_BaseMap):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr

    def begin(self):
        return _BOPTools.BOPTools_IndexedDataMapOfSetShape_begin(self)

    def end(self):
        return _BOPTools.BOPTools_IndexedDataMapOfSetShape_end(self)

    def cbegin(self):
        return _BOPTools.BOPTools_IndexedDataMapOfSetShape_cbegin(self)

    def cend(self):
        return _BOPTools.BOPTools_IndexedDataMapOfSetShape_cend(self)

    def __init__(self, *args):
        _BOPTools.BOPTools_IndexedDataMapOfSetShape_swiginit(self, _BOPTools.new_BOPTools_IndexedDataMapOfSetShape(*args))

    def Exchange(self, theOther):
        return _BOPTools.BOPTools_IndexedDataMapOfSetShape_Exchange(self, theOther)

    def Assign(self, theOther):
        return _BOPTools.BOPTools_IndexedDataMapOfSetShape_Assign(self, theOther)

    def Set(self, *args):
        return _BOPTools.BOPTools_IndexedDataMapOfSetShape_Set(self, *args)

    def ReSize(self, N):
        return _BOPTools.BOPTools_IndexedDataMapOfSetShape_ReSize(self, N)

    def Add(self, *args):
        return _BOPTools.BOPTools_IndexedDataMapOfSetShape_Add(self, *args)

    def Contains(self, theKey1):
        return _BOPTools.BOPTools_IndexedDataMapOfSetShape_Contains(self, theKey1)

    def Substitute(self, theIndex, theKey1, theItem):
        return _BOPTools.BOPTools_IndexedDataMapOfSetShape_Substitute(self, theIndex, theKey1, theItem)

    def Swap(self, theIndex1, theIndex2):
        return _BOPTools.BOPTools_IndexedDataMapOfSetShape_Swap(self, theIndex1, theIndex2)

    def RemoveLast(self):
        return _BOPTools.BOPTools_IndexedDataMapOfSetShape_RemoveLast(self)

    def RemoveFromIndex(self, theIndex):
        return _BOPTools.BOPTools_IndexedDataMapOfSetShape_RemoveFromIndex(self, theIndex)

    def RemoveKey(self, theKey1):
        return _BOPTools.BOPTools_IndexedDataMapOfSetShape_RemoveKey(self, theKey1)

    def FindKey(self, theIndex):
        return _BOPTools.BOPTools_IndexedDataMapOfSetShape_FindKey(self, theIndex)

    def FindFromIndex(self, theIndex):
        return _BOPTools.BOPTools_IndexedDataMapOfSetShape_FindFromIndex(self, theIndex)

    def ChangeFromIndex(self, theIndex):
        return _BOPTools.BOPTools_IndexedDataMapOfSetShape_ChangeFromIndex(self, theIndex)

    def __call__(self, *args):
        return _BOPTools.BOPTools_IndexedDataMapOfSetShape___call__(self, *args)

    def FindIndex(self, theKey1):
        return _BOPTools.BOPTools_IndexedDataMapOfSetShape_FindIndex(self, theKey1)

    def ChangeFromKey(self, theKey1):
        return _BOPTools.BOPTools_IndexedDataMapOfSetShape_ChangeFromKey(self, theKey1)

    def Seek(self, theKey1):
        return _BOPTools.BOPTools_IndexedDataMapOfSetShape_Seek(self, theKey1)

    def ChangeSeek(self, theKey1):
        return _BOPTools.BOPTools_IndexedDataMapOfSetShape_ChangeSeek(self, theKey1)

    def FindFromKey(self, *args):
        return _BOPTools.BOPTools_IndexedDataMapOfSetShape_FindFromKey(self, *args)

    def Clear(self, *args):
        return _BOPTools.BOPTools_IndexedDataMapOfSetShape_Clear(self, *args)
    __swig_destroy__ = _BOPTools.delete_BOPTools_IndexedDataMapOfSetShape

    def Size(self):
        return _BOPTools.BOPTools_IndexedDataMapOfSetShape_Size(self)

# Register BOPTools_IndexedDataMapOfSetShape in _BOPTools:
_BOPTools.BOPTools_IndexedDataMapOfSetShape_swigregister(BOPTools_IndexedDataMapOfSetShape)
class BOPTools_ListOfConnexityBlock(OCC.Core.NCollection.NCollection_BaseList):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr

    def begin(self):
        return _BOPTools.BOPTools_ListOfConnexityBlock_begin(self)

    def end(self):
        return _BOPTools.BOPTools_ListOfConnexityBlock_end(self)

    def cbegin(self):
        return _BOPTools.BOPTools_ListOfConnexityBlock_cbegin(self)

    def cend(self):
        return _BOPTools.BOPTools_ListOfConnexityBlock_cend(self)

    def __init__(self, *args):
        _BOPTools.BOPTools_ListOfConnexityBlock_swiginit(self, _BOPTools.new_BOPTools_ListOfConnexityBlock(*args))

    def Size(self):
        return _BOPTools.BOPTools_ListOfConnexityBlock_Size(self)

    def Assign(self, theOther):
        return _BOPTools.BOPTools_ListOfConnexityBlock_Assign(self, theOther)

    def Set(self, *args):
        return _BOPTools.BOPTools_ListOfConnexityBlock_Set(self, *args)

    def Clear(self, theAllocator=0):
        return _BOPTools.BOPTools_ListOfConnexityBlock_Clear(self, theAllocator)

    def First(self):
        return _BOPTools.BOPTools_ListOfConnexityBlock_First(self)

    def Last(self):
        return _BOPTools.BOPTools_ListOfConnexityBlock_Last(self)

    def Append(self, *args):
        return _BOPTools.BOPTools_ListOfConnexityBlock_Append(self, *args)

    def Prepend(self, *args):
        return _BOPTools.BOPTools_ListOfConnexityBlock_Prepend(self, *args)

    def RemoveFirst(self):
        return _BOPTools.BOPTools_ListOfConnexityBlock_RemoveFirst(self)

    def Remove(self, theIter):
        return _BOPTools.BOPTools_ListOfConnexityBlock_Remove(self, theIter)

    def InsertBefore(self, *args):
        return _BOPTools.BOPTools_ListOfConnexityBlock_InsertBefore(self, *args)

    def InsertAfter(self, *args):
        return _BOPTools.BOPTools_ListOfConnexityBlock_InsertAfter(self, *args)

    def Reverse(self):
        return _BOPTools.BOPTools_ListOfConnexityBlock_Reverse(self)
    __swig_destroy__ = _BOPTools.delete_BOPTools_ListOfConnexityBlock

    def __len__(self):
        return self.Size()


# Register BOPTools_ListOfConnexityBlock in _BOPTools:
_BOPTools.BOPTools_ListOfConnexityBlock_swigregister(BOPTools_ListOfConnexityBlock)
class BOPTools_ListOfCoupleOfShape(OCC.Core.NCollection.NCollection_BaseList):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr

    def begin(self):
        return _BOPTools.BOPTools_ListOfCoupleOfShape_begin(self)

    def end(self):
        return _BOPTools.BOPTools_ListOfCoupleOfShape_end(self)

    def cbegin(self):
        return _BOPTools.BOPTools_ListOfCoupleOfShape_cbegin(self)

    def cend(self):
        return _BOPTools.BOPTools_ListOfCoupleOfShape_cend(self)

    def __init__(self, *args):
        _BOPTools.BOPTools_ListOfCoupleOfShape_swiginit(self, _BOPTools.new_BOPTools_ListOfCoupleOfShape(*args))

    def Size(self):
        return _BOPTools.BOPTools_ListOfCoupleOfShape_Size(self)

    def Assign(self, theOther):
        return _BOPTools.BOPTools_ListOfCoupleOfShape_Assign(self, theOther)

    def Set(self, *args):
        return _BOPTools.BOPTools_ListOfCoupleOfShape_Set(self, *args)

    def Clear(self, theAllocator=0):
        return _BOPTools.BOPTools_ListOfCoupleOfShape_Clear(self, theAllocator)

    def First(self):
        return _BOPTools.BOPTools_ListOfCoupleOfShape_First(self)

    def Last(self):
        return _BOPTools.BOPTools_ListOfCoupleOfShape_Last(self)

    def Append(self, *args):
        return _BOPTools.BOPTools_ListOfCoupleOfShape_Append(self, *args)

    def Prepend(self, *args):
        return _BOPTools.BOPTools_ListOfCoupleOfShape_Prepend(self, *args)

    def RemoveFirst(self):
        return _BOPTools.BOPTools_ListOfCoupleOfShape_RemoveFirst(self)

    def Remove(self, theIter):
        return _BOPTools.BOPTools_ListOfCoupleOfShape_Remove(self, theIter)

    def InsertBefore(self, *args):
        return _BOPTools.BOPTools_ListOfCoupleOfShape_InsertBefore(self, *args)

    def InsertAfter(self, *args):
        return _BOPTools.BOPTools_ListOfCoupleOfShape_InsertAfter(self, *args)

    def Reverse(self):
        return _BOPTools.BOPTools_ListOfCoupleOfShape_Reverse(self)
    __swig_destroy__ = _BOPTools.delete_BOPTools_ListOfCoupleOfShape

    def __len__(self):
        return self.Size()


# Register BOPTools_ListOfCoupleOfShape in _BOPTools:
_BOPTools.BOPTools_ListOfCoupleOfShape_swigregister(BOPTools_ListOfCoupleOfShape)
class BOPTools_MapOfSet(OCC.Core.NCollection.NCollection_BaseMap):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr

    def cbegin(self):
        return _BOPTools.BOPTools_MapOfSet_cbegin(self)

    def cend(self):
        return _BOPTools.BOPTools_MapOfSet_cend(self)

    def __init__(self, *args):
        _BOPTools.BOPTools_MapOfSet_swiginit(self, _BOPTools.new_BOPTools_MapOfSet(*args))

    def Exchange(self, theOther):
        return _BOPTools.BOPTools_MapOfSet_Exchange(self, theOther)

    def Assign(self, theOther):
        return _BOPTools.BOPTools_MapOfSet_Assign(self, theOther)

    def Set(self, *args):
        return _BOPTools.BOPTools_MapOfSet_Set(self, *args)

    def ReSize(self, N):
        return _BOPTools.BOPTools_MapOfSet_ReSize(self, N)

    def Add(self, *args):
        return _BOPTools.BOPTools_MapOfSet_Add(self, *args)

    def Added(self, *args):
        return _BOPTools.BOPTools_MapOfSet_Added(self, *args)

    def Remove(self, K):
        return _BOPTools.BOPTools_MapOfSet_Remove(self, K)

    def Clear(self, *args):
        return _BOPTools.BOPTools_MapOfSet_Clear(self, *args)
    __swig_destroy__ = _BOPTools.delete_BOPTools_MapOfSet

    def Size(self):
        return _BOPTools.BOPTools_MapOfSet_Size(self)

    def IsEqual(self, theOther):
        return _BOPTools.BOPTools_MapOfSet_IsEqual(self, theOther)

    def Contains(self, *args):
        return _BOPTools.BOPTools_MapOfSet_Contains(self, *args)

    def Union(self, theLeft, theRight):
        return _BOPTools.BOPTools_MapOfSet_Union(self, theLeft, theRight)

    def Unite(self, theOther):
        return _BOPTools.BOPTools_MapOfSet_Unite(self, theOther)

    def HasIntersection(self, theMap):
        return _BOPTools.BOPTools_MapOfSet_HasIntersection(self, theMap)

    def Intersection(self, theLeft, theRight):
        return _BOPTools.BOPTools_MapOfSet_Intersection(self, theLeft, theRight)

    def Intersect(self, theOther):
        return _BOPTools.BOPTools_MapOfSet_Intersect(self, theOther)

    def Subtraction(self, theLeft, theRight):
        return _BOPTools.BOPTools_MapOfSet_Subtraction(self, theLeft, theRight)

    def Subtract(self, theOther):
        return _BOPTools.BOPTools_MapOfSet_Subtract(self, theOther)

    def Difference(self, theLeft, theRight):
        return _BOPTools.BOPTools_MapOfSet_Difference(self, theLeft, theRight)

    def Differ(self, theOther):
        return _BOPTools.BOPTools_MapOfSet_Differ(self, theOther)

# Register BOPTools_MapOfSet in _BOPTools:
_BOPTools.BOPTools_MapOfSet_swigregister(BOPTools_MapOfSet)
class BOPTools_AlgoTools(object):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr

    @staticmethod
    def AreFacesSameDomain(*args):
        r"""

        Parameters
        ----------
        theF1: TopoDS_Face
        theF2: TopoDS_Face
        theContext: IntTools_Context
        theFuzz: float (optional, default to Precision::Confusion())

        Return
        -------
        bool

        Description
        -----------
        Checking if the faces are coinciding Checks if the given faces are same-domain, i.e. coincide.

        """
        return _BOPTools.BOPTools_AlgoTools_AreFacesSameDomain(*args)

    @staticmethod
    def ComputeState(*args):
        r"""

        Parameters
        ----------
        thePoint: gp_Pnt
        theSolid: TopoDS_Solid
        theTol: float
        theContext: IntTools_Context

        Return
        -------
        TopAbs_State

        Description
        -----------
        Computes the 3-D state of the point thePoint toward solid theSolid. theTol - value of precision of computation theContext- cached geometrical tools Returns 3-D state.

        Parameters
        ----------
        theVertex: TopoDS_Vertex
        theSolid: TopoDS_Solid
        theTol: float
        theContext: IntTools_Context

        Return
        -------
        TopAbs_State

        Description
        -----------
        Computes the 3-D state of the vertex theVertex toward solid theSolid. theTol - value of precision of computation theContext- cached geometrical tools Returns 3-D state.

        Parameters
        ----------
        theEdge: TopoDS_Edge
        theSolid: TopoDS_Solid
        theTol: float
        theContext: IntTools_Context

        Return
        -------
        TopAbs_State

        Description
        -----------
        Computes the 3-D state of the edge theEdge toward solid theSolid. theTol - value of precision of computation theContext- cached geometrical tools Returns 3-D state.

        Parameters
        ----------
        theFace: TopoDS_Face
        theSolid: TopoDS_Solid
        theTol: float
        theBounds: TopTools_IndexedMapOfShape
        theContext: IntTools_Context

        Return
        -------
        TopAbs_State

        Description
        -----------
        Computes the 3-D state of the face theFace toward solid theSolid. theTol - value of precision of computation theBounds - set of edges of <theSolid> to avoid theContext- cached geometrical tools Returns 3-D state.

        """
        return _BOPTools.BOPTools_AlgoTools_ComputeState(*args)

    @staticmethod
    def ComputeStateByOnePoint(*args):
        r"""

        Parameters
        ----------
        theShape: TopoDS_Shape
        theSolid: TopoDS_Solid
        theTol: float
        theContext: IntTools_Context

        Return
        -------
        TopAbs_State

        Description
        -----------
        Computes the 3-D state of the shape theShape toward solid theSolid. theTol - value of precision of computation theContext- cached geometrical tools Returns 3-D state.

        """
        return _BOPTools.BOPTools_AlgoTools_ComputeStateByOnePoint(*args)

    @staticmethod
    def ComputeTolerance(*args):
        r"""

        Parameters
        ----------
        theFace: TopoDS_Face
        theEdge: TopoDS_Edge

        Return
        -------
        theMaxDist: float
        theMaxPar: float

        Description
        -----------
        Computes the necessary value of the tolerance for the edge.

        """
        return _BOPTools.BOPTools_AlgoTools_ComputeTolerance(*args)

    @staticmethod
    def ComputeVV(*args):
        r"""

        Parameters
        ----------
        theV: TopoDS_Vertex
        theP: gp_Pnt
        theTolP: float

        Return
        -------
        int

        Description
        -----------
        Intersects the vertex <theV1> with the point <theP> with tolerance <theTolP>. Returns the error status: - 0 - no error, meaning that the vertex intersects the point; - 1 - the distance between vertex and point is grater than the sum of tolerances.

        Parameters
        ----------
        theV1: TopoDS_Vertex
        theV2: TopoDS_Vertex
        theFuzz: float (optional, default to Precision::Confusion())

        Return
        -------
        int

        Description
        -----------
        Intersects the given vertices with given fuzzy value. Returns the error status: - 0 - no error, meaning that the vertices interferes with given tolerance; - 1 - the distance between vertices is grater than the sum of their tolerances.

        """
        return _BOPTools.BOPTools_AlgoTools_ComputeVV(*args)

    @staticmethod
    def CopyEdge(*args):
        r"""

        Parameters
        ----------
        theEdge: TopoDS_Edge

        Return
        -------
        TopoDS_Edge

        Description
        -----------
        Makes a copy of <theEdge> with vertices.

        """
        return _BOPTools.BOPTools_AlgoTools_CopyEdge(*args)

    @staticmethod
    def CorrectCurveOnSurface(*args):
        r"""

        Parameters
        ----------
        theS: TopoDS_Shape
        theMapToAvoid: TopTools_IndexedMapOfShape
        theTolMax: float (optional, default to 0.0001)
        theRunParallel: bool (optional, default to Standard_False)

        Return
        -------
        None

        Description
        -----------
        Provides valid values of tolerances for the shape <theS> in terms of BRepCheck_InvalidCurveOnSurface.

        """
        return _BOPTools.BOPTools_AlgoTools_CorrectCurveOnSurface(*args)

    @staticmethod
    def CorrectPointOnCurve(*args):
        r"""

        Parameters
        ----------
        theS: TopoDS_Shape
        theMapToAvoid: TopTools_IndexedMapOfShape
        theTolMax: float (optional, default to 0.0001)
        theRunParallel: bool (optional, default to Standard_False)

        Return
        -------
        None

        Description
        -----------
        Provides valid values of tolerances for the shape <theS> in terms of BRepCheck_InvalidPointOnCurve.

        """
        return _BOPTools.BOPTools_AlgoTools_CorrectPointOnCurve(*args)

    @staticmethod
    def CorrectRange(*args):
        r"""

        Parameters
        ----------
        aE1: TopoDS_Edge
        aE2: TopoDS_Edge
        aSR: IntTools_Range
        aNewSR: IntTools_Range

        Return
        -------
        None

        Description
        -----------
        Correct shrunk range <aSR> taking into account 3D-curve resolution and corresponding tolerance values of <aE1>, <aE2>.

        Parameters
        ----------
        aE: TopoDS_Edge
        aF: TopoDS_Face
        aSR: IntTools_Range
        aNewSR: IntTools_Range

        Return
        -------
        None

        Description
        -----------
        Correct shrunk range <aSR> taking into account 3D-curve resolution and corresponding tolerance values of <aE>, <aF>.

        """
        return _BOPTools.BOPTools_AlgoTools_CorrectRange(*args)

    @staticmethod
    def CorrectShapeTolerances(*args):
        r"""

        Parameters
        ----------
        theS: TopoDS_Shape
        theMapToAvoid: TopTools_IndexedMapOfShape
        theRunParallel: bool (optional, default to Standard_False)

        Return
        -------
        None

        Description
        -----------
        Corrects tolerance values of the sub-shapes of the shape <theS> if needed.

        """
        return _BOPTools.BOPTools_AlgoTools_CorrectShapeTolerances(*args)

    @staticmethod
    def CorrectTolerances(*args):
        r"""

        Parameters
        ----------
        theS: TopoDS_Shape
        theMapToAvoid: TopTools_IndexedMapOfShape
        theTolMax: float (optional, default to 0.0001)
        theRunParallel: bool (optional, default to Standard_False)

        Return
        -------
        None

        Description
        -----------
        Provides valid values of tolerances for the shape <theS> <theTolMax> is max value of the tolerance that can be accepted for correction. If real value of the tolerance will be greater than <aTolMax>, the correction does not perform.

        """
        return _BOPTools.BOPTools_AlgoTools_CorrectTolerances(*args)

    @staticmethod
    def DTolerance(*args):
        r"""
        Return
        -------
        float

        Description
        -----------
        Additional tolerance (delta tolerance) is used in Boolean Operations to ensure that the tolerance of new/old entities obtained by intersection of two shapes is slightly bigger than the actual distances to these shapes. It helps to avoid numerical instability which may occur when comparing distances and tolerances.

        """
        return _BOPTools.BOPTools_AlgoTools_DTolerance(*args)

    @staticmethod
    def Dimension(*args):
        r"""

        Parameters
        ----------
        theS: TopoDS_Shape

        Return
        -------
        int

        Description
        -----------
        Returns dimension of the shape <theS>. If the shape contains elements of different dimension, -1 is returned.

        """
        return _BOPTools.BOPTools_AlgoTools_Dimension(*args)

    @staticmethod
    def Dimensions(*args):
        r"""

        Parameters
        ----------
        theS: TopoDS_Shape

        Return
        -------
        theDMin: int
        theDMax: int

        Description
        -----------
        Returns the min and max dimensions of the shape <theS>.

        """
        return _BOPTools.BOPTools_AlgoTools_Dimensions(*args)

    @staticmethod
    def GetEdgeOff(*args):
        r"""

        Parameters
        ----------
        theEdge: TopoDS_Edge
        theFace: TopoDS_Face
        theEdgeOff: TopoDS_Edge

        Return
        -------
        bool

        Description
        -----------
        Returns True if the face theFace contains the edge theEdge but with opposite orientation. If the method returns True theEdgeOff is the edge founded.

        """
        return _BOPTools.BOPTools_AlgoTools_GetEdgeOff(*args)

    @staticmethod
    def GetEdgeOnFace(*args):
        r"""

        Parameters
        ----------
        theEdge: TopoDS_Edge
        theFace: TopoDS_Face
        theEdgeOnF: TopoDS_Edge

        Return
        -------
        bool

        Description
        -----------
        For the face theFace gets the edge theEdgeOnF that is the same as theEdge Returns True if such edge exists Returns False if there is no such edge.

        """
        return _BOPTools.BOPTools_AlgoTools_GetEdgeOnFace(*args)

    @staticmethod
    def GetFaceOff(*args):
        r"""

        Parameters
        ----------
        theEdge: TopoDS_Edge
        theFace: TopoDS_Face
        theLCEF: BOPTools_ListOfCoupleOfShape
        theFaceOff: TopoDS_Face
        theContext: IntTools_Context

        Return
        -------
        bool

        Description
        -----------
        For the face theFace and its edge theEdge finds the face suitable to produce shell. theLCEF - set of faces to search. All faces from theLCEF must share edge theEdge.

        """
        return _BOPTools.BOPTools_AlgoTools_GetFaceOff(*args)

    @staticmethod
    def IsBlockInOnFace(*args):
        r"""

        Parameters
        ----------
        aShR: IntTools_Range
        aF: TopoDS_Face
        aE: TopoDS_Edge
        aContext: IntTools_Context

        Return
        -------
        bool

        Description
        -----------
        Returns True if PaveBlock <aPB> lays on the face <aF>, i.e the <PB> is IN or ON in 2D of <aF>.

        """
        return _BOPTools.BOPTools_AlgoTools_IsBlockInOnFace(*args)

    @staticmethod
    def IsHole(*args):
        r"""

        Parameters
        ----------
        theW: TopoDS_Shape
        theF: TopoDS_Shape

        Return
        -------
        bool

        Description
        -----------
        Checks if the wire is a hole for the face.

        """
        return _BOPTools.BOPTools_AlgoTools_IsHole(*args)

    @staticmethod
    def IsInternalFace(*args):
        r"""

        Parameters
        ----------
        theFace: TopoDS_Face
        theEdge: TopoDS_Edge
        theFace1: TopoDS_Face
        theFace2: TopoDS_Face
        theContext: IntTools_Context

        Return
        -------
        int

        Description
        -----------
        Returns True if the face theFace is inside of the couple of faces theFace1, theFace2. The faces theFace, theFace1, theFace2 must share the edge theEdge Return values: * 0 state is not IN * 1 state is IN * 2 state can not be found by the method of angles.

        Parameters
        ----------
        theFace: TopoDS_Face
        theEdge: TopoDS_Edge
        theLF: TopTools_ListOfShape
        theContext: IntTools_Context

        Return
        -------
        int

        Description
        -----------
        Returns True if the face theFace is inside of the appropriate couple of faces (from the set theLF) . The faces of the set theLF and theFace must share the edge theEdge * 0 state is not IN * 1 state is IN * 2 state can not be found by the method of angles.

        Parameters
        ----------
        theFace: TopoDS_Face
        theSolid: TopoDS_Solid
        theMEF: TopTools_IndexedDataMapOfShapeListOfShape
        theTol: float
        theContext: IntTools_Context

        Return
        -------
        bool

        Description
        -----------
        Returns True if the face theFace is inside the solid theSolid. theMEF - Map Edge/Faces for theSolid theTol - value of precision of computation theContext- cached geometrical tools.

        """
        return _BOPTools.BOPTools_AlgoTools_IsInternalFace(*args)

    @staticmethod
    def IsInvertedSolid(*args):
        r"""

        Parameters
        ----------
        theSolid: TopoDS_Solid

        Return
        -------
        bool

        Description
        -----------
        Returns true if the solid <theSolid> is inverted.

        """
        return _BOPTools.BOPTools_AlgoTools_IsInvertedSolid(*args)

    @staticmethod
    def IsMicroEdge(*args):
        r"""

        Parameters
        ----------
        theEdge: TopoDS_Edge
        theContext: IntTools_Context
        theCheckSplittable: bool (optional, default to Standard_True)

        Return
        -------
        bool

        Description
        -----------
        Checks if it is possible to compute shrunk range for the edge <aE> Flag <theCheckSplittable> defines whether to take into account the possibility to split the edge or not.

        """
        return _BOPTools.BOPTools_AlgoTools_IsMicroEdge(*args)

    @staticmethod
    def IsOpenShell(*args):
        r"""

        Parameters
        ----------
        theShell: TopoDS_Shell

        Return
        -------
        bool

        Description
        -----------
        Returns true if the shell <theShell> is open.

        """
        return _BOPTools.BOPTools_AlgoTools_IsOpenShell(*args)

    @staticmethod
    def IsSplitToReverse(*args):
        r"""

        Parameters
        ----------
        theSplit: TopoDS_Shape
        theShape: TopoDS_Shape
        theContext: IntTools_Context
        theError: int * (optional, default to NULL)

        Return
        -------
        bool

        Description
        -----------
        Checks if the direction of the split shape is opposite to the direction of the original shape. The method is an overload for (Edge,Edge) and (Face,Face) corresponding methods and checks only these types of shapes. For faces the method checks if normal directions are opposite. For edges the method checks if tangent vectors are opposite. //! In case the directions do not coincide, it returns True, meaning that split shape has to be reversed to match the direction of the original shape. //! If requested (<theError> is not null), the method returns the status of the operation: - 0 - no error; - Error from (Edge,Edge) or (Face,Face) corresponding method - 100 - bad types. In case of any error the method always returns False. //! 
        Input parameter: theSplit Split shape 
        Input parameter: theShape Original shape 
        Input parameter: theContext cached geometrical tools @param[out] theError Error Status of the operation.

        Parameters
        ----------
        theSplit: TopoDS_Face
        theShape: TopoDS_Face
        theContext: IntTools_Context
        theError: int * (optional, default to NULL)

        Return
        -------
        bool

        Description
        -----------
        Checks if the normal direction of the split face is opposite to the normal direction of the original face. The normal directions for both faces are taken in the same point - point inside the split face is projected onto the original face. Returns True if the normals do not coincide, meaning the necessity to revert the orientation of the split face to match the direction of the original face. //! If requested (<theError> is not null), the method returns the status of the operation: - 0 - no error; - 1 - unable to find the point inside split face; - 2 - unable to compute the normal for the split face; - 3 - unable to project the point inside the split face on the original face; - 4 - unable to compute the normal for the original face. In case of any error the method always returns False. //! 
        Input parameter: theSplit Split face 
        Input parameter: theShape Original face 
        Input parameter: theContext cached geometrical tools @param[out] theError Error Status of the operation.

        Parameters
        ----------
        theSplit: TopoDS_Edge
        theShape: TopoDS_Edge
        theContext: IntTools_Context
        theError: int * (optional, default to NULL)

        Return
        -------
        bool

        Description
        -----------
        Checks if the tangent vector of the split edge is opposite to the tangent vector of the original edge. The tangent vectors for both edges are computed in the same point - point inside the split edge is projected onto the original edge. Returns True if the tangent vectors do not coincide, meaning the necessity to revert the orientation of the split edge to match the direction of the original edge. //! If requested (<theError> is not null), the method returns the status of the operation: - 0 - no error; - 1 - degenerated edges are given; - 2 - unable to compute the tangent vector for the split edge; - 3 - unable to project the point inside the split edge on the original edge; - 4 - unable to compute the tangent vector for the original edge; In case of any error the method always returns False. //! 
        Input parameter: theSplit Split edge 
        Input parameter: theShape Original edge 
        Input parameter: theContext cached geometrical tools @param[out] theError Error Status of the operation.

        """
        return _BOPTools.BOPTools_AlgoTools_IsSplitToReverse(*args)

    @staticmethod
    def IsSplitToReverseWithWarn(*args):
        r"""

        Parameters
        ----------
        theSplit: TopoDS_Shape
        theShape: TopoDS_Shape
        theContext: IntTools_Context
        theReport: Message_Report (optional, default to NULL)

        Return
        -------
        bool

        Description
        -----------
        Add-on for the *IsSplitToReverse()* to check for its errors and in case of any add the *BOPAlgo_AlertUnableToOrientTheShape* warning to the report.

        """
        return _BOPTools.BOPTools_AlgoTools_IsSplitToReverseWithWarn(*args)

    @staticmethod
    def MakeConnexityBlock(*args):
        r"""

        Parameters
        ----------
        theLS: TopTools_ListOfShape
        theMapAvoid: TopTools_IndexedMapOfShape
        theLSCB: TopTools_ListOfShape
        theAllocator: NCollection_BaseAllocator

        Return
        -------
        None

        Description
        -----------
        For the list of faces theLS build block theLSCB in terms of connexity by edges theMapAvoid - set of edges to avoid for the treatment.

        """
        return _BOPTools.BOPTools_AlgoTools_MakeConnexityBlock(*args)

    @staticmethod
    def MakeConnexityBlocks(*args):
        r"""

        Parameters
        ----------
        theS: TopoDS_Shape
        theConnectionType: TopAbs_ShapeEnum
        theElementType: TopAbs_ShapeEnum
        theLCB: TopTools_ListOfShape

        Return
        -------
        None

        Description
        -----------
        For the compound <theS> builds the blocks (compounds) of elements of type <theElementType> connected through the shapes of the type <theConnectionType>. The blocks are stored into the list <theLCB>.

        Parameters
        ----------
        theS: TopoDS_Shape
        theConnectionType: TopAbs_ShapeEnum
        theElementType: TopAbs_ShapeEnum
        theLCB: TopTools_ListOfListOfShape
        theConnectionMap: TopTools_IndexedDataMapOfShapeListOfShape

        Return
        -------
        None

        Description
        -----------
        For the compound <theS> builds the blocks (compounds) of elements of type <theElementType> connected through the shapes of the type <theConnectionType>. The blocks are stored into the list of lists <theLCB>. Returns also the connection map <theConnectionMap>, filled during operation.

        Parameters
        ----------
        theLS: TopTools_ListOfShape
        theConnectionType: TopAbs_ShapeEnum
        theElementType: TopAbs_ShapeEnum
        theLCB: BOPTools_ListOfConnexityBlock

        Return
        -------
        None

        Description
        -----------
        Makes connexity blocks of elements of the given type with the given type of the connecting elements. The blocks are checked on regularity (multi-connectivity) and stored to the list of blocks <theLCB>.

        """
        return _BOPTools.BOPTools_AlgoTools_MakeConnexityBlocks(*args)

    @staticmethod
    def MakeContainer(*args):
        r"""

        Parameters
        ----------
        theType: TopAbs_ShapeEnum
        theShape: TopoDS_Shape

        Return
        -------
        None

        Description
        -----------
        Makes empty container of requested type.

        """
        return _BOPTools.BOPTools_AlgoTools_MakeContainer(*args)

    @staticmethod
    def MakeEdge(*args):
        r"""

        Parameters
        ----------
        theCurve: IntTools_Curve
        theV1: TopoDS_Vertex
        theT1: float
        theV2: TopoDS_Vertex
        theT2: float
        theTolR3D: float
        theE: TopoDS_Edge

        Return
        -------
        None

        Description
        -----------
        Makes the edge based on the given curve with given bounding vertices.

        """
        return _BOPTools.BOPTools_AlgoTools_MakeEdge(*args)

    @staticmethod
    def MakeNewVertex(*args):
        r"""

        Parameters
        ----------
        aP1: gp_Pnt
        aTol: float
        aNewVertex: TopoDS_Vertex

        Return
        -------
        None

        Description
        -----------
        Make a vertex using 3D-point <aP1> and 3D-tolerance value <aTol>.

        Parameters
        ----------
        aV1: TopoDS_Vertex
        aV2: TopoDS_Vertex
        aNewVertex: TopoDS_Vertex

        Return
        -------
        None

        Description
        -----------
        Make a vertex using couple of vertices <aV1, aV2>.

        Parameters
        ----------
        aE1: TopoDS_Edge
        aP1: float
        aE2: TopoDS_Edge
        aP2: float
        aNewVertex: TopoDS_Vertex

        Return
        -------
        None

        Description
        -----------
        Make a vertex in place of intersection between two edges <aE1, aE2> with parameters <aP1, aP2>.

        Parameters
        ----------
        aE1: TopoDS_Edge
        aP1: float
        aF2: TopoDS_Face
        aNewVertex: TopoDS_Vertex

        Return
        -------
        None

        Description
        -----------
        Make a vertex in place of intersection between the edge <aE1> with parameter <aP1> and the face <aF2>.

        """
        return _BOPTools.BOPTools_AlgoTools_MakeNewVertex(*args)

    @staticmethod
    def MakePCurve(*args):
        r"""

        Parameters
        ----------
        theE: TopoDS_Edge
        theF1: TopoDS_Face
        theF2: TopoDS_Face
        theCurve: IntTools_Curve
        thePC1: bool
        thePC2: bool
        theContext: IntTools_Context (optional, default to opencascade::handle<IntTools_Context>())

        Return
        -------
        None

        Description
        -----------
        Makes 2d curve of the edge <theE> on the faces <theF1> and <theF2>. <theContext> - storage for caching the geometrical tools.

        """
        return _BOPTools.BOPTools_AlgoTools_MakePCurve(*args)

    @staticmethod
    def MakeSectEdge(*args):
        r"""

        Parameters
        ----------
        aIC: IntTools_Curve
        aV1: TopoDS_Vertex
        aP1: float
        aV2: TopoDS_Vertex
        aP2: float
        aNewEdge: TopoDS_Edge

        Return
        -------
        None

        Description
        -----------
        Make the edge from 3D-Curve <aIC> and two vertices <aV1,aV2> at parameters <aP1,aP2>.

        """
        return _BOPTools.BOPTools_AlgoTools_MakeSectEdge(*args)

    @staticmethod
    def MakeSplitEdge(*args):
        r"""

        Parameters
        ----------
        aE1: TopoDS_Edge
        aV1: TopoDS_Vertex
        aP1: float
        aV2: TopoDS_Vertex
        aP2: float
        aNewEdge: TopoDS_Edge

        Return
        -------
        None

        Description
        -----------
        Make the edge from base edge <aE1> and two vertices <aV1,aV2> at parameters <aP1,aP2>.

        """
        return _BOPTools.BOPTools_AlgoTools_MakeSplitEdge(*args)

    @staticmethod
    def MakeVertex(*args):
        r"""

        Parameters
        ----------
        theLV: TopTools_ListOfShape
        theV: TopoDS_Vertex

        Return
        -------
        None

        Description
        -----------
        Makes the vertex in the middle of given vertices with the tolerance covering all tolerance spheres of vertices.

        """
        return _BOPTools.BOPTools_AlgoTools_MakeVertex(*args)

    @staticmethod
    def OrientEdgesOnWire(*args):
        r"""

        Parameters
        ----------
        theWire: TopoDS_Shape

        Return
        -------
        None

        Description
        -----------
        Correctly orients edges on the wire.

        """
        return _BOPTools.BOPTools_AlgoTools_OrientEdgesOnWire(*args)

    @staticmethod
    def OrientFacesOnShell(*args):
        r"""

        Parameters
        ----------
        theShell: TopoDS_Shape

        Return
        -------
        None

        Description
        -----------
        Correctly orients faces on the shell.

        """
        return _BOPTools.BOPTools_AlgoTools_OrientFacesOnShell(*args)

    @staticmethod
    def PointOnEdge(*args):
        r"""

        Parameters
        ----------
        aEdge: TopoDS_Edge
        aPrm: float
        aP: gp_Pnt

        Return
        -------
        None

        Description
        -----------
        Compute a 3D-point on the edge <aEdge> at parameter <aPrm>.

        """
        return _BOPTools.BOPTools_AlgoTools_PointOnEdge(*args)

    @staticmethod
    def Sense(*args):
        r"""

        Parameters
        ----------
        theF1: TopoDS_Face
        theF2: TopoDS_Face
        theContext: IntTools_Context

        Return
        -------
        int

        Description
        -----------
        Checks if the normals direction of the given faces computed near the shared edge coincide. Returns the status of operation: * 0 - in case of error (shared edge not found or directions are not collinear) * 1 - normal directions coincide; * -1 - normal directions are opposite.

        """
        return _BOPTools.BOPTools_AlgoTools_Sense(*args)

    @staticmethod
    def TreatCompound(*args):
        r"""

        Parameters
        ----------
        theS: TopoDS_Shape
        theList: TopTools_ListOfShape
        theMap: TopTools_MapOfShape * (optional, default to NULL)

        Return
        -------
        None

        Description
        -----------
        Collects in the output list recursively all non-compound sub-shapes of the first level of the given shape theS. The optional map theMap is used to avoid the duplicates in the output list, so it will also contain all non-compound sub-shapes.

        """
        return _BOPTools.BOPTools_AlgoTools_TreatCompound(*args)

    @staticmethod
    def UpdateVertex(*args):
        r"""

        Parameters
        ----------
        aIC: IntTools_Curve
        aT: float
        aV: TopoDS_Vertex

        Return
        -------
        None

        Description
        -----------
        Update the tolerance value for vertex <aV> taking into account the fact that <aV> lays on the curve <aIC>.

        Parameters
        ----------
        aE: TopoDS_Edge
        aT: float
        aV: TopoDS_Vertex

        Return
        -------
        None

        Description
        -----------
        Update the tolerance value for vertex <aV> taking into account the fact that <aV> lays on the edge <aE>.

        Parameters
        ----------
        aVF: TopoDS_Vertex
        aVN: TopoDS_Vertex

        Return
        -------
        None

        Description
        -----------
        Update the tolerance value for vertex <aVN> taking into account the fact that <aVN> should cover tolerance zone of <aVF>.

        """
        return _BOPTools.BOPTools_AlgoTools_UpdateVertex(*args)

    __repr__ = _dumps_object


    def __init__(self):
        _BOPTools.BOPTools_AlgoTools_swiginit(self, _BOPTools.new_BOPTools_AlgoTools())
    __swig_destroy__ = _BOPTools.delete_BOPTools_AlgoTools

# Register BOPTools_AlgoTools in _BOPTools:
_BOPTools.BOPTools_AlgoTools_swigregister(BOPTools_AlgoTools)
class BOPTools_AlgoTools2D(object):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr

    @staticmethod
    def AdjustPCurveOnFace(*args):
        r"""

        Parameters
        ----------
        theF: TopoDS_Face
        theC3D: Geom_Curve
        theC2D: Geom2d_Curve
        theC2DA: Geom2d_Curve
        theContext: IntTools_Context (optional, default to opencascade::handle<IntTools_Context>())

        Return
        -------
        None

        Description
        -----------
        Adjust P-Curve <theC2D> (3D-curve <theC3D>) on surface of the face <theF>. <theContext> - storage for caching the geometrical tools.

        Parameters
        ----------
        theF: TopoDS_Face
        theFirst: float
        theLast: float
        theC2D: Geom2d_Curve
        theC2DA: Geom2d_Curve
        theContext: IntTools_Context (optional, default to opencascade::handle<IntTools_Context>())

        Return
        -------
        None

        Description
        -----------
        Adjust P-Curve <aC2D> (3D-curve <C3D>) on surface <aF> . [aT1, aT2] - range to adjust <theContext> - storage for caching the geometrical tools.

        """
        return _BOPTools.BOPTools_AlgoTools2D_AdjustPCurveOnFace(*args)

    @staticmethod
    def AdjustPCurveOnSurf(*args):
        r"""

        Parameters
        ----------
        aF: BRepAdaptor_Surface
        aT1: float
        aT2: float
        aC2D: Geom2d_Curve
        aC2DA: Geom2d_Curve

        Return
        -------
        None

        Description
        -----------
        Adjust P-Curve <aC2D> (3D-curve <C3D>) on surface <aF> . [aT1, aT2] - range to adjust.

        """
        return _BOPTools.BOPTools_AlgoTools2D_AdjustPCurveOnSurf(*args)

    @staticmethod
    def AttachExistingPCurve(*args):
        r"""

        Parameters
        ----------
        aEold: TopoDS_Edge
        aEnew: TopoDS_Edge
        aF: TopoDS_Face
        aCtx: IntTools_Context

        Return
        -------
        int

        Description
        -----------
        Attach P-Curve from the edge <aEold> on surface <aF> to the edge <aEnew> Returns 0 in case of success.

        """
        return _BOPTools.BOPTools_AlgoTools2D_AttachExistingPCurve(*args)

    @staticmethod
    def BuildPCurveForEdgeOnFace(*args):
        r"""

        Parameters
        ----------
        aE: TopoDS_Edge
        aF: TopoDS_Face
        theContext: IntTools_Context (optional, default to opencascade::handle<IntTools_Context>())

        Return
        -------
        None

        Description
        -----------
        Compute P-Curve for the edge <aE> on the face <aF>. Raises exception Standard_ConstructionError if projection algorithm fails. <theContext> - storage for caching the geometrical tools.

        """
        return _BOPTools.BOPTools_AlgoTools2D_BuildPCurveForEdgeOnFace(*args)

    @staticmethod
    def CurveOnSurface(*args):
        r"""

        Parameters
        ----------
        aE: TopoDS_Edge
        aF: TopoDS_Face
        aC: Geom2d_Curve
        theContext: IntTools_Context (optional, default to opencascade::handle<IntTools_Context>())

        Return
        -------
        aToler: float

        Description
        -----------
        Get P-Curve <aC> for the edge <aE> on surface <aF> . If the P-Curve does not exist, build it using Make2D(). [aToler] - reached tolerance Raises exception Standard_ConstructionError if algorithm Make2D() fails. <theContext> - storage for caching the geometrical tools.

        Parameters
        ----------
        aE: TopoDS_Edge
        aF: TopoDS_Face
        aC: Geom2d_Curve
        theContext: IntTools_Context (optional, default to opencascade::handle<IntTools_Context>())

        Return
        -------
        aFirst: float
        aLast: float
        aToler: float

        Description
        -----------
        Get P-Curve <aC> for the edge <aE> on surface <aF> . If the P-Curve does not exist, build it using Make2D(). [aFirst, aLast] - range of the P-Curve [aToler] - reached tolerance Raises exception Standard_ConstructionError if algorithm Make2D() fails. <theContext> - storage for caching the geometrical tools.

        """
        return _BOPTools.BOPTools_AlgoTools2D_CurveOnSurface(*args)

    @staticmethod
    def EdgeTangent(*args):
        r"""

        Parameters
        ----------
        anE: TopoDS_Edge
        aT: float
        Tau: gp_Vec

        Return
        -------
        bool

        Description
        -----------
        Compute tangent for the edge <aE> [in 3D] at parameter <aT>.

        """
        return _BOPTools.BOPTools_AlgoTools2D_EdgeTangent(*args)

    @staticmethod
    def HasCurveOnSurface(*args):
        r"""

        Parameters
        ----------
        aE: TopoDS_Edge
        aF: TopoDS_Face
        aC: Geom2d_Curve

        Return
        -------
        aFirst: float
        aLast: float
        aToler: float

        Description
        -----------
        Returns True if the edge <aE> has P-Curve <aC> on surface <aF> . [aFirst, aLast] - range of the P-Curve [aToler] - reached tolerance If the P-Curve does not exist, aC.IsNull()=True.

        Parameters
        ----------
        aE: TopoDS_Edge
        aF: TopoDS_Face

        Return
        -------
        bool

        Description
        -----------
        Returns True if the edge <aE> has P-Curve <aC> on surface <aF> . If the P-Curve does not exist, aC.IsNull()=True.

        """
        return _BOPTools.BOPTools_AlgoTools2D_HasCurveOnSurface(*args)

    @staticmethod
    def IntermediatePoint(*args):
        r"""

        Parameters
        ----------
        aFirst: float
        aLast: float

        Return
        -------
        float

        Description
        -----------
        Compute intermediate value in between [aFirst, aLast] .

        Parameters
        ----------
        anE: TopoDS_Edge

        Return
        -------
        float

        Description
        -----------
        Compute intermediate value of parameter for the edge <anE>.

        """
        return _BOPTools.BOPTools_AlgoTools2D_IntermediatePoint(*args)

    @staticmethod
    def IsEdgeIsoline(*args):
        r"""

        Parameters
        ----------
        theE: TopoDS_Edge
        theF: TopoDS_Face

        Return
        -------
        isTheUIso: bool
        isTheVIso: bool

        Description
        -----------
        Checks if CurveOnSurface of theE on theF matches with isoline of theF surface. Sets corresponding values for isTheUIso and isTheVIso variables. //! ATTENTION!!! This method is based on the comparison between direction of surface (which theF is based on) iso-lines and the direction of the edge p-curve (on theF) in middle-point of the p-curve. //! This method should be used carefully (e.g. BRep_Tool::IsClosed(...) together) in order to avoid false classification some p-curves as isoline (e.g. circle on a plane).

        """
        return _BOPTools.BOPTools_AlgoTools2D_IsEdgeIsoline(*args)

    @staticmethod
    def Make2D(*args):
        r"""

        Parameters
        ----------
        aE: TopoDS_Edge
        aF: TopoDS_Face
        aC: Geom2d_Curve
        theContext: IntTools_Context (optional, default to opencascade::handle<IntTools_Context>())

        Return
        -------
        aFirst: float
        aLast: float
        aToler: float

        Description
        -----------
        Make P-Curve <aC> for the edge <aE> on surface <aF> . [aFirst, aLast] - range of the P-Curve [aToler] - reached tolerance Raises exception Standard_ConstructionError if algorithm fails. <theContext> - storage for caching the geometrical tools.

        """
        return _BOPTools.BOPTools_AlgoTools2D_Make2D(*args)

    @staticmethod
    def MakePCurveOnFace(*args):
        r"""

        Parameters
        ----------
        aF: TopoDS_Face
        C3D: Geom_Curve
        aC: Geom2d_Curve
        theContext: IntTools_Context (optional, default to opencascade::handle<IntTools_Context>())

        Return
        -------
        aToler: float

        Description
        -----------
        Make P-Curve <aC> for the 3D-curve <C3D> on surface <aF> . [aToler] - reached tolerance Raises exception Standard_ConstructionError if projection algorithm fails. <theContext> - storage for caching the geometrical tools.

        Parameters
        ----------
        aF: TopoDS_Face
        C3D: Geom_Curve
        aT1: float
        aT2: float
        aC: Geom2d_Curve
        theContext: IntTools_Context (optional, default to opencascade::handle<IntTools_Context>())

        Return
        -------
        aToler: float

        Description
        -----------
        Make P-Curve <aC> for the 3D-curve <C3D> on surface <aF> . [aT1, aT2] - range to build [aToler] - reached tolerance Raises exception Standard_ConstructionError if projection algorithm fails. <theContext> - storage for caching the geometrical tools.

        """
        return _BOPTools.BOPTools_AlgoTools2D_MakePCurveOnFace(*args)

    @staticmethod
    def PointOnSurface(*args):
        r"""

        Parameters
        ----------
        aE: TopoDS_Edge
        aF: TopoDS_Face
        aT: float
        theContext: IntTools_Context (optional, default to opencascade::handle<IntTools_Context>())

        Return
        -------
        U: float
        V: float

        Description
        -----------
        Compute surface parameters <U,V> of the face <aF> for the point from the edge <aE> at parameter <aT>. If <aE> has't pcurve on surface, algorithm tries to get it by projection and can raise exception Standard_ConstructionError if projection algorithm fails. <theContext> - storage for caching the geometrical tools.

        """
        return _BOPTools.BOPTools_AlgoTools2D_PointOnSurface(*args)

    __repr__ = _dumps_object

    @methodnotwrapped
    def MakeCurveOnSurface(self):
    	pass


    def __init__(self):
        _BOPTools.BOPTools_AlgoTools2D_swiginit(self, _BOPTools.new_BOPTools_AlgoTools2D())
    __swig_destroy__ = _BOPTools.delete_BOPTools_AlgoTools2D

# Register BOPTools_AlgoTools2D in _BOPTools:
_BOPTools.BOPTools_AlgoTools2D_swigregister(BOPTools_AlgoTools2D)
class BOPTools_AlgoTools3D(object):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr

    @staticmethod
    def DoSplitSEAMOnFace(*args):
        r"""

        Parameters
        ----------
        theESplit: TopoDS_Edge
        theFace: TopoDS_Face

        Return
        -------
        bool

        Description
        -----------
        Makes the edge <theESplit> seam edge for the face <theFace> basing on the surface properties (U and V periods).

        Parameters
        ----------
        theEOrigin: TopoDS_Edge
        theESplit: TopoDS_Edge
        theFace: TopoDS_Face

        Return
        -------
        bool

        Description
        -----------
        Makes the split edge <theESplit> seam edge for the face <theFace> basing on the positions of 2d curves of the original edge <theEOrigin>.

        """
        return _BOPTools.BOPTools_AlgoTools3D_DoSplitSEAMOnFace(*args)

    @staticmethod
    def GetApproxNormalToFaceOnEdge(*args):
        r"""

        Parameters
        ----------
        aE: TopoDS_Edge
        aF: TopoDS_Face
        aT: float
        aPx: gp_Pnt
        aD: gp_Dir
        theContext: IntTools_Context

        Return
        -------
        bool

        Description
        -----------
        Computes normal to the face <aF> for the 3D-point that belongs to the edge <aE> at parameter <aT>. Output: aPx - the 3D-point where the normal computed aD - the normal; Warning: The normal is computed not exactly in the point on the edge, but in point that is near to the edge towards to the face material (so, we'll have approx. normal); The point is computed using PointNearEdge function, with the shifting value BOPTools_AlgoTools3D::MinStepIn2d(), from the edge, but if this value is too big, the point will be computed using Hatcher (PointInFace function). Returns True in case of success.

        Parameters
        ----------
        theE: TopoDS_Edge
        theF: TopoDS_Face
        aT: float
        aP: gp_Pnt
        aDNF: gp_Dir
        aDt2D: float

        Return
        -------
        bool

        Description
        -----------
        Computes normal to the face <aF> for the 3D-point that belongs to the edge <aE> at parameter <aT>. Output: aPx - the 3D-point where the normal computed aD - the normal; Warning: The normal is computed not exactly in the point on the edge, but in point that is near to the edge towards to the face material (so, we'll have approx. normal); The point is computed using PointNearEdge function with the shifting value <aDt2D> from the edge; No checks on this value will be done. Returns True in case of success.

        Parameters
        ----------
        theE: TopoDS_Edge
        theF: TopoDS_Face
        aT: float
        aDt2D: float
        aP: gp_Pnt
        aDNF: gp_Dir
        theContext: IntTools_Context

        Return
        -------
        bool

        Description
        -----------
        Computes normal to the face <aF> for the 3D-point that belongs to the edge <aE> at parameter <aT>. Output: aPx - the 3D-point where the normal computed aD - the normal; Warning: The normal is computed not exactly in the point on the edge, but in point that is near to the edge towards to the face material (so, we'll have approx. normal); The point is computed using PointNearEdge function with the shifting value <aDt2D> from the edge, but if this value is too big the point will be computed using Hatcher (PointInFace function). Returns True in case of success.

        """
        return _BOPTools.BOPTools_AlgoTools3D_GetApproxNormalToFaceOnEdge(*args)

    @staticmethod
    def GetNormalToFaceOnEdge(*args):
        r"""

        Parameters
        ----------
        aE: TopoDS_Edge
        aF: TopoDS_Face
        aT: float
        aD: gp_Dir
        theContext: IntTools_Context (optional, default to opencascade::handle<IntTools_Context>())

        Return
        -------
        None

        Description
        -----------
        Computes normal to the face <aF> for the point on the edge <aE> at parameter <aT>. <theContext> - storage for caching the geometrical tools.

        Parameters
        ----------
        aE: TopoDS_Edge
        aF: TopoDS_Face
        aD: gp_Dir
        theContext: IntTools_Context (optional, default to opencascade::handle<IntTools_Context>())

        Return
        -------
        None

        Description
        -----------
        Computes normal to the face <aF> for the point on the edge <aE> at arbitrary intermediate parameter. <theContext> - storage for caching the geometrical tools.

        """
        return _BOPTools.BOPTools_AlgoTools3D_GetNormalToFaceOnEdge(*args)

    @staticmethod
    def GetNormalToSurface(*args):
        r"""

        Parameters
        ----------
        aS: Geom_Surface
        U: float
        V: float
        aD: gp_Dir

        Return
        -------
        bool

        Description
        -----------
        Compute normal <aD> to surface <aS> in point (U,V) Returns True if directions aD1U, aD1V coincide.

        """
        return _BOPTools.BOPTools_AlgoTools3D_GetNormalToSurface(*args)

    @staticmethod
    def IsEmptyShape(*args):
        r"""

        Parameters
        ----------
        aS: TopoDS_Shape

        Return
        -------
        bool

        Description
        -----------
        Returns True if the shape <aS> does not contain geometry information (e.g. empty compound).

        """
        return _BOPTools.BOPTools_AlgoTools3D_IsEmptyShape(*args)

    @staticmethod
    def MinStepIn2d(*args):
        r"""
        Return
        -------
        float

        Description
        -----------
        Returns simple step value that is used in 2D-computations = 1.e-5.

        """
        return _BOPTools.BOPTools_AlgoTools3D_MinStepIn2d(*args)

    @staticmethod
    def OrientEdgeOnFace(*args):
        r"""

        Parameters
        ----------
        aE: TopoDS_Edge
        aF: TopoDS_Face
        aER: TopoDS_Edge

        Return
        -------
        None

        Description
        -----------
        Get the edge <aER> from the face <aF> that is the same as the edge <aE>.

        """
        return _BOPTools.BOPTools_AlgoTools3D_OrientEdgeOnFace(*args)

    @staticmethod
    def PointInFace(*args):
        r"""

        Parameters
        ----------
        theF: TopoDS_Face
        theP: gp_Pnt
        theP2D: gp_Pnt2d
        theContext: IntTools_Context

        Return
        -------
        int

        Description
        -----------
        Computes arbitrary point <theP> inside the face <theF>. <theP2D> - 2D representation of <theP> on the surface of <theF> Returns 0 in case of success.

        Parameters
        ----------
        theF: TopoDS_Face
        theE: TopoDS_Edge
        theT: float
        theDt2D: float
        theP: gp_Pnt
        theP2D: gp_Pnt2d
        theContext: IntTools_Context

        Return
        -------
        int

        Description
        -----------
        Computes a point <theP> inside the face <theF> using starting point taken by the parameter <theT> from the 2d curve of the edge <theE> on the face <theF> in the direction perpendicular to the tangent vector of the 2d curve of the edge. The point will be distanced on <theDt2D> from the 2d curve. <theP2D> - 2D representation of <theP> on the surface of <theF> Returns 0 in case of success.

        Parameters
        ----------
        theF: TopoDS_Face
        theL: Geom2d_Curve
        theP: gp_Pnt
        theP2D: gp_Pnt2d
        theContext: IntTools_Context
        theDt2D: float (optional, default to 0.0)

        Return
        -------
        int

        Description
        -----------
        Computes a point <theP> inside the face <theF> using the line <theL> so that 2D point <theP2D>, 2D representation of <theP> on the surface of <theF>, lies on that line. Returns 0 in case of success.

        """
        return _BOPTools.BOPTools_AlgoTools3D_PointInFace(*args)

    @staticmethod
    def PointNearEdge(*args):
        r"""

        Parameters
        ----------
        aE: TopoDS_Edge
        aF: TopoDS_Face
        aT: float
        aDt2D: float
        aP2D: gp_Pnt2d
        aPx: gp_Pnt
        theContext: IntTools_Context

        Return
        -------
        int

        Description
        -----------
        Compute the point <aPx>, (<aP2D>) that is near to the edge <aE> at parameter <aT> towards to the material of the face <aF>. The value of shifting in 2D is <aDt2D> If the value of shifting is too big the point will be computed using Hatcher (PointInFace function). Returns error status: 0 - in case of success; 1 - <aE> does not have 2d curve on the face <aF>; 2 - the computed point is out of the face.

        Parameters
        ----------
        aE: TopoDS_Edge
        aF: TopoDS_Face
        aT: float
        aDt2D: float
        aP2D: gp_Pnt2d
        aPx: gp_Pnt

        Return
        -------
        int

        Description
        -----------
        Compute the point <aPx>, (<aP2D>) that is near to the edge <aE> at parameter <aT> towards to the material of the face <aF>. The value of shifting in 2D is <aDt2D>. No checks on this value will be done. Returns error status: 0 - in case of success; 1 - <aE> does not have 2d curve on the face <aF>.

        Parameters
        ----------
        aE: TopoDS_Edge
        aF: TopoDS_Face
        aT: float
        aP2D: gp_Pnt2d
        aPx: gp_Pnt
        theContext: IntTools_Context

        Return
        -------
        int

        Description
        -----------
        Computes the point <aPx>, (<aP2D>) that is near to the edge <aE> at parameter <aT> towards to the material of the face <aF>. The value of shifting in 2D is dt2D=BOPTools_AlgoTools3D::MinStepIn2d() If the value of shifting is too big the point will be computed using Hatcher (PointInFace function). Returns error status: 0 - in case of success; 1 - <aE> does not have 2d curve on the face <aF>; 2 - the computed point is out of the face.

        Parameters
        ----------
        aE: TopoDS_Edge
        aF: TopoDS_Face
        aP2D: gp_Pnt2d
        aPx: gp_Pnt
        theContext: IntTools_Context

        Return
        -------
        int

        Description
        -----------
        Compute the point <aPx>, (<aP2D>) that is near to the edge <aE> at arbitrary parameter towards to the material of the face <aF>. The value of shifting in 2D is dt2D=BOPTools_AlgoTools3D::MinStepIn2d(). If the value of shifting is too big the point will be computed using Hatcher (PointInFace function). Returns error status: 0 - in case of success; 1 - <aE> does not have 2d curve on the face <aF>; 2 - the computed point is out of the face.

        """
        return _BOPTools.BOPTools_AlgoTools3D_PointNearEdge(*args)

    @staticmethod
    def SenseFlag(*args):
        r"""

        Parameters
        ----------
        aNF1: gp_Dir
        aNF2: gp_Dir

        Return
        -------
        int

        Description
        -----------
        Returns 1 if scalar product aNF1* aNF2>0. Returns 0 if directions aNF1 aNF2 coincide Returns -1 if scalar product aNF1* aNF2<0.

        """
        return _BOPTools.BOPTools_AlgoTools3D_SenseFlag(*args)

    __repr__ = _dumps_object


    def __init__(self):
        _BOPTools.BOPTools_AlgoTools3D_swiginit(self, _BOPTools.new_BOPTools_AlgoTools3D())
    __swig_destroy__ = _BOPTools.delete_BOPTools_AlgoTools3D

# Register BOPTools_AlgoTools3D in _BOPTools:
_BOPTools.BOPTools_AlgoTools3D_swigregister(BOPTools_AlgoTools3D)
class BOPTools_ConnexityBlock(object):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr

    def __init__(self, *args):
        r"""
        Return
        -------
        None

        Description
        -----------
        No available documentation.

        Parameters
        ----------
        theAllocator: NCollection_BaseAllocator

        Return
        -------
        None

        Description
        -----------
        No available documentation.

        """
        _BOPTools.BOPTools_ConnexityBlock_swiginit(self, _BOPTools.new_BOPTools_ConnexityBlock(*args))

    def ChangeLoops(self, *args):
        r"""
        Return
        -------
        TopTools_ListOfShape

        Description
        -----------
        No available documentation.

        """
        return _BOPTools.BOPTools_ConnexityBlock_ChangeLoops(self, *args)

    def ChangeShapes(self, *args):
        r"""
        Return
        -------
        TopTools_ListOfShape

        Description
        -----------
        No available documentation.

        """
        return _BOPTools.BOPTools_ConnexityBlock_ChangeShapes(self, *args)

    def IsRegular(self, *args):
        r"""
        Return
        -------
        bool

        Description
        -----------
        No available documentation.

        """
        return _BOPTools.BOPTools_ConnexityBlock_IsRegular(self, *args)

    def Loops(self, *args):
        r"""
        Return
        -------
        TopTools_ListOfShape

        Description
        -----------
        No available documentation.

        """
        return _BOPTools.BOPTools_ConnexityBlock_Loops(self, *args)

    def SetRegular(self, *args):
        r"""

        Parameters
        ----------
        theFlag: bool

        Return
        -------
        None

        Description
        -----------
        No available documentation.

        """
        return _BOPTools.BOPTools_ConnexityBlock_SetRegular(self, *args)

    def Shapes(self, *args):
        r"""
        Return
        -------
        TopTools_ListOfShape

        Description
        -----------
        No available documentation.

        """
        return _BOPTools.BOPTools_ConnexityBlock_Shapes(self, *args)

    __repr__ = _dumps_object

    __swig_destroy__ = _BOPTools.delete_BOPTools_ConnexityBlock

# Register BOPTools_ConnexityBlock in _BOPTools:
_BOPTools.BOPTools_ConnexityBlock_swigregister(BOPTools_ConnexityBlock)
class BOPTools_CoupleOfShape(object):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr

    def __init__(self, *args):
        r"""
        Return
        -------
        None

        Description
        -----------
        No available documentation.

        """
        _BOPTools.BOPTools_CoupleOfShape_swiginit(self, _BOPTools.new_BOPTools_CoupleOfShape(*args))

    def SetShape1(self, *args):
        r"""

        Parameters
        ----------
        theShape: TopoDS_Shape

        Return
        -------
        None

        Description
        -----------
        No available documentation.

        """
        return _BOPTools.BOPTools_CoupleOfShape_SetShape1(self, *args)

    def SetShape2(self, *args):
        r"""

        Parameters
        ----------
        theShape: TopoDS_Shape

        Return
        -------
        None

        Description
        -----------
        No available documentation.

        """
        return _BOPTools.BOPTools_CoupleOfShape_SetShape2(self, *args)

    def Shape1(self, *args):
        r"""
        Return
        -------
        TopoDS_Shape

        Description
        -----------
        No available documentation.

        """
        return _BOPTools.BOPTools_CoupleOfShape_Shape1(self, *args)

    def Shape2(self, *args):
        r"""
        Return
        -------
        TopoDS_Shape

        Description
        -----------
        No available documentation.

        """
        return _BOPTools.BOPTools_CoupleOfShape_Shape2(self, *args)

    __repr__ = _dumps_object

    __swig_destroy__ = _BOPTools.delete_BOPTools_CoupleOfShape

# Register BOPTools_CoupleOfShape in _BOPTools:
_BOPTools.BOPTools_CoupleOfShape_swigregister(BOPTools_CoupleOfShape)
class BOPTools_Set(object):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr

    def __init__(self, *args):
        r"""
        Return
        -------
        None

        Description
        -----------
        No available documentation.

        Parameters
        ----------
        theAllocator: NCollection_BaseAllocator

        Return
        -------
        None

        Description
        -----------
        No available documentation.

        Parameters
        ----------
        theOther: BOPTools_Set

        Return
        -------
        None

        Description
        -----------
        Copy constructor.

        """
        _BOPTools.BOPTools_Set_swiginit(self, _BOPTools.new_BOPTools_Set(*args))

    def Add(self, *args):
        r"""

        Parameters
        ----------
        theS: TopoDS_Shape
        theType: TopAbs_ShapeEnum

        Return
        -------
        None

        Description
        -----------
        No available documentation.

        """
        return _BOPTools.BOPTools_Set_Add(self, *args)

    def Assign(self, *args):
        r"""

        Parameters
        ----------
        Other: BOPTools_Set

        Return
        -------
        BOPTools_Set

        Description
        -----------
        No available documentation.

        """
        return _BOPTools.BOPTools_Set_Assign(self, *args)

    def GetSum(self, *args):
        r"""
        Return
        -------
        size_t

        Description
        -----------
        No available documentation.

        """
        return _BOPTools.BOPTools_Set_GetSum(self, *args)

    def IsEqual(self, *args):
        r"""

        Parameters
        ----------
        aOther: BOPTools_Set

        Return
        -------
        bool

        Description
        -----------
        No available documentation.

        """
        return _BOPTools.BOPTools_Set_IsEqual(self, *args)

    def NbShapes(self, *args):
        r"""
        Return
        -------
        int

        Description
        -----------
        No available documentation.

        """
        return _BOPTools.BOPTools_Set_NbShapes(self, *args)

    def Shape(self, *args):
        r"""
        Return
        -------
        TopoDS_Shape

        Description
        -----------
        No available documentation.

        """
        return _BOPTools.BOPTools_Set_Shape(self, *args)

    def __eq_wrapper__(self, other):
        return _BOPTools.BOPTools_Set___eq_wrapper__(self, other)

    def __eq__(self, right):
        try:
            return self.__eq_wrapper__(right)
        except:
            return False


    __repr__ = _dumps_object

    __swig_destroy__ = _BOPTools.delete_BOPTools_Set

# Register BOPTools_Set in _BOPTools:
_BOPTools.BOPTools_Set_swigregister(BOPTools_Set)

@classnotwrapped
class BOPTools_Parallel:
	pass

@classnotwrapped
class BOPTools_BoxSelector:
	pass

@classnotwrapped
class BOPTools_BoxSet:
	pass

@classnotwrapped
class BOPTools_PairSelector:
	pass





@deprecated
def BOPTools_AlgoTools_AreFacesSameDomain(*args):
	return BOPTools_AlgoTools.AreFacesSameDomain(*args)

@deprecated
def BOPTools_AlgoTools_ComputeState(*args):
	return BOPTools_AlgoTools.ComputeState(*args)

@deprecated
def BOPTools_AlgoTools_ComputeState(*args):
	return BOPTools_AlgoTools.ComputeState(*args)

@deprecated
def BOPTools_AlgoTools_ComputeState(*args):
	return BOPTools_AlgoTools.ComputeState(*args)

@deprecated
def BOPTools_AlgoTools_ComputeState(*args):
	return BOPTools_AlgoTools.ComputeState(*args)

@deprecated
def BOPTools_AlgoTools_ComputeStateByOnePoint(*args):
	return BOPTools_AlgoTools.ComputeStateByOnePoint(*args)

@deprecated
def BOPTools_AlgoTools_ComputeTolerance(*args):
	return BOPTools_AlgoTools.ComputeTolerance(*args)

@deprecated
def BOPTools_AlgoTools_ComputeVV(*args):
	return BOPTools_AlgoTools.ComputeVV(*args)

@deprecated
def BOPTools_AlgoTools_ComputeVV(*args):
	return BOPTools_AlgoTools.ComputeVV(*args)

@deprecated
def BOPTools_AlgoTools_CopyEdge(*args):
	return BOPTools_AlgoTools.CopyEdge(*args)

@deprecated
def BOPTools_AlgoTools_CorrectCurveOnSurface(*args):
	return BOPTools_AlgoTools.CorrectCurveOnSurface(*args)

@deprecated
def BOPTools_AlgoTools_CorrectPointOnCurve(*args):
	return BOPTools_AlgoTools.CorrectPointOnCurve(*args)

@deprecated
def BOPTools_AlgoTools_CorrectRange(*args):
	return BOPTools_AlgoTools.CorrectRange(*args)

@deprecated
def BOPTools_AlgoTools_CorrectRange(*args):
	return BOPTools_AlgoTools.CorrectRange(*args)

@deprecated
def BOPTools_AlgoTools_CorrectShapeTolerances(*args):
	return BOPTools_AlgoTools.CorrectShapeTolerances(*args)

@deprecated
def BOPTools_AlgoTools_CorrectTolerances(*args):
	return BOPTools_AlgoTools.CorrectTolerances(*args)

@deprecated
def BOPTools_AlgoTools_DTolerance(*args):
	return BOPTools_AlgoTools.DTolerance(*args)

@deprecated
def BOPTools_AlgoTools_Dimension(*args):
	return BOPTools_AlgoTools.Dimension(*args)

@deprecated
def BOPTools_AlgoTools_Dimensions(*args):
	return BOPTools_AlgoTools.Dimensions(*args)

@deprecated
def BOPTools_AlgoTools_GetEdgeOff(*args):
	return BOPTools_AlgoTools.GetEdgeOff(*args)

@deprecated
def BOPTools_AlgoTools_GetEdgeOnFace(*args):
	return BOPTools_AlgoTools.GetEdgeOnFace(*args)

@deprecated
def BOPTools_AlgoTools_GetFaceOff(*args):
	return BOPTools_AlgoTools.GetFaceOff(*args)

@deprecated
def BOPTools_AlgoTools_IsBlockInOnFace(*args):
	return BOPTools_AlgoTools.IsBlockInOnFace(*args)

@deprecated
def BOPTools_AlgoTools_IsHole(*args):
	return BOPTools_AlgoTools.IsHole(*args)

@deprecated
def BOPTools_AlgoTools_IsInternalFace(*args):
	return BOPTools_AlgoTools.IsInternalFace(*args)

@deprecated
def BOPTools_AlgoTools_IsInternalFace(*args):
	return BOPTools_AlgoTools.IsInternalFace(*args)

@deprecated
def BOPTools_AlgoTools_IsInternalFace(*args):
	return BOPTools_AlgoTools.IsInternalFace(*args)

@deprecated
def BOPTools_AlgoTools_IsInvertedSolid(*args):
	return BOPTools_AlgoTools.IsInvertedSolid(*args)

@deprecated
def BOPTools_AlgoTools_IsMicroEdge(*args):
	return BOPTools_AlgoTools.IsMicroEdge(*args)

@deprecated
def BOPTools_AlgoTools_IsOpenShell(*args):
	return BOPTools_AlgoTools.IsOpenShell(*args)

@deprecated
def BOPTools_AlgoTools_IsSplitToReverse(*args):
	return BOPTools_AlgoTools.IsSplitToReverse(*args)

@deprecated
def BOPTools_AlgoTools_IsSplitToReverse(*args):
	return BOPTools_AlgoTools.IsSplitToReverse(*args)

@deprecated
def BOPTools_AlgoTools_IsSplitToReverse(*args):
	return BOPTools_AlgoTools.IsSplitToReverse(*args)

@deprecated
def BOPTools_AlgoTools_IsSplitToReverseWithWarn(*args):
	return BOPTools_AlgoTools.IsSplitToReverseWithWarn(*args)

@deprecated
def BOPTools_AlgoTools_MakeConnexityBlock(*args):
	return BOPTools_AlgoTools.MakeConnexityBlock(*args)

@deprecated
def BOPTools_AlgoTools_MakeConnexityBlocks(*args):
	return BOPTools_AlgoTools.MakeConnexityBlocks(*args)

@deprecated
def BOPTools_AlgoTools_MakeConnexityBlocks(*args):
	return BOPTools_AlgoTools.MakeConnexityBlocks(*args)

@deprecated
def BOPTools_AlgoTools_MakeConnexityBlocks(*args):
	return BOPTools_AlgoTools.MakeConnexityBlocks(*args)

@deprecated
def BOPTools_AlgoTools_MakeContainer(*args):
	return BOPTools_AlgoTools.MakeContainer(*args)

@deprecated
def BOPTools_AlgoTools_MakeEdge(*args):
	return BOPTools_AlgoTools.MakeEdge(*args)

@deprecated
def BOPTools_AlgoTools_MakeNewVertex(*args):
	return BOPTools_AlgoTools.MakeNewVertex(*args)

@deprecated
def BOPTools_AlgoTools_MakeNewVertex(*args):
	return BOPTools_AlgoTools.MakeNewVertex(*args)

@deprecated
def BOPTools_AlgoTools_MakeNewVertex(*args):
	return BOPTools_AlgoTools.MakeNewVertex(*args)

@deprecated
def BOPTools_AlgoTools_MakeNewVertex(*args):
	return BOPTools_AlgoTools.MakeNewVertex(*args)

@deprecated
def BOPTools_AlgoTools_MakePCurve(*args):
	return BOPTools_AlgoTools.MakePCurve(*args)

@deprecated
def BOPTools_AlgoTools_MakeSectEdge(*args):
	return BOPTools_AlgoTools.MakeSectEdge(*args)

@deprecated
def BOPTools_AlgoTools_MakeSplitEdge(*args):
	return BOPTools_AlgoTools.MakeSplitEdge(*args)

@deprecated
def BOPTools_AlgoTools_MakeVertex(*args):
	return BOPTools_AlgoTools.MakeVertex(*args)

@deprecated
def BOPTools_AlgoTools_OrientEdgesOnWire(*args):
	return BOPTools_AlgoTools.OrientEdgesOnWire(*args)

@deprecated
def BOPTools_AlgoTools_OrientFacesOnShell(*args):
	return BOPTools_AlgoTools.OrientFacesOnShell(*args)

@deprecated
def BOPTools_AlgoTools_PointOnEdge(*args):
	return BOPTools_AlgoTools.PointOnEdge(*args)

@deprecated
def BOPTools_AlgoTools_Sense(*args):
	return BOPTools_AlgoTools.Sense(*args)

@deprecated
def BOPTools_AlgoTools_TreatCompound(*args):
	return BOPTools_AlgoTools.TreatCompound(*args)

@deprecated
def BOPTools_AlgoTools_UpdateVertex(*args):
	return BOPTools_AlgoTools.UpdateVertex(*args)

@deprecated
def BOPTools_AlgoTools_UpdateVertex(*args):
	return BOPTools_AlgoTools.UpdateVertex(*args)

@deprecated
def BOPTools_AlgoTools_UpdateVertex(*args):
	return BOPTools_AlgoTools.UpdateVertex(*args)

@deprecated
def BOPTools_AlgoTools2D_AdjustPCurveOnFace(*args):
	return BOPTools_AlgoTools2D.AdjustPCurveOnFace(*args)

@deprecated
def BOPTools_AlgoTools2D_AdjustPCurveOnFace(*args):
	return BOPTools_AlgoTools2D.AdjustPCurveOnFace(*args)

@deprecated
def BOPTools_AlgoTools2D_AdjustPCurveOnSurf(*args):
	return BOPTools_AlgoTools2D.AdjustPCurveOnSurf(*args)

@deprecated
def BOPTools_AlgoTools2D_AttachExistingPCurve(*args):
	return BOPTools_AlgoTools2D.AttachExistingPCurve(*args)

@deprecated
def BOPTools_AlgoTools2D_BuildPCurveForEdgeOnFace(*args):
	return BOPTools_AlgoTools2D.BuildPCurveForEdgeOnFace(*args)

@deprecated
def BOPTools_AlgoTools2D_CurveOnSurface(*args):
	return BOPTools_AlgoTools2D.CurveOnSurface(*args)

@deprecated
def BOPTools_AlgoTools2D_CurveOnSurface(*args):
	return BOPTools_AlgoTools2D.CurveOnSurface(*args)

@deprecated
def BOPTools_AlgoTools2D_EdgeTangent(*args):
	return BOPTools_AlgoTools2D.EdgeTangent(*args)

@deprecated
def BOPTools_AlgoTools2D_HasCurveOnSurface(*args):
	return BOPTools_AlgoTools2D.HasCurveOnSurface(*args)

@deprecated
def BOPTools_AlgoTools2D_HasCurveOnSurface(*args):
	return BOPTools_AlgoTools2D.HasCurveOnSurface(*args)

@deprecated
def BOPTools_AlgoTools2D_IntermediatePoint(*args):
	return BOPTools_AlgoTools2D.IntermediatePoint(*args)

@deprecated
def BOPTools_AlgoTools2D_IntermediatePoint(*args):
	return BOPTools_AlgoTools2D.IntermediatePoint(*args)

@deprecated
def BOPTools_AlgoTools2D_IsEdgeIsoline(*args):
	return BOPTools_AlgoTools2D.IsEdgeIsoline(*args)

@deprecated
def BOPTools_AlgoTools2D_Make2D(*args):
	return BOPTools_AlgoTools2D.Make2D(*args)

@deprecated
def BOPTools_AlgoTools2D_MakePCurveOnFace(*args):
	return BOPTools_AlgoTools2D.MakePCurveOnFace(*args)

@deprecated
def BOPTools_AlgoTools2D_MakePCurveOnFace(*args):
	return BOPTools_AlgoTools2D.MakePCurveOnFace(*args)

@deprecated
def BOPTools_AlgoTools2D_PointOnSurface(*args):
	return BOPTools_AlgoTools2D.PointOnSurface(*args)

@deprecated
def BOPTools_AlgoTools3D_DoSplitSEAMOnFace(*args):
	return BOPTools_AlgoTools3D.DoSplitSEAMOnFace(*args)

@deprecated
def BOPTools_AlgoTools3D_DoSplitSEAMOnFace(*args):
	return BOPTools_AlgoTools3D.DoSplitSEAMOnFace(*args)

@deprecated
def BOPTools_AlgoTools3D_GetApproxNormalToFaceOnEdge(*args):
	return BOPTools_AlgoTools3D.GetApproxNormalToFaceOnEdge(*args)

@deprecated
def BOPTools_AlgoTools3D_GetApproxNormalToFaceOnEdge(*args):
	return BOPTools_AlgoTools3D.GetApproxNormalToFaceOnEdge(*args)

@deprecated
def BOPTools_AlgoTools3D_GetApproxNormalToFaceOnEdge(*args):
	return BOPTools_AlgoTools3D.GetApproxNormalToFaceOnEdge(*args)

@deprecated
def BOPTools_AlgoTools3D_GetNormalToFaceOnEdge(*args):
	return BOPTools_AlgoTools3D.GetNormalToFaceOnEdge(*args)

@deprecated
def BOPTools_AlgoTools3D_GetNormalToFaceOnEdge(*args):
	return BOPTools_AlgoTools3D.GetNormalToFaceOnEdge(*args)

@deprecated
def BOPTools_AlgoTools3D_GetNormalToSurface(*args):
	return BOPTools_AlgoTools3D.GetNormalToSurface(*args)

@deprecated
def BOPTools_AlgoTools3D_IsEmptyShape(*args):
	return BOPTools_AlgoTools3D.IsEmptyShape(*args)

@deprecated
def BOPTools_AlgoTools3D_MinStepIn2d(*args):
	return BOPTools_AlgoTools3D.MinStepIn2d(*args)

@deprecated
def BOPTools_AlgoTools3D_OrientEdgeOnFace(*args):
	return BOPTools_AlgoTools3D.OrientEdgeOnFace(*args)

@deprecated
def BOPTools_AlgoTools3D_PointInFace(*args):
	return BOPTools_AlgoTools3D.PointInFace(*args)

@deprecated
def BOPTools_AlgoTools3D_PointInFace(*args):
	return BOPTools_AlgoTools3D.PointInFace(*args)

@deprecated
def BOPTools_AlgoTools3D_PointInFace(*args):
	return BOPTools_AlgoTools3D.PointInFace(*args)

@deprecated
def BOPTools_AlgoTools3D_PointNearEdge(*args):
	return BOPTools_AlgoTools3D.PointNearEdge(*args)

@deprecated
def BOPTools_AlgoTools3D_PointNearEdge(*args):
	return BOPTools_AlgoTools3D.PointNearEdge(*args)

@deprecated
def BOPTools_AlgoTools3D_PointNearEdge(*args):
	return BOPTools_AlgoTools3D.PointNearEdge(*args)

@deprecated
def BOPTools_AlgoTools3D_PointNearEdge(*args):
	return BOPTools_AlgoTools3D.PointNearEdge(*args)

@deprecated
def BOPTools_AlgoTools3D_SenseFlag(*args):
	return BOPTools_AlgoTools3D.SenseFlag(*args)



