diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/APIHeaderSection.pyi b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/APIHeaderSection.pyi new file mode 100644 index 0000000000000000000000000000000000000000..a0df449d499298510e3b9a50ea888eee161ddb4c --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/APIHeaderSection.pyi @@ -0,0 +1,101 @@ +from enum import IntEnum +from typing import overload, NewType, Optional, Tuple + +from OCC.Core.Standard import * +from OCC.Core.NCollection import * +from OCC.Core.IFSelect import * +from OCC.Core.Interface import * +from OCC.Core.TCollection import * +from OCC.Core.StepData import * +from OCC.Core.HeaderSection import * + +class APIHeaderSection_EditHeader(IFSelect_Editor): + def __init__(self) -> None: ... + def Apply( + self, + form: IFSelect_EditForm, + ent: Standard_Transient, + model: Interface_InterfaceModel, + ) -> bool: ... + def Label(self) -> str: ... + def Load( + self, + form: IFSelect_EditForm, + ent: Standard_Transient, + model: Interface_InterfaceModel, + ) -> bool: ... + def Recognize(self, form: IFSelect_EditForm) -> bool: ... + def StringValue( + self, form: IFSelect_EditForm, num: int + ) -> TCollection_HAsciiString: ... + +class APIHeaderSection_MakeHeader: + @overload + def __init__(self, shapetype: Optional[int] = 0) -> None: ... + @overload + def __init__(self, model: StepData_StepModel) -> None: ... + def AddSchemaIdentifier( + self, aSchemaIdentifier: TCollection_HAsciiString + ) -> None: ... + def Apply(self, model: StepData_StepModel) -> None: ... + def Author(self) -> Interface_HArray1OfHAsciiString: ... + def AuthorValue(self, num: int) -> TCollection_HAsciiString: ... + def Authorisation(self) -> TCollection_HAsciiString: ... + def Description(self) -> Interface_HArray1OfHAsciiString: ... + def DescriptionValue(self, num: int) -> TCollection_HAsciiString: ... + def FdValue(self) -> HeaderSection_FileDescription: ... + def FnValue(self) -> HeaderSection_FileName: ... + def FsValue(self) -> HeaderSection_FileSchema: ... + def HasFd(self) -> bool: ... + def HasFn(self) -> bool: ... + def HasFs(self) -> bool: ... + def ImplementationLevel(self) -> TCollection_HAsciiString: ... + def Init(self, nameval: str) -> None: ... + def IsDone(self) -> bool: ... + def Name(self) -> TCollection_HAsciiString: ... + def NbAuthor(self) -> int: ... + def NbDescription(self) -> int: ... + def NbOrganization(self) -> int: ... + def NbSchemaIdentifiers(self) -> int: ... + def NewModel(self, protocol: Interface_Protocol) -> StepData_StepModel: ... + def Organization(self) -> Interface_HArray1OfHAsciiString: ... + def OrganizationValue(self, num: int) -> TCollection_HAsciiString: ... + def OriginatingSystem(self) -> TCollection_HAsciiString: ... + def PreprocessorVersion(self) -> TCollection_HAsciiString: ... + def SchemaIdentifiers(self) -> Interface_HArray1OfHAsciiString: ... + def SchemaIdentifiersValue(self, num: int) -> TCollection_HAsciiString: ... + def SetAuthor(self, aAuthor: Interface_HArray1OfHAsciiString) -> None: ... + def SetAuthorValue(self, num: int, aAuthor: TCollection_HAsciiString) -> None: ... + def SetAuthorisation(self, aAuthorisation: TCollection_HAsciiString) -> None: ... + def SetDescription(self, aDescription: Interface_HArray1OfHAsciiString) -> None: ... + def SetDescriptionValue( + self, num: int, aDescription: TCollection_HAsciiString + ) -> None: ... + def SetImplementationLevel( + self, aImplementationLevel: TCollection_HAsciiString + ) -> None: ... + def SetName(self, aName: TCollection_HAsciiString) -> None: ... + def SetOrganization( + self, aOrganization: Interface_HArray1OfHAsciiString + ) -> None: ... + def SetOrganizationValue( + self, num: int, aOrganization: TCollection_HAsciiString + ) -> None: ... + def SetOriginatingSystem( + self, aOriginatingSystem: TCollection_HAsciiString + ) -> None: ... + def SetPreprocessorVersion( + self, aPreprocessorVersion: TCollection_HAsciiString + ) -> None: ... + def SetSchemaIdentifiers( + self, aSchemaIdentifiers: Interface_HArray1OfHAsciiString + ) -> None: ... + def SetSchemaIdentifiersValue( + self, num: int, aSchemaIdentifier: TCollection_HAsciiString + ) -> None: ... + def SetTimeStamp(self, aTimeStamp: TCollection_HAsciiString) -> None: ... + def TimeStamp(self) -> TCollection_HAsciiString: ... + +# harray1 classes +# harray2 classes +# hsequence classes diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/Addons.py b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/Addons.py new file mode 100644 index 0000000000000000000000000000000000000000..29fa1ef972ae957520f42d4d7289766b06499688 --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/Addons.py @@ -0,0 +1,114 @@ +# This file was automatically generated by SWIG (https://www.swig.org). +# Version 4.3.0 +# +# Do not make changes to this file unless you know what you are doing - modify +# the SWIG interface file instead. + +from sys import version_info as _swig_python_version_info +# Import the low-level C/C++ module +if __package__ or "." in __name__: + from . import _Addons +else: + import _Addons + +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__) + + +PYTHONOCC_DEBUG_EXCEPTIONS = _Addons.PYTHONOCC_DEBUG_EXCEPTIONS + +def get_readable_class_name(class_name): + return _Addons.get_readable_class_name(class_name) + +def get_readable_method_name(method_name): + return _Addons.get_readable_method_name(method_name) + +def get_exception_type(error): + return _Addons.get_exception_type(error) + +def process_opencascade_exception(error, method_name, class_name): + return _Addons.process_opencascade_exception(error, method_name, class_name) +Font_FontAspect_UNDEFINED = _Addons.Font_FontAspect_UNDEFINED +Font_FontAspect_Regular = _Addons.Font_FontAspect_Regular +Font_FontAspect_Bold = _Addons.Font_FontAspect_Bold +Font_FontAspect_Italic = _Addons.Font_FontAspect_Italic +Font_FontAspect_BoldItalic = _Addons.Font_FontAspect_BoldItalic +Font_FA_Undefined = _Addons.Font_FA_Undefined +Font_FA_Regular = _Addons.Font_FA_Regular +Font_FA_Bold = _Addons.Font_FA_Bold +Font_FA_Italic = _Addons.Font_FA_Italic +Font_FA_BoldItalic = _Addons.Font_FA_BoldItalic + +def text_to_brep(*args): + r""" + * Creates a shape of the given text. + :param text_to_render: Text to render + :type text_to_render: char * + :param aFontName: Font name + :type aFontName: char * + :param aFontAspect: Fontaspect, FontAspect_UNDEFINED, Font_FontAspect_Regular, Font_FontAspect_Bold, Font_FA_Italic or Font_FA_BoldItalic + :type aFontAspect: Font_FontAspect + :param aSize: Size of the font + :type aSize: float + :param isCompositeCurve: + :type isCompositeCurve: bool + :rtype: TopoDS_Shape + + """ + return _Addons.text_to_brep(*args) + +def register_font(*args): + r""" + * Add a font to the available font list. + :param aFontPath: Path to the font. + :type aFontPath: char * + :param aFontAspect + :type Font_FontAspect + :rtype: void + + """ + return _Addons.register_font(*args) + diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/AppBlend.py b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/AppBlend.py new file mode 100644 index 0000000000000000000000000000000000000000..0aa31a01017bb2393886b34807366d75a61e8615 --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/AppBlend.py @@ -0,0 +1,748 @@ +# This file was automatically generated by SWIG (https://www.swig.org). +# Version 4.3.0 +# +# Do not make changes to this file unless you know what you are doing - modify +# the SWIG interface file instead. + +""" +AppBlend module, see official documentation at +https://dev.opencascade.org/doc/occt-7.9.0/refman/html/package_appblend.html +""" + +from sys import version_info as _swig_python_version_info +# Import the low-level C/C++ module +if __package__ or "." in __name__: + from . import _AppBlend +else: + import _AppBlend + +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__ = _AppBlend.delete_SwigPyIterator + + def value(self): + return _AppBlend.SwigPyIterator_value(self) + + def incr(self, n=1): + return _AppBlend.SwigPyIterator_incr(self, n) + + def decr(self, n=1): + return _AppBlend.SwigPyIterator_decr(self, n) + + def distance(self, x): + return _AppBlend.SwigPyIterator_distance(self, x) + + def equal(self, x): + return _AppBlend.SwigPyIterator_equal(self, x) + + def copy(self): + return _AppBlend.SwigPyIterator_copy(self) + + def next(self): + return _AppBlend.SwigPyIterator_next(self) + + def __next__(self): + return _AppBlend.SwigPyIterator___next__(self) + + def previous(self): + return _AppBlend.SwigPyIterator_previous(self) + + def advance(self, n): + return _AppBlend.SwigPyIterator_advance(self, n) + + def __eq__(self, x): + return _AppBlend.SwigPyIterator___eq__(self, x) + + def __ne__(self, x): + return _AppBlend.SwigPyIterator___ne__(self, x) + + def __iadd__(self, n): + return _AppBlend.SwigPyIterator___iadd__(self, n) + + def __isub__(self, n): + return _AppBlend.SwigPyIterator___isub__(self, n) + + def __add__(self, n): + return _AppBlend.SwigPyIterator___add__(self, n) + + def __sub__(self, *args): + return _AppBlend.SwigPyIterator___sub__(self, *args) + def __iter__(self): + return self + +# Register SwigPyIterator in _AppBlend: +_AppBlend.SwigPyIterator_swigregister(SwigPyIterator) + +def _dumps_object(klass): + """ Overwrite default string output for any wrapped object. + By default, __repr__ method returns something like: + > + This is too much verbose. + We prefer : + + or + + """ + klass_name = str(klass.__class__).split(".")[3].split("'")[0] + repr_string = "" % (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__ = _Approx.delete_SwigPyIterator + + def value(self): + return _Approx.SwigPyIterator_value(self) + + def incr(self, n=1): + return _Approx.SwigPyIterator_incr(self, n) + + def decr(self, n=1): + return _Approx.SwigPyIterator_decr(self, n) + + def distance(self, x): + return _Approx.SwigPyIterator_distance(self, x) + + def equal(self, x): + return _Approx.SwigPyIterator_equal(self, x) + + def copy(self): + return _Approx.SwigPyIterator_copy(self) + + def next(self): + return _Approx.SwigPyIterator_next(self) + + def __next__(self): + return _Approx.SwigPyIterator___next__(self) + + def previous(self): + return _Approx.SwigPyIterator_previous(self) + + def advance(self, n): + return _Approx.SwigPyIterator_advance(self, n) + + def __eq__(self, x): + return _Approx.SwigPyIterator___eq__(self, x) + + def __ne__(self, x): + return _Approx.SwigPyIterator___ne__(self, x) + + def __iadd__(self, n): + return _Approx.SwigPyIterator___iadd__(self, n) + + def __isub__(self, n): + return _Approx.SwigPyIterator___isub__(self, n) + + def __add__(self, n): + return _Approx.SwigPyIterator___add__(self, n) + + def __sub__(self, *args): + return _Approx.SwigPyIterator___sub__(self, *args) + def __iter__(self): + return self + +# Register SwigPyIterator in _Approx: +_Approx.SwigPyIterator_swigregister(SwigPyIterator) + +def _dumps_object(klass): + """ Overwrite default string output for any wrapped object. + By default, __repr__ method returns something like: + > + This is too much verbose. + We prefer : + + or + + """ + klass_name = str(klass.__class__).split(".")[3].split("'")[0] + repr_string = " self.Upper(): + raise IndexError("index out of range") + else: + return self.Value(index + self.Lower()) + + def __setitem__(self, index, value): + if index + self.Lower() > self.Upper(): + raise IndexError("index out of range") + else: + self.SetValue(index + self.Lower(), value) + + def __len__(self): + return self.Length() + + def __iter__(self): + self.low = self.Lower() + self.up = self.Upper() + self.current = self.Lower() - 1 + return self + + def next(self): + if self.current >= self.Upper(): + raise StopIteration + else: + self.current += 1 + return self.Value(self.current) + + __next__ = next + + +# Register Approx_Array1OfAdHSurface in _Approx: +_Approx.Approx_Array1OfAdHSurface_swigregister(Approx_Array1OfAdHSurface) +class Approx_Array1OfGTrsf2d(object): + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") + __repr__ = _swig_repr + + def begin(self, *args): + return _Approx.Approx_Array1OfGTrsf2d_begin(self, *args) + + def cbegin(self): + return _Approx.Approx_Array1OfGTrsf2d_cbegin(self) + + def end(self, *args): + return _Approx.Approx_Array1OfGTrsf2d_end(self, *args) + + def cend(self): + return _Approx.Approx_Array1OfGTrsf2d_cend(self) + + def __init__(self, *args): + _Approx.Approx_Array1OfGTrsf2d_swiginit(self, _Approx.new_Approx_Array1OfGTrsf2d(*args)) + __swig_destroy__ = _Approx.delete_Approx_Array1OfGTrsf2d + + def Init(self, theValue): + return _Approx.Approx_Array1OfGTrsf2d_Init(self, theValue) + + def Size(self): + return _Approx.Approx_Array1OfGTrsf2d_Size(self) + + def Length(self): + return _Approx.Approx_Array1OfGTrsf2d_Length(self) + + def IsEmpty(self): + return _Approx.Approx_Array1OfGTrsf2d_IsEmpty(self) + + def Lower(self): + return _Approx.Approx_Array1OfGTrsf2d_Lower(self) + + def Upper(self): + return _Approx.Approx_Array1OfGTrsf2d_Upper(self) + + def Assign(self, theOther): + return _Approx.Approx_Array1OfGTrsf2d_Assign(self, theOther) + + def Move(self, *args): + return _Approx.Approx_Array1OfGTrsf2d_Move(self, *args) + + def Set(self, *args): + return _Approx.Approx_Array1OfGTrsf2d_Set(self, *args) + + def First(self): + return _Approx.Approx_Array1OfGTrsf2d_First(self) + + def ChangeFirst(self): + return _Approx.Approx_Array1OfGTrsf2d_ChangeFirst(self) + + def Last(self): + return _Approx.Approx_Array1OfGTrsf2d_Last(self) + + def ChangeLast(self): + return _Approx.Approx_Array1OfGTrsf2d_ChangeLast(self) + + def Value(self, theIndex): + return _Approx.Approx_Array1OfGTrsf2d_Value(self, theIndex) + + def ChangeValue(self, theIndex): + return _Approx.Approx_Array1OfGTrsf2d_ChangeValue(self, theIndex) + + def __call__(self, *args): + return _Approx.Approx_Array1OfGTrsf2d___call__(self, *args) + + def SetValue(self, *args): + return _Approx.Approx_Array1OfGTrsf2d_SetValue(self, *args) + + def UpdateLowerBound(self, theLower): + return _Approx.Approx_Array1OfGTrsf2d_UpdateLowerBound(self, theLower) + + def UpdateUpperBound(self, theUpper): + return _Approx.Approx_Array1OfGTrsf2d_UpdateUpperBound(self, theUpper) + + def Resize(self, theLower, theUpper, theToCopyData): + return _Approx.Approx_Array1OfGTrsf2d_Resize(self, theLower, theUpper, theToCopyData) + + def IsDeletable(self): + return _Approx.Approx_Array1OfGTrsf2d_IsDeletable(self) + + def __getitem__(self, index): + if index + self.Lower() > self.Upper(): + raise IndexError("index out of range") + else: + return self.Value(index + self.Lower()) + + def __setitem__(self, index, value): + if index + self.Lower() > self.Upper(): + raise IndexError("index out of range") + else: + self.SetValue(index + self.Lower(), value) + + def __len__(self): + return self.Length() + + def __iter__(self): + self.low = self.Lower() + self.up = self.Upper() + self.current = self.Lower() - 1 + return self + + def next(self): + if self.current >= self.Upper(): + raise StopIteration + else: + self.current += 1 + return self.Value(self.current) + + __next__ = next + + +# Register Approx_Array1OfGTrsf2d in _Approx: +_Approx.Approx_Array1OfGTrsf2d_swigregister(Approx_Array1OfGTrsf2d) +class Approx_SequenceOfHArray1OfReal(object): + 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 _Approx.Approx_SequenceOfHArray1OfReal_begin(self) + + def end(self): + return _Approx.Approx_SequenceOfHArray1OfReal_end(self) + + def cbegin(self): + return _Approx.Approx_SequenceOfHArray1OfReal_cbegin(self) + + def cend(self): + return _Approx.Approx_SequenceOfHArray1OfReal_cend(self) + + def __init__(self, *args): + _Approx.Approx_SequenceOfHArray1OfReal_swiginit(self, _Approx.new_Approx_SequenceOfHArray1OfReal(*args)) + + def Size(self): + return _Approx.Approx_SequenceOfHArray1OfReal_Size(self) + + def Length(self): + return _Approx.Approx_SequenceOfHArray1OfReal_Length(self) + + def Lower(self): + return _Approx.Approx_SequenceOfHArray1OfReal_Lower(self) + + def Upper(self): + return _Approx.Approx_SequenceOfHArray1OfReal_Upper(self) + + def IsEmpty(self): + return _Approx.Approx_SequenceOfHArray1OfReal_IsEmpty(self) + + def Reverse(self): + return _Approx.Approx_SequenceOfHArray1OfReal_Reverse(self) + + def Exchange(self, I, J): + return _Approx.Approx_SequenceOfHArray1OfReal_Exchange(self, I, J) + + @staticmethod + def delNode(theNode, theAl): + return _Approx.Approx_SequenceOfHArray1OfReal_delNode(theNode, theAl) + + def Clear(self, theAllocator=0): + return _Approx.Approx_SequenceOfHArray1OfReal_Clear(self, theAllocator) + + def Assign(self, theOther): + return _Approx.Approx_SequenceOfHArray1OfReal_Assign(self, theOther) + + def Set(self, *args): + return _Approx.Approx_SequenceOfHArray1OfReal_Set(self, *args) + + def Remove(self, *args): + return _Approx.Approx_SequenceOfHArray1OfReal_Remove(self, *args) + + def Append(self, *args): + return _Approx.Approx_SequenceOfHArray1OfReal_Append(self, *args) + + def Prepend(self, *args): + return _Approx.Approx_SequenceOfHArray1OfReal_Prepend(self, *args) + + def InsertBefore(self, *args): + return _Approx.Approx_SequenceOfHArray1OfReal_InsertBefore(self, *args) + + def InsertAfter(self, *args): + return _Approx.Approx_SequenceOfHArray1OfReal_InsertAfter(self, *args) + + def Split(self, theIndex, theSeq): + return _Approx.Approx_SequenceOfHArray1OfReal_Split(self, theIndex, theSeq) + + def First(self): + return _Approx.Approx_SequenceOfHArray1OfReal_First(self) + + def ChangeFirst(self): + return _Approx.Approx_SequenceOfHArray1OfReal_ChangeFirst(self) + + def Last(self): + return _Approx.Approx_SequenceOfHArray1OfReal_Last(self) + + def ChangeLast(self): + return _Approx.Approx_SequenceOfHArray1OfReal_ChangeLast(self) + + def Value(self, theIndex): + return _Approx.Approx_SequenceOfHArray1OfReal_Value(self, theIndex) + + def ChangeValue(self, theIndex): + return _Approx.Approx_SequenceOfHArray1OfReal_ChangeValue(self, theIndex) + + def __call__(self, *args): + return _Approx.Approx_SequenceOfHArray1OfReal___call__(self, *args) + + def SetValue(self, theIndex, theItem): + return _Approx.Approx_SequenceOfHArray1OfReal_SetValue(self, theIndex, theItem) + __swig_destroy__ = _Approx.delete_Approx_SequenceOfHArray1OfReal + + def __len__(self): + return self.Size() + + +# Register Approx_SequenceOfHArray1OfReal in _Approx: +_Approx.Approx_SequenceOfHArray1OfReal_swigregister(Approx_SequenceOfHArray1OfReal) +class Approx_Curve2d(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""" + + Parameters + ---------- + C2D: Adaptor2d_Curve2d + First: float + Last: float + TolU: float + TolV: float + Continuity: GeomAbs_Shape + MaxDegree: int + MaxSegments: int + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _Approx.Approx_Curve2d_swiginit(self, _Approx.new_Approx_Curve2d(*args)) + + def Curve(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _Approx.Approx_Curve2d_Curve(self, *args) + + def HasResult(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _Approx.Approx_Curve2d_HasResult(self, *args) + + def IsDone(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _Approx.Approx_Curve2d_IsDone(self, *args) + + def MaxError2dU(self, *args): + r""" + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _Approx.Approx_Curve2d_MaxError2dU(self, *args) + + def MaxError2dV(self, *args): + r""" + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _Approx.Approx_Curve2d_MaxError2dV(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _Approx.delete_Approx_Curve2d + +# Register Approx_Curve2d in _Approx: +_Approx.Approx_Curve2d_swigregister(Approx_Curve2d) +class Approx_Curve3d(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""" + + Parameters + ---------- + Curve: Adaptor3d_Curve + Tol3d: float + Order: GeomAbs_Shape + MaxSegments: int + MaxDegree: int + + Return + ------- + None + + Description + ----------- + Approximation of a curve with respect of the required tolerance Tol3D. + + """ + _Approx.Approx_Curve3d_swiginit(self, _Approx.new_Approx_Curve3d(*args)) + + def Curve(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _Approx.Approx_Curve3d_Curve(self, *args) + + def Dump(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + o: Standard_OStream + + Description + ----------- + Print on the stream o information about the object. + + """ + return _Approx.Approx_Curve3d_Dump(self, *args) + + def HasResult(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + returns Standard_True if the approximation did come out with a result that is not NECESSARELY within the required tolerance. + + """ + return _Approx.Approx_Curve3d_HasResult(self, *args) + + def IsDone(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + returns Standard_True if the approximation has been done within required tolerance. + + """ + return _Approx.Approx_Curve3d_IsDone(self, *args) + + def MaxError(self, *args): + r""" + Return + ------- + float + + Description + ----------- + returns the Maximum Error (>0 when an approximation has been done, 0 if no approximation). + + """ + return _Approx.Approx_Curve3d_MaxError(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _Approx.delete_Approx_Curve3d + +# Register Approx_Curve3d in _Approx: +_Approx.Approx_Curve3d_swigregister(Approx_Curve3d) +class Approx_CurveOnSurface(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""" + + Parameters + ---------- + C2D: Adaptor2d_Curve2d + Surf: Adaptor3d_Surface + First: float + Last: float + Tol: float + Continuity: GeomAbs_Shape + MaxDegree: int + MaxSegments: int + Only3d: bool (optional, default to Standard_False) + Only2d: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + This constructor calls perform method. This constructor is deprecated. + + Parameters + ---------- + theC2D: Adaptor2d_Curve2d + theSurf: Adaptor3d_Surface + theFirst: float + theLast: float + theTol: float + + Return + ------- + None + + Description + ----------- + This constructor does not call perform method. + Parameter theC2D 2D Curve to be approximated in 3D. + Parameter theSurf Surface where 2D curve is located. + Parameter theFirst First parameter of resulting curve. + Parameter theFirst Last parameter of resulting curve. + Parameter theTol Computation tolerance. + + """ + _Approx.Approx_CurveOnSurface_swiginit(self, _Approx.new_Approx_CurveOnSurface(*args)) + + def Curve2d(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _Approx.Approx_CurveOnSurface_Curve2d(self, *args) + + def Curve3d(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _Approx.Approx_CurveOnSurface_Curve3d(self, *args) + + def HasResult(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _Approx.Approx_CurveOnSurface_HasResult(self, *args) + + def IsDone(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _Approx.Approx_CurveOnSurface_IsDone(self, *args) + + def MaxError2dU(self, *args): + r""" + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _Approx.Approx_CurveOnSurface_MaxError2dU(self, *args) + + def MaxError2dV(self, *args): + r""" + Return + ------- + float + + Description + ----------- + returns the maximum errors relatively to the U component or the V component of the 2d Curve. + + """ + return _Approx.Approx_CurveOnSurface_MaxError2dV(self, *args) + + def MaxError3d(self, *args): + r""" + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _Approx.Approx_CurveOnSurface_MaxError3d(self, *args) + + def Perform(self, *args): + r""" + + Parameters + ---------- + theMaxSegments: int + theMaxDegree: int + theContinuity: GeomAbs_Shape + theOnly3d: bool (optional, default to Standard_False) + theOnly2d: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + Constructs the 3d curve. Input parameters are ignored when the input curve is U-isoline or V-isoline. + Parameter theMaxSegments Maximal number of segments in the resulting spline. + Parameter theMaxDegree Maximal degree of the result. + Parameter theContinuity Resulting continuity. + Parameter theOnly3d Determines building only 3D curve. + Parameter theOnly2d Determines building only 2D curve. + + """ + return _Approx.Approx_CurveOnSurface_Perform(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _Approx.delete_Approx_CurveOnSurface + +# Register Approx_CurveOnSurface in _Approx: +_Approx.Approx_CurveOnSurface_swigregister(Approx_CurveOnSurface) +class Approx_CurvilinearParameter(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""" + + Parameters + ---------- + C3D: Adaptor3d_Curve + Tol: float + Order: GeomAbs_Shape + MaxDegree: int + MaxSegments: int + + Return + ------- + None + + Description + ----------- + case of a free 3D curve. + + Parameters + ---------- + C2D: Adaptor2d_Curve2d + Surf: Adaptor3d_Surface + Tol: float + Order: GeomAbs_Shape + MaxDegree: int + MaxSegments: int + + Return + ------- + None + + Description + ----------- + case of a curve on one surface. + + Parameters + ---------- + C2D1: Adaptor2d_Curve2d + Surf1: Adaptor3d_Surface + C2D2: Adaptor2d_Curve2d + Surf2: Adaptor3d_Surface + Tol: float + Order: GeomAbs_Shape + MaxDegree: int + MaxSegments: int + + Return + ------- + None + + Description + ----------- + case of a curve on two surfaces. + + """ + _Approx.Approx_CurvilinearParameter_swiginit(self, _Approx.new_Approx_CurvilinearParameter(*args)) + + def Curve2d1(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + returns the BsplineCurve representing the reparametrized 2D curve on the first surface (case of a curve on one or two surfaces). + + """ + return _Approx.Approx_CurvilinearParameter_Curve2d1(self, *args) + + def Curve2d2(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + returns the BsplineCurve representing the reparametrized 2D curve on the second surface (case of a curve on two surfaces). + + """ + return _Approx.Approx_CurvilinearParameter_Curve2d2(self, *args) + + def Curve3d(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + returns the Bspline curve corresponding to the reparametrized 3D curve. + + """ + return _Approx.Approx_CurvilinearParameter_Curve3d(self, *args) + + def Dump(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + o: Standard_OStream + + Description + ----------- + print the maximum errors(s). + + """ + return _Approx.Approx_CurvilinearParameter_Dump(self, *args) + + def HasResult(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _Approx.Approx_CurvilinearParameter_HasResult(self, *args) + + def IsDone(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _Approx.Approx_CurvilinearParameter_IsDone(self, *args) + + def MaxError2d1(self, *args): + r""" + Return + ------- + float + + Description + ----------- + returns the maximum error on the first reparametrized 2D curve. + + """ + return _Approx.Approx_CurvilinearParameter_MaxError2d1(self, *args) + + def MaxError2d2(self, *args): + r""" + Return + ------- + float + + Description + ----------- + returns the maximum error on the second reparametrized 2D curve. + + """ + return _Approx.Approx_CurvilinearParameter_MaxError2d2(self, *args) + + def MaxError3d(self, *args): + r""" + Return + ------- + float + + Description + ----------- + returns the maximum error on the reparametrized 3D curve. + + """ + return _Approx.Approx_CurvilinearParameter_MaxError3d(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _Approx.delete_Approx_CurvilinearParameter + +# Register Approx_CurvilinearParameter in _Approx: +_Approx.Approx_CurvilinearParameter_swigregister(Approx_CurvilinearParameter) +class Approx_CurvlinFunc(OCC.Core.Standard.Standard_Transient): + 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""" + + Parameters + ---------- + C: Adaptor3d_Curve + Tol: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + C2D: Adaptor2d_Curve2d + S: Adaptor3d_Surface + Tol: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + C2D1: Adaptor2d_Curve2d + C2D2: Adaptor2d_Curve2d + S1: Adaptor3d_Surface + S2: Adaptor3d_Surface + Tol: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _Approx.Approx_CurvlinFunc_swiginit(self, _Approx.new_Approx_CurvlinFunc(*args)) + + def EvalCase1(self, *args): + r""" + + Parameters + ---------- + S: float + Order: int + Result: TColStd_Array1OfReal + + Return + ------- + bool + + Description + ----------- + if myCase != 1. + + """ + return _Approx.Approx_CurvlinFunc_EvalCase1(self, *args) + + def EvalCase2(self, *args): + r""" + + Parameters + ---------- + S: float + Order: int + Result: TColStd_Array1OfReal + + Return + ------- + bool + + Description + ----------- + if myCase != 2. + + """ + return _Approx.Approx_CurvlinFunc_EvalCase2(self, *args) + + def EvalCase3(self, *args): + r""" + + Parameters + ---------- + S: float + Order: int + Result: TColStd_Array1OfReal + + Return + ------- + bool + + Description + ----------- + if myCase != 3. + + """ + return _Approx.Approx_CurvlinFunc_EvalCase3(self, *args) + + def FirstParameter(self, *args): + r""" + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _Approx.Approx_CurvlinFunc_FirstParameter(self, *args) + + def GetLength(self, *args): + r""" + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _Approx.Approx_CurvlinFunc_GetLength(self, *args) + + def GetSParameter(self, *args): + r""" + + Parameters + ---------- + U: float + + Return + ------- + float + + Description + ----------- + returns original parameter corresponding S. + + """ + return _Approx.Approx_CurvlinFunc_GetSParameter(self, *args) + + def GetUParameter(self, *args): + r""" + + Parameters + ---------- + C: Adaptor3d_Curve + S: float + NumberOfCurve: int + + Return + ------- + float + + Description + ----------- + returns original parameter corresponding S. if Case == 1 computation is performed on myC2D1 and mySurf1, otherwise it is done on myC2D2 and mySurf2. + + """ + return _Approx.Approx_CurvlinFunc_GetUParameter(self, *args) + + def Intervals(self, *args): + r""" + + Parameters + ---------- + T: TColStd_Array1OfReal + S: GeomAbs_Shape + + Return + ------- + None + + Description + ----------- + Stores in the parameters bounding the intervals of continuity . //! The array must provide enough room to accommodate for the parameters. i.e. T.Length() > NbIntervals(). + + """ + return _Approx.Approx_CurvlinFunc_Intervals(self, *args) + + def LastParameter(self, *args): + r""" + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _Approx.Approx_CurvlinFunc_LastParameter(self, *args) + + def Length(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Computes length of the curve. + + Parameters + ---------- + C: Adaptor3d_Curve + FirstU: float + LasrU: float + + Return + ------- + float + + Description + ----------- + Computes length of the curve segment. + + """ + return _Approx.Approx_CurvlinFunc_Length(self, *args) + + def NbIntervals(self, *args): + r""" + + Parameters + ---------- + S: GeomAbs_Shape + + Return + ------- + int + + Description + ----------- + Returns the number of intervals for continuity . May be one if Continuity(me) >= . + + """ + return _Approx.Approx_CurvlinFunc_NbIntervals(self, *args) + + def SetTol(self, *args): + r""" + + Parameters + ---------- + Tol: float + + Return + ------- + None + + Description + ----------- + ---Purpose Update the tolerance to used. + + """ + return _Approx.Approx_CurvlinFunc_SetTol(self, *args) + + def Trim(self, *args): + r""" + + Parameters + ---------- + First: float + Last: float + Tol: float + + Return + ------- + None + + Description + ----------- + if First < 0 or Last > 1. + + """ + return _Approx.Approx_CurvlinFunc_Trim(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_Approx_CurvlinFunc_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _Approx.delete_Approx_CurvlinFunc + +# Register Approx_CurvlinFunc in _Approx: +_Approx.Approx_CurvlinFunc_swigregister(Approx_CurvlinFunc) +class Approx_FitAndDivide(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""" + + Parameters + ---------- + Line: AppCont_Function + degreemin: int (optional, default to 3) + degreemax: int (optional, default to 8) + Tolerance3d: float (optional, default to 1.0e-5) + Tolerance2d: float (optional, default to 1.0e-5) + cutting: bool (optional, default to Standard_False) + FirstC: AppParCurves_Constraint (optional, default to AppParCurves_TangencyPoint) + LastC: AppParCurves_Constraint (optional, default to AppParCurves_TangencyPoint) + + Return + ------- + None + + Description + ----------- + The MultiLine will be approximated until tolerances will be reached. The approximation will be done from degreemin to degreemax with a cutting if the corresponding boolean is True. + + Parameters + ---------- + degreemin: int (optional, default to 3) + degreemax: int (optional, default to 8) + Tolerance3d: float (optional, default to 1.0e-05) + Tolerance2d: float (optional, default to 1.0e-05) + cutting: bool (optional, default to Standard_False) + FirstC: AppParCurves_Constraint (optional, default to AppParCurves_TangencyPoint) + LastC: AppParCurves_Constraint (optional, default to AppParCurves_TangencyPoint) + + Return + ------- + None + + Description + ----------- + Initializes the fields of the algorithm. + + """ + _Approx.Approx_FitAndDivide_swiginit(self, _Approx.new_Approx_FitAndDivide(*args)) + + def Error(self, *args): + r""" + + Parameters + ---------- + Index: int + + Return + ------- + tol3d: float + tol2d: float + + Description + ----------- + returns the tolerances 2d and 3d of the MultiCurve. + + """ + return _Approx.Approx_FitAndDivide_Error(self, *args) + + def IsAllApproximated(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + returns False if at a moment of the approximation, the status NoApproximation has been sent by the user when more points were needed. + + """ + return _Approx.Approx_FitAndDivide_IsAllApproximated(self, *args) + + def IsToleranceReached(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + returns False if the status NoPointsAdded has been sent. + + """ + return _Approx.Approx_FitAndDivide_IsToleranceReached(self, *args) + + def NbMultiCurves(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Returns the number of MultiCurve doing the approximation of the MultiLine. + + """ + return _Approx.Approx_FitAndDivide_NbMultiCurves(self, *args) + + def Parameters(self, *args): + r""" + + Parameters + ---------- + Index: int + + Return + ------- + firstp: float + lastp: float + + Description + ----------- + No available documentation. + + """ + return _Approx.Approx_FitAndDivide_Parameters(self, *args) + + def Perform(self, *args): + r""" + + Parameters + ---------- + Line: AppCont_Function + + Return + ------- + None + + Description + ----------- + runs the algorithm after having initialized the fields. + + """ + return _Approx.Approx_FitAndDivide_Perform(self, *args) + + def SetConstraints(self, *args): + r""" + + Parameters + ---------- + FirstC: AppParCurves_Constraint + LastC: AppParCurves_Constraint + + Return + ------- + None + + Description + ----------- + Changes the constraints of the approximation. + + """ + return _Approx.Approx_FitAndDivide_SetConstraints(self, *args) + + def SetDegrees(self, *args): + r""" + + Parameters + ---------- + degreemin: int + degreemax: int + + Return + ------- + None + + Description + ----------- + changes the degrees of the approximation. + + """ + return _Approx.Approx_FitAndDivide_SetDegrees(self, *args) + + def SetHangChecking(self, *args): + r""" + + Parameters + ---------- + theHangChecking: bool + + Return + ------- + None + + Description + ----------- + Set value of hang checking flag if this flag = true, possible hang of algorithm is checked and algorithm is forced to stop. By default hang checking is used. + + """ + return _Approx.Approx_FitAndDivide_SetHangChecking(self, *args) + + def SetInvOrder(self, *args): + r""" + + Parameters + ---------- + theInvOrder: bool + + Return + ------- + None + + Description + ----------- + Set inverse order of degree selection: if theInvOrdr = true, current degree is chosen by inverse order - from maxdegree to mindegree. By default inverse order is used. + + """ + return _Approx.Approx_FitAndDivide_SetInvOrder(self, *args) + + def SetMaxSegments(self, *args): + r""" + + Parameters + ---------- + theMaxSegments: int + + Return + ------- + None + + Description + ----------- + Changes the max number of segments, which is allowed for cutting. + + """ + return _Approx.Approx_FitAndDivide_SetMaxSegments(self, *args) + + def SetTolerances(self, *args): + r""" + + Parameters + ---------- + Tolerance3d: float + Tolerance2d: float + + Return + ------- + None + + Description + ----------- + Changes the tolerances of the approximation. + + """ + return _Approx.Approx_FitAndDivide_SetTolerances(self, *args) + + def Value(self, *args): + r""" + + Parameters + ---------- + Index: int (optional, default to 1) + + Return + ------- + AppParCurves_MultiCurve + + Description + ----------- + returns the approximation MultiCurve of range . + + """ + return _Approx.Approx_FitAndDivide_Value(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _Approx.delete_Approx_FitAndDivide + +# Register Approx_FitAndDivide in _Approx: +_Approx.Approx_FitAndDivide_swigregister(Approx_FitAndDivide) +class Approx_FitAndDivide2d(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""" + + Parameters + ---------- + Line: AppCont_Function + degreemin: int (optional, default to 3) + degreemax: int (optional, default to 8) + Tolerance3d: float (optional, default to 1.0e-5) + Tolerance2d: float (optional, default to 1.0e-5) + cutting: bool (optional, default to Standard_False) + FirstC: AppParCurves_Constraint (optional, default to AppParCurves_TangencyPoint) + LastC: AppParCurves_Constraint (optional, default to AppParCurves_TangencyPoint) + + Return + ------- + None + + Description + ----------- + The MultiLine will be approximated until tolerances will be reached. The approximation will be done from degreemin to degreemax with a cutting if the corresponding boolean is True. + + Parameters + ---------- + degreemin: int (optional, default to 3) + degreemax: int (optional, default to 8) + Tolerance3d: float (optional, default to 1.0e-05) + Tolerance2d: float (optional, default to 1.0e-05) + cutting: bool (optional, default to Standard_False) + FirstC: AppParCurves_Constraint (optional, default to AppParCurves_TangencyPoint) + LastC: AppParCurves_Constraint (optional, default to AppParCurves_TangencyPoint) + + Return + ------- + None + + Description + ----------- + Initializes the fields of the algorithm. + + """ + _Approx.Approx_FitAndDivide2d_swiginit(self, _Approx.new_Approx_FitAndDivide2d(*args)) + + def Error(self, *args): + r""" + + Parameters + ---------- + Index: int + + Return + ------- + tol3d: float + tol2d: float + + Description + ----------- + returns the tolerances 2d and 3d of the MultiCurve. + + """ + return _Approx.Approx_FitAndDivide2d_Error(self, *args) + + def IsAllApproximated(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + returns False if at a moment of the approximation, the status NoApproximation has been sent by the user when more points were needed. + + """ + return _Approx.Approx_FitAndDivide2d_IsAllApproximated(self, *args) + + def IsToleranceReached(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + returns False if the status NoPointsAdded has been sent. + + """ + return _Approx.Approx_FitAndDivide2d_IsToleranceReached(self, *args) + + def NbMultiCurves(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Returns the number of MultiCurve doing the approximation of the MultiLine. + + """ + return _Approx.Approx_FitAndDivide2d_NbMultiCurves(self, *args) + + def Parameters(self, *args): + r""" + + Parameters + ---------- + Index: int + + Return + ------- + firstp: float + lastp: float + + Description + ----------- + No available documentation. + + """ + return _Approx.Approx_FitAndDivide2d_Parameters(self, *args) + + def Perform(self, *args): + r""" + + Parameters + ---------- + Line: AppCont_Function + + Return + ------- + None + + Description + ----------- + runs the algorithm after having initialized the fields. + + """ + return _Approx.Approx_FitAndDivide2d_Perform(self, *args) + + def SetConstraints(self, *args): + r""" + + Parameters + ---------- + FirstC: AppParCurves_Constraint + LastC: AppParCurves_Constraint + + Return + ------- + None + + Description + ----------- + Changes the constraints of the approximation. + + """ + return _Approx.Approx_FitAndDivide2d_SetConstraints(self, *args) + + def SetDegrees(self, *args): + r""" + + Parameters + ---------- + degreemin: int + degreemax: int + + Return + ------- + None + + Description + ----------- + changes the degrees of the approximation. + + """ + return _Approx.Approx_FitAndDivide2d_SetDegrees(self, *args) + + def SetHangChecking(self, *args): + r""" + + Parameters + ---------- + theHangChecking: bool + + Return + ------- + None + + Description + ----------- + Set value of hang checking flag if this flag = true, possible hang of algorithm is checked and algorithm is forced to stop. By default hang checking is used. + + """ + return _Approx.Approx_FitAndDivide2d_SetHangChecking(self, *args) + + def SetInvOrder(self, *args): + r""" + + Parameters + ---------- + theInvOrder: bool + + Return + ------- + None + + Description + ----------- + Set inverse order of degree selection: if theInvOrdr = true, current degree is chosen by inverse order - from maxdegree to mindegree. By default inverse order is used. + + """ + return _Approx.Approx_FitAndDivide2d_SetInvOrder(self, *args) + + def SetMaxSegments(self, *args): + r""" + + Parameters + ---------- + theMaxSegments: int + + Return + ------- + None + + Description + ----------- + Changes the max number of segments, which is allowed for cutting. + + """ + return _Approx.Approx_FitAndDivide2d_SetMaxSegments(self, *args) + + def SetTolerances(self, *args): + r""" + + Parameters + ---------- + Tolerance3d: float + Tolerance2d: float + + Return + ------- + None + + Description + ----------- + Changes the tolerances of the approximation. + + """ + return _Approx.Approx_FitAndDivide2d_SetTolerances(self, *args) + + def Value(self, *args): + r""" + + Parameters + ---------- + Index: int (optional, default to 1) + + Return + ------- + AppParCurves_MultiCurve + + Description + ----------- + returns the approximation MultiCurve of range . + + """ + return _Approx.Approx_FitAndDivide2d_Value(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _Approx.delete_Approx_FitAndDivide2d + +# Register Approx_FitAndDivide2d in _Approx: +_Approx.Approx_FitAndDivide2d_swigregister(Approx_FitAndDivide2d) +class Approx_MCurvesToBSpCurve(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. + + """ + _Approx.Approx_MCurvesToBSpCurve_swiginit(self, _Approx.new_Approx_MCurvesToBSpCurve(*args)) + + def Append(self, *args): + r""" + + Parameters + ---------- + MC: AppParCurves_MultiCurve + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _Approx.Approx_MCurvesToBSpCurve_Append(self, *args) + + def ChangeValue(self, *args): + r""" + Return + ------- + AppParCurves_MultiBSpCurve + + Description + ----------- + return the composite MultiCurves as a MultiBSpCurve. + + """ + return _Approx.Approx_MCurvesToBSpCurve_ChangeValue(self, *args) + + def Perform(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + TheSeq: AppParCurves_SequenceOfMultiCurve + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _Approx.Approx_MCurvesToBSpCurve_Perform(self, *args) + + def Reset(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _Approx.Approx_MCurvesToBSpCurve_Reset(self, *args) + + def Value(self, *args): + r""" + Return + ------- + AppParCurves_MultiBSpCurve + + Description + ----------- + return the composite MultiCurves as a MultiBSpCurve. + + """ + return _Approx.Approx_MCurvesToBSpCurve_Value(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _Approx.delete_Approx_MCurvesToBSpCurve + +# Register Approx_MCurvesToBSpCurve in _Approx: +_Approx.Approx_MCurvesToBSpCurve_swigregister(Approx_MCurvesToBSpCurve) +class Approx_SameParameter(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""" + + Parameters + ---------- + C3D: Geom_Curve + C2D: Geom2d_Curve + S: Geom_Surface + Tol: float + + Return + ------- + None + + Description + ----------- + Warning: the C3D and C2D must have the same parametric domain. + + Parameters + ---------- + C3D: Adaptor3d_Curve + C2D: Geom2d_Curve + S: Adaptor3d_Surface + Tol: float + + Return + ------- + None + + Description + ----------- + Warning: the C3D and C2D must have the same parametric domain. + + Parameters + ---------- + C3D: Adaptor3d_Curve + C2D: Adaptor2d_Curve2d + S: Adaptor3d_Surface + Tol: float + + Return + ------- + None + + Description + ----------- + Warning: the C3D and C2D must have the same parametric domain. + + """ + _Approx.Approx_SameParameter_swiginit(self, _Approx.new_Approx_SameParameter(*args)) + + def Curve2d(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the 2D curve that has the same parameter as the 3D curve once evaluated on the surface up to the specified tolerance. + + """ + return _Approx.Approx_SameParameter_Curve2d(self, *args) + + def Curve3d(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the 3D curve that has the same parameter as the 3D curve once evaluated on the surface up to the specified tolerance. + + """ + return _Approx.Approx_SameParameter_Curve3d(self, *args) + + def CurveOnSurface(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the 3D curve on surface that has the same parameter as the 3D curve up to the specified tolerance. + + """ + return _Approx.Approx_SameParameter_CurveOnSurface(self, *args) + + def IsDone(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + //!@Returns .false. if calculations failed, .true. if calculations succeed. + + """ + return _Approx.Approx_SameParameter_IsDone(self, *args) + + def IsSameParameter(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Tells whether the original data had already the same parameter up to the tolerance: in that case nothing is done. + + """ + return _Approx.Approx_SameParameter_IsSameParameter(self, *args) + + def TolReached(self, *args): + r""" + Return + ------- + float + + Description + ----------- + //!@Returns tolerance (maximal distance) between 3d curve and curve on surface, generated by 2d curve and surface. + + """ + return _Approx.Approx_SameParameter_TolReached(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _Approx.delete_Approx_SameParameter + +# Register Approx_SameParameter in _Approx: +_Approx.Approx_SameParameter_swigregister(Approx_SameParameter) +class Approx_SweepApproximation(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""" + + Parameters + ---------- + Func: Approx_SweepFunction + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _Approx.Approx_SweepApproximation_swiginit(self, _Approx.new_Approx_SweepApproximation(*args)) + + def Average2dError(self, *args): + r""" + + Parameters + ---------- + Index: int + + Return + ------- + float + + Description + ----------- + returns the average error of the 2d curve approximation. + + """ + return _Approx.Approx_SweepApproximation_Average2dError(self, *args) + + def AverageErrorOnSurf(self, *args): + r""" + Return + ------- + float + + Description + ----------- + returns the average error in the surface approximation. + + """ + return _Approx.Approx_SweepApproximation_AverageErrorOnSurf(self, *args) + + def Curve2d(self, *args): + r""" + + Parameters + ---------- + Index: int + TPoles: TColgp_Array1OfPnt2d + TKnots: TColStd_Array1OfReal + TMults: TColStd_Array1OfInteger + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _Approx.Approx_SweepApproximation_Curve2d(self, *args) + + def Curve2dPoles(self, *args): + r""" + + Parameters + ---------- + Index: int + + Return + ------- + TColgp_Array1OfPnt2d + + Description + ----------- + No available documentation. + + """ + return _Approx.Approx_SweepApproximation_Curve2dPoles(self, *args) + + def Curves2dDegree(self, *args): + r""" + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _Approx.Approx_SweepApproximation_Curves2dDegree(self, *args) + + def Curves2dKnots(self, *args): + r""" + Return + ------- + TColStd_Array1OfReal + + Description + ----------- + No available documentation. + + """ + return _Approx.Approx_SweepApproximation_Curves2dKnots(self, *args) + + def Curves2dMults(self, *args): + r""" + Return + ------- + TColStd_Array1OfInteger + + Description + ----------- + No available documentation. + + """ + return _Approx.Approx_SweepApproximation_Curves2dMults(self, *args) + + def Curves2dShape(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + Degree: int + NbPoles: int + NbKnots: int + + Description + ----------- + No available documentation. + + """ + return _Approx.Approx_SweepApproximation_Curves2dShape(self, *args) + + def Dump(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + o: Standard_OStream + + Description + ----------- + display information on approximation. + + """ + return _Approx.Approx_SweepApproximation_Dump(self, *args) + + def Eval(self, *args): + r""" + + Parameters + ---------- + Parameter: float + DerivativeRequest: int + First: float + Last: float + + Return + ------- + Result: float + + Description + ----------- + The EvaluatorFunction from AdvApprox;. + + """ + return _Approx.Approx_SweepApproximation_Eval(self, *args) + + def IsDone(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + returns if we have an result. + + """ + return _Approx.Approx_SweepApproximation_IsDone(self, *args) + + def Max2dError(self, *args): + r""" + + Parameters + ---------- + Index: int + + Return + ------- + float + + Description + ----------- + returns the maximum error of the 2d curve approximation. + + """ + return _Approx.Approx_SweepApproximation_Max2dError(self, *args) + + def MaxErrorOnSurf(self, *args): + r""" + Return + ------- + float + + Description + ----------- + returns the maximum error in the surface approximation. + + """ + return _Approx.Approx_SweepApproximation_MaxErrorOnSurf(self, *args) + + def NbCurves2d(self, *args): + r""" + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _Approx.Approx_SweepApproximation_NbCurves2d(self, *args) + + def Perform(self, *args): + r""" + + Parameters + ---------- + First: float + Last: float + Tol3d: float + BoundTol: float + Tol2d: float + TolAngular: float + Continuity: GeomAbs_Shape (optional, default to GeomAbs_C0) + Degmax: int (optional, default to 11) + Segmax: int (optional, default to 50) + + Return + ------- + None + + Description + ----------- + Perform the Approximation [First, Last]: Approx_SweepApproximation.cdl Tol3d: Tolerance to surface approximation Tol2d: Tolerance used to perform curve approximation Normally the 2d curve are approximated with a tolerance given by the resolution on support surfaces, but if this tolerance is too large Tol2d is used. TolAngular: Tolerance (in radian) to control the angle between tangents on the section law and tangent of iso-v on approximated surface Continuity: The continuity in v waiting on the surface Degmax: The maximum degree in v required on the surface Segmax: The maximum number of span in v required on the surface Warning: The continuity ci can be obtained only if Ft is Ci. + + """ + return _Approx.Approx_SweepApproximation_Perform(self, *args) + + def SurfPoles(self, *args): + r""" + Return + ------- + TColgp_Array2OfPnt + + Description + ----------- + No available documentation. + + """ + return _Approx.Approx_SweepApproximation_SurfPoles(self, *args) + + def SurfShape(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + UDegree: int + VDegree: int + NbUPoles: int + NbVPoles: int + NbUKnots: int + NbVKnots: int + + Description + ----------- + No available documentation. + + """ + return _Approx.Approx_SweepApproximation_SurfShape(self, *args) + + def SurfUKnots(self, *args): + r""" + Return + ------- + TColStd_Array1OfReal + + Description + ----------- + No available documentation. + + """ + return _Approx.Approx_SweepApproximation_SurfUKnots(self, *args) + + def SurfUMults(self, *args): + r""" + Return + ------- + TColStd_Array1OfInteger + + Description + ----------- + No available documentation. + + """ + return _Approx.Approx_SweepApproximation_SurfUMults(self, *args) + + def SurfVKnots(self, *args): + r""" + Return + ------- + TColStd_Array1OfReal + + Description + ----------- + No available documentation. + + """ + return _Approx.Approx_SweepApproximation_SurfVKnots(self, *args) + + def SurfVMults(self, *args): + r""" + Return + ------- + TColStd_Array1OfInteger + + Description + ----------- + No available documentation. + + """ + return _Approx.Approx_SweepApproximation_SurfVMults(self, *args) + + def SurfWeights(self, *args): + r""" + Return + ------- + TColStd_Array2OfReal + + Description + ----------- + No available documentation. + + """ + return _Approx.Approx_SweepApproximation_SurfWeights(self, *args) + + def Surface(self, *args): + r""" + + Parameters + ---------- + TPoles: TColgp_Array2OfPnt + TWeights: TColStd_Array2OfReal + TUKnots: TColStd_Array1OfReal + TVKnots: TColStd_Array1OfReal + TUMults: TColStd_Array1OfInteger + TVMults: TColStd_Array1OfInteger + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _Approx.Approx_SweepApproximation_Surface(self, *args) + + def TolCurveOnSurf(self, *args): + r""" + + Parameters + ---------- + Index: int + + Return + ------- + float + + Description + ----------- + returns the maximum 3d error of the 2d curve approximation on the Surface. + + """ + return _Approx.Approx_SweepApproximation_TolCurveOnSurf(self, *args) + + def UDegree(self, *args): + r""" + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _Approx.Approx_SweepApproximation_UDegree(self, *args) + + def VDegree(self, *args): + r""" + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _Approx.Approx_SweepApproximation_VDegree(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _Approx.delete_Approx_SweepApproximation + +# Register Approx_SweepApproximation in _Approx: +_Approx.Approx_SweepApproximation_swigregister(Approx_SweepApproximation) +class Approx_SweepFunction(OCC.Core.Standard.Standard_Transient): + 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 + + def BarycentreOfSurf(self, *args): + r""" + Return + ------- + gp_Pnt + + Description + ----------- + Get the barycentre of Surface. An very poor estimation is sufficient. This information is useful to perform well conditioned rational approximation. Warning: Used only if IsRational. + + """ + return _Approx.Approx_SweepFunction_BarycentreOfSurf(self, *args) + + def D0(self, *args): + r""" + + Parameters + ---------- + Param: float + First: float + Last: float + Poles: TColgp_Array1OfPnt + Poles2d: TColgp_Array1OfPnt2d + Weigths: TColStd_Array1OfReal + + Return + ------- + bool + + Description + ----------- + compute the section for v = param. + + """ + return _Approx.Approx_SweepFunction_D0(self, *args) + + def D1(self, *args): + r""" + + Parameters + ---------- + Param: float + First: float + Last: float + Poles: TColgp_Array1OfPnt + DPoles: TColgp_Array1OfVec + Poles2d: TColgp_Array1OfPnt2d + DPoles2d: TColgp_Array1OfVec2d + Weigths: TColStd_Array1OfReal + DWeigths: TColStd_Array1OfReal + + Return + ------- + bool + + Description + ----------- + compute the first derivative in v direction of the section for v = param Warning: It used only for C1 or C2 approximation. + + """ + return _Approx.Approx_SweepFunction_D1(self, *args) + + def D2(self, *args): + r""" + + Parameters + ---------- + Param: float + First: float + Last: float + Poles: TColgp_Array1OfPnt + DPoles: TColgp_Array1OfVec + D2Poles: TColgp_Array1OfVec + Poles2d: TColgp_Array1OfPnt2d + DPoles2d: TColgp_Array1OfVec2d + D2Poles2d: TColgp_Array1OfVec2d + Weigths: TColStd_Array1OfReal + DWeigths: TColStd_Array1OfReal + D2Weigths: TColStd_Array1OfReal + + Return + ------- + bool + + Description + ----------- + compute the second derivative in v direction of the section for v = param Warning: It used only for C2 approximation. + + """ + return _Approx.Approx_SweepFunction_D2(self, *args) + + def GetMinimalWeight(self, *args): + r""" + + Parameters + ---------- + Weigths: TColStd_Array1OfReal + + Return + ------- + None + + Description + ----------- + Compute the minimal value of weight for each poles in all sections. This information is useful to control error in rational approximation. Warning: Used only if IsRational. + + """ + return _Approx.Approx_SweepFunction_GetMinimalWeight(self, *args) + + def GetTolerance(self, *args): + r""" + + Parameters + ---------- + BoundTol: float + SurfTol: float + AngleTol: float + Tol3d: TColStd_Array1OfReal + + Return + ------- + None + + Description + ----------- + Returns the tolerance to reach in approximation to satisfy. BoundTol error at the Boundary AngleTol tangent error at the Boundary (in radian) SurfTol error inside the surface. + + """ + return _Approx.Approx_SweepFunction_GetTolerance(self, *args) + + def Intervals(self, *args): + r""" + + Parameters + ---------- + T: TColStd_Array1OfReal + S: GeomAbs_Shape + + Return + ------- + None + + Description + ----------- + Stores in the parameters bounding the intervals of continuity . //! The array must provide enough room to accommodate for the parameters. i.e. T.Length() > NbIntervals(). + + """ + return _Approx.Approx_SweepFunction_Intervals(self, *args) + + def IsRational(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns if the sections are rational or not. + + """ + return _Approx.Approx_SweepFunction_IsRational(self, *args) + + def Knots(self, *args): + r""" + + Parameters + ---------- + TKnots: TColStd_Array1OfReal + + Return + ------- + None + + Description + ----------- + get the Knots of the section. + + """ + return _Approx.Approx_SweepFunction_Knots(self, *args) + + def MaximalSection(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns the length of the greater section. Thisinformation is useful to G1's control. Warning: With an little value, approximation can be slower. + + """ + return _Approx.Approx_SweepFunction_MaximalSection(self, *args) + + def Mults(self, *args): + r""" + + Parameters + ---------- + TMults: TColStd_Array1OfInteger + + Return + ------- + None + + Description + ----------- + get the Multplicities of the section. + + """ + return _Approx.Approx_SweepFunction_Mults(self, *args) + + def Nb2dCurves(self, *args): + r""" + Return + ------- + int + + Description + ----------- + get the number of 2d curves to approximate. + + """ + return _Approx.Approx_SweepFunction_Nb2dCurves(self, *args) + + def NbIntervals(self, *args): + r""" + + Parameters + ---------- + S: GeomAbs_Shape + + Return + ------- + int + + Description + ----------- + Returns the number of intervals for continuity . May be one if Continuity(me) >= . + + """ + return _Approx.Approx_SweepFunction_NbIntervals(self, *args) + + def Resolution(self, *args): + r""" + + Parameters + ---------- + Index: int + Tol: float + + Return + ------- + TolU: float + TolV: float + + Description + ----------- + Returns the resolutions in the sub-space 2d This information is usfull to find an good tolerance in 2d approximation. + + """ + return _Approx.Approx_SweepFunction_Resolution(self, *args) + + def SectionShape(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + NbPoles: int + NbKnots: int + Degree: int + + Description + ----------- + get the format of an section. + + """ + return _Approx.Approx_SweepFunction_SectionShape(self, *args) + + def SetInterval(self, *args): + r""" + + Parameters + ---------- + First: float + Last: float + + Return + ------- + None + + Description + ----------- + Sets the bounds of the parametric interval on the fonction This determines the derivatives in these values if the function is not Cn. + + """ + return _Approx.Approx_SweepFunction_SetInterval(self, *args) + + def SetTolerance(self, *args): + r""" + + Parameters + ---------- + Tol3d: float + Tol2d: float + + Return + ------- + None + + Description + ----------- + Is useful, if (me) have to run numerical algorithm to perform D0, D1 or D2. + + """ + return _Approx.Approx_SweepFunction_SetTolerance(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_Approx_SweepFunction_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _Approx.delete_Approx_SweepFunction + +# Register Approx_SweepFunction in _Approx: +_Approx.Approx_SweepFunction_swigregister(Approx_SweepFunction) +class Approx_HArray1OfAdHSurface(Approx_Array1OfAdHSurface, OCC.Core.Standard.Standard_Transient): + 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): + _Approx.Approx_HArray1OfAdHSurface_swiginit(self, _Approx.new_Approx_HArray1OfAdHSurface(*args)) + + def Array1(self): + return _Approx.Approx_HArray1OfAdHSurface_Array1(self) + + def ChangeArray1(self): + return _Approx.Approx_HArray1OfAdHSurface_ChangeArray1(self) + + + @staticmethod + def DownCast(t): + return Handle_Approx_HArray1OfAdHSurface_DownCast(t) + + __swig_destroy__ = _Approx.delete_Approx_HArray1OfAdHSurface + +# Register Approx_HArray1OfAdHSurface in _Approx: +_Approx.Approx_HArray1OfAdHSurface_swigregister(Approx_HArray1OfAdHSurface) +class Approx_HArray1OfGTrsf2d(Approx_Array1OfGTrsf2d, OCC.Core.Standard.Standard_Transient): + 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): + _Approx.Approx_HArray1OfGTrsf2d_swiginit(self, _Approx.new_Approx_HArray1OfGTrsf2d(*args)) + + def Array1(self): + return _Approx.Approx_HArray1OfGTrsf2d_Array1(self) + + def ChangeArray1(self): + return _Approx.Approx_HArray1OfGTrsf2d_ChangeArray1(self) + + + @staticmethod + def DownCast(t): + return Handle_Approx_HArray1OfGTrsf2d_DownCast(t) + + __swig_destroy__ = _Approx.delete_Approx_HArray1OfGTrsf2d + +# Register Approx_HArray1OfGTrsf2d in _Approx: +_Approx.Approx_HArray1OfGTrsf2d_swigregister(Approx_HArray1OfGTrsf2d) + + + diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BOPDS.pyi b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BOPDS.pyi new file mode 100644 index 0000000000000000000000000000000000000000..99617dacc28296e3fd9140216f050c71b20081ad --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BOPDS.pyi @@ -0,0 +1,620 @@ +from enum import IntEnum +from typing import overload, NewType, Optional, Tuple + +from OCC.Core.Standard import * +from OCC.Core.NCollection import * +from OCC.Core.TColStd import * +from OCC.Core.Bnd import * +from OCC.Core.IntTools import * +from OCC.Core.TopoDS import * +from OCC.Core.TopTools import * +from OCC.Core.TopAbs import * +from OCC.Core.gp import * + +# the following typedef cannot be wrapped as is +BOPDS_DataMapIteratorOfDataMapOfPaveBlockCommonBlock = NewType( + "BOPDS_DataMapIteratorOfDataMapOfPaveBlockCommonBlock", Any +) +# the following typedef cannot be wrapped as is +BOPDS_DataMapIteratorOfDataMapOfPaveBlockListOfInteger = NewType( + "BOPDS_DataMapIteratorOfDataMapOfPaveBlockListOfInteger", Any +) +# the following typedef cannot be wrapped as is +BOPDS_DataMapIteratorOfDataMapOfPaveBlockListOfPaveBlock = NewType( + "BOPDS_DataMapIteratorOfDataMapOfPaveBlockListOfPaveBlock", Any +) +# the following typedef cannot be wrapped as is +BOPDS_DataMapIteratorOfDataMapOfShapeCoupleOfPaveBlocks = NewType( + "BOPDS_DataMapIteratorOfDataMapOfShapeCoupleOfPaveBlocks", Any +) +# the following typedef cannot be wrapped as is +BOPDS_IndexedDataMapOfPaveBlockListOfInteger = NewType( + "BOPDS_IndexedDataMapOfPaveBlockListOfInteger", Any +) +# the following typedef cannot be wrapped as is +BOPDS_IndexedDataMapOfPaveBlockListOfPaveBlock = NewType( + "BOPDS_IndexedDataMapOfPaveBlockListOfPaveBlock", Any +) +# the following typedef cannot be wrapped as is +BOPDS_IndexedDataMapOfShapeCoupleOfPaveBlocks = NewType( + "BOPDS_IndexedDataMapOfShapeCoupleOfPaveBlocks", Any +) +# the following typedef cannot be wrapped as is +BOPDS_IndexedMapOfPaveBlock = NewType("BOPDS_IndexedMapOfPaveBlock", Any) +# the following typedef cannot be wrapped as is +BOPDS_ListIteratorOfListOfPave = NewType("BOPDS_ListIteratorOfListOfPave", Any) +# the following typedef cannot be wrapped as is +BOPDS_ListIteratorOfListOfPaveBlock = NewType( + "BOPDS_ListIteratorOfListOfPaveBlock", Any +) +# the following typedef cannot be wrapped as is +BOPDS_MapIteratorOfMapOfCommonBlock = NewType( + "BOPDS_MapIteratorOfMapOfCommonBlock", Any +) +# the following typedef cannot be wrapped as is +BOPDS_MapIteratorOfMapOfPair = NewType("BOPDS_MapIteratorOfMapOfPair", Any) +# the following typedef cannot be wrapped as is +BOPDS_MapIteratorOfMapOfPave = NewType("BOPDS_MapIteratorOfMapOfPave", Any) +# the following typedef cannot be wrapped as is +BOPDS_MapIteratorOfMapOfPaveBlock = NewType("BOPDS_MapIteratorOfMapOfPaveBlock", Any) +# the following typedef cannot be wrapped as is +BOPDS_MapOfCommonBlock = NewType("BOPDS_MapOfCommonBlock", Any) +# the following typedef cannot be wrapped as is +BOPDS_MapOfPair = NewType("BOPDS_MapOfPair", Any) +# the following typedef cannot be wrapped as is +BOPDS_MapOfPave = NewType("BOPDS_MapOfPave", Any) +# the following typedef cannot be wrapped as is +BOPDS_MapOfPaveBlock = NewType("BOPDS_MapOfPaveBlock", Any) +BOPDS_PDS = NewType("BOPDS_PDS", BOPDS_DS) +BOPDS_PIterator = NewType("BOPDS_PIterator", BOPDS_Iterator) +BOPDS_PIteratorSI = NewType("BOPDS_PIteratorSI", BOPDS_IteratorSI) +# the following typedef cannot be wrapped as is +BOPDS_VectorOfCurve = NewType("BOPDS_VectorOfCurve", Any) +# the following typedef cannot be wrapped as is +BOPDS_VectorOfFaceInfo = NewType("BOPDS_VectorOfFaceInfo", Any) +# the following typedef cannot be wrapped as is +BOPDS_VectorOfIndexRange = NewType("BOPDS_VectorOfIndexRange", Any) +# the following typedef cannot be wrapped as is +BOPDS_VectorOfInterfEE = NewType("BOPDS_VectorOfInterfEE", Any) +# the following typedef cannot be wrapped as is +BOPDS_VectorOfInterfEF = NewType("BOPDS_VectorOfInterfEF", Any) +# the following typedef cannot be wrapped as is +BOPDS_VectorOfInterfEZ = NewType("BOPDS_VectorOfInterfEZ", Any) +# the following typedef cannot be wrapped as is +BOPDS_VectorOfInterfFF = NewType("BOPDS_VectorOfInterfFF", Any) +# the following typedef cannot be wrapped as is +BOPDS_VectorOfInterfFZ = NewType("BOPDS_VectorOfInterfFZ", Any) +# the following typedef cannot be wrapped as is +BOPDS_VectorOfInterfVE = NewType("BOPDS_VectorOfInterfVE", Any) +# the following typedef cannot be wrapped as is +BOPDS_VectorOfInterfVF = NewType("BOPDS_VectorOfInterfVF", Any) +# the following typedef cannot be wrapped as is +BOPDS_VectorOfInterfVV = NewType("BOPDS_VectorOfInterfVV", Any) +# the following typedef cannot be wrapped as is +BOPDS_VectorOfInterfVZ = NewType("BOPDS_VectorOfInterfVZ", Any) +# the following typedef cannot be wrapped as is +BOPDS_VectorOfInterfZZ = NewType("BOPDS_VectorOfInterfZZ", Any) +# the following typedef cannot be wrapped as is +BOPDS_VectorOfListOfPaveBlock = NewType("BOPDS_VectorOfListOfPaveBlock", Any) +# the following typedef cannot be wrapped as is +BOPDS_VectorOfPair = NewType("BOPDS_VectorOfPair", Any) +# the following typedef cannot be wrapped as is +BOPDS_VectorOfPoint = NewType("BOPDS_VectorOfPoint", Any) +# the following typedef cannot be wrapped as is +BOPDS_VectorOfShapeInfo = NewType("BOPDS_VectorOfShapeInfo", Any) +# the following typedef cannot be wrapped as is +BOPDS_VectorOfVectorOfPair = NewType("BOPDS_VectorOfVectorOfPair", Any) + +class BOPDS_ListOfPave: + def Append(self, theItem: BOPDS_Pave) -> BOPDS_Pave: ... + def Assign(self, theItem: BOPDS_ListOfPave) -> BOPDS_ListOfPave: ... + def Clear(self) -> None: ... + def First(self) -> BOPDS_Pave: ... + def Last(self) -> BOPDS_Pave: ... + def Prepend(self, theItem: BOPDS_Pave) -> BOPDS_Pave: ... + def RemoveFirst(self) -> None: ... + def Reverse(self) -> None: ... + def Size(self) -> int: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... + def __iter__(self) -> BOPDS_Pave: ... + +class BOPDS_ListOfPaveBlock: + def Append(self, theItem: False) -> False: ... + def Assign(self, theItem: BOPDS_ListOfPaveBlock) -> BOPDS_ListOfPaveBlock: ... + def Clear(self) -> None: ... + def First(self) -> False: ... + def Last(self) -> False: ... + def Prepend(self, theItem: False) -> False: ... + def RemoveFirst(self) -> None: ... + def Reverse(self) -> None: ... + def Size(self) -> int: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... + def __iter__(self) -> False: ... + +class BOPDS_VectorOfPave: + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, theLower: int, theUpper: int) -> None: ... + def __getitem__(self, index: int) -> BOPDS_Pave: ... + def __setitem__(self, index: int, value: BOPDS_Pave) -> None: ... + def __len__(self) -> int: ... + def __iter__(self) -> Iterator[BOPDS_Pave]: ... + def next(self) -> BOPDS_Pave: ... + __next__ = next + def Init(self, theValue: BOPDS_Pave) -> None: ... + def Size(self) -> int: ... + def Length(self) -> int: ... + def IsEmpty(self) -> bool: ... + def Lower(self) -> int: ... + def Upper(self) -> int: ... + def IsDetectable(self) -> bool: ... + def IsAllocated(self) -> bool: ... + def First(self) -> BOPDS_Pave: ... + def Last(self) -> BOPDS_Pave: ... + def Value(self, theIndex: int) -> BOPDS_Pave: ... + def SetValue(self, theIndex: int, theValue: BOPDS_Pave) -> None: ... + +class BOPDS_CommonBlock(Standard_Transient): + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, theAllocator: NCollection_BaseAllocator) -> None: ... + def AddFace(self, aF: int) -> None: ... + def AddPaveBlock(self, aPB: BOPDS_PaveBlock) -> None: ... + def AppendFaces(self, aLF: TColStd_ListOfInteger) -> None: ... + @overload + def Contains(self, thePB: BOPDS_PaveBlock) -> bool: ... + @overload + def Contains(self, theF: int) -> bool: ... + def Dump(self) -> None: ... + def Edge(self) -> int: ... + def Faces(self) -> TColStd_ListOfInteger: ... + def IsPaveBlockOnEdge(self, theIndex: int) -> bool: ... + def IsPaveBlockOnFace(self, theIndex: int) -> bool: ... + def PaveBlock1(self) -> BOPDS_PaveBlock: ... + def PaveBlockOnEdge(self, theIndex: int) -> BOPDS_PaveBlock: ... + def PaveBlocks(self) -> BOPDS_ListOfPaveBlock: ... + def SetEdge(self, theEdge: int) -> None: ... + def SetFaces(self, aLF: TColStd_ListOfInteger) -> None: ... + def SetPaveBlocks(self, aLPB: BOPDS_ListOfPaveBlock) -> None: ... + def SetRealPaveBlock(self, thePB: BOPDS_PaveBlock) -> None: ... + def SetTolerance(self, theTol: float) -> None: ... + def Tolerance(self) -> float: ... + +class BOPDS_CoupleOfPaveBlocks: + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, thePB1: BOPDS_PaveBlock, thePB2: BOPDS_PaveBlock) -> None: ... + def Index(self) -> int: ... + def IndexInterf(self) -> int: ... + def PaveBlock1(self) -> BOPDS_PaveBlock: ... + def PaveBlock2(self) -> BOPDS_PaveBlock: ... + def PaveBlocks(self, thePB1: BOPDS_PaveBlock, thePB2: BOPDS_PaveBlock) -> None: ... + def SetIndex(self, theIndex: int) -> None: ... + def SetIndexInterf(self, theIndex: int) -> None: ... + def SetPaveBlock1(self, thePB: BOPDS_PaveBlock) -> None: ... + def SetPaveBlock2(self, thePB: BOPDS_PaveBlock) -> None: ... + def SetPaveBlocks( + self, thePB1: BOPDS_PaveBlock, thePB2: BOPDS_PaveBlock + ) -> None: ... + def SetTolerance(self, theTol: float) -> None: ... + def Tolerance(self) -> float: ... + +class BOPDS_Curve: + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, theAllocator: NCollection_BaseAllocator) -> None: ... + def Box(self) -> Bnd_Box: ... + def ChangeBox(self) -> Bnd_Box: ... + def ChangePaveBlock1(self) -> BOPDS_PaveBlock: ... + def ChangePaveBlocks(self) -> BOPDS_ListOfPaveBlock: ... + def ChangeTechnoVertices(self) -> TColStd_ListOfInteger: ... + def Curve(self) -> IntTools_Curve: ... + def HasEdge(self) -> bool: ... + def InitPaveBlock1(self) -> None: ... + def PaveBlocks(self) -> BOPDS_ListOfPaveBlock: ... + def SetBox(self, theBox: Bnd_Box) -> None: ... + def SetCurve(self, theC: IntTools_Curve) -> None: ... + def SetPaveBlocks(self, theLPB: BOPDS_ListOfPaveBlock) -> None: ... + def SetTolerance(self, theTol: float) -> None: ... + def TangentialTolerance(self) -> float: ... + def TechnoVertices(self) -> TColStd_ListOfInteger: ... + def Tolerance(self) -> float: ... + +class BOPDS_DS: + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, theAllocator: NCollection_BaseAllocator) -> None: ... + def AddInterf(self, theI1: int, theI2: int) -> bool: ... + def AddShapeSD(self, theIndex: int, theIndexSD: int) -> None: ... + def Allocator(self) -> NCollection_BaseAllocator: ... + def AloneVertices(self, theF: int, theLI: TColStd_ListOfInteger) -> None: ... + @overload + def Append(self, theSI: BOPDS_ShapeInfo) -> int: ... + @overload + def Append(self, theS: TopoDS_Shape) -> int: ... + def Arguments(self) -> TopTools_ListOfShape: ... + def BuildBndBoxSolid( + self, theIndex: int, theBox: Bnd_Box, theCheckInverted: Optional[bool] = True + ) -> None: ... + def ChangeFaceInfo(self, theIndex: int) -> BOPDS_FaceInfo: ... + def ChangePaveBlocks(self, theIndex: int) -> BOPDS_ListOfPaveBlock: ... + def ChangePaveBlocksPool(self) -> BOPDS_VectorOfListOfPaveBlock: ... + def ChangeShapeInfo(self, theIndex: int) -> BOPDS_ShapeInfo: ... + def Clear(self) -> None: ... + def CommonBlock(self, thePB: BOPDS_PaveBlock) -> BOPDS_CommonBlock: ... + def Dump(self) -> None: ... + def FaceInfo(self, theIndex: int) -> BOPDS_FaceInfo: ... + def FaceInfoIn( + self, + theIndex: int, + theMPB: BOPDS_IndexedMapOfPaveBlock, + theMVP: TColStd_MapOfInteger, + ) -> None: ... + def FaceInfoOn( + self, + theIndex: int, + theMPB: BOPDS_IndexedMapOfPaveBlock, + theMVP: TColStd_MapOfInteger, + ) -> None: ... + def FaceInfoPool(self) -> BOPDS_VectorOfFaceInfo: ... + def HasFaceInfo(self, theIndex: int) -> bool: ... + @overload + def HasInterf(self, theI: int) -> bool: ... + @overload + def HasInterf(self, theI1: int, theI2: int) -> bool: ... + def HasInterfShapeSubShapes( + self, theI1: int, theI2: int, theFlag: Optional[bool] = True + ) -> bool: ... + def HasInterfSubShapes(self, theI1: int, theI2: int) -> bool: ... + def HasPaveBlocks(self, theIndex: int) -> bool: ... + def HasShapeSD(self, theIndex: int) -> Tuple[bool, int]: ... + def Index(self, theS: TopoDS_Shape) -> int: ... + def Init(self, theFuzz: Optional[float] = Precision.Confusion()) -> None: ... + def InitPaveBlocksForVertex(self, theNV: int) -> None: ... + def InterfEE(self) -> BOPDS_VectorOfInterfEE: ... + def InterfEF(self) -> BOPDS_VectorOfInterfEF: ... + def InterfEZ(self) -> BOPDS_VectorOfInterfEZ: ... + def InterfFF(self) -> BOPDS_VectorOfInterfFF: ... + def InterfFZ(self) -> BOPDS_VectorOfInterfFZ: ... + def InterfVE(self) -> BOPDS_VectorOfInterfVE: ... + def InterfVF(self) -> BOPDS_VectorOfInterfVF: ... + def InterfVV(self) -> BOPDS_VectorOfInterfVV: ... + def InterfVZ(self) -> BOPDS_VectorOfInterfVZ: ... + def InterfZZ(self) -> BOPDS_VectorOfInterfZZ: ... + def Interferences(self) -> BOPDS_MapOfPair: ... + def IsCommonBlock(self, thePB: BOPDS_PaveBlock) -> bool: ... + def IsCommonBlockOnEdge(self, thePB: BOPDS_PaveBlock) -> bool: ... + def IsNewShape(self, theIndex: int) -> bool: ... + def IsSubShape(self, theI1: int, theI2: int) -> bool: ... + def IsValidShrunkData(self, thePB: BOPDS_PaveBlock) -> bool: ... + @staticmethod + def NbInterfTypes() -> int: ... + def NbRanges(self) -> int: ... + def NbShapes(self) -> int: ... + def NbSourceShapes(self) -> int: ... + def PaveBlocks(self, theIndex: int) -> BOPDS_ListOfPaveBlock: ... + def PaveBlocksPool(self) -> BOPDS_VectorOfListOfPaveBlock: ... + def Paves(self, theIndex: int, theLP: BOPDS_ListOfPave) -> None: ... + def Range(self, theIndex: int) -> BOPDS_IndexRange: ... + def Rank(self, theIndex: int) -> int: ... + def RealPaveBlock(self, thePB: BOPDS_PaveBlock) -> BOPDS_PaveBlock: ... + def RefineFaceInfoIn(self) -> None: ... + def RefineFaceInfoOn(self) -> None: ... + def ReleasePaveBlocks(self) -> None: ... + def SetArguments(self, theLS: TopTools_ListOfShape) -> None: ... + def SetCommonBlock( + self, thePB: BOPDS_PaveBlock, theCB: BOPDS_CommonBlock + ) -> None: ... + def Shape(self, theIndex: int) -> TopoDS_Shape: ... + def ShapeInfo(self, theIndex: int) -> BOPDS_ShapeInfo: ... + def ShapesSD(self) -> TColStd_DataMapOfIntegerInteger: ... + def SharedEdges( + self, + theF1: int, + theF2: int, + theLI: TColStd_ListOfInteger, + theAllocator: NCollection_BaseAllocator, + ) -> None: ... + def SubShapesOnIn( + self, + theNF1: int, + theNF2: int, + theMVOnIn: TColStd_MapOfInteger, + theMVCommon: TColStd_MapOfInteger, + thePBOnIn: BOPDS_IndexedMapOfPaveBlock, + theCommonPB: BOPDS_MapOfPaveBlock, + ) -> None: ... + def UpdateCommonBlock(self, theCB: BOPDS_CommonBlock, theFuzz: float) -> None: ... + def UpdateCommonBlockWithSDVertices(self, theCB: BOPDS_CommonBlock) -> None: ... + @overload + def UpdateFaceInfoIn(self, theIndex: int) -> None: ... + @overload + def UpdateFaceInfoIn(self, theFaces: TColStd_MapOfInteger) -> None: ... + @overload + def UpdateFaceInfoOn(self, theIndex: int) -> None: ... + @overload + def UpdateFaceInfoOn(self, theFaces: TColStd_MapOfInteger) -> None: ... + def UpdatePaveBlock(self, thePB: BOPDS_PaveBlock) -> None: ... + def UpdatePaveBlockWithSDVertices(self, thePB: BOPDS_PaveBlock) -> None: ... + def UpdatePaveBlocks(self) -> None: ... + def UpdatePaveBlocksWithSDVertices(self) -> None: ... + +class BOPDS_FaceInfo: + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, theAllocator: NCollection_BaseAllocator) -> None: ... + def ChangePaveBlocksIn(self) -> BOPDS_IndexedMapOfPaveBlock: ... + def ChangePaveBlocksOn(self) -> BOPDS_IndexedMapOfPaveBlock: ... + def ChangePaveBlocksSc(self) -> BOPDS_IndexedMapOfPaveBlock: ... + def ChangeVerticesIn(self) -> TColStd_MapOfInteger: ... + def ChangeVerticesOn(self) -> TColStd_MapOfInteger: ... + def ChangeVerticesSc(self) -> TColStd_MapOfInteger: ... + def Clear(self) -> None: ... + def Index(self) -> int: ... + def PaveBlocksIn(self) -> BOPDS_IndexedMapOfPaveBlock: ... + def PaveBlocksOn(self) -> BOPDS_IndexedMapOfPaveBlock: ... + def PaveBlocksSc(self) -> BOPDS_IndexedMapOfPaveBlock: ... + def SetIndex(self, theI: int) -> None: ... + def VerticesIn(self) -> TColStd_MapOfInteger: ... + def VerticesOn(self) -> TColStd_MapOfInteger: ... + def VerticesSc(self) -> TColStd_MapOfInteger: ... + +class BOPDS_IndexRange: + def __init__(self) -> None: ... + def Contains(self, theIndex: int) -> bool: ... + def Dump(self) -> None: ... + def First(self) -> int: ... + def Indices(self) -> Tuple[int, int]: ... + def Last(self) -> int: ... + def SetFirst(self, theI1: int) -> None: ... + def SetIndices(self, theI1: int, theI2: int) -> None: ... + def SetLast(self, theI2: int) -> None: ... + +class BOPDS_Iterator: + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, theAllocator: NCollection_BaseAllocator) -> None: ... + def BlockLength(self) -> int: ... + def DS(self) -> BOPDS_DS: ... + def ExpectedLength(self) -> int: ... + def Initialize( + self, theType1: TopAbs_ShapeEnum, theType2: TopAbs_ShapeEnum + ) -> None: ... + def IntersectExt(self, theIndicies: TColStd_MapOfInteger) -> None: ... + def More(self) -> bool: ... + @staticmethod + def NbExtInterfs() -> int: ... + def Next(self) -> None: ... + def Prepare( + self, + theCtx: Optional[IntTools_Context] = IntTools_Context(), + theCheckOBB: Optional[bool] = False, + theFuzzyValue: Optional[float] = Precision.Confusion(), + ) -> None: ... + def RunParallel(self) -> bool: ... + def SetDS(self, pDS: BOPDS_PDS) -> None: ... + def SetRunParallel(self, theFlag: bool) -> None: ... + def Value(self) -> Tuple[int, int]: ... + +class BOPDS_Pair: + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, theIndex1: int, theIndex2: int) -> None: ... + def Indices(self) -> Tuple[int, int]: ... + def IsEqual(self, theOther: BOPDS_Pair) -> bool: ... + def SetIndices(self, theIndex1: int, theIndex2: int) -> None: ... + +class BOPDS_Pave: + def __init__(self) -> None: ... + def Contents(self) -> Tuple[int, float]: ... + def Dump(self) -> None: ... + def Index(self) -> int: ... + def IsEqual(self, theOther: BOPDS_Pave) -> bool: ... + def IsLess(self, theOther: BOPDS_Pave) -> bool: ... + def Parameter(self) -> float: ... + def SetIndex(self, theIndex: int) -> None: ... + def SetParameter(self, theParameter: float) -> None: ... + +class BOPDS_PaveBlock(Standard_Transient): + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, theAllocator: NCollection_BaseAllocator) -> None: ... + def AppendExtPave(self, thePave: BOPDS_Pave) -> None: ... + def AppendExtPave1(self, thePave: BOPDS_Pave) -> None: ... + def ChangeExtPaves(self) -> BOPDS_ListOfPave: ... + def ContainsParameter(self, thePrm: float, theTol: float) -> Tuple[bool, int]: ... + def Dump(self) -> None: ... + def Edge(self) -> int: ... + def ExtPaves(self) -> BOPDS_ListOfPave: ... + @overload + def HasEdge(self) -> bool: ... + @overload + def HasEdge(self) -> Tuple[bool, int]: ... + def HasSameBounds(self, theOther: BOPDS_PaveBlock) -> bool: ... + def HasShrunkData(self) -> bool: ... + def Indices(self) -> Tuple[int, int]: ... + def IsSplitEdge(self) -> bool: ... + def IsSplittable(self) -> bool: ... + def IsToUpdate(self) -> bool: ... + def OriginalEdge(self) -> int: ... + def Pave1(self) -> BOPDS_Pave: ... + def Pave2(self) -> BOPDS_Pave: ... + def Range(self) -> Tuple[float, float]: ... + def RemoveExtPave(self, theVertNum: int) -> None: ... + def SetEdge(self, theEdge: int) -> None: ... + def SetOriginalEdge(self, theEdge: int) -> None: ... + def SetPave1(self, thePave: BOPDS_Pave) -> None: ... + def SetPave2(self, thePave: BOPDS_Pave) -> None: ... + def SetShrunkData( + self, theTS1: float, theTS2: float, theBox: Bnd_Box, theIsSplittable: bool + ) -> None: ... + def ShrunkData(self, theBox: Bnd_Box) -> Tuple[float, float, bool]: ... + def Update( + self, theLPB: BOPDS_ListOfPaveBlock, theFlag: Optional[bool] = True + ) -> None: ... + +class BOPDS_Point: + def __init__(self) -> None: ... + def Index(self) -> int: ... + def Pnt(self) -> gp_Pnt: ... + def Pnt2D1(self) -> gp_Pnt2d: ... + def Pnt2D2(self) -> gp_Pnt2d: ... + def SetIndex(self, theIndex: int) -> None: ... + def SetPnt(self, thePnt: gp_Pnt) -> None: ... + def SetPnt2D1(self, thePnt: gp_Pnt2d) -> None: ... + def SetPnt2D2(self, thePnt: gp_Pnt2d) -> None: ... + +class BOPDS_ShapeInfo: + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, theAllocator: NCollection_BaseAllocator) -> None: ... + def Box(self) -> Bnd_Box: ... + def ChangeBox(self) -> Bnd_Box: ... + def ChangeSubShapes(self) -> TColStd_ListOfInteger: ... + def Dump(self) -> None: ... + def Flag(self) -> int: ... + def HasBRep(self) -> bool: ... + @overload + def HasFlag(self) -> bool: ... + @overload + def HasFlag(self) -> Tuple[bool, int]: ... + def HasReference(self) -> bool: ... + def HasSubShape(self, theI: int) -> bool: ... + def IsInterfering(self) -> bool: ... + def Reference(self) -> int: ... + def SetBox(self, theBox: Bnd_Box) -> None: ... + def SetFlag(self, theI: int) -> None: ... + def SetReference(self, theI: int) -> None: ... + def SetShape(self, theS: TopoDS_Shape) -> None: ... + def SetShapeType(self, theType: TopAbs_ShapeEnum) -> None: ... + def Shape(self) -> TopoDS_Shape: ... + def ShapeType(self) -> TopAbs_ShapeEnum: ... + def SubShapes(self) -> TColStd_ListOfInteger: ... + +class BOPDS_SubIterator: + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, theAllocator: NCollection_BaseAllocator) -> None: ... + def DS(self) -> BOPDS_DS: ... + def ExpectedLength(self) -> int: ... + def Initialize(self) -> None: ... + def More(self) -> bool: ... + def Next(self) -> None: ... + def Prepare(self) -> None: ... + def SetDS(self, pDS: BOPDS_PDS) -> None: ... + def SetSubSet1(self, theLI: TColStd_ListOfInteger) -> None: ... + def SetSubSet2(self, theLI: TColStd_ListOfInteger) -> None: ... + def SubSet1(self) -> TColStd_ListOfInteger: ... + def SubSet2(self) -> TColStd_ListOfInteger: ... + def Value(self) -> Tuple[int, int]: ... + +class BOPDS_Tools: + @staticmethod + def HasBRep(theT: TopAbs_ShapeEnum) -> bool: ... + @staticmethod + def IsInterfering(theT: TopAbs_ShapeEnum) -> bool: ... + @overload + @staticmethod + def TypeToInteger(theT1: TopAbs_ShapeEnum, theT2: TopAbs_ShapeEnum) -> int: ... + @overload + @staticmethod + def TypeToInteger(theT: TopAbs_ShapeEnum) -> int: ... + +class BOPDS_InterfEE(BOPDS_Interf): + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, theAllocator: NCollection_BaseAllocator) -> None: ... + def CommonPart(self) -> IntTools_CommonPrt: ... + def SetCommonPart(self, theCP: IntTools_CommonPrt) -> None: ... + +class BOPDS_InterfEF(BOPDS_Interf): + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, theAllocator: NCollection_BaseAllocator) -> None: ... + def CommonPart(self) -> IntTools_CommonPrt: ... + def SetCommonPart(self, theCP: IntTools_CommonPrt) -> None: ... + +class BOPDS_InterfEZ(BOPDS_Interf): + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, theAllocator: NCollection_BaseAllocator) -> None: ... + +class BOPDS_InterfFF(BOPDS_Interf): + def __init__(self) -> None: ... + def ChangeCurves(self) -> BOPDS_VectorOfCurve: ... + def ChangePoints(self) -> BOPDS_VectorOfPoint: ... + def Curves(self) -> BOPDS_VectorOfCurve: ... + def Init(self, theNbCurves: int, theNbPoints: int) -> None: ... + def Points(self) -> BOPDS_VectorOfPoint: ... + def SetTangentFaces(self, theFlag: bool) -> None: ... + def TangentFaces(self) -> bool: ... + +class BOPDS_InterfFZ(BOPDS_Interf): + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, theAllocator: NCollection_BaseAllocator) -> None: ... + +class BOPDS_InterfVE(BOPDS_Interf): + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, theAllocator: NCollection_BaseAllocator) -> None: ... + def Parameter(self) -> float: ... + def SetParameter(self, theT: float) -> None: ... + +class BOPDS_InterfVF(BOPDS_Interf): + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, theAllocator: NCollection_BaseAllocator) -> None: ... + def SetUV(self, theU: float, theV: float) -> None: ... + def UV(self) -> Tuple[float, float]: ... + +class BOPDS_InterfVV(BOPDS_Interf): + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, theAllocator: NCollection_BaseAllocator) -> None: ... + +class BOPDS_InterfVZ(BOPDS_Interf): + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, theAllocator: NCollection_BaseAllocator) -> None: ... + +class BOPDS_InterfZZ(BOPDS_Interf): + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, theAllocator: NCollection_BaseAllocator) -> None: ... + +class BOPDS_IteratorSI(BOPDS_Iterator): + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, theAllocator: NCollection_BaseAllocator) -> None: ... + def UpdateByLevelOfCheck(self, theLevel: int) -> None: ... + +# classnotwrapped +class BOPDS_Interf: ... + +# harray1 classes +# harray2 classes +# hsequence classes diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BOPTools.py b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BOPTools.py new file mode 100644 index 0000000000000000000000000000000000000000..0243addfaa7e012511a2d5598a70741c79fd9ab2 --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BOPTools.py @@ -0,0 +1,3352 @@ +# This file was automatically generated by SWIG (https://www.swig.org). +# Version 4.3.0 +# +# 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 __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: + > + This is too much verbose. + We prefer : + + or + + """ + klass_name = str(klass.__class__).split(".")[3].split("'")[0] + repr_string = " 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 with the point with tolerance . 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 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 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 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 taking into account 3D-curve resolution and corresponding tolerance values of , . + + Parameters + ---------- + aE: TopoDS_Edge + aF: TopoDS_Face + aSR: IntTools_Range + aNewSR: IntTools_Range + + Return + ------- + None + + Description + ----------- + Correct shrunk range taking into account 3D-curve resolution and corresponding tolerance values of , . + + """ + 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 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 is max value of the tolerance that can be accepted for correction. If real value of the tolerance will be greater than , 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 . 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 . + + """ + 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 lays on the face , i.e the is IN or ON in 2D of . + + """ + 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 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 Flag 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 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 ( 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 ( 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 ( 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 builds the blocks (compounds) of elements of type connected through the shapes of the type . The blocks are stored into the list . + + Parameters + ---------- + theS: TopoDS_Shape + theConnectionType: TopAbs_ShapeEnum + theElementType: TopAbs_ShapeEnum + theLCB: TopTools_ListOfListOfShape + theConnectionMap: TopTools_IndexedDataMapOfShapeListOfShape + + Return + ------- + None + + Description + ----------- + For the compound builds the blocks (compounds) of elements of type connected through the shapes of the type . The blocks are stored into the list of lists . Returns also the connection map , 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 . + + """ + 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 and 3D-tolerance value . + + Parameters + ---------- + aV1: TopoDS_Vertex + aV2: TopoDS_Vertex + aNewVertex: TopoDS_Vertex + + Return + ------- + None + + Description + ----------- + Make a vertex using couple of vertices . + + 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 with parameters . + + 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 with parameter and the face . + + """ + 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()) + + Return + ------- + None + + Description + ----------- + Makes 2d curve of the edge on the faces and . - 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 and two vertices at parameters . + + """ + 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 and two vertices at parameters . + + """ + 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 at parameter . + + """ + 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 taking into account the fact that lays on the curve . + + Parameters + ---------- + aE: TopoDS_Edge + aT: float + aV: TopoDS_Vertex + + Return + ------- + None + + Description + ----------- + Update the tolerance value for vertex taking into account the fact that lays on the edge . + + Parameters + ---------- + aVF: TopoDS_Vertex + aVN: TopoDS_Vertex + + Return + ------- + None + + Description + ----------- + Update the tolerance value for vertex taking into account the fact that should cover tolerance zone of . + + """ + 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()) + + Return + ------- + None + + Description + ----------- + Adjust P-Curve (3D-curve ) on surface of the face . - 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()) + + Return + ------- + None + + Description + ----------- + Adjust P-Curve (3D-curve ) on surface . [aT1, aT2] - range to adjust - 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 (3D-curve ) on surface . [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 on surface to the edge 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()) + + Return + ------- + None + + Description + ----------- + Compute P-Curve for the edge on the face . Raises exception Standard_ConstructionError if projection algorithm fails. - 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()) + + Return + ------- + aToler: float + + Description + ----------- + Get P-Curve for the edge on surface . If the P-Curve does not exist, build it using Make2D(). [aToler] - reached tolerance Raises exception Standard_ConstructionError if algorithm Make2D() fails. - storage for caching the geometrical tools. + + Parameters + ---------- + aE: TopoDS_Edge + aF: TopoDS_Face + aC: Geom2d_Curve + theContext: IntTools_Context (optional, default to opencascade::handle()) + + Return + ------- + aFirst: float + aLast: float + aToler: float + + Description + ----------- + Get P-Curve for the edge on surface . 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. - 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 [in 3D] at parameter . + + """ + 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 has P-Curve on surface . [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 has P-Curve on surface . 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 . + + """ + 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()) + + Return + ------- + aFirst: float + aLast: float + aToler: float + + Description + ----------- + Make P-Curve for the edge on surface . [aFirst, aLast] - range of the P-Curve [aToler] - reached tolerance Raises exception Standard_ConstructionError if algorithm fails. - 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()) + + Return + ------- + aToler: float + + Description + ----------- + Make P-Curve for the 3D-curve on surface . [aToler] - reached tolerance Raises exception Standard_ConstructionError if projection algorithm fails. - 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()) + + Return + ------- + aToler: float + + Description + ----------- + Make P-Curve for the 3D-curve on surface . [aT1, aT2] - range to build [aToler] - reached tolerance Raises exception Standard_ConstructionError if projection algorithm fails. - 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()) + + Return + ------- + U: float + V: float + + Description + ----------- + Compute surface parameters of the face for the point from the edge at parameter . If has't pcurve on surface, algorithm tries to get it by projection and can raise exception Standard_ConstructionError if projection algorithm fails. - 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 seam edge for the face 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 seam edge for the face basing on the positions of 2d curves of the original edge . + + """ + 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 for the 3D-point that belongs to the edge at parameter . 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 for the 3D-point that belongs to the edge at parameter . 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 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 for the 3D-point that belongs to the edge at parameter . 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 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()) + + Return + ------- + None + + Description + ----------- + Computes normal to the face for the point on the edge at parameter . - storage for caching the geometrical tools. + + Parameters + ---------- + aE: TopoDS_Edge + aF: TopoDS_Face + aD: gp_Dir + theContext: IntTools_Context (optional, default to opencascade::handle()) + + Return + ------- + None + + Description + ----------- + Computes normal to the face for the point on the edge at arbitrary intermediate parameter. - 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 to surface 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 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 from the face that is the same as the edge . + + """ + 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 inside the face . - 2D representation of on the surface of 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 inside the face using starting point taken by the parameter from the 2d curve of the edge on the face in the direction perpendicular to the tangent vector of the 2d curve of the edge. The point will be distanced on from the 2d curve. - 2D representation of on the surface of 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 inside the face using the line so that 2D point , 2D representation of on the surface of , 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 , () that is near to the edge at parameter towards to the material of the face . The value of shifting in 2D is 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 - does not have 2d curve on the face ; 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 , () that is near to the edge at parameter towards to the material of the face . The value of shifting in 2D is . No checks on this value will be done. Returns error status: 0 - in case of success; 1 - does not have 2d curve on the face . + + Parameters + ---------- + aE: TopoDS_Edge + aF: TopoDS_Face + aT: float + aP2D: gp_Pnt2d + aPx: gp_Pnt + theContext: IntTools_Context + + Return + ------- + int + + Description + ----------- + Computes the point , () that is near to the edge at parameter towards to the material of the face . 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 - does not have 2d curve on the face ; 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 , () that is near to the edge at arbitrary parameter towards to the material of the face . 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 - does not have 2d curve on the face ; 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) + + + diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BRepAlgo.py b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BRepAlgo.py new file mode 100644 index 0000000000000000000000000000000000000000..78106f153f9e3c4a81c9551dcca631b976663a65 --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BRepAlgo.py @@ -0,0 +1,1900 @@ +# This file was automatically generated by SWIG (https://www.swig.org). +# Version 4.3.0 +# +# Do not make changes to this file unless you know what you are doing - modify +# the SWIG interface file instead. + +""" +BRepAlgo module, see official documentation at +https://dev.opencascade.org/doc/occt-7.9.0/refman/html/package_brepalgo.html +""" + +from sys import version_info as _swig_python_version_info +# Import the low-level C/C++ module +if __package__ or "." in __name__: + from . import _BRepAlgo +else: + import _BRepAlgo + +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__ = _BRepAlgo.delete_SwigPyIterator + + def value(self): + return _BRepAlgo.SwigPyIterator_value(self) + + def incr(self, n=1): + return _BRepAlgo.SwigPyIterator_incr(self, n) + + def decr(self, n=1): + return _BRepAlgo.SwigPyIterator_decr(self, n) + + def distance(self, x): + return _BRepAlgo.SwigPyIterator_distance(self, x) + + def equal(self, x): + return _BRepAlgo.SwigPyIterator_equal(self, x) + + def copy(self): + return _BRepAlgo.SwigPyIterator_copy(self) + + def next(self): + return _BRepAlgo.SwigPyIterator_next(self) + + def __next__(self): + return _BRepAlgo.SwigPyIterator___next__(self) + + def previous(self): + return _BRepAlgo.SwigPyIterator_previous(self) + + def advance(self, n): + return _BRepAlgo.SwigPyIterator_advance(self, n) + + def __eq__(self, x): + return _BRepAlgo.SwigPyIterator___eq__(self, x) + + def __ne__(self, x): + return _BRepAlgo.SwigPyIterator___ne__(self, x) + + def __iadd__(self, n): + return _BRepAlgo.SwigPyIterator___iadd__(self, n) + + def __isub__(self, n): + return _BRepAlgo.SwigPyIterator___isub__(self, n) + + def __add__(self, n): + return _BRepAlgo.SwigPyIterator___add__(self, n) + + def __sub__(self, *args): + return _BRepAlgo.SwigPyIterator___sub__(self, *args) + def __iter__(self): + return self + +# Register SwigPyIterator in _BRepAlgo: +_BRepAlgo.SwigPyIterator_swigregister(SwigPyIterator) + +def _dumps_object(klass): + """ Overwrite default string output for any wrapped object. + By default, __repr__ method returns something like: + > + This is too much verbose. + We prefer : + + or + + """ + klass_name = str(klass.__class__).split(".")[3].split("'")[0] + repr_string = ", else returns . + + Parameters + ---------- + theArgs: TopTools_ListOfShape + theResult: TopoDS_Shape + closedSolid: bool (optional, default to Standard_False) + GeomCtrl: bool (optional, default to Standard_True) + + Return + ------- + bool + + Description + ----------- + Checks if the Generated and Modified Faces from the shapes in the shape are 'correct'. The args may be empty, then all faces will be checked. If is True, only closed shape are valid. If is False the geometry of new vertices and edges are not verified and the auto-intersection of new wires are not searched. + + """ + return _BRepAlgo.brepalgo_IsValid(*args) + + __repr__ = _dumps_object + + + def __init__(self): + _BRepAlgo.brepalgo_swiginit(self, _BRepAlgo.new_brepalgo()) + __swig_destroy__ = _BRepAlgo.delete_brepalgo + +# Register brepalgo in _BRepAlgo: +_BRepAlgo.brepalgo_swigregister(brepalgo) +class BRepAlgo_AsDes(OCC.Core.Standard.Standard_Transient): + 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 + ----------- + Creates an empty AsDes. + + """ + _BRepAlgo.BRepAlgo_AsDes_swiginit(self, _BRepAlgo.new_BRepAlgo_AsDes(*args)) + + def Add(self, *args): + r""" + + Parameters + ---------- + S: TopoDS_Shape + SS: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + Stores as a futur subshape of . + + Parameters + ---------- + S: TopoDS_Shape + SS: TopTools_ListOfShape + + Return + ------- + None + + Description + ----------- + Stores as futurs SubShapes of . + + """ + return _BRepAlgo.BRepAlgo_AsDes_Add(self, *args) + + def Ascendant(self, *args): + r""" + + Parameters + ---------- + S: TopoDS_Shape + + Return + ------- + TopTools_ListOfShape + + Description + ----------- + Returns the Shape containing . + + """ + return _BRepAlgo.BRepAlgo_AsDes_Ascendant(self, *args) + + def ChangeDescendant(self, *args): + r""" + + Parameters + ---------- + S: TopoDS_Shape + + Return + ------- + TopTools_ListOfShape + + Description + ----------- + Returns futur subhapes of . + + """ + return _BRepAlgo.BRepAlgo_AsDes_ChangeDescendant(self, *args) + + def Clear(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRepAlgo.BRepAlgo_AsDes_Clear(self, *args) + + def Descendant(self, *args): + r""" + + Parameters + ---------- + S: TopoDS_Shape + + Return + ------- + TopTools_ListOfShape + + Description + ----------- + Returns futur subhapes of . + + """ + return _BRepAlgo.BRepAlgo_AsDes_Descendant(self, *args) + + def HasAscendant(self, *args): + r""" + + Parameters + ---------- + S: TopoDS_Shape + + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _BRepAlgo.BRepAlgo_AsDes_HasAscendant(self, *args) + + def HasCommonDescendant(self, *args): + r""" + + Parameters + ---------- + S1: TopoDS_Shape + S2: TopoDS_Shape + LC: TopTools_ListOfShape + + Return + ------- + bool + + Description + ----------- + Returns True if (S1> and has common Descendants. Stores in the Commons Descendants. + + """ + return _BRepAlgo.BRepAlgo_AsDes_HasCommonDescendant(self, *args) + + def HasDescendant(self, *args): + r""" + + Parameters + ---------- + S: TopoDS_Shape + + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _BRepAlgo.BRepAlgo_AsDes_HasDescendant(self, *args) + + def Remove(self, *args): + r""" + + Parameters + ---------- + theS: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + Remove theS from me. + + """ + return _BRepAlgo.BRepAlgo_AsDes_Remove(self, *args) + + def Replace(self, *args): + r""" + + Parameters + ---------- + theOldS: TopoDS_Shape + theNewS: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + Replace theOldS by theNewS. theOldS disappear from this. + + """ + return _BRepAlgo.BRepAlgo_AsDes_Replace(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_BRepAlgo_AsDes_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepAlgo.delete_BRepAlgo_AsDes + +# Register BRepAlgo_AsDes in _BRepAlgo: +_BRepAlgo.BRepAlgo_AsDes_swigregister(BRepAlgo_AsDes) +class BRepAlgo_FaceRestrictor(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. + + """ + _BRepAlgo.BRepAlgo_FaceRestrictor_swiginit(self, _BRepAlgo.new_BRepAlgo_FaceRestrictor(*args)) + + def Add(self, *args): + r""" + + Parameters + ---------- + W: TopoDS_Wire + + Return + ------- + None + + Description + ----------- + Add the wire to the set of wires. //! Warning: The Wires must be closed. //! The edges of can be modified if they don't have pcurves on the surface of . In this case if is false the first pcurve of the edge is positioned on . if is True, the Pcurve On is the projection of the curve 3d on . + + """ + return _BRepAlgo.BRepAlgo_FaceRestrictor_Add(self, *args) + + def Clear(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Removes all the Wires. + + """ + return _BRepAlgo.BRepAlgo_FaceRestrictor_Clear(self, *args) + + def Current(self, *args): + r""" + Return + ------- + TopoDS_Face + + Description + ----------- + No available documentation. + + """ + return _BRepAlgo.BRepAlgo_FaceRestrictor_Current(self, *args) + + def Init(self, *args): + r""" + + Parameters + ---------- + F: TopoDS_Face + Proj: bool (optional, default to Standard_False) + ControlOrientation: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + the surface of will be the surface of each new faces built. is used to update pcurves on edges if necessary. See Add(). + + """ + return _BRepAlgo.BRepAlgo_FaceRestrictor_Init(self, *args) + + def IsDone(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _BRepAlgo.BRepAlgo_FaceRestrictor_IsDone(self, *args) + + def More(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _BRepAlgo.BRepAlgo_FaceRestrictor_More(self, *args) + + def Next(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRepAlgo.BRepAlgo_FaceRestrictor_Next(self, *args) + + def Perform(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Evaluate all the faces limited by the set of Wires. + + """ + return _BRepAlgo.BRepAlgo_FaceRestrictor_Perform(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepAlgo.delete_BRepAlgo_FaceRestrictor + +# Register BRepAlgo_FaceRestrictor in _BRepAlgo: +_BRepAlgo.BRepAlgo_FaceRestrictor_swigregister(BRepAlgo_FaceRestrictor) +class BRepAlgo_Image(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. + + """ + _BRepAlgo.BRepAlgo_Image_swiginit(self, _BRepAlgo.new_BRepAlgo_Image(*args)) + + def Add(self, *args): + r""" + + Parameters + ---------- + OldS: TopoDS_Shape + NewS: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + Add to the image of . + + Parameters + ---------- + OldS: TopoDS_Shape + NewS: TopTools_ListOfShape + + Return + ------- + None + + Description + ----------- + Add to the image of . + + """ + return _BRepAlgo.BRepAlgo_Image_Add(self, *args) + + def Bind(self, *args): + r""" + + Parameters + ---------- + OldS: TopoDS_Shape + NewS: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + Links as image of . + + Parameters + ---------- + OldS: TopoDS_Shape + NewS: TopTools_ListOfShape + + Return + ------- + None + + Description + ----------- + Links as image of . + + """ + return _BRepAlgo.BRepAlgo_Image_Bind(self, *args) + + def Clear(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRepAlgo.BRepAlgo_Image_Clear(self, *args) + + def Compact(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Keeps only the link between roots and lastimage. + + """ + return _BRepAlgo.BRepAlgo_Image_Compact(self, *args) + + def Filter(self, *args): + r""" + + Parameters + ---------- + S: TopoDS_Shape + ShapeType: TopAbs_ShapeEnum + + Return + ------- + None + + Description + ----------- + Deletes in the images the shape of type which are not in . Warning: Compact() must be call before. + + """ + return _BRepAlgo.BRepAlgo_Image_Filter(self, *args) + + def HasImage(self, *args): + r""" + + Parameters + ---------- + S: TopoDS_Shape + + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _BRepAlgo.BRepAlgo_Image_HasImage(self, *args) + + def Image(self, *args): + r""" + + Parameters + ---------- + S: TopoDS_Shape + + Return + ------- + TopTools_ListOfShape + + Description + ----------- + Returns the Image of . Returns in the list if HasImage(S) is false. + + """ + return _BRepAlgo.BRepAlgo_Image_Image(self, *args) + + def ImageFrom(self, *args): + r""" + + Parameters + ---------- + S: TopoDS_Shape + + Return + ------- + TopoDS_Shape + + Description + ----------- + Returns the generator of . + + """ + return _BRepAlgo.BRepAlgo_Image_ImageFrom(self, *args) + + def IsImage(self, *args): + r""" + + Parameters + ---------- + S: TopoDS_Shape + + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _BRepAlgo.BRepAlgo_Image_IsImage(self, *args) + + def LastImage(self, *args): + r""" + + Parameters + ---------- + S: TopoDS_Shape + L: TopTools_ListOfShape + + Return + ------- + None + + Description + ----------- + Stores in the images of images of...images of . contains only if HasImage(S) is false. + + """ + return _BRepAlgo.BRepAlgo_Image_LastImage(self, *args) + + def Remove(self, *args): + r""" + + Parameters + ---------- + S: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + Remove to set of images. + + """ + return _BRepAlgo.BRepAlgo_Image_Remove(self, *args) + + def RemoveRoot(self, *args): + r""" + + Parameters + ---------- + Root: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + Removes the root from the list of roots and up and down maps. + + """ + return _BRepAlgo.BRepAlgo_Image_RemoveRoot(self, *args) + + def ReplaceRoot(self, *args): + r""" + + Parameters + ---------- + OldRoot: TopoDS_Shape + NewRoot: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + Replaces the with the , so all images of the become the images of the . The is removed. + + """ + return _BRepAlgo.BRepAlgo_Image_ReplaceRoot(self, *args) + + def Root(self, *args): + r""" + + Parameters + ---------- + S: TopoDS_Shape + + Return + ------- + TopoDS_Shape + + Description + ----------- + Returns the upper generator of . + + """ + return _BRepAlgo.BRepAlgo_Image_Root(self, *args) + + def Roots(self, *args): + r""" + Return + ------- + TopTools_ListOfShape + + Description + ----------- + No available documentation. + + """ + return _BRepAlgo.BRepAlgo_Image_Roots(self, *args) + + def SetRoot(self, *args): + r""" + + Parameters + ---------- + S: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRepAlgo.BRepAlgo_Image_SetRoot(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepAlgo.delete_BRepAlgo_Image + +# Register BRepAlgo_Image in _BRepAlgo: +_BRepAlgo.BRepAlgo_Image_swigregister(BRepAlgo_Image) +class BRepAlgo_Loop(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. + + """ + _BRepAlgo.BRepAlgo_Loop_swiginit(self, _BRepAlgo.new_BRepAlgo_Loop(*args)) + + def AddConstEdge(self, *args): + r""" + + Parameters + ---------- + E: TopoDS_Edge + + Return + ------- + None + + Description + ----------- + Add as const edge, E can be in the result. + + """ + return _BRepAlgo.BRepAlgo_Loop_AddConstEdge(self, *args) + + def AddConstEdges(self, *args): + r""" + + Parameters + ---------- + LE: TopTools_ListOfShape + + Return + ------- + None + + Description + ----------- + Add as a set of const edges. + + """ + return _BRepAlgo.BRepAlgo_Loop_AddConstEdges(self, *args) + + def AddEdge(self, *args): + r""" + + Parameters + ---------- + E: TopoDS_Edge + LV: TopTools_ListOfShape + + Return + ------- + None + + Description + ----------- + Add E with . will be copied and trim by vertices in . + + """ + return _BRepAlgo.BRepAlgo_Loop_AddEdge(self, *args) + + def CutEdge(self, *args): + r""" + + Parameters + ---------- + E: TopoDS_Edge + VonE: TopTools_ListOfShape + NE: TopTools_ListOfShape + + Return + ------- + None + + Description + ----------- + Cut the edge in several edges on the vertices. + + """ + return _BRepAlgo.BRepAlgo_Loop_CutEdge(self, *args) + + def GetTolConf(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Get maximal tolerance used for comparing distances between vertices. + + """ + return _BRepAlgo.BRepAlgo_Loop_GetTolConf(self, *args) + + def GetVerticesForSubstitute(self, *args): + r""" + + Parameters + ---------- + VerVerMap: TopTools_DataMapOfShapeShape + + Return + ------- + None + + Description + ----------- + Returns the datamap of vertices with their substitutes. + + """ + return _BRepAlgo.BRepAlgo_Loop_GetVerticesForSubstitute(self, *args) + + def Init(self, *args): + r""" + + Parameters + ---------- + F: TopoDS_Face + + Return + ------- + None + + Description + ----------- + Init with the set of edges must have pcurves on . + + """ + return _BRepAlgo.BRepAlgo_Loop_Init(self, *args) + + def NewEdges(self, *args): + r""" + + Parameters + ---------- + E: TopoDS_Edge + + Return + ------- + TopTools_ListOfShape + + Description + ----------- + Returns the list of new edges built from an edge it can be an empty list. + + """ + return _BRepAlgo.BRepAlgo_Loop_NewEdges(self, *args) + + def NewFaces(self, *args): + r""" + Return + ------- + TopTools_ListOfShape + + Description + ----------- + Returns the list of faces. Warning: The method as to be called before. can be an empty list. + + """ + return _BRepAlgo.BRepAlgo_Loop_NewFaces(self, *args) + + def NewWires(self, *args): + r""" + Return + ------- + TopTools_ListOfShape + + Description + ----------- + Returns the list of wires performed. can be an empty list. + + """ + return _BRepAlgo.BRepAlgo_Loop_NewWires(self, *args) + + def Perform(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Make loops. + + """ + return _BRepAlgo.BRepAlgo_Loop_Perform(self, *args) + + def SetImageVV(self, *args): + r""" + + Parameters + ---------- + theImageVV: BRepAlgo_Image + + Return + ------- + None + + Description + ----------- + Sets the Image Vertex - Vertex. + + """ + return _BRepAlgo.BRepAlgo_Loop_SetImageVV(self, *args) + + def SetTolConf(self, *args): + r""" + + Parameters + ---------- + theTolConf: float + + Return + ------- + None + + Description + ----------- + Set maximal tolerance used for comparing distances between vertices. + + """ + return _BRepAlgo.BRepAlgo_Loop_SetTolConf(self, *args) + + def UpdateVEmap(self, *args): + r""" + + Parameters + ---------- + theVEmap: TopTools_IndexedDataMapOfShapeListOfShape + + Return + ------- + None + + Description + ----------- + Update VE map according to Image Vertex - Vertex. + + """ + return _BRepAlgo.BRepAlgo_Loop_UpdateVEmap(self, *args) + + def VerticesForSubstitute(self, *args): + r""" + + Parameters + ---------- + VerVerMap: TopTools_DataMapOfShapeShape + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRepAlgo.BRepAlgo_Loop_VerticesForSubstitute(self, *args) + + def WiresToFaces(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Build faces from the wires result. + + """ + return _BRepAlgo.BRepAlgo_Loop_WiresToFaces(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepAlgo.delete_BRepAlgo_Loop + +# Register BRepAlgo_Loop in _BRepAlgo: +_BRepAlgo.BRepAlgo_Loop_swigregister(BRepAlgo_Loop) +class BRepAlgo_NormalProjection(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 + ---------- + S: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _BRepAlgo.BRepAlgo_NormalProjection_swiginit(self, _BRepAlgo.new_BRepAlgo_NormalProjection(*args)) + + def Add(self, *args): + r""" + + Parameters + ---------- + ToProj: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + Add an edge or a wire to the list of shape to project. + + """ + return _BRepAlgo.BRepAlgo_NormalProjection_Add(self, *args) + + def Ancestor(self, *args): + r""" + + Parameters + ---------- + E: TopoDS_Edge + + Return + ------- + TopoDS_Shape + + Description + ----------- + For a resulting edge, returns the corresponding initial edge. + + """ + return _BRepAlgo.BRepAlgo_NormalProjection_Ancestor(self, *args) + + def Build(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Builds the result as a compound. + + """ + return _BRepAlgo.BRepAlgo_NormalProjection_Build(self, *args) + + def BuildWire(self, *args): + r""" + + Parameters + ---------- + Liste: TopTools_ListOfShape + + Return + ------- + bool + + Description + ----------- + build the result as a list of wire if possible in -- a first returns a wire only if there is only a wire. + + """ + return _BRepAlgo.BRepAlgo_NormalProjection_BuildWire(self, *args) + + def Compute3d(self, *args): + r""" + + Parameters + ---------- + With3d: bool (optional, default to Standard_True) + + Return + ------- + None + + Description + ----------- + if With3d = Standard_False the 3dcurve is not computed the initial 3dcurve is kept to build the resulting edges. + + """ + return _BRepAlgo.BRepAlgo_NormalProjection_Compute3d(self, *args) + + def Couple(self, *args): + r""" + + Parameters + ---------- + E: TopoDS_Edge + + Return + ------- + TopoDS_Shape + + Description + ----------- + For a projected edge, returns the corresponding initial face. + + """ + return _BRepAlgo.BRepAlgo_NormalProjection_Couple(self, *args) + + def Generated(self, *args): + r""" + + Parameters + ---------- + S: TopoDS_Shape + + Return + ------- + TopTools_ListOfShape + + Description + ----------- + Returns the list of shapes generated from the shape . + + """ + return _BRepAlgo.BRepAlgo_NormalProjection_Generated(self, *args) + + def Init(self, *args): + r""" + + Parameters + ---------- + S: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRepAlgo.BRepAlgo_NormalProjection_Init(self, *args) + + def IsDone(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _BRepAlgo.BRepAlgo_NormalProjection_IsDone(self, *args) + + def IsElementary(self, *args): + r""" + + Parameters + ---------- + C: Adaptor3d_Curve + + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _BRepAlgo.BRepAlgo_NormalProjection_IsElementary(self, *args) + + def Projection(self, *args): + r""" + Return + ------- + TopoDS_Shape + + Description + ----------- + returns the result. + + """ + return _BRepAlgo.BRepAlgo_NormalProjection_Projection(self, *args) + + def SetDefaultParams(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Set the parameters used for computation in their default values. + + """ + return _BRepAlgo.BRepAlgo_NormalProjection_SetDefaultParams(self, *args) + + def SetLimit(self, *args): + r""" + + Parameters + ---------- + FaceBoundaries: bool (optional, default to Standard_True) + + Return + ------- + None + + Description + ----------- + Manage limitation of projected edges. + + """ + return _BRepAlgo.BRepAlgo_NormalProjection_SetLimit(self, *args) + + def SetMaxDistance(self, *args): + r""" + + Parameters + ---------- + MaxDist: float + + Return + ------- + None + + Description + ----------- + Sets the maximum distance between target shape and shape to project. If this condition is not satisfied then corresponding part of solution is discarded. if MaxDist < 0 then this method does not affect the algorithm. + + """ + return _BRepAlgo.BRepAlgo_NormalProjection_SetMaxDistance(self, *args) + + def SetParams(self, *args): + r""" + + Parameters + ---------- + Tol3D: float + Tol2D: float + InternalContinuity: GeomAbs_Shape + MaxDegree: int + MaxSeg: int + + Return + ------- + None + + Description + ----------- + Set the parameters used for computation Tol3d is the required tolerance between the 3d projected curve and its 2d representation InternalContinuity is the order of constraints used for approximation. MaxDeg and MaxSeg are the maximum degree and the maximum number of segment for BSpline resulting of an approximation. + + """ + return _BRepAlgo.BRepAlgo_NormalProjection_SetParams(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepAlgo.delete_BRepAlgo_NormalProjection + +# Register BRepAlgo_NormalProjection in _BRepAlgo: +_BRepAlgo.BRepAlgo_NormalProjection_swigregister(BRepAlgo_NormalProjection) + + + +@deprecated +def brepalgo_ConcatenateWire(*args): + return brepalgo.ConcatenateWire(*args) + +@deprecated +def brepalgo_ConcatenateWireC0(*args): + return brepalgo.ConcatenateWireC0(*args) + +@deprecated +def brepalgo_ConvertFace(*args): + return brepalgo.ConvertFace(*args) + +@deprecated +def brepalgo_ConvertWire(*args): + return brepalgo.ConvertWire(*args) + +@deprecated +def brepalgo_IsTopologicallyValid(*args): + return brepalgo.IsTopologicallyValid(*args) + +@deprecated +def brepalgo_IsValid(*args): + return brepalgo.IsValid(*args) + +@deprecated +def brepalgo_IsValid(*args): + return brepalgo.IsValid(*args) + + + diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BRepAlgo.pyi b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BRepAlgo.pyi new file mode 100644 index 0000000000000000000000000000000000000000..0060de845f139af9678012a70a3b190302ffafff --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BRepAlgo.pyi @@ -0,0 +1,157 @@ +from enum import IntEnum +from typing import overload, NewType, Optional, Tuple + +from OCC.Core.Standard import * +from OCC.Core.NCollection import * +from OCC.Core.TopoDS import * +from OCC.Core.GeomAbs import * +from OCC.Core.TopTools import * +from OCC.Core.TopAbs import * +from OCC.Core.Adaptor3d import * + +class brepalgo: + @staticmethod + def ConcatenateWire( + Wire: TopoDS_Wire, + Option: GeomAbs_Shape, + AngularTolerance: Optional[float] = 1.0e-4, + ) -> TopoDS_Wire: ... + @staticmethod + def ConcatenateWireC0(Wire: TopoDS_Wire) -> TopoDS_Edge: ... + @staticmethod + def ConvertFace(theFace: TopoDS_Face, theAngleTolerance: float) -> TopoDS_Face: ... + @staticmethod + def ConvertWire( + theWire: TopoDS_Wire, theAngleTolerance: float, theFace: TopoDS_Face + ) -> TopoDS_Wire: ... + @staticmethod + def IsTopologicallyValid(S: TopoDS_Shape) -> bool: ... + @overload + @staticmethod + def IsValid(S: TopoDS_Shape) -> bool: ... + @overload + @staticmethod + def IsValid( + theArgs: TopTools_ListOfShape, + theResult: TopoDS_Shape, + closedSolid: Optional[bool] = False, + GeomCtrl: Optional[bool] = True, + ) -> bool: ... + +class BRepAlgo_AsDes(Standard_Transient): + def __init__(self) -> None: ... + @overload + def Add(self, S: TopoDS_Shape, SS: TopoDS_Shape) -> None: ... + @overload + def Add(self, S: TopoDS_Shape, SS: TopTools_ListOfShape) -> None: ... + def Ascendant(self, S: TopoDS_Shape) -> TopTools_ListOfShape: ... + def ChangeDescendant(self, S: TopoDS_Shape) -> TopTools_ListOfShape: ... + def Clear(self) -> None: ... + def Descendant(self, S: TopoDS_Shape) -> TopTools_ListOfShape: ... + def HasAscendant(self, S: TopoDS_Shape) -> bool: ... + def HasCommonDescendant( + self, S1: TopoDS_Shape, S2: TopoDS_Shape, LC: TopTools_ListOfShape + ) -> bool: ... + def HasDescendant(self, S: TopoDS_Shape) -> bool: ... + def Remove(self, theS: TopoDS_Shape) -> None: ... + def Replace(self, theOldS: TopoDS_Shape, theNewS: TopoDS_Shape) -> None: ... + +class BRepAlgo_FaceRestrictor: + def __init__(self) -> None: ... + def Add(self, W: TopoDS_Wire) -> None: ... + def Clear(self) -> None: ... + def Current(self) -> TopoDS_Face: ... + def Init( + self, + F: TopoDS_Face, + Proj: Optional[bool] = False, + ControlOrientation: Optional[bool] = False, + ) -> None: ... + def IsDone(self) -> bool: ... + def More(self) -> bool: ... + def Next(self) -> None: ... + def Perform(self) -> None: ... + +class BRepAlgo_Image: + def __init__(self) -> None: ... + @overload + def Add(self, OldS: TopoDS_Shape, NewS: TopoDS_Shape) -> None: ... + @overload + def Add(self, OldS: TopoDS_Shape, NewS: TopTools_ListOfShape) -> None: ... + @overload + def Bind(self, OldS: TopoDS_Shape, NewS: TopoDS_Shape) -> None: ... + @overload + def Bind(self, OldS: TopoDS_Shape, NewS: TopTools_ListOfShape) -> None: ... + def Clear(self) -> None: ... + def Compact(self) -> None: ... + def Filter(self, S: TopoDS_Shape, ShapeType: TopAbs_ShapeEnum) -> None: ... + def HasImage(self, S: TopoDS_Shape) -> bool: ... + def Image(self, S: TopoDS_Shape) -> TopTools_ListOfShape: ... + def ImageFrom(self, S: TopoDS_Shape) -> TopoDS_Shape: ... + def IsImage(self, S: TopoDS_Shape) -> bool: ... + def LastImage(self, S: TopoDS_Shape, L: TopTools_ListOfShape) -> None: ... + def Remove(self, S: TopoDS_Shape) -> None: ... + def RemoveRoot(self, Root: TopoDS_Shape) -> None: ... + def ReplaceRoot(self, OldRoot: TopoDS_Shape, NewRoot: TopoDS_Shape) -> None: ... + def Root(self, S: TopoDS_Shape) -> TopoDS_Shape: ... + def Roots(self) -> TopTools_ListOfShape: ... + def SetRoot(self, S: TopoDS_Shape) -> None: ... + +class BRepAlgo_Loop: + def __init__(self) -> None: ... + def AddConstEdge(self, E: TopoDS_Edge) -> None: ... + def AddConstEdges(self, LE: TopTools_ListOfShape) -> None: ... + def AddEdge(self, E: TopoDS_Edge, LV: TopTools_ListOfShape) -> None: ... + def CutEdge( + self, E: TopoDS_Edge, VonE: TopTools_ListOfShape, NE: TopTools_ListOfShape + ) -> None: ... + def GetTolConf(self) -> float: ... + def GetVerticesForSubstitute( + self, VerVerMap: TopTools_DataMapOfShapeShape + ) -> None: ... + def Init(self, F: TopoDS_Face) -> None: ... + def NewEdges(self, E: TopoDS_Edge) -> TopTools_ListOfShape: ... + def NewFaces(self) -> TopTools_ListOfShape: ... + def NewWires(self) -> TopTools_ListOfShape: ... + def Perform(self) -> None: ... + def SetImageVV(self, theImageVV: BRepAlgo_Image) -> None: ... + def SetTolConf(self, theTolConf: float) -> None: ... + def UpdateVEmap( + self, theVEmap: TopTools_IndexedDataMapOfShapeListOfShape + ) -> None: ... + def VerticesForSubstitute( + self, VerVerMap: TopTools_DataMapOfShapeShape + ) -> None: ... + def WiresToFaces(self) -> None: ... + +class BRepAlgo_NormalProjection: + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, S: TopoDS_Shape) -> None: ... + def Add(self, ToProj: TopoDS_Shape) -> None: ... + def Ancestor(self, E: TopoDS_Edge) -> TopoDS_Shape: ... + def Build(self) -> None: ... + def BuildWire(self, Liste: TopTools_ListOfShape) -> bool: ... + def Compute3d(self, With3d: Optional[bool] = True) -> None: ... + def Couple(self, E: TopoDS_Edge) -> TopoDS_Shape: ... + def Generated(self, S: TopoDS_Shape) -> TopTools_ListOfShape: ... + def Init(self, S: TopoDS_Shape) -> None: ... + def IsDone(self) -> bool: ... + def IsElementary(self, C: Adaptor3d_Curve) -> bool: ... + def Projection(self) -> TopoDS_Shape: ... + def SetDefaultParams(self) -> None: ... + def SetLimit(self, FaceBoundaries: Optional[bool] = True) -> None: ... + def SetMaxDistance(self, MaxDist: float) -> None: ... + def SetParams( + self, + Tol3D: float, + Tol2D: float, + InternalContinuity: GeomAbs_Shape, + MaxDegree: int, + MaxSeg: int, + ) -> None: ... + +# harray1 classes +# harray2 classes +# hsequence classes diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BRepBndLib.py b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BRepBndLib.py new file mode 100644 index 0000000000000000000000000000000000000000..fdbe5b8bef98ddfc598df8f23ae22ee16609b6f8 --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BRepBndLib.py @@ -0,0 +1,552 @@ +# This file was automatically generated by SWIG (https://www.swig.org). +# Version 4.3.0 +# +# Do not make changes to this file unless you know what you are doing - modify +# the SWIG interface file instead. + +""" +BRepBndLib module, see official documentation at +https://dev.opencascade.org/doc/occt-7.9.0/refman/html/package_brepbndlib.html +""" + +from sys import version_info as _swig_python_version_info +# Import the low-level C/C++ module +if __package__ or "." in __name__: + from . import _BRepBndLib +else: + import _BRepBndLib + +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__ = _BRepBndLib.delete_SwigPyIterator + + def value(self): + return _BRepBndLib.SwigPyIterator_value(self) + + def incr(self, n=1): + return _BRepBndLib.SwigPyIterator_incr(self, n) + + def decr(self, n=1): + return _BRepBndLib.SwigPyIterator_decr(self, n) + + def distance(self, x): + return _BRepBndLib.SwigPyIterator_distance(self, x) + + def equal(self, x): + return _BRepBndLib.SwigPyIterator_equal(self, x) + + def copy(self): + return _BRepBndLib.SwigPyIterator_copy(self) + + def next(self): + return _BRepBndLib.SwigPyIterator_next(self) + + def __next__(self): + return _BRepBndLib.SwigPyIterator___next__(self) + + def previous(self): + return _BRepBndLib.SwigPyIterator_previous(self) + + def advance(self, n): + return _BRepBndLib.SwigPyIterator_advance(self, n) + + def __eq__(self, x): + return _BRepBndLib.SwigPyIterator___eq__(self, x) + + def __ne__(self, x): + return _BRepBndLib.SwigPyIterator___ne__(self, x) + + def __iadd__(self, n): + return _BRepBndLib.SwigPyIterator___iadd__(self, n) + + def __isub__(self, n): + return _BRepBndLib.SwigPyIterator___isub__(self, n) + + def __add__(self, n): + return _BRepBndLib.SwigPyIterator___add__(self, n) + + def __sub__(self, *args): + return _BRepBndLib.SwigPyIterator___sub__(self, *args) + def __iter__(self): + return self + +# Register SwigPyIterator in _BRepBndLib: +_BRepBndLib.SwigPyIterator_swigregister(SwigPyIterator) + +def _dumps_object(klass): + """ Overwrite default string output for any wrapped object. + By default, __repr__ method returns something like: + > + This is too much verbose. + We prefer : + + or + + """ + klass_name = str(klass.__class__).split(".")[3].split("'")[0] + repr_string = ". Two independent methods of computation are implemented: first method based on set of points (so, it demands the triangulated shape or shape with planar faces and linear edges). The second method is based on use of inertia axes and is called if use of the first method is impossible. If theIsTriangulationUsed == False then the triangulation will be ignored at all. If theIsShapeToleranceUsed == True then resulting box will be extended on the tolerance of the shape. theIsOptimal flag defines whether to look for the more tight OBB for the cost of performance or not. + + """ + return _BRepBndLib.brepbndlib_AddOBB(*args) + + @staticmethod + def AddOptimal(*args): + r""" + + Parameters + ---------- + S: TopoDS_Shape + B: Bnd_Box + useTriangulation: bool (optional, default to Standard_True) + useShapeTolerance: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + Adds the shape S to the bounding box B. This algorithm builds precise bounding box, which differs from exact geometry boundaries of shape only on shape entities tolerances Algorithm is the same as for method Add(..), but uses more precise methods for building boxes for geometry objects. If useShapeTolerance = True, bounding box is enlardged by shape tolerances and these tolerances are used for numerical methods of bounding box size calculations, otherwise bounding box is built according to sizes of uderlined geometrical entities, numerical calculation use tolerance Precision::Confusion(). + + """ + return _BRepBndLib.brepbndlib_AddOptimal(*args) + + __repr__ = _dumps_object + + + def __init__(self): + _BRepBndLib.brepbndlib_swiginit(self, _BRepBndLib.new_brepbndlib()) + __swig_destroy__ = _BRepBndLib.delete_brepbndlib + +# Register brepbndlib in _BRepBndLib: +_BRepBndLib.brepbndlib_swigregister(brepbndlib) + + + +@deprecated +def brepbndlib_Add(*args): + return brepbndlib.Add(*args) + +@deprecated +def brepbndlib_AddClose(*args): + return brepbndlib.AddClose(*args) + +@deprecated +def brepbndlib_AddOBB(*args): + return brepbndlib.AddOBB(*args) + +@deprecated +def brepbndlib_AddOptimal(*args): + return brepbndlib.AddOptimal(*args) + + + diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BRepFill.py b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BRepFill.py new file mode 100644 index 0000000000000000000000000000000000000000..540a6f05c5ef2218b8c157f9692cb2d812ffc52a --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BRepFill.py @@ -0,0 +1,6236 @@ +# This file was automatically generated by SWIG (https://www.swig.org). +# Version 4.3.0 +# +# Do not make changes to this file unless you know what you are doing - modify +# the SWIG interface file instead. + +""" +BRepFill module, see official documentation at +https://dev.opencascade.org/doc/occt-7.9.0/refman/html/package_brepfill.html +""" + +from sys import version_info as _swig_python_version_info +# Import the low-level C/C++ module +if __package__ or "." in __name__: + from . import _BRepFill +else: + import _BRepFill + +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__ = _BRepFill.delete_SwigPyIterator + + def value(self): + return _BRepFill.SwigPyIterator_value(self) + + def incr(self, n=1): + return _BRepFill.SwigPyIterator_incr(self, n) + + def decr(self, n=1): + return _BRepFill.SwigPyIterator_decr(self, n) + + def distance(self, x): + return _BRepFill.SwigPyIterator_distance(self, x) + + def equal(self, x): + return _BRepFill.SwigPyIterator_equal(self, x) + + def copy(self): + return _BRepFill.SwigPyIterator_copy(self) + + def next(self): + return _BRepFill.SwigPyIterator_next(self) + + def __next__(self): + return _BRepFill.SwigPyIterator___next__(self) + + def previous(self): + return _BRepFill.SwigPyIterator_previous(self) + + def advance(self, n): + return _BRepFill.SwigPyIterator_advance(self, n) + + def __eq__(self, x): + return _BRepFill.SwigPyIterator___eq__(self, x) + + def __ne__(self, x): + return _BRepFill.SwigPyIterator___ne__(self, x) + + def __iadd__(self, n): + return _BRepFill.SwigPyIterator___iadd__(self, n) + + def __isub__(self, n): + return _BRepFill.SwigPyIterator___isub__(self, n) + + def __add__(self, n): + return _BRepFill.SwigPyIterator___add__(self, n) + + def __sub__(self, *args): + return _BRepFill.SwigPyIterator___sub__(self, *args) + def __iter__(self): + return self + +# Register SwigPyIterator in _BRepFill: +_BRepFill.SwigPyIterator_swigregister(SwigPyIterator) + +def _dumps_object(klass): + """ Overwrite default string output for any wrapped object. + By default, __repr__ method returns something like: + > + This is too much verbose. + We prefer : + + or + + """ + klass_name = str(klass.__class__).split(".")[3].split("'")[0] + repr_string = " as Follow. is the Position of the nearest vertex V of to . is confused with the tangent to at the projected point of V on the Spine. is normal to . is a plane wire or a plane face. + + """ + return _BRepFill.brepfill_Axe(*args) + + @staticmethod + def ComputeACR(*args): + r""" + + Parameters + ---------- + wire: TopoDS_Wire + ACR: TColStd_Array1OfReal + + Return + ------- + None + + Description + ----------- + Compute ACR on a wire. + + """ + return _BRepFill.brepfill_ComputeACR(*args) + + @staticmethod + def Face(*args): + r""" + + Parameters + ---------- + Edge1: TopoDS_Edge + Edge2: TopoDS_Edge + + Return + ------- + TopoDS_Face + + Description + ----------- + Computes a ruled surface between two edges. + + """ + return _BRepFill.brepfill_Face(*args) + + @staticmethod + def InsertACR(*args): + r""" + + Parameters + ---------- + wire: TopoDS_Wire + ACRcuts: TColStd_Array1OfReal + prec: float + + Return + ------- + TopoDS_Wire + + Description + ----------- + Insert ACR on a wire. + + """ + return _BRepFill.brepfill_InsertACR(*args) + + @staticmethod + def Shell(*args): + r""" + + Parameters + ---------- + Wire1: TopoDS_Wire + Wire2: TopoDS_Wire + + Return + ------- + TopoDS_Shell + + Description + ----------- + Computes a ruled surface between two wires. The wires must have the same number of edges. + + """ + return _BRepFill.brepfill_Shell(*args) + + __repr__ = _dumps_object + + + def __init__(self): + _BRepFill.brepfill_swiginit(self, _BRepFill.new_brepfill()) + __swig_destroy__ = _BRepFill.delete_brepfill + +# Register brepfill in _BRepFill: +_BRepFill.brepfill_swigregister(brepfill) +class BRepFill_AdvancedEvolved(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 + ----------- + Constructor. + + """ + _BRepFill.BRepFill_AdvancedEvolved_swiginit(self, _BRepFill.new_BRepFill_AdvancedEvolved(*args)) + + def IsDone(self, *args): + r""" + + Parameters + ---------- + theErrorCode: unsigned int * (optional, default to 0) + + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_AdvancedEvolved_IsDone(self, *args) + + def Perform(self, *args): + r""" + + Parameters + ---------- + theSpine: TopoDS_Wire + theProfile: TopoDS_Wire + theTolerance: float + theSolidReq: bool (optional, default to Standard_True) + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_AdvancedEvolved_Perform(self, *args) + + def SetParallelMode(self, *args): + r""" + + Parameters + ---------- + theVal: bool + + Return + ------- + None + + Description + ----------- + Sets/Unsets computation in parallel mode. + + """ + return _BRepFill.BRepFill_AdvancedEvolved_SetParallelMode(self, *args) + + def SetTemporaryDirectory(self, *args): + r""" + + Parameters + ---------- + thePath: str + + Return + ------- + None + + Description + ----------- + Sets directory where the debug shapes will be saved. + + """ + return _BRepFill.BRepFill_AdvancedEvolved_SetTemporaryDirectory(self, *args) + + def Shape(self, *args): + r""" + Return + ------- + TopoDS_Shape + + Description + ----------- + returns the resulting shape. + + """ + return _BRepFill.BRepFill_AdvancedEvolved_Shape(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepFill.delete_BRepFill_AdvancedEvolved + +# Register BRepFill_AdvancedEvolved in _BRepFill: +_BRepFill.BRepFill_AdvancedEvolved_swigregister(BRepFill_AdvancedEvolved) +class BRepFill_ApproxSeewing(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 + ---------- + ML: BRepFill_MultiLine + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _BRepFill.BRepFill_ApproxSeewing_swiginit(self, _BRepFill.new_BRepFill_ApproxSeewing(*args)) + + def Curve(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + returns the approximation of the 3d Curve. + + """ + return _BRepFill.BRepFill_ApproxSeewing_Curve(self, *args) + + def CurveOnF1(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + returns the approximation of the PCurve on the first face of the MultiLine. + + """ + return _BRepFill.BRepFill_ApproxSeewing_CurveOnF1(self, *args) + + def CurveOnF2(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + returns the approximation of the PCurve on the first face of the MultiLine. + + """ + return _BRepFill.BRepFill_ApproxSeewing_CurveOnF2(self, *args) + + def IsDone(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_ApproxSeewing_IsDone(self, *args) + + def Perform(self, *args): + r""" + + Parameters + ---------- + ML: BRepFill_MultiLine + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_ApproxSeewing_Perform(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepFill.delete_BRepFill_ApproxSeewing + +# Register BRepFill_ApproxSeewing in _BRepFill: +_BRepFill.BRepFill_ApproxSeewing_swigregister(BRepFill_ApproxSeewing) +class BRepFill_CompatibleWires(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 + ---------- + Sections: TopTools_SequenceOfShape + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _BRepFill.BRepFill_CompatibleWires_swiginit(self, _BRepFill.new_BRepFill_CompatibleWires(*args)) + + def Generated(self, *args): + r""" + Return + ------- + TopTools_DataMapOfShapeListOfShape + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_CompatibleWires_Generated(self, *args) + + def GeneratedShapes(self, *args): + r""" + + Parameters + ---------- + SubSection: TopoDS_Edge + + Return + ------- + TopTools_ListOfShape + + Description + ----------- + Returns the shapes created from a subshape of a section. + + """ + return _BRepFill.BRepFill_CompatibleWires_GeneratedShapes(self, *args) + + def GetStatus(self, *args): + r""" + Return + ------- + BRepFill_ThruSectionErrorStatus + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_CompatibleWires_GetStatus(self, *args) + + def Init(self, *args): + r""" + + Parameters + ---------- + Sections: TopTools_SequenceOfShape + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_CompatibleWires_Init(self, *args) + + def IsDegeneratedFirstSection(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_CompatibleWires_IsDegeneratedFirstSection(self, *args) + + def IsDegeneratedLastSection(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_CompatibleWires_IsDegeneratedLastSection(self, *args) + + def IsDone(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_CompatibleWires_IsDone(self, *args) + + def Perform(self, *args): + r""" + + Parameters + ---------- + WithRotation: bool (optional, default to Standard_True) + + Return + ------- + None + + Description + ----------- + Performs CompatibleWires According to the orientation and the origin of each other. + + """ + return _BRepFill.BRepFill_CompatibleWires_Perform(self, *args) + + def SetPercent(self, *args): + r""" + + Parameters + ---------- + percent: float (optional, default to 0.01) + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_CompatibleWires_SetPercent(self, *args) + + def Shape(self, *args): + r""" + Return + ------- + TopTools_SequenceOfShape + + Description + ----------- + returns the generated sequence. + + """ + return _BRepFill.BRepFill_CompatibleWires_Shape(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepFill.delete_BRepFill_CompatibleWires + +# Register BRepFill_CompatibleWires in _BRepFill: +_BRepFill.BRepFill_CompatibleWires_swigregister(BRepFill_CompatibleWires) +class BRepFill_ComputeCLine(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""" + + Parameters + ---------- + Line: BRepFill_MultiLine + degreemin: int (optional, default to 3) + degreemax: int (optional, default to 8) + Tolerance3d: float (optional, default to 1.0e-5) + Tolerance2d: float (optional, default to 1.0e-5) + cutting: bool (optional, default to Standard_False) + FirstC: AppParCurves_Constraint (optional, default to AppParCurves_TangencyPoint) + LastC: AppParCurves_Constraint (optional, default to AppParCurves_TangencyPoint) + + Return + ------- + None + + Description + ----------- + The MultiLine will be approximated until tolerances will be reached. The approximation will be done from degreemin to degreemax with a cutting if the corresponding boolean is True. + + Parameters + ---------- + degreemin: int (optional, default to 3) + degreemax: int (optional, default to 8) + Tolerance3d: float (optional, default to 1.0e-05) + Tolerance2d: float (optional, default to 1.0e-05) + cutting: bool (optional, default to Standard_False) + FirstC: AppParCurves_Constraint (optional, default to AppParCurves_TangencyPoint) + LastC: AppParCurves_Constraint (optional, default to AppParCurves_TangencyPoint) + + Return + ------- + None + + Description + ----------- + Initializes the fields of the algorithm. + + """ + _BRepFill.BRepFill_ComputeCLine_swiginit(self, _BRepFill.new_BRepFill_ComputeCLine(*args)) + + def Error(self, *args): + r""" + + Parameters + ---------- + Index: int + + Return + ------- + tol3d: float + tol2d: float + + Description + ----------- + returns the tolerances 2d and 3d of the MultiCurve. + + """ + return _BRepFill.BRepFill_ComputeCLine_Error(self, *args) + + def IsAllApproximated(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + returns False if at a moment of the approximation, the status NoApproximation has been sent by the user when more points were needed. + + """ + return _BRepFill.BRepFill_ComputeCLine_IsAllApproximated(self, *args) + + def IsToleranceReached(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + returns False if the status NoPointsAdded has been sent. + + """ + return _BRepFill.BRepFill_ComputeCLine_IsToleranceReached(self, *args) + + def NbMultiCurves(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Returns the number of MultiCurve doing the approximation of the MultiLine. + + """ + return _BRepFill.BRepFill_ComputeCLine_NbMultiCurves(self, *args) + + def Parameters(self, *args): + r""" + + Parameters + ---------- + Index: int + + Return + ------- + firstp: float + lastp: float + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_ComputeCLine_Parameters(self, *args) + + def Perform(self, *args): + r""" + + Parameters + ---------- + Line: BRepFill_MultiLine + + Return + ------- + None + + Description + ----------- + runs the algorithm after having initialized the fields. + + """ + return _BRepFill.BRepFill_ComputeCLine_Perform(self, *args) + + def SetConstraints(self, *args): + r""" + + Parameters + ---------- + FirstC: AppParCurves_Constraint + LastC: AppParCurves_Constraint + + Return + ------- + None + + Description + ----------- + Changes the constraints of the approximation. + + """ + return _BRepFill.BRepFill_ComputeCLine_SetConstraints(self, *args) + + def SetDegrees(self, *args): + r""" + + Parameters + ---------- + degreemin: int + degreemax: int + + Return + ------- + None + + Description + ----------- + changes the degrees of the approximation. + + """ + return _BRepFill.BRepFill_ComputeCLine_SetDegrees(self, *args) + + def SetHangChecking(self, *args): + r""" + + Parameters + ---------- + theHangChecking: bool + + Return + ------- + None + + Description + ----------- + Set value of hang checking flag if this flag = true, possible hang of algorithm is checked and algorithm is forced to stop. By default hang checking is used. + + """ + return _BRepFill.BRepFill_ComputeCLine_SetHangChecking(self, *args) + + def SetInvOrder(self, *args): + r""" + + Parameters + ---------- + theInvOrder: bool + + Return + ------- + None + + Description + ----------- + Set inverse order of degree selection: if theInvOrdr = true, current degree is chosen by inverse order - from maxdegree to mindegree. By default inverse order is used. + + """ + return _BRepFill.BRepFill_ComputeCLine_SetInvOrder(self, *args) + + def SetMaxSegments(self, *args): + r""" + + Parameters + ---------- + theMaxSegments: int + + Return + ------- + None + + Description + ----------- + Changes the max number of segments, which is allowed for cutting. + + """ + return _BRepFill.BRepFill_ComputeCLine_SetMaxSegments(self, *args) + + def SetTolerances(self, *args): + r""" + + Parameters + ---------- + Tolerance3d: float + Tolerance2d: float + + Return + ------- + None + + Description + ----------- + Changes the tolerances of the approximation. + + """ + return _BRepFill.BRepFill_ComputeCLine_SetTolerances(self, *args) + + def Value(self, *args): + r""" + + Parameters + ---------- + Index: int (optional, default to 1) + + Return + ------- + AppParCurves_MultiCurve + + Description + ----------- + returns the approximation MultiCurve of range . + + """ + return _BRepFill.BRepFill_ComputeCLine_Value(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepFill.delete_BRepFill_ComputeCLine + +# Register BRepFill_ComputeCLine in _BRepFill: +_BRepFill.BRepFill_ComputeCLine_swigregister(BRepFill_ComputeCLine) +class BRepFill_CurveConstraint(OCC.Core.GeomPlate.GeomPlate_CurveConstraint): + 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""" + + Parameters + ---------- + Boundary: Adaptor3d_CurveOnSurface + Order: int + NPt: int (optional, default to 10) + TolDist: float (optional, default to 0.0001) + TolAng: float (optional, default to 0.01) + TolCurv: float (optional, default to 0.1) + + Return + ------- + None + + Description + ----------- + Create a constraint Order is the order of the constraint. The possible values for order are -1,0,1,2. Order i means constraints Gi Npt is the number of points associated with the constraint. TolDist is the maximum error to satisfy for G0 constraints TolAng is the maximum error to satisfy for G1 constraints TolCurv is the maximum error to satisfy for G2 constraints These errors can be replaced by laws of criterion. + + Parameters + ---------- + Boundary: Adaptor3d_Curve + Tang: int + NPt: int (optional, default to 10) + TolDist: float (optional, default to 0.0001) + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _BRepFill.BRepFill_CurveConstraint_swiginit(self, _BRepFill.new_BRepFill_CurveConstraint(*args)) + + + @staticmethod + def DownCast(t): + return Handle_BRepFill_CurveConstraint_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepFill.delete_BRepFill_CurveConstraint + +# Register BRepFill_CurveConstraint in _BRepFill: +_BRepFill.BRepFill_CurveConstraint_swigregister(BRepFill_CurveConstraint) +class BRepFill_Draft(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""" + + Parameters + ---------- + Shape: TopoDS_Shape + Dir: gp_Dir + Angle: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _BRepFill.BRepFill_Draft_swiginit(self, _BRepFill.new_BRepFill_Draft(*args)) + + def Generated(self, *args): + r""" + + Parameters + ---------- + S: TopoDS_Shape + + Return + ------- + TopTools_ListOfShape + + Description + ----------- + Returns the list of shapes generated from the shape . + + """ + return _BRepFill.BRepFill_Draft_Generated(self, *args) + + def IsDone(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_Draft_IsDone(self, *args) + + def Perform(self, *args): + r""" + + Parameters + ---------- + LengthMax: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + Surface: Geom_Surface + KeepInsideSurface: bool (optional, default to Standard_True) + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + StopShape: TopoDS_Shape + KeepOutSide: bool (optional, default to Standard_True) + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_Draft_Perform(self, *args) + + def SetDraft(self, *args): + r""" + + Parameters + ---------- + IsInternal: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_Draft_SetDraft(self, *args) + + def SetOptions(self, *args): + r""" + + Parameters + ---------- + Style: BRepFill_TransitionStyle (optional, default to BRepFill_Right) + AngleMin: float (optional, default to 0.01) + AngleMax: float (optional, default to 3.0) + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_Draft_SetOptions(self, *args) + + def Shape(self, *args): + r""" + Return + ------- + TopoDS_Shape + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_Draft_Shape(self, *args) + + def Shell(self, *args): + r""" + Return + ------- + TopoDS_Shell + + Description + ----------- + Returns the draft surface To have the complete shape you have to use the Shape() methode. + + """ + return _BRepFill.BRepFill_Draft_Shell(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepFill.delete_BRepFill_Draft + +# Register BRepFill_Draft in _BRepFill: +_BRepFill.BRepFill_Draft_swigregister(BRepFill_Draft) +class BRepFill_EdgeFaceAndOrder(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 + ---------- + anEdge: TopoDS_Edge + aFace: TopoDS_Face + anOrder: GeomAbs_Shape + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _BRepFill.BRepFill_EdgeFaceAndOrder_swiginit(self, _BRepFill.new_BRepFill_EdgeFaceAndOrder(*args)) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepFill.delete_BRepFill_EdgeFaceAndOrder + +# Register BRepFill_EdgeFaceAndOrder in _BRepFill: +_BRepFill.BRepFill_EdgeFaceAndOrder_swigregister(BRepFill_EdgeFaceAndOrder) +class BRepFill_Evolved(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 + ---------- + Spine: TopoDS_Wire + Profile: TopoDS_Wire + AxeProf: gp_Ax3 + Join: GeomAbs_JoinType (optional, default to GeomAbs_Arc) + Solid: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + Creates an evolved shape by sweeping the along the . is used to set the position of along as follows: slides on the profile with direction colinear to the normal to , and its mixed with the tangent to . + + Parameters + ---------- + Spine: TopoDS_Face + Profile: TopoDS_Wire + AxeProf: gp_Ax3 + Join: GeomAbs_JoinType (optional, default to GeomAbs_Arc) + Solid: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + Creates an evolved shape by sweeping the along the . + + """ + _BRepFill.BRepFill_Evolved_swiginit(self, _BRepFill.new_BRepFill_Evolved(*args)) + + def Bottom(self, *args): + r""" + Return + ------- + TopoDS_Shape + + Description + ----------- + Return the face Bottom if is True in the constructor. + + """ + return _BRepFill.BRepFill_Evolved_Bottom(self, *args) + + def GeneratedShapes(self, *args): + r""" + + Parameters + ---------- + SpineShape: TopoDS_Shape + ProfShape: TopoDS_Shape + + Return + ------- + TopTools_ListOfShape + + Description + ----------- + Returns the shapes created from a subshape of the spine and a subshape on the profile. + + """ + return _BRepFill.BRepFill_Evolved_GeneratedShapes(self, *args) + + def IsDone(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_Evolved_IsDone(self, *args) + + def JoinType(self, *args): + r""" + Return + ------- + GeomAbs_JoinType + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_Evolved_JoinType(self, *args) + + def Perform(self, *args): + r""" + + Parameters + ---------- + Spine: TopoDS_Wire + Profile: TopoDS_Wire + AxeProf: gp_Ax3 + Join: GeomAbs_JoinType (optional, default to GeomAbs_Arc) + Solid: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + Performs an evolved shape by sweeping the along the . + + Parameters + ---------- + Spine: TopoDS_Face + Profile: TopoDS_Wire + AxeProf: gp_Ax3 + Join: GeomAbs_JoinType (optional, default to GeomAbs_Arc) + Solid: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + Performs an evolved shape by sweeping the along the . + + """ + return _BRepFill.BRepFill_Evolved_Perform(self, *args) + + def Shape(self, *args): + r""" + Return + ------- + TopoDS_Shape + + Description + ----------- + returns the generated shape. + + """ + return _BRepFill.BRepFill_Evolved_Shape(self, *args) + + def Top(self, *args): + r""" + Return + ------- + TopoDS_Shape + + Description + ----------- + Return the face Top if is True in the constructor. + + """ + return _BRepFill.BRepFill_Evolved_Top(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepFill.delete_BRepFill_Evolved + +# Register BRepFill_Evolved in _BRepFill: +_BRepFill.BRepFill_Evolved_swigregister(BRepFill_Evolved) +class BRepFill_FaceAndOrder(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 + ---------- + aFace: TopoDS_Face + anOrder: GeomAbs_Shape + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _BRepFill.BRepFill_FaceAndOrder_swiginit(self, _BRepFill.new_BRepFill_FaceAndOrder(*args)) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepFill.delete_BRepFill_FaceAndOrder + +# Register BRepFill_FaceAndOrder in _BRepFill: +_BRepFill.BRepFill_FaceAndOrder_swigregister(BRepFill_FaceAndOrder) +class BRepFill_Filling(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""" + + Parameters + ---------- + Degree: int (optional, default to 3) + NbPtsOnCur: int (optional, default to 15) + NbIter: int (optional, default to 2) + Anisotropie: bool (optional, default to Standard_False) + Tol2d: float (optional, default to 0.00001) + Tol3d: float (optional, default to 0.0001) + TolAng: float (optional, default to 0.01) + TolCurv: float (optional, default to 0.1) + MaxDeg: int (optional, default to 8) + MaxSegments: int (optional, default to 9) + + Return + ------- + None + + Description + ----------- + Constructor. + + """ + _BRepFill.BRepFill_Filling_swiginit(self, _BRepFill.new_BRepFill_Filling(*args)) + + def Add(self, *args): + r""" + + Parameters + ---------- + anEdge: TopoDS_Edge + Order: GeomAbs_Shape + IsBound: bool (optional, default to Standard_True) + + Return + ------- + int + + Description + ----------- + Adds a new constraint which also defines an edge of the wire of the face Order: Order of the constraint: GeomAbs_C0: the surface has to pass by 3D representation of the edge GeomAbs_G1: the surface has to pass by 3D representation of the edge and to respect tangency with the first face of the edge GeomAbs_G2: the surface has to pass by 3D representation of the edge and to respect tangency and curvature with the first face of the edge. + + Parameters + ---------- + anEdge: TopoDS_Edge + Support: TopoDS_Face + Order: GeomAbs_Shape + IsBound: bool (optional, default to Standard_True) + + Return + ------- + int + + Description + ----------- + Adds a new constraint which also defines an edge of the wire of the face Order: Order of the constraint: GeomAbs_C0: the surface has to pass by 3D representation of the edge GeomAbs_G1: the surface has to pass by 3D representation of the edge and to respect tangency with the given face GeomAbs_G2: the surface has to pass by 3D representation of the edge and to respect tangency and curvature with the given face. + + Parameters + ---------- + Support: TopoDS_Face + Order: GeomAbs_Shape + + Return + ------- + int + + Description + ----------- + Adds a free constraint on a face. The corresponding edge has to be automatically recomputed. It is always a bound. + + Parameters + ---------- + Point: gp_Pnt + + Return + ------- + int + + Description + ----------- + Adds a punctual constraint. + + Parameters + ---------- + U: float + V: float + Support: TopoDS_Face + Order: GeomAbs_Shape + + Return + ------- + int + + Description + ----------- + Adds a punctual constraint. + + """ + return _BRepFill.BRepFill_Filling_Add(self, *args) + + def Build(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Builds the resulting faces. + + """ + return _BRepFill.BRepFill_Filling_Build(self, *args) + + def Face(self, *args): + r""" + Return + ------- + TopoDS_Face + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_Filling_Face(self, *args) + + def G0Error(self, *args): + r""" + Return + ------- + float + + Description + ----------- + No available documentation. + + Parameters + ---------- + Index: int + + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_Filling_G0Error(self, *args) + + def G1Error(self, *args): + r""" + Return + ------- + float + + Description + ----------- + No available documentation. + + Parameters + ---------- + Index: int + + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_Filling_G1Error(self, *args) + + def G2Error(self, *args): + r""" + Return + ------- + float + + Description + ----------- + No available documentation. + + Parameters + ---------- + Index: int + + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_Filling_G2Error(self, *args) + + def Generated(self, *args): + r""" + + Parameters + ---------- + S: TopoDS_Shape + + Return + ------- + TopTools_ListOfShape + + Description + ----------- + Returns the list of shapes generated from the shape . + + """ + return _BRepFill.BRepFill_Filling_Generated(self, *args) + + def IsDone(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_Filling_IsDone(self, *args) + + def LoadInitSurface(self, *args): + r""" + + Parameters + ---------- + aFace: TopoDS_Face + + Return + ------- + None + + Description + ----------- + Loads the initial Surface The initial surface must have orthogonal local coordinates, i.e. partial derivatives dS/du and dS/dv must be orthogonal at each point of surface. If this condition breaks, distortions of resulting surface are possible. + + """ + return _BRepFill.BRepFill_Filling_LoadInitSurface(self, *args) + + def SetApproxParam(self, *args): + r""" + + Parameters + ---------- + MaxDeg: int (optional, default to 8) + MaxSegments: int (optional, default to 9) + + Return + ------- + None + + Description + ----------- + Sets the parameters used for approximation of the surface. + + """ + return _BRepFill.BRepFill_Filling_SetApproxParam(self, *args) + + def SetConstrParam(self, *args): + r""" + + Parameters + ---------- + Tol2d: float (optional, default to 0.00001) + Tol3d: float (optional, default to 0.0001) + TolAng: float (optional, default to 0.01) + TolCurv: float (optional, default to 0.1) + + Return + ------- + None + + Description + ----------- + Sets the values of Tolerances used to control the constraint. Tol2d: Tol3d: it is the maximum distance allowed between the support surface and the constraints TolAng: it is the maximum angle allowed between the normal of the surface and the constraints TolCurv: it is the maximum difference of curvature allowed between the surface and the constraint. + + """ + return _BRepFill.BRepFill_Filling_SetConstrParam(self, *args) + + def SetResolParam(self, *args): + r""" + + Parameters + ---------- + Degree: int (optional, default to 3) + NbPtsOnCur: int (optional, default to 15) + NbIter: int (optional, default to 2) + Anisotropie: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + Sets the parameters used for resolution. The default values of these parameters have been chosen for a good ratio quality/performance. Degree: it is the order of energy criterion to minimize for computing the deformation of the surface. The default value is 3 The recommended value is i+2 where i is the maximum order of the constraints. NbPtsOnCur: it is the average number of points for discretisation of the edges. NbIter: it is the maximum number of iterations of the process. For each iteration the number of discretisation points is increased. Anisotropie:. + + """ + return _BRepFill.BRepFill_Filling_SetResolParam(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepFill.delete_BRepFill_Filling + +# Register BRepFill_Filling in _BRepFill: +_BRepFill.BRepFill_Filling_swigregister(BRepFill_Filling) +class BRepFill_Generator(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. + + """ + _BRepFill.BRepFill_Generator_swiginit(self, _BRepFill.new_BRepFill_Generator(*args)) + + def AddWire(self, *args): + r""" + + Parameters + ---------- + Wire: TopoDS_Wire + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_Generator_AddWire(self, *args) + + def Generated(self, *args): + r""" + Return + ------- + TopTools_DataMapOfShapeListOfShape + + Description + ----------- + Returns all the shapes created. + + """ + return _BRepFill.BRepFill_Generator_Generated(self, *args) + + def GeneratedShapes(self, *args): + r""" + + Parameters + ---------- + SSection: TopoDS_Shape + + Return + ------- + TopTools_ListOfShape + + Description + ----------- + Returns the shapes created from a subshape of a section. + + """ + return _BRepFill.BRepFill_Generator_GeneratedShapes(self, *args) + + def GetStatus(self, *args): + r""" + Return + ------- + BRepFill_ThruSectionErrorStatus + + Description + ----------- + Returns status of the operation. + + """ + return _BRepFill.BRepFill_Generator_GetStatus(self, *args) + + def IsMutableInput(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns the current mutable input state. + + """ + return _BRepFill.BRepFill_Generator_IsMutableInput(self, *args) + + def Perform(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Compute the shell. + + """ + return _BRepFill.BRepFill_Generator_Perform(self, *args) + + def ResultShape(self, *args): + r""" + + Parameters + ---------- + theShape: TopoDS_Shape + + Return + ------- + TopoDS_Shape + + Description + ----------- + Returns a modified shape in the constructed shell, If shape is not changed (replaced) during operation => returns the same shape. + + """ + return _BRepFill.BRepFill_Generator_ResultShape(self, *args) + + def SetMutableInput(self, *args): + r""" + + Parameters + ---------- + theIsMutableInput: bool + + Return + ------- + None + + Description + ----------- + Sets the mutable input state If true then the input profile can be modified inside the operation. Default value is true. + + """ + return _BRepFill.BRepFill_Generator_SetMutableInput(self, *args) + + def Shell(self, *args): + r""" + Return + ------- + TopoDS_Shell + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_Generator_Shell(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepFill.delete_BRepFill_Generator + +# Register BRepFill_Generator in _BRepFill: +_BRepFill.BRepFill_Generator_swigregister(BRepFill_Generator) +class BRepFill_LocationLaw(OCC.Core.Standard.Standard_Transient): + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") + __repr__ = _swig_repr + + def Abscissa(self, *args): + r""" + + Parameters + ---------- + Index: int + Param: float + + Return + ------- + float + + Description + ----------- + Return the curvilinear abscissa corresponding to a point of the path, defined by of Edge and a parameter on the edge. + + """ + return _BRepFill.BRepFill_LocationLaw_Abscissa(self, *args) + + def CurvilinearBounds(self, *args): + r""" + + Parameters + ---------- + Index: int + + Return + ------- + First: float + Last: float + + Description + ----------- + Return the Curvilinear Bounds of the Law. + + """ + return _BRepFill.BRepFill_LocationLaw_CurvilinearBounds(self, *args) + + def D0(self, *args): + r""" + + Parameters + ---------- + Abscissa: float + Section: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + Apply the Law to a shape, for a given Curvilinear abscissa. + + """ + return _BRepFill.BRepFill_LocationLaw_D0(self, *args) + + def DeleteTransform(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_LocationLaw_DeleteTransform(self, *args) + + def Edge(self, *args): + r""" + + Parameters + ---------- + Index: int + + Return + ------- + TopoDS_Edge + + Description + ----------- + Return the Edge of rank in the path have to be in [1, NbLaw()]. + + """ + return _BRepFill.BRepFill_LocationLaw_Edge(self, *args) + + def GetStatus(self, *args): + r""" + Return + ------- + GeomFill_PipeError + + Description + ----------- + Return a error status, if the status is not PipeOk then it exist a parameter tlike the law is not valuable for t. + + """ + return _BRepFill.BRepFill_LocationLaw_GetStatus(self, *args) + + def Holes(self, *args): + r""" + + Parameters + ---------- + Interval: TColStd_Array1OfInteger + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_LocationLaw_Holes(self, *args) + + def IsClosed(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_LocationLaw_IsClosed(self, *args) + + def IsG1(self, *args): + r""" + + Parameters + ---------- + Index: int + SpatialTolerance: float (optional, default to 1.0e-7) + AngularTolerance: float (optional, default to 1.0e-4) + + Return + ------- + int + + Description + ----------- + Compute the Law's continuity between 2 edges of the path The result can be: -1: Case Not connex 0: It is connex (G0) 1: It is tangent (G1). + + """ + return _BRepFill.BRepFill_LocationLaw_IsG1(self, *args) + + def law(self, *args): + r""" + + Parameters + ---------- + Index: int + + Return + ------- + opencascade::handle + + Description + ----------- + Return the elementary Law of rank have to be in [1, NbLaw()]. + + """ + return _BRepFill.BRepFill_LocationLaw_law(self, *args) + + def NbHoles(self, *args): + r""" + + Parameters + ---------- + Tol: float (optional, default to 1.0e-7) + + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_LocationLaw_NbHoles(self, *args) + + def NbLaw(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Return the number of elementary Law. + + """ + return _BRepFill.BRepFill_LocationLaw_NbLaw(self, *args) + + def Parameter(self, *args): + r""" + + Parameters + ---------- + Abscissa: float + + Return + ------- + Index: int + Param: float + + Description + ----------- + Find the index Law and the parameter, for a given Curvilinear abscissa. + + """ + return _BRepFill.BRepFill_LocationLaw_Parameter(self, *args) + + def PerformVertex(self, *args): + r""" + + Parameters + ---------- + Index: int + InputVertex: TopoDS_Vertex + TolMin: float + OutputVertex: TopoDS_Vertex + Location: int (optional, default to 0) + + Return + ------- + None + + Description + ----------- + Compute like a transformation of the transformation is given by evaluation of the location law in the vertex of rank . is used to manage discontinuities: - -1: The law before the vertex is used. - 1: The law after the vertex is used. - 0: Average of the both laws is used. + + """ + return _BRepFill.BRepFill_LocationLaw_PerformVertex(self, *args) + + def TransformInCompatibleLaw(self, *args): + r""" + + Parameters + ---------- + AngularTolerance: float + + Return + ------- + None + + Description + ----------- + Apply a linear transformation on each law, to reduce the dicontinuities of law at one rotation. + + """ + return _BRepFill.BRepFill_LocationLaw_TransformInCompatibleLaw(self, *args) + + def TransformInG0Law(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Apply a linear transformation on each law, to have continuity of the global law between the edges. + + """ + return _BRepFill.BRepFill_LocationLaw_TransformInG0Law(self, *args) + + def Vertex(self, *args): + r""" + + Parameters + ---------- + Index: int + + Return + ------- + TopoDS_Vertex + + Description + ----------- + Return the vertex of rank in the path have to be in [0, NbLaw()]. + + """ + return _BRepFill.BRepFill_LocationLaw_Vertex(self, *args) + + def Wire(self, *args): + r""" + Return + ------- + TopoDS_Wire + + Description + ----------- + return the path. + + """ + return _BRepFill.BRepFill_LocationLaw_Wire(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_BRepFill_LocationLaw_DownCast(t) + + + __repr__ = _dumps_object + + + def __init__(self): + _BRepFill.BRepFill_LocationLaw_swiginit(self, _BRepFill.new_BRepFill_LocationLaw()) + __swig_destroy__ = _BRepFill.delete_BRepFill_LocationLaw + +# Register BRepFill_LocationLaw in _BRepFill: +_BRepFill.BRepFill_LocationLaw_swigregister(BRepFill_LocationLaw) +class BRepFill_MultiLine(OCC.Core.AppCont.AppCont_Function): + 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 + ---------- + Face1: TopoDS_Face + Face2: TopoDS_Face + Edge1: TopoDS_Edge + Edge2: TopoDS_Edge + Inv1: bool + Inv2: bool + Bissec: Geom2d_Curve + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _BRepFill.BRepFill_MultiLine_swiginit(self, _BRepFill.new_BRepFill_MultiLine(*args)) + + def Continuity(self, *args): + r""" + Return + ------- + GeomAbs_Shape + + Description + ----------- + Returns the continuity between the two faces seShape from GeomAbsparated by myBis. + + """ + return _BRepFill.BRepFill_MultiLine_Continuity(self, *args) + + def Curves(self, *args): + r""" + + Parameters + ---------- + Curve: Geom_Curve + PCurve1: Geom2d_Curve + PCurve2: Geom2d_Curve + + Return + ------- + None + + Description + ----------- + raises if IsParticularCase is . + + """ + return _BRepFill.BRepFill_MultiLine_Curves(self, *args) + + def IsParticularCase(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Search if the Projection of the Bissectrice on the faces needs an approximation or not. Returns true if the approximation is not needed. + + """ + return _BRepFill.BRepFill_MultiLine_IsParticularCase(self, *args) + + def Value(self, *args): + r""" + + Parameters + ---------- + U: float + + Return + ------- + gp_Pnt + + Description + ----------- + Returns the current point on the 3d curve. + + Parameters + ---------- + theU: float + thePnt2d: NCollection_Array1 + thePnt: NCollection_Array1 + + Return + ------- + bool + + Description + ----------- + Returns the point at parameter . + + """ + return _BRepFill.BRepFill_MultiLine_Value(self, *args) + + def Value3dOnF1OnF2(self, *args): + r""" + + Parameters + ---------- + U: float + P3d: gp_Pnt + PF1: gp_Pnt2d + PF2: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_MultiLine_Value3dOnF1OnF2(self, *args) + + def ValueOnF1(self, *args): + r""" + + Parameters + ---------- + U: float + + Return + ------- + gp_Pnt2d + + Description + ----------- + returns the current point on the PCurve of the first face. + + """ + return _BRepFill.BRepFill_MultiLine_ValueOnF1(self, *args) + + def ValueOnF2(self, *args): + r""" + + Parameters + ---------- + U: float + + Return + ------- + gp_Pnt2d + + Description + ----------- + returns the current point on the PCurve of the first face. + + """ + return _BRepFill.BRepFill_MultiLine_ValueOnF2(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepFill.delete_BRepFill_MultiLine + +# Register BRepFill_MultiLine in _BRepFill: +_BRepFill.BRepFill_MultiLine_swigregister(BRepFill_MultiLine) +class BRepFill_OffsetAncestors(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 + ---------- + Paral: BRepFill_OffsetWire + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _BRepFill.BRepFill_OffsetAncestors_swiginit(self, _BRepFill.new_BRepFill_OffsetAncestors(*args)) + + def Ancestor(self, *args): + r""" + + Parameters + ---------- + S1: TopoDS_Edge + + Return + ------- + TopoDS_Shape + + Description + ----------- + may return a Null Shape if S1 is not a subShape of ; if Perform is not done. + + """ + return _BRepFill.BRepFill_OffsetAncestors_Ancestor(self, *args) + + def HasAncestor(self, *args): + r""" + + Parameters + ---------- + S1: TopoDS_Edge + + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_OffsetAncestors_HasAncestor(self, *args) + + def IsDone(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_OffsetAncestors_IsDone(self, *args) + + def Perform(self, *args): + r""" + + Parameters + ---------- + Paral: BRepFill_OffsetWire + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_OffsetAncestors_Perform(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepFill.delete_BRepFill_OffsetAncestors + +# Register BRepFill_OffsetAncestors in _BRepFill: +_BRepFill.BRepFill_OffsetAncestors_swigregister(BRepFill_OffsetAncestors) +class BRepFill_OffsetWire(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 + ---------- + Spine: TopoDS_Face + Join: GeomAbs_JoinType (optional, default to GeomAbs_Arc) + IsOpenResult: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _BRepFill.BRepFill_OffsetWire_swiginit(self, _BRepFill.new_BRepFill_OffsetWire(*args)) + + def GeneratedShapes(self, *args): + r""" + + Parameters + ---------- + SpineShape: TopoDS_Shape + + Return + ------- + TopTools_ListOfShape + + Description + ----------- + Returns the shapes created from a subshape of the spine. Returns the last computed Offset. + + """ + return _BRepFill.BRepFill_OffsetWire_GeneratedShapes(self, *args) + + def Init(self, *args): + r""" + + Parameters + ---------- + Spine: TopoDS_Face + Join: GeomAbs_JoinType (optional, default to GeomAbs_Arc) + IsOpenResult: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + Initialize the evaluation of Offsetting. + + """ + return _BRepFill.BRepFill_OffsetWire_Init(self, *args) + + def IsDone(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_OffsetWire_IsDone(self, *args) + + def JoinType(self, *args): + r""" + Return + ------- + GeomAbs_JoinType + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_OffsetWire_JoinType(self, *args) + + def Perform(self, *args): + r""" + + Parameters + ---------- + Offset: float + Alt: float (optional, default to 0.0) + + Return + ------- + None + + Description + ----------- + Performs an OffsetWire at an altitude from the face ( According to the orientation of the face). + + """ + return _BRepFill.BRepFill_OffsetWire_Perform(self, *args) + + def PerformWithBiLo(self, *args): + r""" + + Parameters + ---------- + WSP: TopoDS_Face + Offset: float + Locus: BRepMAT2d_BisectingLocus + Link: BRepMAT2d_LinkTopoBilo + Join: GeomAbs_JoinType (optional, default to GeomAbs_Arc) + Alt: float (optional, default to 0.0) + + Return + ------- + None + + Description + ----------- + Performs an OffsetWire. + + """ + return _BRepFill.BRepFill_OffsetWire_PerformWithBiLo(self, *args) + + def Shape(self, *args): + r""" + Return + ------- + TopoDS_Shape + + Description + ----------- + returns the generated shape. + + """ + return _BRepFill.BRepFill_OffsetWire_Shape(self, *args) + + def Spine(self, *args): + r""" + Return + ------- + TopoDS_Face + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_OffsetWire_Spine(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepFill.delete_BRepFill_OffsetWire + +# Register BRepFill_OffsetWire in _BRepFill: +_BRepFill.BRepFill_OffsetWire_swigregister(BRepFill_OffsetWire) +class BRepFill_Pipe(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 + ---------- + Spine: TopoDS_Wire + Profile: TopoDS_Shape + aMode: GeomFill_Trihedron (optional, default to GeomFill_IsCorrectedFrenet) + ForceApproxC1: bool (optional, default to Standard_False) + GeneratePartCase: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _BRepFill.BRepFill_Pipe_swiginit(self, _BRepFill.new_BRepFill_Pipe(*args)) + + def Edge(self, *args): + r""" + + Parameters + ---------- + ESpine: TopoDS_Edge + VProfile: TopoDS_Vertex + + Return + ------- + TopoDS_Edge + + Description + ----------- + Returns the edge created from an edge of the spine and a vertex of the profile. if the edge or the vertex are not in the spine or the profile. + + """ + return _BRepFill.BRepFill_Pipe_Edge(self, *args) + + def ErrorOnSurface(self, *args): + r""" + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_Pipe_ErrorOnSurface(self, *args) + + def Face(self, *args): + r""" + + Parameters + ---------- + ESpine: TopoDS_Edge + EProfile: TopoDS_Edge + + Return + ------- + TopoDS_Face + + Description + ----------- + Returns the face created from an edge of the spine and an edge of the profile. if the edges are not in the spine or the profile. + + """ + return _BRepFill.BRepFill_Pipe_Face(self, *args) + + def FirstShape(self, *args): + r""" + Return + ------- + TopoDS_Shape + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_Pipe_FirstShape(self, *args) + + def Generated(self, *args): + r""" + + Parameters + ---------- + S: TopoDS_Shape + L: TopTools_ListOfShape + + Return + ------- + None + + Description + ----------- + Returns the list of shapes generated from the shape . + + """ + return _BRepFill.BRepFill_Pipe_Generated(self, *args) + + def LastShape(self, *args): + r""" + Return + ------- + TopoDS_Shape + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_Pipe_LastShape(self, *args) + + def Perform(self, *args): + r""" + + Parameters + ---------- + Spine: TopoDS_Wire + Profile: TopoDS_Shape + GeneratePartCase: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_Pipe_Perform(self, *args) + + def PipeLine(self, *args): + r""" + + Parameters + ---------- + Point: gp_Pnt + + Return + ------- + TopoDS_Wire + + Description + ----------- + Create a Wire by sweeping the Point along the if the is undefined. + + """ + return _BRepFill.BRepFill_Pipe_PipeLine(self, *args) + + def Profile(self, *args): + r""" + Return + ------- + TopoDS_Shape + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_Pipe_Profile(self, *args) + + def Section(self, *args): + r""" + + Parameters + ---------- + VSpine: TopoDS_Vertex + + Return + ------- + TopoDS_Shape + + Description + ----------- + Returns the shape created from the profile at the position of the vertex VSpine. if the vertex is not in the Spine. + + """ + return _BRepFill.BRepFill_Pipe_Section(self, *args) + + def Shape(self, *args): + r""" + Return + ------- + TopoDS_Shape + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_Pipe_Shape(self, *args) + + def Spine(self, *args): + r""" + Return + ------- + TopoDS_Shape + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_Pipe_Spine(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepFill.delete_BRepFill_Pipe + +# Register BRepFill_Pipe in _BRepFill: +_BRepFill.BRepFill_Pipe_swigregister(BRepFill_Pipe) +class BRepFill_PipeShell(OCC.Core.Standard.Standard_Transient): + 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""" + + Parameters + ---------- + Spine: TopoDS_Wire + + Return + ------- + None + + Description + ----------- + Set an sweep's mode If no mode are set, the mode used in MakePipe is used. + + """ + _BRepFill.BRepFill_PipeShell_swiginit(self, _BRepFill.new_BRepFill_PipeShell(*args)) + + def Add(self, *args): + r""" + + Parameters + ---------- + Profile: TopoDS_Shape + WithContact: bool (optional, default to Standard_False) + WithCorrection: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + Set an section. The correspondence with the spine, will be automatically performed. + + Parameters + ---------- + Profile: TopoDS_Shape + Location: TopoDS_Vertex + WithContact: bool (optional, default to Standard_False) + WithCorrection: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + Set an section. The correspondence with the spine, is given by Location. + + """ + return _BRepFill.BRepFill_PipeShell_Add(self, *args) + + def Build(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Builds the resulting shape (redefined from MakeShape). + + """ + return _BRepFill.BRepFill_PipeShell_Build(self, *args) + + def DeleteProfile(self, *args): + r""" + + Parameters + ---------- + Profile: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + Delete an section. + + """ + return _BRepFill.BRepFill_PipeShell_DeleteProfile(self, *args) + + def ErrorOnSurface(self, *args): + r""" + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_PipeShell_ErrorOnSurface(self, *args) + + def FirstShape(self, *args): + r""" + Return + ------- + TopoDS_Shape + + Description + ----------- + Returns the TopoDS Shape of the bottom of the sweep. + + """ + return _BRepFill.BRepFill_PipeShell_FirstShape(self, *args) + + def Generated(self, *args): + r""" + + Parameters + ---------- + S: TopoDS_Shape + L: TopTools_ListOfShape + + Return + ------- + None + + Description + ----------- + Returns the list of shapes generated from the shape . + + """ + return _BRepFill.BRepFill_PipeShell_Generated(self, *args) + + def GetStatus(self, *args): + r""" + Return + ------- + GeomFill_PipeError + + Description + ----------- + Get a status, when Simulate or Build failed. + + """ + return _BRepFill.BRepFill_PipeShell_GetStatus(self, *args) + + def IsReady(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Say if is ready to build the shape return False if do not have section definition. + + """ + return _BRepFill.BRepFill_PipeShell_IsReady(self, *args) + + def LastShape(self, *args): + r""" + Return + ------- + TopoDS_Shape + + Description + ----------- + Returns the TopoDS Shape of the top of the sweep. + + """ + return _BRepFill.BRepFill_PipeShell_LastShape(self, *args) + + def MakeSolid(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Transform the sweeping Shell in Solid. If the section are not closed returns False. + + """ + return _BRepFill.BRepFill_PipeShell_MakeSolid(self, *args) + + def Profiles(self, *args): + r""" + + Parameters + ---------- + theProfiles: TopTools_ListOfShape + + Return + ------- + None + + Description + ----------- + Returns the list of original profiles. + + """ + return _BRepFill.BRepFill_PipeShell_Profiles(self, *args) + + def Set(self, *args): + r""" + + Parameters + ---------- + Frenet: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + Set an Frenet or an CorrectedFrenet trihedron to perform the sweeping. + + Parameters + ---------- + Axe: gp_Ax2 + + Return + ------- + None + + Description + ----------- + Set an fixed trihedron to perform the sweeping all sections will be parallel. + + Parameters + ---------- + BiNormal: gp_Dir + + Return + ------- + None + + Description + ----------- + Set an fixed BiNormal direction to perform the sweeping. + + Parameters + ---------- + SpineSupport: TopoDS_Shape + + Return + ------- + bool + + Description + ----------- + Set support to the spine to define the BiNormal at the spine, like the normal the surfaces. Warning: To be effective, Each edge of the must have an representation on one face of. + + Parameters + ---------- + AuxiliarySpine: TopoDS_Wire + CurvilinearEquivalence: bool (optional, default to Standard_True) + KeepContact: BRepFill_TypeOfContact (optional, default to BRepFill_NoContact) + + Return + ------- + None + + Description + ----------- + Set an auxiliary spine to define the Normal For each Point of the Spine P, an Point Q is evalued on If Q split with the same length ratio than P split . Else the plan define by P and the tangent to the intersect in Q. If equals BRepFill_NoContact: The Normal is defined by the vector PQ. If equals BRepFill_Contact: The Normal is defined to achieve that the sweeped section is in contact to the auxiliarySpine. The width of section is constant all along the path. In other words, the auxiliary spine lies on the swept surface, but not necessarily is a boundary of this surface. However, the auxiliary spine has to be close enough to the main spine to provide intersection with any section all along the path. If equals BRepFill_ContactOnBorder: The auxiliary spine becomes a boundary of the swept surface and the width of section varies along the path. + + """ + return _BRepFill.BRepFill_PipeShell_Set(self, *args) + + def SetDiscrete(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Set a Discrete trihedron to perform the sweeping. + + """ + return _BRepFill.BRepFill_PipeShell_SetDiscrete(self, *args) + + def SetForceApproxC1(self, *args): + r""" + + Parameters + ---------- + ForceApproxC1: bool + + Return + ------- + None + + Description + ----------- + Set the flag that indicates attempt to approximate a C1-continuous surface if a swept surface proved to be C0. Give section to sweep. Possibilities are: - Give one or several profile - Give one profile and an homotetic law. - Automatic compute of correspondence between profile, and section on the sweeped shape - correspondence between profile, and section on the sweeped shape defined by a vertex of the spine. + + """ + return _BRepFill.BRepFill_PipeShell_SetForceApproxC1(self, *args) + + def SetLaw(self, *args): + r""" + + Parameters + ---------- + Profile: TopoDS_Shape + L: Law_Function + WithContact: bool (optional, default to Standard_False) + WithCorrection: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + Set an section and an homotetic law. The homotetie's centers is given by point on the . + + Parameters + ---------- + Profile: TopoDS_Shape + L: Law_Function + Location: TopoDS_Vertex + WithContact: bool (optional, default to Standard_False) + WithCorrection: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + Set an section and an homotetic law. The homotetie center is given by point on the . + + """ + return _BRepFill.BRepFill_PipeShell_SetLaw(self, *args) + + def SetMaxDegree(self, *args): + r""" + + Parameters + ---------- + NewMaxDegree: int + + Return + ------- + None + + Description + ----------- + Define the maximum V degree of resulting surface. + + """ + return _BRepFill.BRepFill_PipeShell_SetMaxDegree(self, *args) + + def SetMaxSegments(self, *args): + r""" + + Parameters + ---------- + NewMaxSegments: int + + Return + ------- + None + + Description + ----------- + Define the maximum number of spans in V-direction on resulting surface. + + """ + return _BRepFill.BRepFill_PipeShell_SetMaxSegments(self, *args) + + def SetTolerance(self, *args): + r""" + + Parameters + ---------- + Tol3d: float (optional, default to 1.0e-4) + BoundTol: float (optional, default to 1.0e-4) + TolAngular: float (optional, default to 1.0e-2) + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_PipeShell_SetTolerance(self, *args) + + def SetTransition(self, *args): + r""" + + Parameters + ---------- + Mode: BRepFill_TransitionStyle (optional, default to BRepFill_Modified) + Angmin: float (optional, default to 1.0e-2) + Angmax: float (optional, default to 6.0) + + Return + ------- + None + + Description + ----------- + Set the Transition Mode to manage discontinuities on the sweep. + + """ + return _BRepFill.BRepFill_PipeShell_SetTransition(self, *args) + + def Shape(self, *args): + r""" + Return + ------- + TopoDS_Shape + + Description + ----------- + Returns the result Shape. + + """ + return _BRepFill.BRepFill_PipeShell_Shape(self, *args) + + def Simulate(self, *args): + r""" + + Parameters + ---------- + NumberOfSection: int + Sections: TopTools_ListOfShape + + Return + ------- + None + + Description + ----------- + Perform simulation of the sweep: Some Section are returned. + + """ + return _BRepFill.BRepFill_PipeShell_Simulate(self, *args) + + def Spine(self, *args): + r""" + Return + ------- + TopoDS_Wire + + Description + ----------- + Returns the spine. + + """ + return _BRepFill.BRepFill_PipeShell_Spine(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_BRepFill_PipeShell_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepFill.delete_BRepFill_PipeShell + +# Register BRepFill_PipeShell in _BRepFill: +_BRepFill.BRepFill_PipeShell_swigregister(BRepFill_PipeShell) +class BRepFill_Section(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 + ---------- + Profile: TopoDS_Shape + V: TopoDS_Vertex + WithContact: bool + WithCorrection: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _BRepFill.BRepFill_Section_swiginit(self, _BRepFill.new_BRepFill_Section(*args)) + + def IsLaw(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_Section_IsLaw(self, *args) + + def IsPunctual(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_Section_IsPunctual(self, *args) + + def ModifiedShape(self, *args): + r""" + + Parameters + ---------- + theShape: TopoDS_Shape + + Return + ------- + TopoDS_Shape + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_Section_ModifiedShape(self, *args) + + def OriginalShape(self, *args): + r""" + Return + ------- + TopoDS_Shape + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_Section_OriginalShape(self, *args) + + def Set(self, *args): + r""" + + Parameters + ---------- + IsLaw: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_Section_Set(self, *args) + + def Vertex(self, *args): + r""" + Return + ------- + TopoDS_Vertex + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_Section_Vertex(self, *args) + + def Wire(self, *args): + r""" + Return + ------- + TopoDS_Wire + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_Section_Wire(self, *args) + + def WithContact(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_Section_WithContact(self, *args) + + def WithCorrection(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_Section_WithCorrection(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepFill.delete_BRepFill_Section + +# Register BRepFill_Section in _BRepFill: +_BRepFill.BRepFill_Section_swigregister(BRepFill_Section) +class BRepFill_SectionLaw(OCC.Core.Standard.Standard_Transient): + 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 + + def ConcatenedLaw(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_SectionLaw_ConcatenedLaw(self, *args) + + def Continuity(self, *args): + r""" + + Parameters + ---------- + Index: int + TolAngular: float + + Return + ------- + GeomAbs_Shape + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_SectionLaw_Continuity(self, *args) + + def CurrentEdge(self, *args): + r""" + Return + ------- + TopoDS_Edge + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_SectionLaw_CurrentEdge(self, *args) + + def D0(self, *args): + r""" + + Parameters + ---------- + U: float + S: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_SectionLaw_D0(self, *args) + + def IndexOfEdge(self, *args): + r""" + + Parameters + ---------- + anEdge: TopoDS_Shape + + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_SectionLaw_IndexOfEdge(self, *args) + + def Init(self, *args): + r""" + + Parameters + ---------- + W: TopoDS_Wire + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_SectionLaw_Init(self, *args) + + def IsConstant(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_SectionLaw_IsConstant(self, *args) + + def IsDone(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_SectionLaw_IsDone(self, *args) + + def IsUClosed(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_SectionLaw_IsUClosed(self, *args) + + def IsVClosed(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_SectionLaw_IsVClosed(self, *args) + + def IsVertex(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Say if the input shape is a vertex. + + """ + return _BRepFill.BRepFill_SectionLaw_IsVertex(self, *args) + + def law(self, *args): + r""" + + Parameters + ---------- + Index: int + + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_SectionLaw_law(self, *args) + + def NbLaw(self, *args): + r""" + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_SectionLaw_NbLaw(self, *args) + + def Vertex(self, *args): + r""" + + Parameters + ---------- + Index: int + Param: float + + Return + ------- + TopoDS_Vertex + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_SectionLaw_Vertex(self, *args) + + def VertexTol(self, *args): + r""" + + Parameters + ---------- + Index: int + Param: float + + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_SectionLaw_VertexTol(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_BRepFill_SectionLaw_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepFill.delete_BRepFill_SectionLaw + +# Register BRepFill_SectionLaw in _BRepFill: +_BRepFill.BRepFill_SectionLaw_swigregister(BRepFill_SectionLaw) +class BRepFill_SectionPlacement(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""" + + Parameters + ---------- + Law: BRepFill_LocationLaw + Section: TopoDS_Shape + WithContact: bool (optional, default to Standard_False) + WithCorrection: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + Automatic placement. + + Parameters + ---------- + Law: BRepFill_LocationLaw + Section: TopoDS_Shape + Vertex: TopoDS_Shape + WithContact: bool (optional, default to Standard_False) + WithCorrection: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + Placement on vertex. + + """ + _BRepFill.BRepFill_SectionPlacement_swiginit(self, _BRepFill.new_BRepFill_SectionPlacement(*args)) + + def AbscissaOnPath(self, *args): + r""" + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_SectionPlacement_AbscissaOnPath(self, *args) + + def Transformation(self, *args): + r""" + Return + ------- + gp_Trsf + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_SectionPlacement_Transformation(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepFill.delete_BRepFill_SectionPlacement + +# Register BRepFill_SectionPlacement in _BRepFill: +_BRepFill.BRepFill_SectionPlacement_swigregister(BRepFill_SectionPlacement) +class BRepFill_Sweep(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""" + + Parameters + ---------- + Section: BRepFill_SectionLaw + Location: BRepFill_LocationLaw + WithKPart: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _BRepFill.BRepFill_Sweep_swiginit(self, _BRepFill.new_BRepFill_Sweep(*args)) + + def Build(self, *args): + r""" + + Parameters + ---------- + ReversedEdges: TopTools_MapOfShape + Tapes: BRepFill_DataMapOfShapeHArray2OfShape + Rails: BRepFill_DataMapOfShapeHArray2OfShape + Transition: BRepFill_TransitionStyle (optional, default to BRepFill_Modified) + Continuity: GeomAbs_Shape (optional, default to GeomAbs_C2) + Approx: GeomFill_ApproxStyle (optional, default to GeomFill_Location) + Degmax: int (optional, default to 11) + Segmax: int (optional, default to 30) + + Return + ------- + None + + Description + ----------- + Build the Sweep Surface Transition define Transition strategy Approx define Approximation Strategy - GeomFill_Section: The composed Function Location X Section is directly approximated. - GeomFill_Location: The location law is approximated, and the SweepSurface builds an algebraic composition of approximated location law and section law This option is Ok, if Section.Surface() methode is effective. Continuity: The continuity in v waiting on the surface Degmax: The maximum degree in v required on the surface Segmax: The maximum number of span in v required on the surface. + + """ + return _BRepFill.BRepFill_Sweep_Build(self, *args) + + def ErrorOnSurface(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Get the Approximation error. + + """ + return _BRepFill.BRepFill_Sweep_ErrorOnSurface(self, *args) + + def InterFaces(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_Sweep_InterFaces(self, *args) + + def IsDone(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Say if the Shape is Build. + + """ + return _BRepFill.BRepFill_Sweep_IsDone(self, *args) + + def Sections(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_Sweep_Sections(self, *args) + + def SetAngularControl(self, *args): + r""" + + Parameters + ---------- + AngleMin: float (optional, default to 0.01) + AngleMax: float (optional, default to 6.0) + + Return + ------- + None + + Description + ----------- + Tolerance To controle Corner management. //! If the discontinuity is lesser than in radian The Transition Performed will be always 'Modified'. + + """ + return _BRepFill.BRepFill_Sweep_SetAngularControl(self, *args) + + def SetBounds(self, *args): + r""" + + Parameters + ---------- + FirstShape: TopoDS_Wire + LastShape: TopoDS_Wire + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_Sweep_SetBounds(self, *args) + + def SetForceApproxC1(self, *args): + r""" + + Parameters + ---------- + ForceApproxC1: bool + + Return + ------- + None + + Description + ----------- + Set the flag that indicates attempt to approximate a C1-continuous surface if a swept surface proved to be C0. + + """ + return _BRepFill.BRepFill_Sweep_SetForceApproxC1(self, *args) + + def SetTolerance(self, *args): + r""" + + Parameters + ---------- + Tol3d: float + BoundTol: float (optional, default to 1.0) + Tol2d: float (optional, default to 1.0e-5) + TolAngular: float (optional, default to 1.0e-2) + + Return + ------- + None + + Description + ----------- + Set Approximation Tolerance Tol3d: Tolerance to surface approximation Tol2d: Tolerance used to perform curve approximation Normally the 2d curve are approximated with a tolerance given by the resolution on support surfaces, but if this tolerance is too large Tol2d is used. TolAngular: Tolerance (in radian) to control the angle between tangents on the section law and tangent of iso-v on approximated surface. + + """ + return _BRepFill.BRepFill_Sweep_SetTolerance(self, *args) + + def Shape(self, *args): + r""" + Return + ------- + TopoDS_Shape + + Description + ----------- + returns the Sweeping Shape. + + """ + return _BRepFill.BRepFill_Sweep_Shape(self, *args) + + def SubShape(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_Sweep_SubShape(self, *args) + + def Tape(self, *args): + r""" + + Parameters + ---------- + Index: int + + Return + ------- + TopoDS_Shape + + Description + ----------- + returns the Tape corresponding to Index-th edge of section. + + """ + return _BRepFill.BRepFill_Sweep_Tape(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepFill.delete_BRepFill_Sweep + +# Register BRepFill_Sweep in _BRepFill: +_BRepFill.BRepFill_Sweep_swigregister(BRepFill_Sweep) +class BRepFill_TrimEdgeTool(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 + ---------- + Bisec: Bisector_Bisec + S1: Geom2d_Geometry + S2: Geom2d_Geometry + Offset: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _BRepFill.BRepFill_TrimEdgeTool_swiginit(self, _BRepFill.new_BRepFill_TrimEdgeTool(*args)) + + def AddOrConfuse(self, *args): + r""" + + Parameters + ---------- + Start: bool + Edge1: TopoDS_Edge + Edge2: TopoDS_Edge + Params: TColgp_SequenceOfPnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_TrimEdgeTool_AddOrConfuse(self, *args) + + def IntersectWith(self, *args): + r""" + + Parameters + ---------- + Edge1: TopoDS_Edge + Edge2: TopoDS_Edge + InitShape1: TopoDS_Shape + InitShape2: TopoDS_Shape + End1: TopoDS_Vertex + End2: TopoDS_Vertex + theJoinType: GeomAbs_JoinType + IsOpenResult: bool + Params: TColgp_SequenceOfPnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_TrimEdgeTool_IntersectWith(self, *args) + + def IsInside(self, *args): + r""" + + Parameters + ---------- + P: gp_Pnt2d + + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_TrimEdgeTool_IsInside(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepFill.delete_BRepFill_TrimEdgeTool + +# Register BRepFill_TrimEdgeTool in _BRepFill: +_BRepFill.BRepFill_TrimEdgeTool_swigregister(BRepFill_TrimEdgeTool) +class BRepFill_TrimShellCorner(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""" + + Parameters + ---------- + theFaces: TopTools_HArray2OfShape + theTransition: BRepFill_TransitionStyle + theAxeOfBisPlane: gp_Ax2 + theIntPointCrossDir: gp_Vec + + Return + ------- + None + + Description + ----------- + Constructor: takes faces to intersect, type of transition (it can be RightCorner or RoundCorner) and axis of bisector plane theIntersectPointCrossDirection: prev path direction at the origin point of theAxeOfBisPlane cross next path direction at the origin point of theAxeOfBisPlane. used when EE has more than one vertices. + + """ + _BRepFill.BRepFill_TrimShellCorner_swiginit(self, _BRepFill.new_BRepFill_TrimShellCorner(*args)) + + def AddBounds(self, *args): + r""" + + Parameters + ---------- + Bounds: TopTools_HArray2OfShape + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_TrimShellCorner_AddBounds(self, *args) + + def AddUEdges(self, *args): + r""" + + Parameters + ---------- + theUEdges: TopTools_HArray2OfShape + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_TrimShellCorner_AddUEdges(self, *args) + + def AddVEdges(self, *args): + r""" + + Parameters + ---------- + theVEdges: TopTools_HArray2OfShape + theIndex: int + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_TrimShellCorner_AddVEdges(self, *args) + + def HasSection(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_TrimShellCorner_HasSection(self, *args) + + def IsDone(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_TrimShellCorner_IsDone(self, *args) + + def Modified(self, *args): + r""" + + Parameters + ---------- + S: TopoDS_Shape + theModified: TopTools_ListOfShape + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_TrimShellCorner_Modified(self, *args) + + def Perform(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_TrimShellCorner_Perform(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepFill.delete_BRepFill_TrimShellCorner + +# Register BRepFill_TrimShellCorner in _BRepFill: +_BRepFill.BRepFill_TrimShellCorner_swigregister(BRepFill_TrimShellCorner) +class BRepFill_TrimSurfaceTool(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""" + + Parameters + ---------- + Bis: Geom2d_Curve + Face1: TopoDS_Face + Face2: TopoDS_Face + Edge1: TopoDS_Edge + Edge2: TopoDS_Edge + Inv1: bool + Inv2: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _BRepFill.BRepFill_TrimSurfaceTool_swiginit(self, _BRepFill.new_BRepFill_TrimSurfaceTool(*args)) + + def IntersectWith(self, *args): + r""" + + Parameters + ---------- + EdgeOnF1: TopoDS_Edge + EdgeOnF2: TopoDS_Edge + Points: TColgp_SequenceOfPnt + + Return + ------- + None + + Description + ----------- + Intersect with the projection of the edges and returns the intersecting parameters on Bis and on the edges P.X(): Parameter on Bis P.Y(): Parameter on EdgeOnF1 P.Z(): Parameter on EdgeOnF2 raises if is not a edge of Face1 or Face2. + + """ + return _BRepFill.BRepFill_TrimSurfaceTool_IntersectWith(self, *args) + + def IsOnFace(self, *args): + r""" + + Parameters + ---------- + Point: gp_Pnt2d + + Return + ------- + bool + + Description + ----------- + returns True if the Line (P, DZ) intersect the Faces. + + """ + return _BRepFill.BRepFill_TrimSurfaceTool_IsOnFace(self, *args) + + def ProjOn(self, *args): + r""" + + Parameters + ---------- + Point: gp_Pnt2d + Edge: TopoDS_Edge + + Return + ------- + float + + Description + ----------- + returns the parameter of the point on the Edge , assuming that the point is on the edge. + + """ + return _BRepFill.BRepFill_TrimSurfaceTool_ProjOn(self, *args) + + def Project(self, *args): + r""" + + Parameters + ---------- + U1: float + U2: float + Curve: Geom_Curve + PCurve1: Geom2d_Curve + PCurve2: Geom2d_Curve + + Return + ------- + myCont: GeomAbs_Shape + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_TrimSurfaceTool_Project(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepFill.delete_BRepFill_TrimSurfaceTool + +# Register BRepFill_TrimSurfaceTool in _BRepFill: +_BRepFill.BRepFill_TrimSurfaceTool_swigregister(BRepFill_TrimSurfaceTool) +class BRepFill_ACRLaw(BRepFill_LocationLaw): + 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""" + + Parameters + ---------- + Path: TopoDS_Wire + Law: GeomFill_LocationGuide + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _BRepFill.BRepFill_ACRLaw_swiginit(self, _BRepFill.new_BRepFill_ACRLaw(*args)) + + + @staticmethod + def DownCast(t): + return Handle_BRepFill_ACRLaw_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepFill.delete_BRepFill_ACRLaw + +# Register BRepFill_ACRLaw in _BRepFill: +_BRepFill.BRepFill_ACRLaw_swigregister(BRepFill_ACRLaw) +class BRepFill_Edge3DLaw(BRepFill_LocationLaw): + 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""" + + Parameters + ---------- + Path: TopoDS_Wire + Law: GeomFill_LocationLaw + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _BRepFill.BRepFill_Edge3DLaw_swiginit(self, _BRepFill.new_BRepFill_Edge3DLaw(*args)) + + + @staticmethod + def DownCast(t): + return Handle_BRepFill_Edge3DLaw_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepFill.delete_BRepFill_Edge3DLaw + +# Register BRepFill_Edge3DLaw in _BRepFill: +_BRepFill.BRepFill_Edge3DLaw_swigregister(BRepFill_Edge3DLaw) +class BRepFill_EdgeOnSurfLaw(BRepFill_LocationLaw): + 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""" + + Parameters + ---------- + Path: TopoDS_Wire + Surf: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _BRepFill.BRepFill_EdgeOnSurfLaw_swiginit(self, _BRepFill.new_BRepFill_EdgeOnSurfLaw(*args)) + + def HasResult(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + returns if one Edge of do not have representation on . In this case it is impossible to use this object. + + """ + return _BRepFill.BRepFill_EdgeOnSurfLaw_HasResult(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_BRepFill_EdgeOnSurfLaw_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepFill.delete_BRepFill_EdgeOnSurfLaw + +# Register BRepFill_EdgeOnSurfLaw in _BRepFill: +_BRepFill.BRepFill_EdgeOnSurfLaw_swigregister(BRepFill_EdgeOnSurfLaw) +class BRepFill_NSections(BRepFill_SectionLaw): + 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""" + + Parameters + ---------- + S: TopTools_SequenceOfShape + Build: bool (optional, default to Standard_True) + + Return + ------- + None + + Description + ----------- + Construct. + + Parameters + ---------- + S: TopTools_SequenceOfShape + Trsfs: GeomFill_SequenceOfTrsf + P: TColStd_SequenceOfReal + VF: float + VL: float + Build: bool (optional, default to Standard_True) + + Return + ------- + None + + Description + ----------- + Construct. + + """ + _BRepFill.BRepFill_NSections_swiginit(self, _BRepFill.new_BRepFill_NSections(*args)) + + + @staticmethod + def DownCast(t): + return Handle_BRepFill_NSections_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepFill.delete_BRepFill_NSections + +# Register BRepFill_NSections in _BRepFill: +_BRepFill.BRepFill_NSections_swigregister(BRepFill_NSections) +class BRepFill_ShapeLaw(BRepFill_SectionLaw): + 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""" + + Parameters + ---------- + V: TopoDS_Vertex + Build: bool (optional, default to Standard_True) + + Return + ------- + None + + Description + ----------- + Construct an constant Law. + + Parameters + ---------- + W: TopoDS_Wire + Build: bool (optional, default to Standard_True) + + Return + ------- + None + + Description + ----------- + Construct an constant Law. + + Parameters + ---------- + W: TopoDS_Wire + L: Law_Function + Build: bool (optional, default to Standard_True) + + Return + ------- + None + + Description + ----------- + Construct an evolutive Law. + + """ + _BRepFill.BRepFill_ShapeLaw_swiginit(self, _BRepFill.new_BRepFill_ShapeLaw(*args)) + + def Edge(self, *args): + r""" + + Parameters + ---------- + Index: int + + Return + ------- + TopoDS_Edge + + Description + ----------- + No available documentation. + + """ + return _BRepFill.BRepFill_ShapeLaw_Edge(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_BRepFill_ShapeLaw_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepFill.delete_BRepFill_ShapeLaw + +# Register BRepFill_ShapeLaw in _BRepFill: +_BRepFill.BRepFill_ShapeLaw_swigregister(BRepFill_ShapeLaw) +class BRepFill_DraftLaw(BRepFill_Edge3DLaw): + 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""" + + Parameters + ---------- + Path: TopoDS_Wire + Law: GeomFill_LocationDraft + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _BRepFill.BRepFill_DraftLaw_swiginit(self, _BRepFill.new_BRepFill_DraftLaw(*args)) + + def CleanLaw(self, *args): + r""" + + Parameters + ---------- + TolAngular: float + + Return + ------- + None + + Description + ----------- + To clean the little discontinuities. + + """ + return _BRepFill.BRepFill_DraftLaw_CleanLaw(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_BRepFill_DraftLaw_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepFill.delete_BRepFill_DraftLaw + +# Register BRepFill_DraftLaw in _BRepFill: +_BRepFill.BRepFill_DraftLaw_swigregister(BRepFill_DraftLaw) + + + +@deprecated +def brepfill_Axe(*args): + return brepfill.Axe(*args) + +@deprecated +def brepfill_ComputeACR(*args): + return brepfill.ComputeACR(*args) + +@deprecated +def brepfill_Face(*args): + return brepfill.Face(*args) + +@deprecated +def brepfill_InsertACR(*args): + return brepfill.InsertACR(*args) + +@deprecated +def brepfill_Shell(*args): + return brepfill.Shell(*args) + + + diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BRepFilletAPI.pyi b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BRepFilletAPI.pyi new file mode 100644 index 0000000000000000000000000000000000000000..d408d396a43dec6652f3afccf99e3c6e3aa569ad --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BRepFilletAPI.pyi @@ -0,0 +1,226 @@ +from enum import IntEnum +from typing import overload, NewType, Optional, Tuple + +from OCC.Core.Standard import * +from OCC.Core.NCollection import * +from OCC.Core.BRepBuilderAPI import * +from OCC.Core.TopoDS import * +from OCC.Core.ChFiDS import * +from OCC.Core.Message import * +from OCC.Core.TopTools import * +from OCC.Core.ChFi2d import * +from OCC.Core.TopOpeBRepBuild import * +from OCC.Core.ChFi3d import * +from OCC.Core.Law import * +from OCC.Core.TColgp import * +from OCC.Core.Geom import * +from OCC.Core.GeomAbs import * + +class BRepFilletAPI_LocalOperation(BRepBuilderAPI_MakeShape): + def Abscissa(self, IC: int, V: TopoDS_Vertex) -> float: ... + def Add(self, E: TopoDS_Edge) -> None: ... + def Closed(self, IC: int) -> bool: ... + def ClosedAndTangent(self, IC: int) -> bool: ... + def Contour(self, E: TopoDS_Edge) -> int: ... + def Edge(self, I: int, J: int) -> TopoDS_Edge: ... + def FirstVertex(self, IC: int) -> TopoDS_Vertex: ... + def LastVertex(self, IC: int) -> TopoDS_Vertex: ... + def Length(self, IC: int) -> float: ... + def NbContours(self) -> int: ... + def NbEdges(self, I: int) -> int: ... + def NbSurf(self, IC: int) -> int: ... + def RelativeAbscissa(self, IC: int, V: TopoDS_Vertex) -> float: ... + def Remove(self, E: TopoDS_Edge) -> None: ... + def Reset(self) -> None: ... + def ResetContour(self, IC: int) -> None: ... + def Sect(self, IC: int, IS: int) -> ChFiDS_SecHArray1: ... + def Simulate(self, IC: int) -> None: ... + +class BRepFilletAPI_MakeFillet2d(BRepBuilderAPI_MakeShape): + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, F: TopoDS_Face) -> None: ... + @overload + def AddChamfer( + self, E1: TopoDS_Edge, E2: TopoDS_Edge, D1: float, D2: float + ) -> TopoDS_Edge: ... + @overload + def AddChamfer( + self, E: TopoDS_Edge, V: TopoDS_Vertex, D: float, Ang: float + ) -> TopoDS_Edge: ... + def AddFillet(self, V: TopoDS_Vertex, Radius: float) -> TopoDS_Edge: ... + def BasisEdge(self, E: TopoDS_Edge) -> TopoDS_Edge: ... + def Build( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... + def ChamferEdges(self) -> TopTools_SequenceOfShape: ... + def DescendantEdge(self, E: TopoDS_Edge) -> TopoDS_Edge: ... + def FilletEdges(self) -> TopTools_SequenceOfShape: ... + def HasDescendant(self, E: TopoDS_Edge) -> bool: ... + @overload + def Init(self, F: TopoDS_Face) -> None: ... + @overload + def Init(self, RefFace: TopoDS_Face, ModFace: TopoDS_Face) -> None: ... + def IsModified(self, E: TopoDS_Edge) -> bool: ... + def Modified(self, S: TopoDS_Shape) -> TopTools_ListOfShape: ... + @overload + def ModifyChamfer( + self, + Chamfer: TopoDS_Edge, + E1: TopoDS_Edge, + E2: TopoDS_Edge, + D1: float, + D2: float, + ) -> TopoDS_Edge: ... + @overload + def ModifyChamfer( + self, Chamfer: TopoDS_Edge, E: TopoDS_Edge, D: float, Ang: float + ) -> TopoDS_Edge: ... + def ModifyFillet(self, Fillet: TopoDS_Edge, Radius: float) -> TopoDS_Edge: ... + def NbChamfer(self) -> int: ... + def NbCurves(self) -> int: ... + def NbFillet(self) -> int: ... + def NewEdges(self, I: int) -> TopTools_ListOfShape: ... + def RemoveChamfer(self, Chamfer: TopoDS_Edge) -> TopoDS_Vertex: ... + def RemoveFillet(self, Fillet: TopoDS_Edge) -> TopoDS_Vertex: ... + def Status(self) -> ChFi2d_ConstructionError: ... + +class BRepFilletAPI_MakeChamfer(BRepFilletAPI_LocalOperation): + def __init__(self, S: TopoDS_Shape) -> None: ... + def Abscissa(self, IC: int, V: TopoDS_Vertex) -> float: ... + @overload + def Add(self, E: TopoDS_Edge) -> None: ... + @overload + def Add(self, Dis: float, E: TopoDS_Edge) -> None: ... + @overload + def Add(self, Dis1: float, Dis2: float, E: TopoDS_Edge, F: TopoDS_Face) -> None: ... + def AddDA( + self, Dis: float, Angle: float, E: TopoDS_Edge, F: TopoDS_Face + ) -> None: ... + def Build( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... + def Builder(self) -> TopOpeBRepBuild_HBuilder: ... + def Closed(self, IC: int) -> bool: ... + def ClosedAndTangent(self, IC: int) -> bool: ... + def Contour(self, E: TopoDS_Edge) -> int: ... + def Dists(self, IC: int) -> Tuple[float, float]: ... + def Edge(self, I: int, J: int) -> TopoDS_Edge: ... + def FirstVertex(self, IC: int) -> TopoDS_Vertex: ... + def Generated(self, EorV: TopoDS_Shape) -> TopTools_ListOfShape: ... + def GetDist(self, IC: int) -> float: ... + def GetDistAngle(self, IC: int) -> Tuple[float, float]: ... + def IsDeleted(self, F: TopoDS_Shape) -> bool: ... + def IsDistanceAngle(self, IC: int) -> bool: ... + def IsSymetric(self, IC: int) -> bool: ... + def IsTwoDistances(self, IC: int) -> bool: ... + def LastVertex(self, IC: int) -> TopoDS_Vertex: ... + def Length(self, IC: int) -> float: ... + def Modified(self, F: TopoDS_Shape) -> TopTools_ListOfShape: ... + def NbContours(self) -> int: ... + def NbEdges(self, I: int) -> int: ... + def NbSurf(self, IC: int) -> int: ... + def RelativeAbscissa(self, IC: int, V: TopoDS_Vertex) -> float: ... + def Remove(self, E: TopoDS_Edge) -> None: ... + def Reset(self) -> None: ... + def ResetContour(self, IC: int) -> None: ... + def Sect(self, IC: int, IS: int) -> ChFiDS_SecHArray1: ... + def SetDist(self, Dis: float, IC: int, F: TopoDS_Face) -> None: ... + def SetDistAngle( + self, Dis: float, Angle: float, IC: int, F: TopoDS_Face + ) -> None: ... + def SetDists(self, Dis1: float, Dis2: float, IC: int, F: TopoDS_Face) -> None: ... + def SetMode(self, theMode: ChFiDS_ChamfMode) -> None: ... + def Simulate(self, IC: int) -> None: ... + +class BRepFilletAPI_MakeFillet(BRepFilletAPI_LocalOperation): + def __init__( + self, S: TopoDS_Shape, FShape: Optional[ChFi3d_FilletShape] = ChFi3d_Rational + ) -> None: ... + def Abscissa(self, IC: int, V: TopoDS_Vertex) -> float: ... + @overload + def Add(self, E: TopoDS_Edge) -> None: ... + @overload + def Add(self, Radius: float, E: TopoDS_Edge) -> None: ... + @overload + def Add(self, R1: float, R2: float, E: TopoDS_Edge) -> None: ... + @overload + def Add(self, L: Law_Function, E: TopoDS_Edge) -> None: ... + @overload + def Add(self, UandR: TColgp_Array1OfPnt2d, E: TopoDS_Edge) -> None: ... + def BadShape(self) -> TopoDS_Shape: ... + def Build( + self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... + def Builder(self) -> TopOpeBRepBuild_HBuilder: ... + def Closed(self, IC: int) -> bool: ... + def ClosedAndTangent(self, IC: int) -> bool: ... + def ComputedSurface(self, IC: int, IS: int) -> Geom_Surface: ... + def Contour(self, E: TopoDS_Edge) -> int: ... + def Edge(self, I: int, J: int) -> TopoDS_Edge: ... + def FaultyContour(self, I: int) -> int: ... + def FaultyVertex(self, IV: int) -> TopoDS_Vertex: ... + def FirstVertex(self, IC: int) -> TopoDS_Vertex: ... + def Generated(self, EorV: TopoDS_Shape) -> TopTools_ListOfShape: ... + def GetBounds(self, IC: int, E: TopoDS_Edge) -> Tuple[bool, float, float]: ... + def GetFilletShape(self) -> ChFi3d_FilletShape: ... + def GetLaw(self, IC: int, E: TopoDS_Edge) -> Law_Function: ... + def HasResult(self) -> bool: ... + @overload + def IsConstant(self, IC: int) -> bool: ... + @overload + def IsConstant(self, IC: int, E: TopoDS_Edge) -> bool: ... + def IsDeleted(self, F: TopoDS_Shape) -> bool: ... + def LastVertex(self, IC: int) -> TopoDS_Vertex: ... + def Length(self, IC: int) -> float: ... + def Modified(self, F: TopoDS_Shape) -> TopTools_ListOfShape: ... + def NbComputedSurfaces(self, IC: int) -> int: ... + def NbContours(self) -> int: ... + def NbEdges(self, I: int) -> int: ... + def NbFaultyContours(self) -> int: ... + def NbFaultyVertices(self) -> int: ... + def NbSurf(self, IC: int) -> int: ... + def NbSurfaces(self) -> int: ... + def NewFaces(self, I: int) -> TopTools_ListOfShape: ... + @overload + def Radius(self, IC: int) -> float: ... + @overload + def Radius(self, IC: int, E: TopoDS_Edge) -> float: ... + def RelativeAbscissa(self, IC: int, V: TopoDS_Vertex) -> float: ... + def Remove(self, E: TopoDS_Edge) -> None: ... + def Reset(self) -> None: ... + def ResetContour(self, IC: int) -> None: ... + def Sect(self, IC: int, IS: int) -> ChFiDS_SecHArray1: ... + def SetContinuity( + self, InternalContinuity: GeomAbs_Shape, AngularTolerance: float + ) -> None: ... + def SetFilletShape(self, FShape: ChFi3d_FilletShape) -> None: ... + def SetLaw(self, IC: int, E: TopoDS_Edge, L: Law_Function) -> None: ... + def SetParams( + self, + Tang: float, + Tesp: float, + T2d: float, + TApp3d: float, + TolApp2d: float, + Fleche: float, + ) -> None: ... + @overload + def SetRadius(self, Radius: float, IC: int, IinC: int) -> None: ... + @overload + def SetRadius(self, R1: float, R2: float, IC: int, IinC: int) -> None: ... + @overload + def SetRadius(self, L: Law_Function, IC: int, IinC: int) -> None: ... + @overload + def SetRadius(self, UandR: TColgp_Array1OfPnt2d, IC: int, IinC: int) -> None: ... + @overload + def SetRadius(self, Radius: float, IC: int, E: TopoDS_Edge) -> None: ... + @overload + def SetRadius(self, Radius: float, IC: int, V: TopoDS_Vertex) -> None: ... + def Simulate(self, IC: int) -> None: ... + def StripeStatus(self, IC: int) -> ChFiDS_ErrorStatus: ... + +# harray1 classes +# harray2 classes +# hsequence classes diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BRepGProp.pyi b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BRepGProp.pyi new file mode 100644 index 0000000000000000000000000000000000000000..e00d3f1523eb38fa07e9e2202896544460d0c7b2 --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BRepGProp.pyi @@ -0,0 +1,437 @@ +from enum import IntEnum +from typing import overload, NewType, Optional, Tuple + +from OCC.Core.Standard import * +from OCC.Core.NCollection import * +from OCC.Core.TopoDS import * +from OCC.Core.GProp import * +from OCC.Core.gp import * +from OCC.Core.BRepAdaptor import * +from OCC.Core.TColStd import * +from OCC.Core.GeomAbs import * +from OCC.Core.TColgp import * +from OCC.Core.math import * + +class brepgprop: + @staticmethod + def LinearProperties( + S: TopoDS_Shape, + LProps: GProp_GProps, + SkipShared: Optional[bool] = False, + UseTriangulation: Optional[bool] = False, + ) -> None: ... + @overload + @staticmethod + def SurfaceProperties( + S: TopoDS_Shape, + SProps: GProp_GProps, + SkipShared: Optional[bool] = False, + UseTriangulation: Optional[bool] = False, + ) -> None: ... + @overload + @staticmethod + def SurfaceProperties( + S: TopoDS_Shape, + SProps: GProp_GProps, + Eps: float, + SkipShared: Optional[bool] = False, + ) -> float: ... + @overload + @staticmethod + def VolumeProperties( + S: TopoDS_Shape, + VProps: GProp_GProps, + OnlyClosed: Optional[bool] = False, + SkipShared: Optional[bool] = False, + UseTriangulation: Optional[bool] = False, + ) -> None: ... + @overload + @staticmethod + def VolumeProperties( + S: TopoDS_Shape, + VProps: GProp_GProps, + Eps: float, + OnlyClosed: Optional[bool] = False, + SkipShared: Optional[bool] = False, + ) -> float: ... + @overload + @staticmethod + def VolumePropertiesGK( + S: TopoDS_Shape, + VProps: GProp_GProps, + Eps: Optional[float] = 0.001, + OnlyClosed: Optional[bool] = False, + IsUseSpan: Optional[bool] = False, + CGFlag: Optional[bool] = False, + IFlag: Optional[bool] = False, + SkipShared: Optional[bool] = False, + ) -> float: ... + @overload + @staticmethod + def VolumePropertiesGK( + S: TopoDS_Shape, + VProps: GProp_GProps, + thePln: gp_Pln, + Eps: Optional[float] = 0.001, + OnlyClosed: Optional[bool] = False, + IsUseSpan: Optional[bool] = False, + CGFlag: Optional[bool] = False, + IFlag: Optional[bool] = False, + SkipShared: Optional[bool] = False, + ) -> float: ... + +class BRepGProp_Cinert(GProp_GProps): + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, C: BRepAdaptor_Curve, CLocation: gp_Pnt) -> None: ... + def Perform(self, C: BRepAdaptor_Curve) -> None: ... + def SetLocation(self, CLocation: gp_Pnt) -> None: ... + +class BRepGProp_Domain: + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, F: TopoDS_Face) -> None: ... + @overload + def Init(self, F: TopoDS_Face) -> None: ... + @overload + def Init(self) -> None: ... + def More(self) -> bool: ... + def Next(self) -> None: ... + def Value(self) -> TopoDS_Edge: ... + +class BRepGProp_EdgeTool: + @staticmethod + def D1(C: BRepAdaptor_Curve, U: float, P: gp_Pnt, V1: gp_Vec) -> None: ... + @staticmethod + def FirstParameter(C: BRepAdaptor_Curve) -> float: ... + @staticmethod + def IntegrationOrder(C: BRepAdaptor_Curve) -> int: ... + @staticmethod + def Intervals( + C: BRepAdaptor_Curve, T: TColStd_Array1OfReal, S: GeomAbs_Shape + ) -> None: ... + @staticmethod + def LastParameter(C: BRepAdaptor_Curve) -> float: ... + @staticmethod + def NbIntervals(C: BRepAdaptor_Curve, S: GeomAbs_Shape) -> int: ... + @staticmethod + def Value(C: BRepAdaptor_Curve, U: float) -> gp_Pnt: ... + +class BRepGProp_Face: + @overload + def __init__(self, IsUseSpan: Optional[bool] = False) -> None: ... + @overload + def __init__(self, F: TopoDS_Face, IsUseSpan: Optional[bool] = False) -> None: ... + def Bounds(self) -> Tuple[float, float, float, float]: ... + def D12d(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d) -> None: ... + def FirstParameter(self) -> float: ... + def GetFace(self) -> TopoDS_Face: ... + def GetTKnots( + self, theTMin: float, theTMax: float, theTKnots: TColStd_HArray1OfReal + ) -> None: ... + def GetUKnots( + self, theUMin: float, theUMax: float, theUKnots: TColStd_HArray1OfReal + ) -> None: ... + def IntegrationOrder(self) -> int: ... + def LIntOrder(self, Eps: float) -> int: ... + def LIntSubs(self) -> int: ... + def LKnots(self, Knots: TColStd_Array1OfReal) -> None: ... + def LastParameter(self) -> float: ... + @overload + def Load(self, F: TopoDS_Face) -> None: ... + @overload + def Load(self, E: TopoDS_Edge) -> bool: ... + @overload + def Load(self, IsFirstParam: bool, theIsoType: GeomAbs_IsoType) -> None: ... + def NaturalRestriction(self) -> bool: ... + def Normal(self, U: float, V: float, P: gp_Pnt, VNor: gp_Vec) -> None: ... + def SIntOrder(self, Eps: float) -> int: ... + def SUIntSubs(self) -> int: ... + def SVIntSubs(self) -> int: ... + def UIntegrationOrder(self) -> int: ... + def UKnots(self, Knots: TColStd_Array1OfReal) -> None: ... + def VIntegrationOrder(self) -> int: ... + def VKnots(self, Knots: TColStd_Array1OfReal) -> None: ... + def Value2d(self, U: float) -> gp_Pnt2d: ... + +class BRepGProp_Gauss: + def __init__(self, theType: BRepGProp_GaussType) -> None: ... + +class BRepGProp_MeshCinert(GProp_GProps): + def __init__(self) -> None: ... + def Perform(self, theNodes: TColgp_Array1OfPnt) -> None: ... + @staticmethod + def PreparePolygon(theE: TopoDS_Edge, thePolyg: TColgp_HArray1OfPnt) -> None: ... + def SetLocation(self, CLocation: gp_Pnt) -> None: ... + +class BRepGProp_Sinert(GProp_GProps): + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, S: BRepGProp_Face, SLocation: gp_Pnt) -> None: ... + @overload + def __init__( + self, S: BRepGProp_Face, D: BRepGProp_Domain, SLocation: gp_Pnt + ) -> None: ... + @overload + def __init__(self, S: BRepGProp_Face, SLocation: gp_Pnt, Eps: float) -> None: ... + @overload + def __init__( + self, S: BRepGProp_Face, D: BRepGProp_Domain, SLocation: gp_Pnt, Eps: float + ) -> None: ... + def GetEpsilon(self) -> float: ... + @overload + def Perform(self, S: BRepGProp_Face) -> None: ... + @overload + def Perform(self, S: BRepGProp_Face, D: BRepGProp_Domain) -> None: ... + @overload + def Perform(self, S: BRepGProp_Face, Eps: float) -> float: ... + @overload + def Perform(self, S: BRepGProp_Face, D: BRepGProp_Domain, Eps: float) -> float: ... + def SetLocation(self, SLocation: gp_Pnt) -> None: ... + +class BRepGProp_TFunction(math_Function): + def __init__( + self, + theSurface: BRepGProp_Face, + theVertex: gp_Pnt, + IsByPoint: bool, + theCoeffs: float, + theUMin: float, + theTolerance: float, + ) -> None: ... + def AbsolutError(self) -> float: ... + def ErrorReached(self) -> float: ... + def GetStateNumber(self) -> int: ... + def Init(self) -> None: ... + def SetNbKronrodPoints(self, theNbPoints: int) -> None: ... + def SetTolerance(self, aTol: float) -> None: ... + def SetValueType(self, aType: GProp_ValueType) -> None: ... + def Value(self, X: float) -> Tuple[bool, float]: ... + +class BRepGProp_UFunction(math_Function): + def __init__( + self, + theSurface: BRepGProp_Face, + theVertex: gp_Pnt, + IsByPoint: bool, + theCoeffs: float, + ) -> None: ... + def SetVParam(self, theVParam: float) -> None: ... + def SetValueType(self, theType: GProp_ValueType) -> None: ... + def Value(self, X: float) -> Tuple[bool, float]: ... + +class BRepGProp_Vinert(GProp_GProps): + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, S: BRepGProp_Face, VLocation: gp_Pnt) -> None: ... + @overload + def __init__(self, S: BRepGProp_Face, VLocation: gp_Pnt, Eps: float) -> None: ... + @overload + def __init__(self, S: BRepGProp_Face, O: gp_Pnt, VLocation: gp_Pnt) -> None: ... + @overload + def __init__( + self, S: BRepGProp_Face, O: gp_Pnt, VLocation: gp_Pnt, Eps: float + ) -> None: ... + @overload + def __init__(self, S: BRepGProp_Face, Pl: gp_Pln, VLocation: gp_Pnt) -> None: ... + @overload + def __init__( + self, S: BRepGProp_Face, Pl: gp_Pln, VLocation: gp_Pnt, Eps: float + ) -> None: ... + @overload + def __init__( + self, S: BRepGProp_Face, D: BRepGProp_Domain, VLocation: gp_Pnt + ) -> None: ... + @overload + def __init__( + self, S: BRepGProp_Face, D: BRepGProp_Domain, VLocation: gp_Pnt, Eps: float + ) -> None: ... + @overload + def __init__( + self, S: BRepGProp_Face, D: BRepGProp_Domain, O: gp_Pnt, VLocation: gp_Pnt + ) -> None: ... + @overload + def __init__( + self, + S: BRepGProp_Face, + D: BRepGProp_Domain, + O: gp_Pnt, + VLocation: gp_Pnt, + Eps: float, + ) -> None: ... + @overload + def __init__( + self, S: BRepGProp_Face, D: BRepGProp_Domain, Pl: gp_Pln, VLocation: gp_Pnt + ) -> None: ... + @overload + def __init__( + self, + S: BRepGProp_Face, + D: BRepGProp_Domain, + Pl: gp_Pln, + VLocation: gp_Pnt, + Eps: float, + ) -> None: ... + def GetEpsilon(self) -> float: ... + @overload + def Perform(self, S: BRepGProp_Face) -> None: ... + @overload + def Perform(self, S: BRepGProp_Face, Eps: float) -> float: ... + @overload + def Perform(self, S: BRepGProp_Face, O: gp_Pnt) -> None: ... + @overload + def Perform(self, S: BRepGProp_Face, O: gp_Pnt, Eps: float) -> float: ... + @overload + def Perform(self, S: BRepGProp_Face, Pl: gp_Pln) -> None: ... + @overload + def Perform(self, S: BRepGProp_Face, Pl: gp_Pln, Eps: float) -> float: ... + @overload + def Perform(self, S: BRepGProp_Face, D: BRepGProp_Domain) -> None: ... + @overload + def Perform(self, S: BRepGProp_Face, D: BRepGProp_Domain, Eps: float) -> float: ... + @overload + def Perform(self, S: BRepGProp_Face, D: BRepGProp_Domain, O: gp_Pnt) -> None: ... + @overload + def Perform( + self, S: BRepGProp_Face, D: BRepGProp_Domain, O: gp_Pnt, Eps: float + ) -> float: ... + @overload + def Perform(self, S: BRepGProp_Face, D: BRepGProp_Domain, Pl: gp_Pln) -> None: ... + @overload + def Perform( + self, S: BRepGProp_Face, D: BRepGProp_Domain, Pl: gp_Pln, Eps: float + ) -> float: ... + def SetLocation(self, VLocation: gp_Pnt) -> None: ... + +class BRepGProp_VinertGK(GProp_GProps): + @overload + def __init__(self) -> None: ... + @overload + def __init__( + self, + theSurface: BRepGProp_Face, + theLocation: gp_Pnt, + theTolerance: Optional[float] = 0.001, + theCGFlag: Optional[bool] = False, + theIFlag: Optional[bool] = False, + ) -> None: ... + @overload + def __init__( + self, + theSurface: BRepGProp_Face, + thePoint: gp_Pnt, + theLocation: gp_Pnt, + theTolerance: Optional[float] = 0.001, + theCGFlag: Optional[bool] = False, + theIFlag: Optional[bool] = False, + ) -> None: ... + @overload + def __init__( + self, + theSurface: BRepGProp_Face, + theDomain: BRepGProp_Domain, + theLocation: gp_Pnt, + theTolerance: Optional[float] = 0.001, + theCGFlag: Optional[bool] = False, + theIFlag: Optional[bool] = False, + ) -> None: ... + @overload + def __init__( + self, + theSurface: BRepGProp_Face, + theDomain: BRepGProp_Domain, + thePoint: gp_Pnt, + theLocation: gp_Pnt, + theTolerance: Optional[float] = 0.001, + theCGFlag: Optional[bool] = False, + theIFlag: Optional[bool] = False, + ) -> None: ... + @overload + def __init__( + self, + theSurface: BRepGProp_Face, + thePlane: gp_Pln, + theLocation: gp_Pnt, + theTolerance: Optional[float] = 0.001, + theCGFlag: Optional[bool] = False, + theIFlag: Optional[bool] = False, + ) -> None: ... + @overload + def __init__( + self, + theSurface: BRepGProp_Face, + theDomain: BRepGProp_Domain, + thePlane: gp_Pln, + theLocation: gp_Pnt, + theTolerance: Optional[float] = 0.001, + theCGFlag: Optional[bool] = False, + theIFlag: Optional[bool] = False, + ) -> None: ... + def GetErrorReached(self) -> float: ... + @overload + def Perform( + self, + theSurface: BRepGProp_Face, + theTolerance: Optional[float] = 0.001, + theCGFlag: Optional[bool] = False, + theIFlag: Optional[bool] = False, + ) -> float: ... + @overload + def Perform( + self, + theSurface: BRepGProp_Face, + thePoint: gp_Pnt, + theTolerance: Optional[float] = 0.001, + theCGFlag: Optional[bool] = False, + theIFlag: Optional[bool] = False, + ) -> float: ... + @overload + def Perform( + self, + theSurface: BRepGProp_Face, + theDomain: BRepGProp_Domain, + theTolerance: Optional[float] = 0.001, + theCGFlag: Optional[bool] = False, + theIFlag: Optional[bool] = False, + ) -> float: ... + @overload + def Perform( + self, + theSurface: BRepGProp_Face, + theDomain: BRepGProp_Domain, + thePoint: gp_Pnt, + theTolerance: Optional[float] = 0.001, + theCGFlag: Optional[bool] = False, + theIFlag: Optional[bool] = False, + ) -> float: ... + @overload + def Perform( + self, + theSurface: BRepGProp_Face, + thePlane: gp_Pln, + theTolerance: Optional[float] = 0.001, + theCGFlag: Optional[bool] = False, + theIFlag: Optional[bool] = False, + ) -> float: ... + @overload + def Perform( + self, + theSurface: BRepGProp_Face, + theDomain: BRepGProp_Domain, + thePlane: gp_Pln, + theTolerance: Optional[float] = 0.001, + theCGFlag: Optional[bool] = False, + theIFlag: Optional[bool] = False, + ) -> float: ... + def SetLocation(self, theLocation: gp_Pnt) -> None: ... + +# classnotwrapped +class BRepGProp_MeshProps: ... + +# harray1 classes +# harray2 classes +# hsequence classes diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BRepIntCurveSurface.pyi b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BRepIntCurveSurface.pyi new file mode 100644 index 0000000000000000000000000000000000000000..7a1bb473308a3c4804e1a24e2abfe21f38acae67 --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BRepIntCurveSurface.pyi @@ -0,0 +1,36 @@ +from enum import IntEnum +from typing import overload, NewType, Optional, Tuple + +from OCC.Core.Standard import * +from OCC.Core.NCollection import * +from OCC.Core.TopoDS import * +from OCC.Core.GeomAdaptor import * +from OCC.Core.gp import * +from OCC.Core.IntCurveSurface import * +from OCC.Core.TopAbs import * + +class BRepIntCurveSurface_Inter: + def __init__(self) -> None: ... + def Face(self) -> TopoDS_Face: ... + @overload + def Init( + self, theShape: TopoDS_Shape, theCurve: GeomAdaptor_Curve, theTol: float + ) -> None: ... + @overload + def Init(self, theShape: TopoDS_Shape, theLine: gp_Lin, theTol: float) -> None: ... + @overload + def Init(self, theCurve: GeomAdaptor_Curve) -> None: ... + def Load(self, theShape: TopoDS_Shape, theTol: float) -> None: ... + def More(self) -> bool: ... + def Next(self) -> None: ... + def Pnt(self) -> gp_Pnt: ... + def Point(self) -> IntCurveSurface_IntersectionPoint: ... + def State(self) -> TopAbs_State: ... + def Transition(self) -> IntCurveSurface_TransitionOnCurve: ... + def U(self) -> float: ... + def V(self) -> float: ... + def W(self) -> float: ... + +# harray1 classes +# harray2 classes +# hsequence classes diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BRepLProp.py b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BRepLProp.py new file mode 100644 index 0000000000000000000000000000000000000000..3b6447adb948ef312fac65f64036ae594a932bdb --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BRepLProp.py @@ -0,0 +1,1451 @@ +# This file was automatically generated by SWIG (https://www.swig.org). +# Version 4.3.0 +# +# Do not make changes to this file unless you know what you are doing - modify +# the SWIG interface file instead. + +""" +BRepLProp module, see official documentation at +https://dev.opencascade.org/doc/occt-7.9.0/refman/html/package_breplprop.html +""" + +from sys import version_info as _swig_python_version_info +# Import the low-level C/C++ module +if __package__ or "." in __name__: + from . import _BRepLProp +else: + import _BRepLProp + +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__ = _BRepLProp.delete_SwigPyIterator + + def value(self): + return _BRepLProp.SwigPyIterator_value(self) + + def incr(self, n=1): + return _BRepLProp.SwigPyIterator_incr(self, n) + + def decr(self, n=1): + return _BRepLProp.SwigPyIterator_decr(self, n) + + def distance(self, x): + return _BRepLProp.SwigPyIterator_distance(self, x) + + def equal(self, x): + return _BRepLProp.SwigPyIterator_equal(self, x) + + def copy(self): + return _BRepLProp.SwigPyIterator_copy(self) + + def next(self): + return _BRepLProp.SwigPyIterator_next(self) + + def __next__(self): + return _BRepLProp.SwigPyIterator___next__(self) + + def previous(self): + return _BRepLProp.SwigPyIterator_previous(self) + + def advance(self, n): + return _BRepLProp.SwigPyIterator_advance(self, n) + + def __eq__(self, x): + return _BRepLProp.SwigPyIterator___eq__(self, x) + + def __ne__(self, x): + return _BRepLProp.SwigPyIterator___ne__(self, x) + + def __iadd__(self, n): + return _BRepLProp.SwigPyIterator___iadd__(self, n) + + def __isub__(self, n): + return _BRepLProp.SwigPyIterator___isub__(self, n) + + def __add__(self, n): + return _BRepLProp.SwigPyIterator___add__(self, n) + + def __sub__(self, *args): + return _BRepLProp.SwigPyIterator___sub__(self, *args) + def __iter__(self): + return self + +# Register SwigPyIterator in _BRepLProp: +_BRepLProp.SwigPyIterator_swigregister(SwigPyIterator) + +def _dumps_object(klass): + """ Overwrite default string output for any wrapped object. + By default, __repr__ method returns something like: + > + This is too much verbose. + We prefer : + + or + + """ + klass_name = str(klass.__class__).split(".")[3].split("'")[0] + repr_string = " The current point and the derivatives are computed at the same time, which allows an optimization of the computation time. indicates the maximum number of derivations to be done (0, 1, 2 or 3). For example, to compute only the tangent, N should be equal to 1. is the linear tolerance (it is used to test if a vector is null). + + Parameters + ---------- + C: BRepAdaptor_Curve + U: float + N: int + Resolution: float + + Return + ------- + None + + Description + ----------- + Same as previous constructor but here the parameter is set to the value . All the computations done will be related to and . + + Parameters + ---------- + N: int + Resolution: float + + Return + ------- + None + + Description + ----------- + Same as previous constructor but here the parameter is set to the value and the curve is set with SetCurve. the curve can have a empty constructor All the computations done will be related to and when the functions 'set' will be done. + + """ + _BRepLProp.BRepLProp_CLProps_swiginit(self, _BRepLProp.new_BRepLProp_CLProps(*args)) + + def CentreOfCurvature(self, *args): + r""" + + Parameters + ---------- + P: gp_Pnt + + Return + ------- + None + + Description + ----------- + Returns the centre of curvature

. + + """ + return _BRepLProp.BRepLProp_CLProps_CentreOfCurvature(self, *args) + + def Curvature(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns the curvature. + + """ + return _BRepLProp.BRepLProp_CLProps_Curvature(self, *args) + + def D1(self, *args): + r""" + Return + ------- + gp_Vec + + Description + ----------- + Returns the first derivative. The derivative is computed if it has not been yet. + + """ + return _BRepLProp.BRepLProp_CLProps_D1(self, *args) + + def D2(self, *args): + r""" + Return + ------- + gp_Vec + + Description + ----------- + Returns the second derivative. The derivative is computed if it has not been yet. + + """ + return _BRepLProp.BRepLProp_CLProps_D2(self, *args) + + def D3(self, *args): + r""" + Return + ------- + gp_Vec + + Description + ----------- + Returns the third derivative. The derivative is computed if it has not been yet. + + """ + return _BRepLProp.BRepLProp_CLProps_D3(self, *args) + + def IsTangentDefined(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True if the tangent is defined. For example, the tangent is not defined if the three first derivatives are all null. + + """ + return _BRepLProp.BRepLProp_CLProps_IsTangentDefined(self, *args) + + def Normal(self, *args): + r""" + + Parameters + ---------- + N: gp_Dir + + Return + ------- + None + + Description + ----------- + Returns the normal direction . + + """ + return _BRepLProp.BRepLProp_CLProps_Normal(self, *args) + + def SetCurve(self, *args): + r""" + + Parameters + ---------- + C: BRepAdaptor_Curve + + Return + ------- + None + + Description + ----------- + Initializes the local properties of the curve for the new curve. + + """ + return _BRepLProp.BRepLProp_CLProps_SetCurve(self, *args) + + def SetParameter(self, *args): + r""" + + Parameters + ---------- + U: float + + Return + ------- + None + + Description + ----------- + Initializes the local properties of the curve for the parameter value . + + """ + return _BRepLProp.BRepLProp_CLProps_SetParameter(self, *args) + + def Tangent(self, *args): + r""" + + Parameters + ---------- + D: gp_Dir + + Return + ------- + None + + Description + ----------- + output the tangent direction . + + """ + return _BRepLProp.BRepLProp_CLProps_Tangent(self, *args) + + def Value(self, *args): + r""" + Return + ------- + gp_Pnt + + Description + ----------- + Returns the Point. + + """ + return _BRepLProp.BRepLProp_CLProps_Value(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepLProp.delete_BRepLProp_CLProps + +# Register BRepLProp_CLProps in _BRepLProp: +_BRepLProp.BRepLProp_CLProps_swigregister(BRepLProp_CLProps) +class BRepLProp_CurveTool(object): + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") + __repr__ = _swig_repr + + @staticmethod + def Continuity(*args): + r""" + + Parameters + ---------- + C: BRepAdaptor_Curve + + Return + ------- + int + + Description + ----------- + returns the order of continuity of the curve . returns 1: first derivative only is computable returns 2: first and second derivative only are computable. returns 3: first, second and third are computable. + + """ + return _BRepLProp.BRepLProp_CurveTool_Continuity(*args) + + @staticmethod + def D1(*args): + r""" + + Parameters + ---------- + C: BRepAdaptor_Curve + U: float + P: gp_Pnt + V1: gp_Vec + + Return + ------- + None + + Description + ----------- + Computes the point

and first derivative of parameter on the curve . + + """ + return _BRepLProp.BRepLProp_CurveTool_D1(*args) + + @staticmethod + def D2(*args): + r""" + + Parameters + ---------- + C: BRepAdaptor_Curve + U: float + P: gp_Pnt + V1: gp_Vec + V2: gp_Vec + + Return + ------- + None + + Description + ----------- + Computes the point

, the first derivative and second derivative of parameter on the curve . + + """ + return _BRepLProp.BRepLProp_CurveTool_D2(*args) + + @staticmethod + def D3(*args): + r""" + + Parameters + ---------- + C: BRepAdaptor_Curve + U: float + P: gp_Pnt + V1: gp_Vec + V2: gp_Vec + V3: gp_Vec + + Return + ------- + None + + Description + ----------- + Computes the point

, the first derivative , the second derivative and third derivative of parameter on the curve . + + """ + return _BRepLProp.BRepLProp_CurveTool_D3(*args) + + @staticmethod + def FirstParameter(*args): + r""" + + Parameters + ---------- + C: BRepAdaptor_Curve + + Return + ------- + float + + Description + ----------- + returns the first parameter bound of the curve. + + """ + return _BRepLProp.BRepLProp_CurveTool_FirstParameter(*args) + + @staticmethod + def LastParameter(*args): + r""" + + Parameters + ---------- + C: BRepAdaptor_Curve + + Return + ------- + float + + Description + ----------- + returns the last parameter bound of the curve. FirstParameter must be less than LastParamenter. + + """ + return _BRepLProp.BRepLProp_CurveTool_LastParameter(*args) + + @staticmethod + def Value(*args): + r""" + + Parameters + ---------- + C: BRepAdaptor_Curve + U: float + P: gp_Pnt + + Return + ------- + None + + Description + ----------- + Computes the point

of parameter on the curve . + + """ + return _BRepLProp.BRepLProp_CurveTool_Value(*args) + + __repr__ = _dumps_object + + + def __init__(self): + _BRepLProp.BRepLProp_CurveTool_swiginit(self, _BRepLProp.new_BRepLProp_CurveTool()) + __swig_destroy__ = _BRepLProp.delete_BRepLProp_CurveTool + +# Register BRepLProp_CurveTool in _BRepLProp: +_BRepLProp.BRepLProp_CurveTool_swigregister(BRepLProp_CurveTool) +class BRepLProp_SLProps(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""" + + Parameters + ---------- + S: BRepAdaptor_Surface + U: float + V: float + N: int + Resolution: float + + Return + ------- + None + + Description + ----------- + Initializes the local properties of the surface for the parameter values (, ). The current point and the derivatives are computed at the same time, which allows an optimization of the computation time. indicates the maximum number of derivations to be done (0, 1, or 2). For example, to compute only the tangent, N should be equal to 1. is the linear tolerance (it is used to test if a vector is null). + + Parameters + ---------- + S: BRepAdaptor_Surface + N: int + Resolution: float + + Return + ------- + None + + Description + ----------- + idem as previous constructor but without setting the value of parameters and . + + Parameters + ---------- + N: int + Resolution: float + + Return + ------- + None + + Description + ----------- + idem as previous constructor but without setting the value of parameters and and the surface. the surface can have an empty constructor. + + """ + _BRepLProp.BRepLProp_SLProps_swiginit(self, _BRepLProp.new_BRepLProp_SLProps(*args)) + + def CurvatureDirections(self, *args): + r""" + + Parameters + ---------- + MaxD: gp_Dir + MinD: gp_Dir + + Return + ------- + None + + Description + ----------- + Returns the direction of the maximum and minimum curvature and . + + """ + return _BRepLProp.BRepLProp_SLProps_CurvatureDirections(self, *args) + + def D1U(self, *args): + r""" + Return + ------- + gp_Vec + + Description + ----------- + Returns the first U derivative. The derivative is computed if it has not been yet. + + """ + return _BRepLProp.BRepLProp_SLProps_D1U(self, *args) + + def D1V(self, *args): + r""" + Return + ------- + gp_Vec + + Description + ----------- + Returns the first V derivative. The derivative is computed if it has not been yet. + + """ + return _BRepLProp.BRepLProp_SLProps_D1V(self, *args) + + def D2U(self, *args): + r""" + Return + ------- + gp_Vec + + Description + ----------- + Returns the second U derivatives The derivative is computed if it has not been yet. + + """ + return _BRepLProp.BRepLProp_SLProps_D2U(self, *args) + + def D2V(self, *args): + r""" + Return + ------- + gp_Vec + + Description + ----------- + Returns the second V derivative. The derivative is computed if it has not been yet. + + """ + return _BRepLProp.BRepLProp_SLProps_D2V(self, *args) + + def DUV(self, *args): + r""" + Return + ------- + gp_Vec + + Description + ----------- + Returns the second UV cross-derivative. The derivative is computed if it has not been yet. + + """ + return _BRepLProp.BRepLProp_SLProps_DUV(self, *args) + + def GaussianCurvature(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns the Gaussian curvature. + + """ + return _BRepLProp.BRepLProp_SLProps_GaussianCurvature(self, *args) + + def IsCurvatureDefined(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + returns True if the curvature is defined. + + """ + return _BRepLProp.BRepLProp_SLProps_IsCurvatureDefined(self, *args) + + def IsNormalDefined(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Tells if the normal is defined. + + """ + return _BRepLProp.BRepLProp_SLProps_IsNormalDefined(self, *args) + + def IsTangentUDefined(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + returns True if the U tangent is defined. For example, the tangent is not defined if the two first U derivatives are null. + + """ + return _BRepLProp.BRepLProp_SLProps_IsTangentUDefined(self, *args) + + def IsTangentVDefined(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + returns if the V tangent is defined. For example, the tangent is not defined if the two first V derivatives are null. + + """ + return _BRepLProp.BRepLProp_SLProps_IsTangentVDefined(self, *args) + + def IsUmbilic(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + returns True if the point is umbilic (i.e. if the curvature is constant). + + """ + return _BRepLProp.BRepLProp_SLProps_IsUmbilic(self, *args) + + def MaxCurvature(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns the maximum curvature. + + """ + return _BRepLProp.BRepLProp_SLProps_MaxCurvature(self, *args) + + def MeanCurvature(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns the mean curvature. + + """ + return _BRepLProp.BRepLProp_SLProps_MeanCurvature(self, *args) + + def MinCurvature(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns the minimum curvature. + + """ + return _BRepLProp.BRepLProp_SLProps_MinCurvature(self, *args) + + def Normal(self, *args): + r""" + Return + ------- + gp_Dir + + Description + ----------- + Returns the normal direction. + + """ + return _BRepLProp.BRepLProp_SLProps_Normal(self, *args) + + def SetParameters(self, *args): + r""" + + Parameters + ---------- + U: float + V: float + + Return + ------- + None + + Description + ----------- + Initializes the local properties of the surface S for the new parameter values (, ). + + """ + return _BRepLProp.BRepLProp_SLProps_SetParameters(self, *args) + + def SetSurface(self, *args): + r""" + + Parameters + ---------- + S: BRepAdaptor_Surface + + Return + ------- + None + + Description + ----------- + Initializes the local properties of the surface S for the new surface. + + """ + return _BRepLProp.BRepLProp_SLProps_SetSurface(self, *args) + + def TangentU(self, *args): + r""" + + Parameters + ---------- + D: gp_Dir + + Return + ------- + None + + Description + ----------- + Returns the tangent direction on the iso-V. + + """ + return _BRepLProp.BRepLProp_SLProps_TangentU(self, *args) + + def TangentV(self, *args): + r""" + + Parameters + ---------- + D: gp_Dir + + Return + ------- + None + + Description + ----------- + Returns the tangent direction on the iso-V. + + """ + return _BRepLProp.BRepLProp_SLProps_TangentV(self, *args) + + def Value(self, *args): + r""" + Return + ------- + gp_Pnt + + Description + ----------- + Returns the point. + + """ + return _BRepLProp.BRepLProp_SLProps_Value(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepLProp.delete_BRepLProp_SLProps + +# Register BRepLProp_SLProps in _BRepLProp: +_BRepLProp.BRepLProp_SLProps_swigregister(BRepLProp_SLProps) +class BRepLProp_SurfaceTool(object): + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") + __repr__ = _swig_repr + + @staticmethod + def Bounds(*args): + r""" + + Parameters + ---------- + S: BRepAdaptor_Surface + + Return + ------- + U1: float + V1: float + U2: float + V2: float + + Description + ----------- + returns the bounds of the Surface. + + """ + return _BRepLProp.BRepLProp_SurfaceTool_Bounds(*args) + + @staticmethod + def Continuity(*args): + r""" + + Parameters + ---------- + S: BRepAdaptor_Surface + + Return + ------- + int + + Description + ----------- + returns the order of continuity of the Surface . returns 1: first derivative only is computable returns 2: first and second derivative only are computable. + + """ + return _BRepLProp.BRepLProp_SurfaceTool_Continuity(*args) + + @staticmethod + def D1(*args): + r""" + + Parameters + ---------- + S: BRepAdaptor_Surface + U: float + V: float + P: gp_Pnt + D1U: gp_Vec + D1V: gp_Vec + + Return + ------- + None + + Description + ----------- + Computes the point

and first derivative of parameter and on the Surface . + + """ + return _BRepLProp.BRepLProp_SurfaceTool_D1(*args) + + @staticmethod + def D2(*args): + r""" + + Parameters + ---------- + S: BRepAdaptor_Surface + U: float + V: float + P: gp_Pnt + D1U: gp_Vec + D1V: gp_Vec + D2U: gp_Vec + D2V: gp_Vec + DUV: gp_Vec + + Return + ------- + None + + Description + ----------- + Computes the point

, the first derivative and second derivative of parameter and on the Surface . + + """ + return _BRepLProp.BRepLProp_SurfaceTool_D2(*args) + + @staticmethod + def DN(*args): + r""" + + Parameters + ---------- + S: BRepAdaptor_Surface + U: float + V: float + IU: int + IV: int + + Return + ------- + gp_Vec + + Description + ----------- + No available documentation. + + """ + return _BRepLProp.BRepLProp_SurfaceTool_DN(*args) + + @staticmethod + def Value(*args): + r""" + + Parameters + ---------- + S: BRepAdaptor_Surface + U: float + V: float + P: gp_Pnt + + Return + ------- + None + + Description + ----------- + Computes the point

of parameter and on the Surface . + + """ + return _BRepLProp.BRepLProp_SurfaceTool_Value(*args) + + __repr__ = _dumps_object + + + def __init__(self): + _BRepLProp.BRepLProp_SurfaceTool_swiginit(self, _BRepLProp.new_BRepLProp_SurfaceTool()) + __swig_destroy__ = _BRepLProp.delete_BRepLProp_SurfaceTool + +# Register BRepLProp_SurfaceTool in _BRepLProp: +_BRepLProp.BRepLProp_SurfaceTool_swigregister(BRepLProp_SurfaceTool) + + + +@deprecated +def breplprop_Continuity(*args): + return breplprop.Continuity(*args) + +@deprecated +def breplprop_Continuity(*args): + return breplprop.Continuity(*args) + +@deprecated +def BRepLProp_CurveTool_Continuity(*args): + return BRepLProp_CurveTool.Continuity(*args) + +@deprecated +def BRepLProp_CurveTool_D1(*args): + return BRepLProp_CurveTool.D1(*args) + +@deprecated +def BRepLProp_CurveTool_D2(*args): + return BRepLProp_CurveTool.D2(*args) + +@deprecated +def BRepLProp_CurveTool_D3(*args): + return BRepLProp_CurveTool.D3(*args) + +@deprecated +def BRepLProp_CurveTool_FirstParameter(*args): + return BRepLProp_CurveTool.FirstParameter(*args) + +@deprecated +def BRepLProp_CurveTool_LastParameter(*args): + return BRepLProp_CurveTool.LastParameter(*args) + +@deprecated +def BRepLProp_CurveTool_Value(*args): + return BRepLProp_CurveTool.Value(*args) + +@deprecated +def BRepLProp_SurfaceTool_Bounds(*args): + return BRepLProp_SurfaceTool.Bounds(*args) + +@deprecated +def BRepLProp_SurfaceTool_Continuity(*args): + return BRepLProp_SurfaceTool.Continuity(*args) + +@deprecated +def BRepLProp_SurfaceTool_D1(*args): + return BRepLProp_SurfaceTool.D1(*args) + +@deprecated +def BRepLProp_SurfaceTool_D2(*args): + return BRepLProp_SurfaceTool.D2(*args) + +@deprecated +def BRepLProp_SurfaceTool_DN(*args): + return BRepLProp_SurfaceTool.DN(*args) + +@deprecated +def BRepLProp_SurfaceTool_Value(*args): + return BRepLProp_SurfaceTool.Value(*args) + + + diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BRepLib.py b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BRepLib.py new file mode 100644 index 0000000000000000000000000000000000000000..8f6cedcaea00d2065417dea4720516ac6e8ee158 --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BRepLib.py @@ -0,0 +1,4723 @@ +# This file was automatically generated by SWIG (https://www.swig.org). +# Version 4.3.0 +# +# Do not make changes to this file unless you know what you are doing - modify +# the SWIG interface file instead. + +""" +BRepLib module, see official documentation at +https://dev.opencascade.org/doc/occt-7.9.0/refman/html/package_breplib.html +""" + +from sys import version_info as _swig_python_version_info +# Import the low-level C/C++ module +if __package__ or "." in __name__: + from . import _BRepLib +else: + import _BRepLib + +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__ = _BRepLib.delete_SwigPyIterator + + def value(self): + return _BRepLib.SwigPyIterator_value(self) + + def incr(self, n=1): + return _BRepLib.SwigPyIterator_incr(self, n) + + def decr(self, n=1): + return _BRepLib.SwigPyIterator_decr(self, n) + + def distance(self, x): + return _BRepLib.SwigPyIterator_distance(self, x) + + def equal(self, x): + return _BRepLib.SwigPyIterator_equal(self, x) + + def copy(self): + return _BRepLib.SwigPyIterator_copy(self) + + def next(self): + return _BRepLib.SwigPyIterator_next(self) + + def __next__(self): + return _BRepLib.SwigPyIterator___next__(self) + + def previous(self): + return _BRepLib.SwigPyIterator_previous(self) + + def advance(self, n): + return _BRepLib.SwigPyIterator_advance(self, n) + + def __eq__(self, x): + return _BRepLib.SwigPyIterator___eq__(self, x) + + def __ne__(self, x): + return _BRepLib.SwigPyIterator___ne__(self, x) + + def __iadd__(self, n): + return _BRepLib.SwigPyIterator___iadd__(self, n) + + def __isub__(self, n): + return _BRepLib.SwigPyIterator___isub__(self, n) + + def __add__(self, n): + return _BRepLib.SwigPyIterator___add__(self, n) + + def __sub__(self, *args): + return _BRepLib.SwigPyIterator___sub__(self, *args) + def __iter__(self): + return self + +# Register SwigPyIterator in _BRepLib: +_BRepLib.SwigPyIterator_swigregister(SwigPyIterator) + +def _dumps_object(klass): + """ Overwrite default string output for any wrapped object. + By default, __repr__ method returns something like: + > + This is too much verbose. + We prefer : + + or + + """ + klass_name = str(klass.__class__).split(".")[3].split("'")[0] + repr_string = " + theNewCenter: gp_Pnt + + Return + ------- + theNewTol: float + + Description + ----------- + Calculates the bounding sphere around the set of vertexes from the theLV list. Returns the center (theNewCenter) and the radius (theNewTol) of this sphere. This can be used to construct the new vertex which covers the given set of other vertices. + + """ + return _BRepLib.breplib_BoundingVertex(*args) + + @staticmethod + def BuildCurve3d(*args): + r""" + + Parameters + ---------- + E: TopoDS_Edge + Tolerance: float (optional, default to 1.0e-5) + Continuity: GeomAbs_Shape (optional, default to GeomAbs_C1) + MaxDegree: int (optional, default to 14) + MaxSegment: int (optional, default to 0) + + Return + ------- + bool + + Description + ----------- + Computes the 3d curve for the edge if it does not exist. Returns True if the curve was computed or existed. Returns False if there is no planar pcurve or the computation failed. >= 30 in approximation. + + """ + return _BRepLib.breplib_BuildCurve3d(*args) + + @staticmethod + def BuildCurves3d(*args): + r""" + + Parameters + ---------- + S: TopoDS_Shape + Tolerance: float + Continuity: GeomAbs_Shape (optional, default to GeomAbs_C1) + MaxDegree: int (optional, default to 14) + MaxSegment: int (optional, default to 0) + + Return + ------- + bool + + Description + ----------- + Computes the 3d curves for all the edges of return False if one of the computation failed. >= 30 in approximation. + + Parameters + ---------- + S: TopoDS_Shape + + Return + ------- + bool + + Description + ----------- + Computes the 3d curves for all the edges of return False if one of the computation failed. + + """ + return _BRepLib.breplib_BuildCurves3d(*args) + + @staticmethod + def BuildPCurveForEdgeOnPlane(*args): + r""" + + Parameters + ---------- + theE: TopoDS_Edge + theF: TopoDS_Face + + Return + ------- + None + + Description + ----------- + Builds pcurve of edge on face if the surface is plane, and updates the edge. + + Parameters + ---------- + theE: TopoDS_Edge + theF: TopoDS_Face + aC2D: Geom2d_Curve + + Return + ------- + bToUpdate: bool + + Description + ----------- + Builds pcurve of edge on face if the surface is plane, but does not update the edge. The output are the pcurve and the flag telling that pcurve was built. + + """ + return _BRepLib.breplib_BuildPCurveForEdgeOnPlane(*args) + + @staticmethod + def CheckSameRange(*args): + r""" + + Parameters + ---------- + E: TopoDS_Edge + Confusion: float (optional, default to 1.0e-12) + + Return + ------- + bool + + Description + ----------- + checks if the Edge is same range IGNORING the same range flag of the edge Confusion argument is to compare real numbers idenpendently of any model space tolerance. + + """ + return _BRepLib.breplib_CheckSameRange(*args) + + @staticmethod + def ContinuityOfFaces(*args): + r""" + + Parameters + ---------- + theEdge: TopoDS_Edge + theFace1: TopoDS_Face + theFace2: TopoDS_Face + theAngleTol: float + + Return + ------- + GeomAbs_Shape + + Description + ----------- + Returns the order of continuity between two faces connected by an edge. + + """ + return _BRepLib.breplib_ContinuityOfFaces(*args) + + @staticmethod + def EncodeRegularity(*args): + r""" + + Parameters + ---------- + S: TopoDS_Shape + TolAng: float (optional, default to 1.0e-10) + + Return + ------- + None + + Description + ----------- + Encodes the Regularity of edges on a Shape. Warning: is an angular tolerance, expressed in Rad. Warning: If the edges's regularity are coded before, nothing is done. + + Parameters + ---------- + S: TopoDS_Shape + LE: TopTools_ListOfShape + TolAng: float (optional, default to 1.0e-10) + + Return + ------- + None + + Description + ----------- + Encodes the Regularity of edges in list on the shape Warning: is an angular tolerance, expressed in Rad. Warning: If the edges's regularity are coded before, nothing is done. + + Parameters + ---------- + E: TopoDS_Edge + F1: TopoDS_Face + F2: TopoDS_Face + TolAng: float (optional, default to 1.0e-10) + + Return + ------- + None + + Description + ----------- + Encodes the Regularity between and by Warning: is an angular tolerance, expressed in Rad. Warning: If the edge's regularity is coded before, nothing is done. + + """ + return _BRepLib.breplib_EncodeRegularity(*args) + + @staticmethod + def EnsureNormalConsistency(*args): + r""" + + Parameters + ---------- + S: TopoDS_Shape + theAngTol: float (optional, default to 0.001) + ForceComputeNormals: bool (optional, default to Standard_False) + + Return + ------- + bool + + Description + ----------- + Corrects the normals in Poly_Triangulation of faces, in such way that normals at nodes lying along smooth edges have the same value on both adjacent triangulations. Returns True if any correction is done. + + """ + return _BRepLib.breplib_EnsureNormalConsistency(*args) + + @staticmethod + def ExtendFace(*args): + r""" + + Parameters + ---------- + theF: TopoDS_Face + theExtVal: float + theExtUMin: bool + theExtUMax: bool + theExtVMin: bool + theExtVMax: bool + theFExtended: TopoDS_Face + + Return + ------- + None + + Description + ----------- + Enlarges the face on the given value. + Input parameter: theF The face to extend + Input parameter: theExtVal The extension value + Input parameter: theExtUMin Defines whether to extend the face in UMin direction + Input parameter: theExtUMax Defines whether to extend the face in UMax direction + Input parameter: theExtVMin Defines whether to extend the face in VMin direction + Input parameter: theExtVMax Defines whether to extend the face in VMax direction + Input parameter: theFExtended The extended face. + + """ + return _BRepLib.breplib_ExtendFace(*args) + + @staticmethod + def FindValidRange(*args): + r""" + + Parameters + ---------- + theCurve: Adaptor3d_Curve + theTolE: float + theParV1: float + thePntV1: gp_Pnt + theTolV1: float + theParV2: float + thePntV2: gp_Pnt + theTolV2: float + + Return + ------- + theFirst: float + theLast: float + + Description + ----------- + For an edge defined by 3d curve and tolerance and vertices defined by points, parameters on curve and tolerances, finds a range of curve between vertices not covered by vertices tolerances. Returns false if there is no such range. Otherwise, sets theFirst and theLast as its bounds. + + Parameters + ---------- + theEdge: TopoDS_Edge + + Return + ------- + theFirst: float + theLast: float + + Description + ----------- + Finds a range of 3d curve of the edge not covered by vertices tolerances. Returns false if there is no such range. Otherwise, sets theFirst and theLast as its bounds. + + """ + return _BRepLib.breplib_FindValidRange(*args) + + @staticmethod + def OrientClosedSolid(*args): + r""" + + Parameters + ---------- + solid: TopoDS_Solid + + Return + ------- + bool + + Description + ----------- + Orients the solid forward and the shell with the orientation to have matter in the solid. Returns False if the solid is unOrientable (open or incoherent). + + """ + return _BRepLib.breplib_OrientClosedSolid(*args) + + @staticmethod + def Plane(*args): + r""" + + Parameters + ---------- + P: Geom_Plane + + Return + ------- + None + + Description + ----------- + Sets the current plane to P. + Return + ------- + opencascade::handle + + Description + ----------- + Returns the current plane. + + """ + return _BRepLib.breplib_Plane(*args) + + @staticmethod + def Precision(*args): + r""" + + Parameters + ---------- + P: float + + Return + ------- + None + + Description + ----------- + Computes the max distance between edge and its 2d representation on the face. Sets the default precision. The current Precision is returned. + Return + ------- + float + + Description + ----------- + Returns the default precision. + + """ + return _BRepLib.breplib_Precision(*args) + + @staticmethod + def ReverseSortFaces(*args): + r""" + + Parameters + ---------- + S: TopoDS_Shape + LF: TopTools_ListOfShape + + Return + ------- + None + + Description + ----------- + Sorts in LF the Faces of S on the reverse complexity of their surfaces (other,Torus,Sphere,Cone,Cylinder,Plane). + + """ + return _BRepLib.breplib_ReverseSortFaces(*args) + + @staticmethod + def SameParameter(*args): + r""" + + Parameters + ---------- + theEdge: TopoDS_Edge + Tolerance: float (optional, default to 1.0e-5) + + Return + ------- + None + + Description + ----------- + Computes new 2d curve(s) for the edge to have the same parameter as the 3d curve. The algorithm is not done if the flag SameParameter was True on the Edge. + + Parameters + ---------- + theEdge: TopoDS_Edge + theTolerance: float + IsUseOldEdge: bool + + Return + ------- + theNewTol: float + + Description + ----------- + Computes new 2d curve(s) for the edge to have the same parameter as the 3d curve. The algorithm is not done if the flag SameParameter was True on the Edge. theNewTol is a new tolerance of vertices of the input edge (not applied inside the algorithm, but pre-computed). If IsUseOldEdge is true then the input edge will be modified, otherwise the new copy of input edge will be created. Returns the new edge as a result, can be ignored if IsUseOldEdge is true. + + Parameters + ---------- + S: TopoDS_Shape + Tolerance: float (optional, default to 1.0e-5) + forced: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + Computes new 2d curve(s) for all the edges of to have the same parameter as the 3d curve. The algorithm is not done if the flag SameParameter was True on an Edge. + + Parameters + ---------- + S: TopoDS_Shape + theReshaper: BRepTools_ReShape + Tolerance: float (optional, default to 1.0e-5) + forced: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + Computes new 2d curve(s) for all the edges of to have the same parameter as the 3d curve. The algorithm is not done if the flag SameParameter was True on an Edge. theReshaper is used to record the modifications of input shape to prevent any modifications on the shape itself. Thus the input shape (and its subshapes) will not be modified, instead the reshaper will contain a modified empty-copies of original subshapes as substitutions. + + """ + return _BRepLib.breplib_SameParameter(*args) + + @staticmethod + def SameRange(*args): + r""" + + Parameters + ---------- + E: TopoDS_Edge + Tolerance: float (optional, default to 1.0e-5) + + Return + ------- + None + + Description + ----------- + will make all the curve representation have the same range domain for the parameters. This will IGNORE the same range flag value to proceed. If there is a 3D curve there it will the range of that curve. If not the first curve representation encountered in the list will give its range to the all the other curves. + + """ + return _BRepLib.breplib_SameRange(*args) + + @staticmethod + def SortFaces(*args): + r""" + + Parameters + ---------- + S: TopoDS_Shape + LF: TopTools_ListOfShape + + Return + ------- + None + + Description + ----------- + Sorts in LF the Faces of S on the complexity of their surfaces (Plane,Cylinder,Cone,Sphere,Torus,other). + + """ + return _BRepLib.breplib_SortFaces(*args) + + @staticmethod + def UpdateDeflection(*args): + r""" + + Parameters + ---------- + S: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + Updates value of deflection in Poly_Triangulation of faces by the maximum deviation measured on existing triangulation. + + """ + return _BRepLib.breplib_UpdateDeflection(*args) + + @staticmethod + def UpdateEdgeTol(*args): + r""" + + Parameters + ---------- + E: TopoDS_Edge + MinToleranceRequest: float + MaxToleranceToCheck: float + + Return + ------- + bool + + Description + ----------- + Checks if the edge has a Tolerance smaller than -- -- -- -- MaxToleranceToCheck if so it will compute the radius of -- the cylindrical pipe surface that MinToleranceRequest is the minimum tolerance before it is useful to start testing. Usually it should be around 10e-5 contains all -- the curve representation of the edge returns True if the Edge tolerance had to be updated. + + """ + return _BRepLib.breplib_UpdateEdgeTol(*args) + + @staticmethod + def UpdateEdgeTolerance(*args): + r""" + + Parameters + ---------- + S: TopoDS_Shape + MinToleranceRequest: float + MaxToleranceToCheck: float + + Return + ------- + bool + + Description + ----------- + -- Checks all the edges of the shape whose -- -- -- Tolerance is smaller than MaxToleranceToCheck -- Returns True if at least one edge was updated -- MinToleranceRequest is the minimum tolerance before -- it -- is useful to start testing. Usually it should be around -- 10e-5-- //! Warning :The method is very slow as it checks all. Use only in interfaces or processing assimilate batch. + + """ + return _BRepLib.breplib_UpdateEdgeTolerance(*args) + + @staticmethod + def UpdateInnerTolerances(*args): + r""" + + Parameters + ---------- + S: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + Checks tolerances of edges (including inner points) and vertices of a shape and updates them to satisfy 'SameParameter' condition. + + """ + return _BRepLib.breplib_UpdateInnerTolerances(*args) + + @staticmethod + def UpdateTolerances(*args): + r""" + + Parameters + ---------- + S: TopoDS_Shape + verifyFaceTolerance: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + Replaces tolerance of FACE EDGE VERTEX by the tolerance Max of their connected handling shapes. It is not necessary to use this call after SameParameter. (called in). + + Parameters + ---------- + S: TopoDS_Shape + theReshaper: BRepTools_ReShape + verifyFaceTolerance: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + Replaces tolerance of FACE EDGE VERTEX by the tolerance Max of their connected handling shapes. It is not necessary to use this call after SameParameter. (called in) theReshaper is used to record the modifications of input shape to prevent any modifications on the shape itself. Thus the input shape (and its subshapes) will not be modified, instead the reshaper will contain a modified empty-copies of original subshapes as substitutions. + + """ + return _BRepLib.breplib_UpdateTolerances(*args) + + __repr__ = _dumps_object + + @methodnotwrapped + def BuildPCurveForEdgesOnPlane(self): + pass + + + def __init__(self): + _BRepLib.breplib_swiginit(self, _BRepLib.new_breplib()) + __swig_destroy__ = _BRepLib.delete_breplib + +# Register breplib in _BRepLib: +_BRepLib.breplib_swigregister(breplib) +class BRepLib_CheckCurveOnSurface(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 + ----------- + Default constructor. + + Parameters + ---------- + theEdge: TopoDS_Edge + theFace: TopoDS_Face + + Return + ------- + None + + Description + ----------- + Constructor. + + """ + _BRepLib.BRepLib_CheckCurveOnSurface_swiginit(self, _BRepLib.new_BRepLib_CheckCurveOnSurface(*args)) + + def ErrorStatus(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Returns error status The possible values are: 0 - OK; 1 - null curve or surface or 2d curve; 2 - invalid parametric range; 3 - error in calculations. + + """ + return _BRepLib.BRepLib_CheckCurveOnSurface_ErrorStatus(self, *args) + + def Init(self, *args): + r""" + + Parameters + ---------- + theEdge: TopoDS_Edge + theFace: TopoDS_Face + + Return + ------- + None + + Description + ----------- + Sets the data for the algorithm. + + """ + return _BRepLib.BRepLib_CheckCurveOnSurface_Init(self, *args) + + def IsDone(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns true if the max distance has been found. + + """ + return _BRepLib.BRepLib_CheckCurveOnSurface_IsDone(self, *args) + + def IsParallel(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns true if parallel flag is set. + + """ + return _BRepLib.BRepLib_CheckCurveOnSurface_IsParallel(self, *args) + + def MaxDistance(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns max distance. + + """ + return _BRepLib.BRepLib_CheckCurveOnSurface_MaxDistance(self, *args) + + def MaxParameter(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns parameter in which the distance is maximal. + + """ + return _BRepLib.BRepLib_CheckCurveOnSurface_MaxParameter(self, *args) + + def Perform(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Performs the calculation If myIsParallel == Standard_True then computation will be performed in parallel. + + """ + return _BRepLib.BRepLib_CheckCurveOnSurface_Perform(self, *args) + + def SetParallel(self, *args): + r""" + + Parameters + ---------- + theIsParallel: bool + + Return + ------- + None + + Description + ----------- + Sets parallel flag. + + """ + return _BRepLib.BRepLib_CheckCurveOnSurface_SetParallel(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepLib.delete_BRepLib_CheckCurveOnSurface + +# Register BRepLib_CheckCurveOnSurface in _BRepLib: +_BRepLib.BRepLib_CheckCurveOnSurface_swigregister(BRepLib_CheckCurveOnSurface) +class BRepLib_Command(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 + + def Check(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Raises NotDone if done is false. + + """ + return _BRepLib.BRepLib_Command_Check(self, *args) + + def IsDone(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _BRepLib.BRepLib_Command_IsDone(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepLib.delete_BRepLib_Command + +# Register BRepLib_Command in _BRepLib: +_BRepLib.BRepLib_Command_swigregister(BRepLib_Command) +class BRepLib_FindSurface(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 + ---------- + S: TopoDS_Shape + Tol: float (optional, default to -1) + OnlyPlane: bool (optional, default to Standard_False) + OnlyClosed: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + Computes the Surface from the edges of with the given tolerance. if is true, the computed surface will be a plane. If it is not possible to find a plane, the flag NotDone will be set. If is true, then S should be a wire and the existing surface, on which wire S is not closed in 2D, will be ignored. + + """ + _BRepLib.BRepLib_FindSurface_swiginit(self, _BRepLib.new_BRepLib_FindSurface(*args)) + + def Existed(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _BRepLib.BRepLib_FindSurface_Existed(self, *args) + + def Found(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _BRepLib.BRepLib_FindSurface_Found(self, *args) + + def Init(self, *args): + r""" + + Parameters + ---------- + S: TopoDS_Shape + Tol: float (optional, default to -1) + OnlyPlane: bool (optional, default to Standard_False) + OnlyClosed: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + Computes the Surface from the edges of with the given tolerance. if is true, the computed surface will be a plane. If it is not possible to find a plane, the flag NotDone will be set. If is true, then S should be a wire and the existing surface, on which wire S is not closed in 2D, will be ignored. + + """ + return _BRepLib.BRepLib_FindSurface_Init(self, *args) + + def Location(self, *args): + r""" + Return + ------- + TopLoc_Location + + Description + ----------- + No available documentation. + + """ + return _BRepLib.BRepLib_FindSurface_Location(self, *args) + + def Surface(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _BRepLib.BRepLib_FindSurface_Surface(self, *args) + + def Tolerance(self, *args): + r""" + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _BRepLib.BRepLib_FindSurface_Tolerance(self, *args) + + def ToleranceReached(self, *args): + r""" + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _BRepLib.BRepLib_FindSurface_ToleranceReached(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepLib.delete_BRepLib_FindSurface + +# Register BRepLib_FindSurface in _BRepLib: +_BRepLib.BRepLib_FindSurface_swigregister(BRepLib_FindSurface) +class BRepLib_FuseEdges(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""" + + Parameters + ---------- + theShape: TopoDS_Shape + PerformNow: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + Initialise members and build construction of map of ancestors. + + """ + _BRepLib.BRepLib_FuseEdges_swiginit(self, _BRepLib.new_BRepLib_FuseEdges(*args)) + + def AvoidEdges(self, *args): + r""" + + Parameters + ---------- + theMapEdg: TopTools_IndexedMapOfShape + + Return + ------- + None + + Description + ----------- + set edges to avoid being fused. + + """ + return _BRepLib.BRepLib_FuseEdges_AvoidEdges(self, *args) + + def Edges(self, *args): + r""" + + Parameters + ---------- + theMapLstEdg: TopTools_DataMapOfIntegerListOfShape + + Return + ------- + None + + Description + ----------- + returns all the list of edges to be fused each list of the map represent a set of connex edges that can be fused. + + """ + return _BRepLib.BRepLib_FuseEdges_Edges(self, *args) + + def Faces(self, *args): + r""" + + Parameters + ---------- + theMapFac: TopTools_DataMapOfShapeShape + + Return + ------- + None + + Description + ----------- + returns the map of modified faces. + + """ + return _BRepLib.BRepLib_FuseEdges_Faces(self, *args) + + def NbVertices(self, *args): + r""" + Return + ------- + int + + Description + ----------- + returns the number of vertices candidate to be removed. + + """ + return _BRepLib.BRepLib_FuseEdges_NbVertices(self, *args) + + def Perform(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Using map of list of connex edges, fuse each list to one edge and then update myShape. + + """ + return _BRepLib.BRepLib_FuseEdges_Perform(self, *args) + + def ResultEdges(self, *args): + r""" + + Parameters + ---------- + theMapEdg: TopTools_DataMapOfIntegerShape + + Return + ------- + None + + Description + ----------- + returns all the fused edges. each integer entry in the map corresponds to the integer in the DataMapOfIntegerListOfShape we get in method Edges. That is to say, to the list of edges in theMapLstEdg(i) corresponds the resulting edge theMapEdge(i). + + """ + return _BRepLib.BRepLib_FuseEdges_ResultEdges(self, *args) + + def SetConcatBSpl(self, *args): + r""" + + Parameters + ---------- + theConcatBSpl: bool (optional, default to Standard_True) + + Return + ------- + None + + Description + ----------- + set mode to enable concatenation G1 BSpline edges in one End Modified by IFV 19.04.07. + + """ + return _BRepLib.BRepLib_FuseEdges_SetConcatBSpl(self, *args) + + def Shape(self, *args): + r""" + Return + ------- + TopoDS_Shape + + Description + ----------- + returns myShape modified with the list of internal edges removed from it. + + """ + return _BRepLib.BRepLib_FuseEdges_Shape(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepLib.delete_BRepLib_FuseEdges + +# Register BRepLib_FuseEdges in _BRepLib: +_BRepLib.BRepLib_FuseEdges_swigregister(BRepLib_FuseEdges) +class BRepLib_PointCloudShape(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 + + def GeneratePointsByDensity(self, *args): + r""" + + Parameters + ---------- + theDensity: float (optional, default to 0.0) + + Return + ------- + bool + + Description + ----------- + Computes points with specified density for initial shape. If parameter Density is equal to 0 then density will be computed automatically by criterion: - 10 points per minimal unreduced face area. //! Note: this function should not be called from concurrent threads without external lock. + + """ + return _BRepLib.BRepLib_PointCloudShape_GeneratePointsByDensity(self, *args) + + def GeneratePointsByTriangulation(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Get points from triangulation existing in the shape. + + """ + return _BRepLib.BRepLib_PointCloudShape_GeneratePointsByTriangulation(self, *args) + + def GetDistance(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns value of the distance to define deflection of points from shape along normal to shape; 0.0 by default. + + """ + return _BRepLib.BRepLib_PointCloudShape_GetDistance(self, *args) + + def NbPointsByDensity(self, *args): + r""" + + Parameters + ---------- + theDensity: float (optional, default to 0.0) + + Return + ------- + int + + Description + ----------- + Returns size of the point cloud for specified density. + + """ + return _BRepLib.BRepLib_PointCloudShape_NbPointsByDensity(self, *args) + + def NbPointsByTriangulation(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Returns size of the point cloud for using triangulation. + + """ + return _BRepLib.BRepLib_PointCloudShape_NbPointsByTriangulation(self, *args) + + def SetDistance(self, *args): + r""" + + Parameters + ---------- + theDist: float + + Return + ------- + None + + Description + ----------- + Sets value of the distance to define deflection of points from shape along normal to shape. Negative values of theDist parameter are ignored. + + """ + return _BRepLib.BRepLib_PointCloudShape_SetDistance(self, *args) + + def SetShape(self, *args): + r""" + + Parameters + ---------- + theShape: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + Set shape. + + """ + return _BRepLib.BRepLib_PointCloudShape_SetShape(self, *args) + + def SetTolerance(self, *args): + r""" + + Parameters + ---------- + theTol: float + + Return + ------- + None + + Description + ----------- + Set tolerance. + + """ + return _BRepLib.BRepLib_PointCloudShape_SetTolerance(self, *args) + + def Shape(self, *args): + r""" + Return + ------- + TopoDS_Shape + + Description + ----------- + Return loaded shape. + + """ + return _BRepLib.BRepLib_PointCloudShape_Shape(self, *args) + + def Tolerance(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Return tolerance. + + """ + return _BRepLib.BRepLib_PointCloudShape_Tolerance(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepLib.delete_BRepLib_PointCloudShape + +# Register BRepLib_PointCloudShape in _BRepLib: +_BRepLib.BRepLib_PointCloudShape_swigregister(BRepLib_PointCloudShape) +class BRepLib_ToolTriangulatedShape(object): + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") + __repr__ = _swig_repr + + @staticmethod + def ComputeNormals(*args): + r""" + + Parameters + ---------- + theFace: TopoDS_Face + theTris: Poly_Triangulation + + Return + ------- + None + + Description + ----------- + Computes nodal normals for Poly_Triangulation structure using UV coordinates and surface. Does nothing if triangulation already defines normals. + Input parameter: theFace the face + Input parameter: theTris the definition of a face triangulation. + + Parameters + ---------- + theFace: TopoDS_Face + theTris: Poly_Triangulation + thePolyConnect: Poly_Connect + + Return + ------- + None + + Description + ----------- + Computes nodal normals for Poly_Triangulation structure using UV coordinates and surface. Does nothing if triangulation already defines normals. + Input parameter: theFace the face + Input parameter: theTris the definition of a face triangulation @param[in,out] thePolyConnect optional, initialized tool for exploring triangulation. + + """ + return _BRepLib.BRepLib_ToolTriangulatedShape_ComputeNormals(*args) + + __repr__ = _dumps_object + + + def __init__(self): + _BRepLib.BRepLib_ToolTriangulatedShape_swiginit(self, _BRepLib.new_BRepLib_ToolTriangulatedShape()) + __swig_destroy__ = _BRepLib.delete_BRepLib_ToolTriangulatedShape + +# Register BRepLib_ToolTriangulatedShape in _BRepLib: +_BRepLib.BRepLib_ToolTriangulatedShape_swigregister(BRepLib_ToolTriangulatedShape) +class BRepLib_ValidateEdge(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""" + + Parameters + ---------- + theReferenceCurve: Adaptor3d_Curve + theOtherCurve: Adaptor3d_CurveOnSurface + theSameParameter: bool + + Return + ------- + None + + Description + ----------- + Initialization constructor. + + """ + _BRepLib.BRepLib_ValidateEdge_swiginit(self, _BRepLib.new_BRepLib_ValidateEdge(*args)) + + def CheckTolerance(self, *args): + r""" + + Parameters + ---------- + theToleranceToCheck: float + + Return + ------- + bool + + Description + ----------- + Returns true if computed distance is less than . + + """ + return _BRepLib.BRepLib_ValidateEdge_CheckTolerance(self, *args) + + def GetMaxDistance(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns max distance. + + """ + return _BRepLib.BRepLib_ValidateEdge_GetMaxDistance(self, *args) + + def IsDone(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns true if the distance has been found for all points. + + """ + return _BRepLib.BRepLib_ValidateEdge_IsDone(self, *args) + + def IsExactMethod(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns true if exact method selected. + + """ + return _BRepLib.BRepLib_ValidateEdge_IsExactMethod(self, *args) + + def IsParallel(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns true if parallel flag is set. + + """ + return _BRepLib.BRepLib_ValidateEdge_IsParallel(self, *args) + + def Process(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Computes the max distance for the 3d curve and curve on surface . If the SetExitIfToleranceExceeded() function was called before contains first greater than SetExitIfToleranceExceeded() parameter value. In case using exact method always computes real max distance. + + """ + return _BRepLib.BRepLib_ValidateEdge_Process(self, *args) + + def SetControlPointsNumber(self, *args): + r""" + + Parameters + ---------- + theControlPointsNumber: int + + Return + ------- + None + + Description + ----------- + Set control points number (if you need a value other than 22). + + """ + return _BRepLib.BRepLib_ValidateEdge_SetControlPointsNumber(self, *args) + + def SetExactMethod(self, *args): + r""" + + Parameters + ---------- + theIsExact: bool + + Return + ------- + None + + Description + ----------- + Sets method to calculate distance: Calculating in finite number of points (if theIsExact is false, faster, but possible not correct result) or exact calculating by using BRepLib_CheckCurveOnSurface class (if theIsExact is true, slowly, but more correctly). Exact method is used only when edge is SameParameter. Default method is calculating in finite number of points. + + """ + return _BRepLib.BRepLib_ValidateEdge_SetExactMethod(self, *args) + + def SetParallel(self, *args): + r""" + + Parameters + ---------- + theIsMultiThread: bool + + Return + ------- + None + + Description + ----------- + Sets parallel flag. + + """ + return _BRepLib.BRepLib_ValidateEdge_SetParallel(self, *args) + + def UpdateTolerance(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + theToleranceToUpdate: float + + Description + ----------- + Increase if max distance is greater than . + + """ + return _BRepLib.BRepLib_ValidateEdge_UpdateTolerance(self, *args) + + __repr__ = _dumps_object + + @methodnotwrapped + def SetExitIfToleranceExceeded(self): + pass + + __swig_destroy__ = _BRepLib.delete_BRepLib_ValidateEdge + +# Register BRepLib_ValidateEdge in _BRepLib: +_BRepLib.BRepLib_ValidateEdge_swigregister(BRepLib_ValidateEdge) +class BRepLib_MakeShape(BRepLib_Command): + 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 + + def Build(self, *args): + r""" + Return + ------- + None + + Description + ----------- + This is called by Shape(). It does nothing but may be redefined. + + """ + return _BRepLib.BRepLib_MakeShape_Build(self, *args) + + def DescendantFaces(self, *args): + r""" + + Parameters + ---------- + F: TopoDS_Face + + Return + ------- + TopTools_ListOfShape + + Description + ----------- + returns the list of generated Faces. + + """ + return _BRepLib.BRepLib_MakeShape_DescendantFaces(self, *args) + + def FaceStatus(self, *args): + r""" + + Parameters + ---------- + F: TopoDS_Face + + Return + ------- + BRepLib_ShapeModification + + Description + ----------- + returns the status of the Face after the shape creation. + + """ + return _BRepLib.BRepLib_MakeShape_FaceStatus(self, *args) + + def FacesFromEdges(self, *args): + r""" + + Parameters + ---------- + E: TopoDS_Edge + + Return + ------- + TopTools_ListOfShape + + Description + ----------- + returns a list of the created faces from the edge . + + """ + return _BRepLib.BRepLib_MakeShape_FacesFromEdges(self, *args) + + def HasDescendants(self, *args): + r""" + + Parameters + ---------- + F: TopoDS_Face + + Return + ------- + bool + + Description + ----------- + Returns True if the Face generates new topology. + + """ + return _BRepLib.BRepLib_MakeShape_HasDescendants(self, *args) + + def NbSurfaces(self, *args): + r""" + Return + ------- + int + + Description + ----------- + returns the number of surfaces after the shape creation. + + """ + return _BRepLib.BRepLib_MakeShape_NbSurfaces(self, *args) + + def NewFaces(self, *args): + r""" + + Parameters + ---------- + I: int + + Return + ------- + TopTools_ListOfShape + + Description + ----------- + Return the faces created for surface I. + + """ + return _BRepLib.BRepLib_MakeShape_NewFaces(self, *args) + + def Shape(self, *args): + r""" + Return + ------- + TopoDS_Shape + + Description + ----------- + No available documentation. + + """ + return _BRepLib.BRepLib_MakeShape_Shape(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepLib.delete_BRepLib_MakeShape + +# Register BRepLib_MakeShape in _BRepLib: +_BRepLib.BRepLib_MakeShape_swigregister(BRepLib_MakeShape) +class BRepLib_MakeEdge(BRepLib_MakeShape): + 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 + ---------- + V1: TopoDS_Vertex + V2: TopoDS_Vertex + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + P1: gp_Pnt + P2: gp_Pnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: gp_Lin + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: gp_Lin + p1: float + p2: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: gp_Lin + P1: gp_Pnt + P2: gp_Pnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: gp_Lin + V1: TopoDS_Vertex + V2: TopoDS_Vertex + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: gp_Circ + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: gp_Circ + p1: float + p2: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: gp_Circ + P1: gp_Pnt + P2: gp_Pnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: gp_Circ + V1: TopoDS_Vertex + V2: TopoDS_Vertex + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: gp_Elips + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: gp_Elips + p1: float + p2: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: gp_Elips + P1: gp_Pnt + P2: gp_Pnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: gp_Elips + V1: TopoDS_Vertex + V2: TopoDS_Vertex + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: gp_Hypr + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: gp_Hypr + p1: float + p2: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: gp_Hypr + P1: gp_Pnt + P2: gp_Pnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: gp_Hypr + V1: TopoDS_Vertex + V2: TopoDS_Vertex + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: gp_Parab + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: gp_Parab + p1: float + p2: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: gp_Parab + P1: gp_Pnt + P2: gp_Pnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: gp_Parab + V1: TopoDS_Vertex + V2: TopoDS_Vertex + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: Geom_Curve + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: Geom_Curve + p1: float + p2: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: Geom_Curve + P1: gp_Pnt + P2: gp_Pnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: Geom_Curve + V1: TopoDS_Vertex + V2: TopoDS_Vertex + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: Geom_Curve + P1: gp_Pnt + P2: gp_Pnt + p1: float + p2: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: Geom_Curve + V1: TopoDS_Vertex + V2: TopoDS_Vertex + p1: float + p2: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: Geom2d_Curve + S: Geom_Surface + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: Geom2d_Curve + S: Geom_Surface + p1: float + p2: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: Geom2d_Curve + S: Geom_Surface + P1: gp_Pnt + P2: gp_Pnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: Geom2d_Curve + S: Geom_Surface + V1: TopoDS_Vertex + V2: TopoDS_Vertex + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: Geom2d_Curve + S: Geom_Surface + P1: gp_Pnt + P2: gp_Pnt + p1: float + p2: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: Geom2d_Curve + S: Geom_Surface + V1: TopoDS_Vertex + V2: TopoDS_Vertex + p1: float + p2: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _BRepLib.BRepLib_MakeEdge_swiginit(self, _BRepLib.new_BRepLib_MakeEdge(*args)) + + def Edge(self, *args): + r""" + Return + ------- + TopoDS_Edge + + Description + ----------- + No available documentation. + + """ + return _BRepLib.BRepLib_MakeEdge_Edge(self, *args) + + def Error(self, *args): + r""" + Return + ------- + BRepLib_EdgeError + + Description + ----------- + Returns the error description when NotDone. + + """ + return _BRepLib.BRepLib_MakeEdge_Error(self, *args) + + def Init(self, *args): + r""" + + Parameters + ---------- + C: Geom_Curve + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + C: Geom_Curve + p1: float + p2: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + C: Geom_Curve + P1: gp_Pnt + P2: gp_Pnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + C: Geom_Curve + V1: TopoDS_Vertex + V2: TopoDS_Vertex + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + C: Geom_Curve + P1: gp_Pnt + P2: gp_Pnt + p1: float + p2: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + C: Geom_Curve + V1: TopoDS_Vertex + V2: TopoDS_Vertex + p1: float + p2: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + C: Geom2d_Curve + S: Geom_Surface + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + C: Geom2d_Curve + S: Geom_Surface + p1: float + p2: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + C: Geom2d_Curve + S: Geom_Surface + P1: gp_Pnt + P2: gp_Pnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + C: Geom2d_Curve + S: Geom_Surface + V1: TopoDS_Vertex + V2: TopoDS_Vertex + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + C: Geom2d_Curve + S: Geom_Surface + P1: gp_Pnt + P2: gp_Pnt + p1: float + p2: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + C: Geom2d_Curve + S: Geom_Surface + V1: TopoDS_Vertex + V2: TopoDS_Vertex + p1: float + p2: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRepLib.BRepLib_MakeEdge_Init(self, *args) + + def Vertex1(self, *args): + r""" + Return + ------- + TopoDS_Vertex + + Description + ----------- + Returns the first vertex of the edge. May be Null. + + """ + return _BRepLib.BRepLib_MakeEdge_Vertex1(self, *args) + + def Vertex2(self, *args): + r""" + Return + ------- + TopoDS_Vertex + + Description + ----------- + Returns the second vertex of the edge. May be Null. + + """ + return _BRepLib.BRepLib_MakeEdge_Vertex2(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepLib.delete_BRepLib_MakeEdge + +# Register BRepLib_MakeEdge in _BRepLib: +_BRepLib.BRepLib_MakeEdge_swigregister(BRepLib_MakeEdge) +class BRepLib_MakeEdge2d(BRepLib_MakeShape): + 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""" + + Parameters + ---------- + V1: TopoDS_Vertex + V2: TopoDS_Vertex + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + P1: gp_Pnt2d + P2: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: gp_Lin2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: gp_Lin2d + p1: float + p2: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: gp_Lin2d + P1: gp_Pnt2d + P2: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: gp_Lin2d + V1: TopoDS_Vertex + V2: TopoDS_Vertex + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: gp_Circ2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: gp_Circ2d + p1: float + p2: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: gp_Circ2d + P1: gp_Pnt2d + P2: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: gp_Circ2d + V1: TopoDS_Vertex + V2: TopoDS_Vertex + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: gp_Elips2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: gp_Elips2d + p1: float + p2: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: gp_Elips2d + P1: gp_Pnt2d + P2: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: gp_Elips2d + V1: TopoDS_Vertex + V2: TopoDS_Vertex + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: gp_Hypr2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: gp_Hypr2d + p1: float + p2: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: gp_Hypr2d + P1: gp_Pnt2d + P2: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: gp_Hypr2d + V1: TopoDS_Vertex + V2: TopoDS_Vertex + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: gp_Parab2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: gp_Parab2d + p1: float + p2: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: gp_Parab2d + P1: gp_Pnt2d + P2: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: gp_Parab2d + V1: TopoDS_Vertex + V2: TopoDS_Vertex + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: Geom2d_Curve + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: Geom2d_Curve + p1: float + p2: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: Geom2d_Curve + P1: gp_Pnt2d + P2: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: Geom2d_Curve + V1: TopoDS_Vertex + V2: TopoDS_Vertex + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: Geom2d_Curve + P1: gp_Pnt2d + P2: gp_Pnt2d + p1: float + p2: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: Geom2d_Curve + V1: TopoDS_Vertex + V2: TopoDS_Vertex + p1: float + p2: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _BRepLib.BRepLib_MakeEdge2d_swiginit(self, _BRepLib.new_BRepLib_MakeEdge2d(*args)) + + def Edge(self, *args): + r""" + Return + ------- + TopoDS_Edge + + Description + ----------- + No available documentation. + + """ + return _BRepLib.BRepLib_MakeEdge2d_Edge(self, *args) + + def Error(self, *args): + r""" + Return + ------- + BRepLib_EdgeError + + Description + ----------- + Returns the error description when NotDone. + + """ + return _BRepLib.BRepLib_MakeEdge2d_Error(self, *args) + + def Init(self, *args): + r""" + + Parameters + ---------- + C: Geom2d_Curve + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + C: Geom2d_Curve + p1: float + p2: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + C: Geom2d_Curve + P1: gp_Pnt2d + P2: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + C: Geom2d_Curve + V1: TopoDS_Vertex + V2: TopoDS_Vertex + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + C: Geom2d_Curve + P1: gp_Pnt2d + P2: gp_Pnt2d + p1: float + p2: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + C: Geom2d_Curve + V1: TopoDS_Vertex + V2: TopoDS_Vertex + p1: float + p2: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRepLib.BRepLib_MakeEdge2d_Init(self, *args) + + def Vertex1(self, *args): + r""" + Return + ------- + TopoDS_Vertex + + Description + ----------- + Returns the first vertex of the edge. May be Null. + + """ + return _BRepLib.BRepLib_MakeEdge2d_Vertex1(self, *args) + + def Vertex2(self, *args): + r""" + Return + ------- + TopoDS_Vertex + + Description + ----------- + Returns the second vertex of the edge. May be Null. + + """ + return _BRepLib.BRepLib_MakeEdge2d_Vertex2(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepLib.delete_BRepLib_MakeEdge2d + +# Register BRepLib_MakeEdge2d in _BRepLib: +_BRepLib.BRepLib_MakeEdge2d_swigregister(BRepLib_MakeEdge2d) +class BRepLib_MakeFace(BRepLib_MakeShape): + 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 + ----------- + Not done. + + Parameters + ---------- + F: TopoDS_Face + + Return + ------- + None + + Description + ----------- + Load a face. Useful to add wires. + + Parameters + ---------- + P: gp_Pln + + Return + ------- + None + + Description + ----------- + Make a face from a plane. + + Parameters + ---------- + C: gp_Cylinder + + Return + ------- + None + + Description + ----------- + Make a face from a cylinder. + + Parameters + ---------- + C: gp_Cone + + Return + ------- + None + + Description + ----------- + Make a face from a cone. + + Parameters + ---------- + S: gp_Sphere + + Return + ------- + None + + Description + ----------- + Make a face from a sphere. + + Parameters + ---------- + C: gp_Torus + + Return + ------- + None + + Description + ----------- + Make a face from a torus. + + Parameters + ---------- + S: Geom_Surface + TolDegen: float + + Return + ------- + None + + Description + ----------- + Make a face from a Surface. Accepts tolerance value (TolDegen) for resolution of degenerated edges. + + Parameters + ---------- + P: gp_Pln + UMin: float + UMax: float + VMin: float + VMax: float + + Return + ------- + None + + Description + ----------- + Make a face from a plane. + + Parameters + ---------- + C: gp_Cylinder + UMin: float + UMax: float + VMin: float + VMax: float + + Return + ------- + None + + Description + ----------- + Make a face from a cylinder. + + Parameters + ---------- + C: gp_Cone + UMin: float + UMax: float + VMin: float + VMax: float + + Return + ------- + None + + Description + ----------- + Make a face from a cone. + + Parameters + ---------- + S: gp_Sphere + UMin: float + UMax: float + VMin: float + VMax: float + + Return + ------- + None + + Description + ----------- + Make a face from a sphere. + + Parameters + ---------- + C: gp_Torus + UMin: float + UMax: float + VMin: float + VMax: float + + Return + ------- + None + + Description + ----------- + Make a face from a torus. + + Parameters + ---------- + S: Geom_Surface + UMin: float + UMax: float + VMin: float + VMax: float + TolDegen: float + + Return + ------- + None + + Description + ----------- + Make a face from a Surface. Accepts min & max parameters to construct the face's bounds. Also accepts tolerance value (TolDegen) for resolution of degenerated edges. + + Parameters + ---------- + W: TopoDS_Wire + OnlyPlane: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + Find a surface from the wire and make a face. if is true, the computed surface will be a plane. If it is not possible to find a plane, the flag NotDone will be set. + + Parameters + ---------- + P: gp_Pln + W: TopoDS_Wire + Inside: bool (optional, default to Standard_True) + + Return + ------- + None + + Description + ----------- + Make a face from a plane and a wire. + + Parameters + ---------- + C: gp_Cylinder + W: TopoDS_Wire + Inside: bool (optional, default to Standard_True) + + Return + ------- + None + + Description + ----------- + Make a face from a cylinder and a wire. + + Parameters + ---------- + C: gp_Cone + W: TopoDS_Wire + Inside: bool (optional, default to Standard_True) + + Return + ------- + None + + Description + ----------- + Make a face from a cone and a wire. + + Parameters + ---------- + S: gp_Sphere + W: TopoDS_Wire + Inside: bool (optional, default to Standard_True) + + Return + ------- + None + + Description + ----------- + Make a face from a sphere and a wire. + + Parameters + ---------- + C: gp_Torus + W: TopoDS_Wire + Inside: bool (optional, default to Standard_True) + + Return + ------- + None + + Description + ----------- + Make a face from a torus and a wire. + + Parameters + ---------- + S: Geom_Surface + W: TopoDS_Wire + Inside: bool (optional, default to Standard_True) + + Return + ------- + None + + Description + ----------- + Make a face from a Surface and a wire. + + Parameters + ---------- + F: TopoDS_Face + W: TopoDS_Wire + + Return + ------- + None + + Description + ----------- + Adds the wire in the face . + + """ + _BRepLib.BRepLib_MakeFace_swiginit(self, _BRepLib.new_BRepLib_MakeFace(*args)) + + def Add(self, *args): + r""" + + Parameters + ---------- + W: TopoDS_Wire + + Return + ------- + None + + Description + ----------- + Adds the wire in the current face. + + """ + return _BRepLib.BRepLib_MakeFace_Add(self, *args) + + def Error(self, *args): + r""" + Return + ------- + BRepLib_FaceError + + Description + ----------- + No available documentation. + + """ + return _BRepLib.BRepLib_MakeFace_Error(self, *args) + + def Face(self, *args): + r""" + Return + ------- + TopoDS_Face + + Description + ----------- + Returns the new face. + + """ + return _BRepLib.BRepLib_MakeFace_Face(self, *args) + + def Init(self, *args): + r""" + + Parameters + ---------- + F: TopoDS_Face + + Return + ------- + None + + Description + ----------- + Load the face. + + Parameters + ---------- + S: Geom_Surface + Bound: bool + TolDegen: float + + Return + ------- + None + + Description + ----------- + Creates the face from the surface. If Bound is True a wire is made from the natural bounds. Accepts tolerance value (TolDegen) for resolution of degenerated edges. + + Parameters + ---------- + S: Geom_Surface + UMin: float + UMax: float + VMin: float + VMax: float + TolDegen: float + + Return + ------- + None + + Description + ----------- + Creates the face from the surface and the min-max values. Accepts tolerance value (TolDegen) for resolution of degenerated edges. + + """ + return _BRepLib.BRepLib_MakeFace_Init(self, *args) + + @staticmethod + def IsDegenerated(*args): + r""" + + Parameters + ---------- + theCurve: Geom_Curve + theMaxTol: float + + Return + ------- + theActTol: float + + Description + ----------- + Checks the specified curve is degenerated according to specified tolerance. Returns less than , which shows actual tolerance to decide the curve is degenerated. Warning: For internal use of BRepLib_MakeFace and BRepLib_MakeShell. + + """ + return _BRepLib.BRepLib_MakeFace_IsDegenerated(*args) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepLib.delete_BRepLib_MakeFace + +# Register BRepLib_MakeFace in _BRepLib: +_BRepLib.BRepLib_MakeFace_swigregister(BRepLib_MakeFace) +class BRepLib_MakePolygon(BRepLib_MakeShape): + 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 + ----------- + Creates an empty MakePolygon. + + Parameters + ---------- + P1: gp_Pnt + P2: gp_Pnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + P1: gp_Pnt + P2: gp_Pnt + P3: gp_Pnt + Close: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + P1: gp_Pnt + P2: gp_Pnt + P3: gp_Pnt + P4: gp_Pnt + Close: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + V1: TopoDS_Vertex + V2: TopoDS_Vertex + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + V1: TopoDS_Vertex + V2: TopoDS_Vertex + V3: TopoDS_Vertex + Close: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + V1: TopoDS_Vertex + V2: TopoDS_Vertex + V3: TopoDS_Vertex + V4: TopoDS_Vertex + Close: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _BRepLib.BRepLib_MakePolygon_swiginit(self, _BRepLib.new_BRepLib_MakePolygon(*args)) + + def Add(self, *args): + r""" + + Parameters + ---------- + P: gp_Pnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + V: TopoDS_Vertex + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRepLib.BRepLib_MakePolygon_Add(self, *args) + + def Added(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True if the last vertex or point was successfully added. + + """ + return _BRepLib.BRepLib_MakePolygon_Added(self, *args) + + def Close(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRepLib.BRepLib_MakePolygon_Close(self, *args) + + def Edge(self, *args): + r""" + Return + ------- + TopoDS_Edge + + Description + ----------- + Returns the last edge added to the polygon. + + """ + return _BRepLib.BRepLib_MakePolygon_Edge(self, *args) + + def FirstVertex(self, *args): + r""" + Return + ------- + TopoDS_Vertex + + Description + ----------- + No available documentation. + + """ + return _BRepLib.BRepLib_MakePolygon_FirstVertex(self, *args) + + def LastVertex(self, *args): + r""" + Return + ------- + TopoDS_Vertex + + Description + ----------- + No available documentation. + + """ + return _BRepLib.BRepLib_MakePolygon_LastVertex(self, *args) + + def Wire(self, *args): + r""" + Return + ------- + TopoDS_Wire + + Description + ----------- + No available documentation. + + """ + return _BRepLib.BRepLib_MakePolygon_Wire(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepLib.delete_BRepLib_MakePolygon + +# Register BRepLib_MakePolygon in _BRepLib: +_BRepLib.BRepLib_MakePolygon_swigregister(BRepLib_MakePolygon) +class BRepLib_MakeShell(BRepLib_MakeShape): + 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 + ----------- + Not done. + + Parameters + ---------- + S: Geom_Surface + Segment: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + S: Geom_Surface + UMin: float + UMax: float + VMin: float + VMax: float + Segment: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _BRepLib.BRepLib_MakeShell_swiginit(self, _BRepLib.new_BRepLib_MakeShell(*args)) + + def Error(self, *args): + r""" + Return + ------- + BRepLib_ShellError + + Description + ----------- + No available documentation. + + """ + return _BRepLib.BRepLib_MakeShell_Error(self, *args) + + def Init(self, *args): + r""" + + Parameters + ---------- + S: Geom_Surface + UMin: float + UMax: float + VMin: float + VMax: float + Segment: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + Creates the shell from the surface and the min-max values. + + """ + return _BRepLib.BRepLib_MakeShell_Init(self, *args) + + def Shell(self, *args): + r""" + Return + ------- + TopoDS_Shell + + Description + ----------- + Returns the new Shell. + + """ + return _BRepLib.BRepLib_MakeShell_Shell(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepLib.delete_BRepLib_MakeShell + +# Register BRepLib_MakeShell in _BRepLib: +_BRepLib.BRepLib_MakeShell_swigregister(BRepLib_MakeShell) +class BRepLib_MakeSolid(BRepLib_MakeShape): + 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 + ----------- + Solid covers whole space. + + Parameters + ---------- + S: TopoDS_CompSolid + + Return + ------- + None + + Description + ----------- + Make a solid from a CompSolid. + + Parameters + ---------- + S: TopoDS_Shell + + Return + ------- + None + + Description + ----------- + Make a solid from a shell. + + Parameters + ---------- + S1: TopoDS_Shell + S2: TopoDS_Shell + + Return + ------- + None + + Description + ----------- + Make a solid from two shells. + + Parameters + ---------- + S1: TopoDS_Shell + S2: TopoDS_Shell + S3: TopoDS_Shell + + Return + ------- + None + + Description + ----------- + Make a solid from three shells. + + Parameters + ---------- + So: TopoDS_Solid + + Return + ------- + None + + Description + ----------- + Make a solid from a solid. Useful for adding later. + + Parameters + ---------- + So: TopoDS_Solid + S: TopoDS_Shell + + Return + ------- + None + + Description + ----------- + Add a shell to a solid. + + """ + _BRepLib.BRepLib_MakeSolid_swiginit(self, _BRepLib.new_BRepLib_MakeSolid(*args)) + + def Add(self, *args): + r""" + + Parameters + ---------- + S: TopoDS_Shell + + Return + ------- + None + + Description + ----------- + Add the shell to the current solid. + + """ + return _BRepLib.BRepLib_MakeSolid_Add(self, *args) + + def Solid(self, *args): + r""" + Return + ------- + TopoDS_Solid + + Description + ----------- + Returns the new Solid. + + """ + return _BRepLib.BRepLib_MakeSolid_Solid(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepLib.delete_BRepLib_MakeSolid + +# Register BRepLib_MakeSolid in _BRepLib: +_BRepLib.BRepLib_MakeSolid_swigregister(BRepLib_MakeSolid) +class BRepLib_MakeVertex(BRepLib_MakeShape): + 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""" + + Parameters + ---------- + P: gp_Pnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _BRepLib.BRepLib_MakeVertex_swiginit(self, _BRepLib.new_BRepLib_MakeVertex(*args)) + + def Vertex(self, *args): + r""" + Return + ------- + TopoDS_Vertex + + Description + ----------- + No available documentation. + + """ + return _BRepLib.BRepLib_MakeVertex_Vertex(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepLib.delete_BRepLib_MakeVertex + +# Register BRepLib_MakeVertex in _BRepLib: +_BRepLib.BRepLib_MakeVertex_swigregister(BRepLib_MakeVertex) +class BRepLib_MakeWire(BRepLib_MakeShape): + 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 + ----------- + NotDone MakeWire. + + Parameters + ---------- + E: TopoDS_Edge + + Return + ------- + None + + Description + ----------- + Make a Wire from an edge. + + Parameters + ---------- + E1: TopoDS_Edge + E2: TopoDS_Edge + + Return + ------- + None + + Description + ----------- + Make a Wire from two edges. + + Parameters + ---------- + E1: TopoDS_Edge + E2: TopoDS_Edge + E3: TopoDS_Edge + + Return + ------- + None + + Description + ----------- + Make a Wire from three edges. + + Parameters + ---------- + E1: TopoDS_Edge + E2: TopoDS_Edge + E3: TopoDS_Edge + E4: TopoDS_Edge + + Return + ------- + None + + Description + ----------- + Make a Wire from four edges. + + Parameters + ---------- + W: TopoDS_Wire + + Return + ------- + None + + Description + ----------- + Make a Wire from a Wire. Useful for adding later. + + Parameters + ---------- + W: TopoDS_Wire + E: TopoDS_Edge + + Return + ------- + None + + Description + ----------- + Add an edge to a wire. + + """ + _BRepLib.BRepLib_MakeWire_swiginit(self, _BRepLib.new_BRepLib_MakeWire(*args)) + + def Add(self, *args): + r""" + + Parameters + ---------- + E: TopoDS_Edge + + Return + ------- + None + + Description + ----------- + Add the edge to the current wire. + + Parameters + ---------- + W: TopoDS_Wire + + Return + ------- + None + + Description + ----------- + Add the edges of to the current wire. + + Parameters + ---------- + L: TopTools_ListOfShape + + Return + ------- + None + + Description + ----------- + Add the edges of to the current wire. The edges are not to be consecutive. But they are to be all connected geometrically or topologically. + + """ + return _BRepLib.BRepLib_MakeWire_Add(self, *args) + + def Edge(self, *args): + r""" + Return + ------- + TopoDS_Edge + + Description + ----------- + Returns the last edge added to the wire. + + """ + return _BRepLib.BRepLib_MakeWire_Edge(self, *args) + + def Error(self, *args): + r""" + Return + ------- + BRepLib_WireError + + Description + ----------- + No available documentation. + + """ + return _BRepLib.BRepLib_MakeWire_Error(self, *args) + + def Vertex(self, *args): + r""" + Return + ------- + TopoDS_Vertex + + Description + ----------- + Returns the last connecting vertex. + + """ + return _BRepLib.BRepLib_MakeWire_Vertex(self, *args) + + def Wire(self, *args): + r""" + Return + ------- + TopoDS_Wire + + Description + ----------- + Returns the new wire. + + """ + return _BRepLib.BRepLib_MakeWire_Wire(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepLib.delete_BRepLib_MakeWire + +# Register BRepLib_MakeWire in _BRepLib: +_BRepLib.BRepLib_MakeWire_swigregister(BRepLib_MakeWire) + + + +@deprecated +def breplib_BoundingVertex(*args): + return breplib.BoundingVertex(*args) + +@deprecated +def breplib_BuildCurve3d(*args): + return breplib.BuildCurve3d(*args) + +@deprecated +def breplib_BuildCurves3d(*args): + return breplib.BuildCurves3d(*args) + +@deprecated +def breplib_BuildCurves3d(*args): + return breplib.BuildCurves3d(*args) + +@deprecated +def breplib_BuildPCurveForEdgeOnPlane(*args): + return breplib.BuildPCurveForEdgeOnPlane(*args) + +@deprecated +def breplib_BuildPCurveForEdgeOnPlane(*args): + return breplib.BuildPCurveForEdgeOnPlane(*args) + +@deprecated +def breplib_CheckSameRange(*args): + return breplib.CheckSameRange(*args) + +@deprecated +def breplib_ContinuityOfFaces(*args): + return breplib.ContinuityOfFaces(*args) + +@deprecated +def breplib_EncodeRegularity(*args): + return breplib.EncodeRegularity(*args) + +@deprecated +def breplib_EncodeRegularity(*args): + return breplib.EncodeRegularity(*args) + +@deprecated +def breplib_EncodeRegularity(*args): + return breplib.EncodeRegularity(*args) + +@deprecated +def breplib_EnsureNormalConsistency(*args): + return breplib.EnsureNormalConsistency(*args) + +@deprecated +def breplib_ExtendFace(*args): + return breplib.ExtendFace(*args) + +@deprecated +def breplib_FindValidRange(*args): + return breplib.FindValidRange(*args) + +@deprecated +def breplib_FindValidRange(*args): + return breplib.FindValidRange(*args) + +@deprecated +def breplib_OrientClosedSolid(*args): + return breplib.OrientClosedSolid(*args) + +@deprecated +def breplib_Plane(*args): + return breplib.Plane(*args) + +@deprecated +def breplib_Plane(*args): + return breplib.Plane(*args) + +@deprecated +def breplib_Precision(*args): + return breplib.Precision(*args) + +@deprecated +def breplib_Precision(*args): + return breplib.Precision(*args) + +@deprecated +def breplib_ReverseSortFaces(*args): + return breplib.ReverseSortFaces(*args) + +@deprecated +def breplib_SameParameter(*args): + return breplib.SameParameter(*args) + +@deprecated +def breplib_SameParameter(*args): + return breplib.SameParameter(*args) + +@deprecated +def breplib_SameParameter(*args): + return breplib.SameParameter(*args) + +@deprecated +def breplib_SameParameter(*args): + return breplib.SameParameter(*args) + +@deprecated +def breplib_SameRange(*args): + return breplib.SameRange(*args) + +@deprecated +def breplib_SortFaces(*args): + return breplib.SortFaces(*args) + +@deprecated +def breplib_UpdateDeflection(*args): + return breplib.UpdateDeflection(*args) + +@deprecated +def breplib_UpdateEdgeTol(*args): + return breplib.UpdateEdgeTol(*args) + +@deprecated +def breplib_UpdateEdgeTolerance(*args): + return breplib.UpdateEdgeTolerance(*args) + +@deprecated +def breplib_UpdateInnerTolerances(*args): + return breplib.UpdateInnerTolerances(*args) + +@deprecated +def breplib_UpdateTolerances(*args): + return breplib.UpdateTolerances(*args) + +@deprecated +def breplib_UpdateTolerances(*args): + return breplib.UpdateTolerances(*args) + +@deprecated +def BRepLib_ToolTriangulatedShape_ComputeNormals(*args): + return BRepLib_ToolTriangulatedShape.ComputeNormals(*args) + +@deprecated +def BRepLib_ToolTriangulatedShape_ComputeNormals(*args): + return BRepLib_ToolTriangulatedShape.ComputeNormals(*args) + +@deprecated +def BRepLib_MakeFace_IsDegenerated(*args): + return BRepLib_MakeFace.IsDegenerated(*args) + + + diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BRepLib.pyi b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BRepLib.pyi new file mode 100644 index 0000000000000000000000000000000000000000..a4f451f224a86664d7bcea1d9af7bac44c80924d --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BRepLib.pyi @@ -0,0 +1,823 @@ +from enum import IntEnum +from typing import overload, NewType, Optional, Tuple + +from OCC.Core.Standard import * +from OCC.Core.NCollection import * +from OCC.Core.gp import * +from OCC.Core.TopoDS import * +from OCC.Core.GeomAbs import * +from OCC.Core.Geom2d import * +from OCC.Core.TopTools import * +from OCC.Core.Adaptor3d import * +from OCC.Core.Geom import * +from OCC.Core.BRepTools import * +from OCC.Core.TopLoc import * +from OCC.Core.Poly import * + +class BRepLib_EdgeError(IntEnum): + BRepLib_EdgeDone: int = ... + BRepLib_PointProjectionFailed: int = ... + BRepLib_ParameterOutOfRange: int = ... + BRepLib_DifferentPointsOnClosedCurve: int = ... + BRepLib_PointWithInfiniteParameter: int = ... + BRepLib_DifferentsPointAndParameter: int = ... + BRepLib_LineThroughIdenticPoints: int = ... + +BRepLib_EdgeDone = BRepLib_EdgeError.BRepLib_EdgeDone +BRepLib_PointProjectionFailed = BRepLib_EdgeError.BRepLib_PointProjectionFailed +BRepLib_ParameterOutOfRange = BRepLib_EdgeError.BRepLib_ParameterOutOfRange +BRepLib_DifferentPointsOnClosedCurve = ( + BRepLib_EdgeError.BRepLib_DifferentPointsOnClosedCurve +) +BRepLib_PointWithInfiniteParameter = ( + BRepLib_EdgeError.BRepLib_PointWithInfiniteParameter +) +BRepLib_DifferentsPointAndParameter = ( + BRepLib_EdgeError.BRepLib_DifferentsPointAndParameter +) +BRepLib_LineThroughIdenticPoints = BRepLib_EdgeError.BRepLib_LineThroughIdenticPoints + +class BRepLib_FaceError(IntEnum): + BRepLib_FaceDone: int = ... + BRepLib_NoFace: int = ... + BRepLib_NotPlanar: int = ... + BRepLib_CurveProjectionFailed: int = ... + BRepLib_ParametersOutOfRange: int = ... + +BRepLib_FaceDone = BRepLib_FaceError.BRepLib_FaceDone +BRepLib_NoFace = BRepLib_FaceError.BRepLib_NoFace +BRepLib_NotPlanar = BRepLib_FaceError.BRepLib_NotPlanar +BRepLib_CurveProjectionFailed = BRepLib_FaceError.BRepLib_CurveProjectionFailed +BRepLib_ParametersOutOfRange = BRepLib_FaceError.BRepLib_ParametersOutOfRange + +class BRepLib_ShapeModification(IntEnum): + BRepLib_Preserved: int = ... + BRepLib_Deleted: int = ... + BRepLib_Trimmed: int = ... + BRepLib_Merged: int = ... + BRepLib_BoundaryModified: int = ... + +BRepLib_Preserved = BRepLib_ShapeModification.BRepLib_Preserved +BRepLib_Deleted = BRepLib_ShapeModification.BRepLib_Deleted +BRepLib_Trimmed = BRepLib_ShapeModification.BRepLib_Trimmed +BRepLib_Merged = BRepLib_ShapeModification.BRepLib_Merged +BRepLib_BoundaryModified = BRepLib_ShapeModification.BRepLib_BoundaryModified + +class BRepLib_ShellError(IntEnum): + BRepLib_ShellDone: int = ... + BRepLib_EmptyShell: int = ... + BRepLib_DisconnectedShell: int = ... + BRepLib_ShellParametersOutOfRange: int = ... + +BRepLib_ShellDone = BRepLib_ShellError.BRepLib_ShellDone +BRepLib_EmptyShell = BRepLib_ShellError.BRepLib_EmptyShell +BRepLib_DisconnectedShell = BRepLib_ShellError.BRepLib_DisconnectedShell +BRepLib_ShellParametersOutOfRange = BRepLib_ShellError.BRepLib_ShellParametersOutOfRange + +class BRepLib_WireError(IntEnum): + BRepLib_WireDone: int = ... + BRepLib_EmptyWire: int = ... + BRepLib_DisconnectedWire: int = ... + BRepLib_NonManifoldWire: int = ... + +BRepLib_WireDone = BRepLib_WireError.BRepLib_WireDone +BRepLib_EmptyWire = BRepLib_WireError.BRepLib_EmptyWire +BRepLib_DisconnectedWire = BRepLib_WireError.BRepLib_DisconnectedWire +BRepLib_NonManifoldWire = BRepLib_WireError.BRepLib_NonManifoldWire + +class breplib: + @staticmethod + def BuildCurve3d( + E: TopoDS_Edge, + Tolerance: Optional[float] = 1.0e-5, + Continuity: Optional[GeomAbs_Shape] = GeomAbs_C1, + MaxDegree: Optional[int] = 14, + MaxSegment: Optional[int] = 0, + ) -> bool: ... + @overload + @staticmethod + def BuildCurves3d( + S: TopoDS_Shape, + Tolerance: float, + Continuity: Optional[GeomAbs_Shape] = GeomAbs_C1, + MaxDegree: Optional[int] = 14, + MaxSegment: Optional[int] = 0, + ) -> bool: ... + @overload + @staticmethod + def BuildCurves3d(S: TopoDS_Shape) -> bool: ... + @overload + @staticmethod + def BuildPCurveForEdgeOnPlane(theE: TopoDS_Edge, theF: TopoDS_Face) -> None: ... + @overload + @staticmethod + def BuildPCurveForEdgeOnPlane( + theE: TopoDS_Edge, theF: TopoDS_Face, aC2D: Geom2d_Curve + ) -> bool: ... + @staticmethod + def CheckSameRange( + E: TopoDS_Edge, Confusion: Optional[float] = 1.0e-12 + ) -> bool: ... + @staticmethod + def ContinuityOfFaces( + theEdge: TopoDS_Edge, + theFace1: TopoDS_Face, + theFace2: TopoDS_Face, + theAngleTol: float, + ) -> GeomAbs_Shape: ... + @overload + @staticmethod + def EncodeRegularity( + S: TopoDS_Shape, TolAng: Optional[float] = 1.0e-10 + ) -> None: ... + @overload + @staticmethod + def EncodeRegularity( + S: TopoDS_Shape, LE: TopTools_ListOfShape, TolAng: Optional[float] = 1.0e-10 + ) -> None: ... + @overload + @staticmethod + def EncodeRegularity( + E: TopoDS_Edge, + F1: TopoDS_Face, + F2: TopoDS_Face, + TolAng: Optional[float] = 1.0e-10, + ) -> None: ... + @staticmethod + def EnsureNormalConsistency( + S: TopoDS_Shape, + theAngTol: Optional[float] = 0.001, + ForceComputeNormals: Optional[bool] = False, + ) -> bool: ... + @staticmethod + def ExtendFace( + theF: TopoDS_Face, + theExtVal: float, + theExtUMin: bool, + theExtUMax: bool, + theExtVMin: bool, + theExtVMax: bool, + theFExtended: TopoDS_Face, + ) -> None: ... + @overload + @staticmethod + def FindValidRange( + theCurve: Adaptor3d_Curve, + theTolE: float, + theParV1: float, + thePntV1: gp_Pnt, + theTolV1: float, + theParV2: float, + thePntV2: gp_Pnt, + theTolV2: float, + ) -> Tuple[bool, float, float]: ... + @overload + @staticmethod + def FindValidRange(theEdge: TopoDS_Edge) -> Tuple[bool, float, float]: ... + @staticmethod + def OrientClosedSolid(solid: TopoDS_Solid) -> bool: ... + @overload + @staticmethod + def Plane(P: Geom_Plane) -> None: ... + @overload + @staticmethod + def Plane() -> Geom_Plane: ... + @overload + @staticmethod + def Precision(P: float) -> None: ... + @overload + @staticmethod + def Precision() -> float: ... + @staticmethod + def ReverseSortFaces(S: TopoDS_Shape, LF: TopTools_ListOfShape) -> None: ... + @overload + @staticmethod + def SameParameter( + theEdge: TopoDS_Edge, Tolerance: Optional[float] = 1.0e-5 + ) -> None: ... + @overload + @staticmethod + def SameParameter( + theEdge: TopoDS_Edge, theTolerance: float, IsUseOldEdge: bool + ) -> Tuple[TopoDS_Edge, float]: ... + @overload + @staticmethod + def SameParameter( + S: TopoDS_Shape, + Tolerance: Optional[float] = 1.0e-5, + forced: Optional[bool] = False, + ) -> None: ... + @overload + @staticmethod + def SameParameter( + S: TopoDS_Shape, + theReshaper: BRepTools_ReShape, + Tolerance: Optional[float] = 1.0e-5, + forced: Optional[bool] = False, + ) -> None: ... + @staticmethod + def SameRange(E: TopoDS_Edge, Tolerance: Optional[float] = 1.0e-5) -> None: ... + @staticmethod + def SortFaces(S: TopoDS_Shape, LF: TopTools_ListOfShape) -> None: ... + @staticmethod + def UpdateDeflection(S: TopoDS_Shape) -> None: ... + @staticmethod + def UpdateEdgeTol( + E: TopoDS_Edge, MinToleranceRequest: float, MaxToleranceToCheck: float + ) -> bool: ... + @staticmethod + def UpdateEdgeTolerance( + S: TopoDS_Shape, MinToleranceRequest: float, MaxToleranceToCheck: float + ) -> bool: ... + @staticmethod + def UpdateInnerTolerances(S: TopoDS_Shape) -> None: ... + @overload + @staticmethod + def UpdateTolerances( + S: TopoDS_Shape, verifyFaceTolerance: Optional[bool] = False + ) -> None: ... + @overload + @staticmethod + def UpdateTolerances( + S: TopoDS_Shape, + theReshaper: BRepTools_ReShape, + verifyFaceTolerance: Optional[bool] = False, + ) -> None: ... + +class BRepLib_CheckCurveOnSurface: + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, theEdge: TopoDS_Edge, theFace: TopoDS_Face) -> None: ... + def ErrorStatus(self) -> int: ... + def Init(self, theEdge: TopoDS_Edge, theFace: TopoDS_Face) -> None: ... + def IsDone(self) -> bool: ... + def IsParallel(self) -> bool: ... + def MaxDistance(self) -> float: ... + def MaxParameter(self) -> float: ... + def Perform(self) -> None: ... + def SetParallel(self, theIsParallel: bool) -> None: ... + +class BRepLib_Command: + def Check(self) -> None: ... + def IsDone(self) -> bool: ... + +class BRepLib_FindSurface: + @overload + def __init__(self) -> None: ... + @overload + def __init__( + self, + S: TopoDS_Shape, + Tol: Optional[float] = -1, + OnlyPlane: Optional[bool] = False, + OnlyClosed: Optional[bool] = False, + ) -> None: ... + def Existed(self) -> bool: ... + def Found(self) -> bool: ... + def Init( + self, + S: TopoDS_Shape, + Tol: Optional[float] = -1, + OnlyPlane: Optional[bool] = False, + OnlyClosed: Optional[bool] = False, + ) -> None: ... + def Location(self) -> TopLoc_Location: ... + def Surface(self) -> Geom_Surface: ... + def Tolerance(self) -> float: ... + def ToleranceReached(self) -> float: ... + +class BRepLib_FuseEdges: + def __init__( + self, theShape: TopoDS_Shape, PerformNow: Optional[bool] = False + ) -> None: ... + def AvoidEdges(self, theMapEdg: TopTools_IndexedMapOfShape) -> None: ... + def Edges(self, theMapLstEdg: TopTools_DataMapOfIntegerListOfShape) -> None: ... + def Faces(self, theMapFac: TopTools_DataMapOfShapeShape) -> None: ... + def NbVertices(self) -> int: ... + def Perform(self) -> None: ... + def ResultEdges(self, theMapEdg: TopTools_DataMapOfIntegerShape) -> None: ... + def SetConcatBSpl(self, theConcatBSpl: Optional[bool] = True) -> None: ... + def Shape(self) -> TopoDS_Shape: ... + +class BRepLib_PointCloudShape: + def GeneratePointsByDensity(self, theDensity: Optional[float] = 0.0) -> bool: ... + def GeneratePointsByTriangulation(self) -> bool: ... + def GetDistance(self) -> float: ... + def NbPointsByDensity(self, theDensity: Optional[float] = 0.0) -> int: ... + def NbPointsByTriangulation(self) -> int: ... + def SetDistance(self, theDist: float) -> None: ... + def SetShape(self, theShape: TopoDS_Shape) -> None: ... + def SetTolerance(self, theTol: float) -> None: ... + def Shape(self) -> TopoDS_Shape: ... + def Tolerance(self) -> float: ... + +class BRepLib_ToolTriangulatedShape: + @overload + @staticmethod + def ComputeNormals(theFace: TopoDS_Face, theTris: Poly_Triangulation) -> None: ... + @overload + @staticmethod + def ComputeNormals( + theFace: TopoDS_Face, theTris: Poly_Triangulation, thePolyConnect: Poly_Connect + ) -> None: ... + +class BRepLib_ValidateEdge: + def __init__( + self, + theReferenceCurve: Adaptor3d_Curve, + theOtherCurve: Adaptor3d_CurveOnSurface, + theSameParameter: bool, + ) -> None: ... + def CheckTolerance(self, theToleranceToCheck: float) -> bool: ... + def GetMaxDistance(self) -> float: ... + def IsDone(self) -> bool: ... + def IsExactMethod(self) -> bool: ... + def IsParallel(self) -> bool: ... + def Process(self) -> None: ... + def SetControlPointsNumber(self, theControlPointsNumber: int) -> None: ... + def SetExactMethod(self, theIsExact: bool) -> None: ... + def SetParallel(self, theIsMultiThread: bool) -> None: ... + def UpdateTolerance(self) -> float: ... + +class BRepLib_MakeShape(BRepLib_Command): + def Build(self) -> None: ... + def DescendantFaces(self, F: TopoDS_Face) -> TopTools_ListOfShape: ... + def FaceStatus(self, F: TopoDS_Face) -> BRepLib_ShapeModification: ... + def FacesFromEdges(self, E: TopoDS_Edge) -> TopTools_ListOfShape: ... + def HasDescendants(self, F: TopoDS_Face) -> bool: ... + def NbSurfaces(self) -> int: ... + def NewFaces(self, I: int) -> TopTools_ListOfShape: ... + def Shape(self) -> TopoDS_Shape: ... + +class BRepLib_MakeEdge(BRepLib_MakeShape): + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, V1: TopoDS_Vertex, V2: TopoDS_Vertex) -> None: ... + @overload + def __init__(self, P1: gp_Pnt, P2: gp_Pnt) -> None: ... + @overload + def __init__(self, L: gp_Lin) -> None: ... + @overload + def __init__(self, L: gp_Lin, p1: float, p2: float) -> None: ... + @overload + def __init__(self, L: gp_Lin, P1: gp_Pnt, P2: gp_Pnt) -> None: ... + @overload + def __init__(self, L: gp_Lin, V1: TopoDS_Vertex, V2: TopoDS_Vertex) -> None: ... + @overload + def __init__(self, L: gp_Circ) -> None: ... + @overload + def __init__(self, L: gp_Circ, p1: float, p2: float) -> None: ... + @overload + def __init__(self, L: gp_Circ, P1: gp_Pnt, P2: gp_Pnt) -> None: ... + @overload + def __init__(self, L: gp_Circ, V1: TopoDS_Vertex, V2: TopoDS_Vertex) -> None: ... + @overload + def __init__(self, L: gp_Elips) -> None: ... + @overload + def __init__(self, L: gp_Elips, p1: float, p2: float) -> None: ... + @overload + def __init__(self, L: gp_Elips, P1: gp_Pnt, P2: gp_Pnt) -> None: ... + @overload + def __init__(self, L: gp_Elips, V1: TopoDS_Vertex, V2: TopoDS_Vertex) -> None: ... + @overload + def __init__(self, L: gp_Hypr) -> None: ... + @overload + def __init__(self, L: gp_Hypr, p1: float, p2: float) -> None: ... + @overload + def __init__(self, L: gp_Hypr, P1: gp_Pnt, P2: gp_Pnt) -> None: ... + @overload + def __init__(self, L: gp_Hypr, V1: TopoDS_Vertex, V2: TopoDS_Vertex) -> None: ... + @overload + def __init__(self, L: gp_Parab) -> None: ... + @overload + def __init__(self, L: gp_Parab, p1: float, p2: float) -> None: ... + @overload + def __init__(self, L: gp_Parab, P1: gp_Pnt, P2: gp_Pnt) -> None: ... + @overload + def __init__(self, L: gp_Parab, V1: TopoDS_Vertex, V2: TopoDS_Vertex) -> None: ... + @overload + def __init__(self, L: Geom_Curve) -> None: ... + @overload + def __init__(self, L: Geom_Curve, p1: float, p2: float) -> None: ... + @overload + def __init__(self, L: Geom_Curve, P1: gp_Pnt, P2: gp_Pnt) -> None: ... + @overload + def __init__(self, L: Geom_Curve, V1: TopoDS_Vertex, V2: TopoDS_Vertex) -> None: ... + @overload + def __init__( + self, L: Geom_Curve, P1: gp_Pnt, P2: gp_Pnt, p1: float, p2: float + ) -> None: ... + @overload + def __init__( + self, L: Geom_Curve, V1: TopoDS_Vertex, V2: TopoDS_Vertex, p1: float, p2: float + ) -> None: ... + @overload + def __init__(self, L: Geom2d_Curve, S: Geom_Surface) -> None: ... + @overload + def __init__( + self, L: Geom2d_Curve, S: Geom_Surface, p1: float, p2: float + ) -> None: ... + @overload + def __init__( + self, L: Geom2d_Curve, S: Geom_Surface, P1: gp_Pnt, P2: gp_Pnt + ) -> None: ... + @overload + def __init__( + self, L: Geom2d_Curve, S: Geom_Surface, V1: TopoDS_Vertex, V2: TopoDS_Vertex + ) -> None: ... + @overload + def __init__( + self, + L: Geom2d_Curve, + S: Geom_Surface, + P1: gp_Pnt, + P2: gp_Pnt, + p1: float, + p2: float, + ) -> None: ... + @overload + def __init__( + self, + L: Geom2d_Curve, + S: Geom_Surface, + V1: TopoDS_Vertex, + V2: TopoDS_Vertex, + p1: float, + p2: float, + ) -> None: ... + def Edge(self) -> TopoDS_Edge: ... + def Error(self) -> BRepLib_EdgeError: ... + @overload + def Init(self, C: Geom_Curve) -> None: ... + @overload + def Init(self, C: Geom_Curve, p1: float, p2: float) -> None: ... + @overload + def Init(self, C: Geom_Curve, P1: gp_Pnt, P2: gp_Pnt) -> None: ... + @overload + def Init(self, C: Geom_Curve, V1: TopoDS_Vertex, V2: TopoDS_Vertex) -> None: ... + @overload + def Init( + self, C: Geom_Curve, P1: gp_Pnt, P2: gp_Pnt, p1: float, p2: float + ) -> None: ... + @overload + def Init( + self, C: Geom_Curve, V1: TopoDS_Vertex, V2: TopoDS_Vertex, p1: float, p2: float + ) -> None: ... + @overload + def Init(self, C: Geom2d_Curve, S: Geom_Surface) -> None: ... + @overload + def Init(self, C: Geom2d_Curve, S: Geom_Surface, p1: float, p2: float) -> None: ... + @overload + def Init( + self, C: Geom2d_Curve, S: Geom_Surface, P1: gp_Pnt, P2: gp_Pnt + ) -> None: ... + @overload + def Init( + self, C: Geom2d_Curve, S: Geom_Surface, V1: TopoDS_Vertex, V2: TopoDS_Vertex + ) -> None: ... + @overload + def Init( + self, + C: Geom2d_Curve, + S: Geom_Surface, + P1: gp_Pnt, + P2: gp_Pnt, + p1: float, + p2: float, + ) -> None: ... + @overload + def Init( + self, + C: Geom2d_Curve, + S: Geom_Surface, + V1: TopoDS_Vertex, + V2: TopoDS_Vertex, + p1: float, + p2: float, + ) -> None: ... + def Vertex1(self) -> TopoDS_Vertex: ... + def Vertex2(self) -> TopoDS_Vertex: ... + +class BRepLib_MakeEdge2d(BRepLib_MakeShape): + @overload + def __init__(self, V1: TopoDS_Vertex, V2: TopoDS_Vertex) -> None: ... + @overload + def __init__(self, P1: gp_Pnt2d, P2: gp_Pnt2d) -> None: ... + @overload + def __init__(self, L: gp_Lin2d) -> None: ... + @overload + def __init__(self, L: gp_Lin2d, p1: float, p2: float) -> None: ... + @overload + def __init__(self, L: gp_Lin2d, P1: gp_Pnt2d, P2: gp_Pnt2d) -> None: ... + @overload + def __init__(self, L: gp_Lin2d, V1: TopoDS_Vertex, V2: TopoDS_Vertex) -> None: ... + @overload + def __init__(self, L: gp_Circ2d) -> None: ... + @overload + def __init__(self, L: gp_Circ2d, p1: float, p2: float) -> None: ... + @overload + def __init__(self, L: gp_Circ2d, P1: gp_Pnt2d, P2: gp_Pnt2d) -> None: ... + @overload + def __init__(self, L: gp_Circ2d, V1: TopoDS_Vertex, V2: TopoDS_Vertex) -> None: ... + @overload + def __init__(self, L: gp_Elips2d) -> None: ... + @overload + def __init__(self, L: gp_Elips2d, p1: float, p2: float) -> None: ... + @overload + def __init__(self, L: gp_Elips2d, P1: gp_Pnt2d, P2: gp_Pnt2d) -> None: ... + @overload + def __init__(self, L: gp_Elips2d, V1: TopoDS_Vertex, V2: TopoDS_Vertex) -> None: ... + @overload + def __init__(self, L: gp_Hypr2d) -> None: ... + @overload + def __init__(self, L: gp_Hypr2d, p1: float, p2: float) -> None: ... + @overload + def __init__(self, L: gp_Hypr2d, P1: gp_Pnt2d, P2: gp_Pnt2d) -> None: ... + @overload + def __init__(self, L: gp_Hypr2d, V1: TopoDS_Vertex, V2: TopoDS_Vertex) -> None: ... + @overload + def __init__(self, L: gp_Parab2d) -> None: ... + @overload + def __init__(self, L: gp_Parab2d, p1: float, p2: float) -> None: ... + @overload + def __init__(self, L: gp_Parab2d, P1: gp_Pnt2d, P2: gp_Pnt2d) -> None: ... + @overload + def __init__(self, L: gp_Parab2d, V1: TopoDS_Vertex, V2: TopoDS_Vertex) -> None: ... + @overload + def __init__(self, L: Geom2d_Curve) -> None: ... + @overload + def __init__(self, L: Geom2d_Curve, p1: float, p2: float) -> None: ... + @overload + def __init__(self, L: Geom2d_Curve, P1: gp_Pnt2d, P2: gp_Pnt2d) -> None: ... + @overload + def __init__( + self, L: Geom2d_Curve, V1: TopoDS_Vertex, V2: TopoDS_Vertex + ) -> None: ... + @overload + def __init__( + self, L: Geom2d_Curve, P1: gp_Pnt2d, P2: gp_Pnt2d, p1: float, p2: float + ) -> None: ... + @overload + def __init__( + self, + L: Geom2d_Curve, + V1: TopoDS_Vertex, + V2: TopoDS_Vertex, + p1: float, + p2: float, + ) -> None: ... + def Edge(self) -> TopoDS_Edge: ... + def Error(self) -> BRepLib_EdgeError: ... + @overload + def Init(self, C: Geom2d_Curve) -> None: ... + @overload + def Init(self, C: Geom2d_Curve, p1: float, p2: float) -> None: ... + @overload + def Init(self, C: Geom2d_Curve, P1: gp_Pnt2d, P2: gp_Pnt2d) -> None: ... + @overload + def Init(self, C: Geom2d_Curve, V1: TopoDS_Vertex, V2: TopoDS_Vertex) -> None: ... + @overload + def Init( + self, C: Geom2d_Curve, P1: gp_Pnt2d, P2: gp_Pnt2d, p1: float, p2: float + ) -> None: ... + @overload + def Init( + self, + C: Geom2d_Curve, + V1: TopoDS_Vertex, + V2: TopoDS_Vertex, + p1: float, + p2: float, + ) -> None: ... + def Vertex1(self) -> TopoDS_Vertex: ... + def Vertex2(self) -> TopoDS_Vertex: ... + +class BRepLib_MakeFace(BRepLib_MakeShape): + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, F: TopoDS_Face) -> None: ... + @overload + def __init__(self, P: gp_Pln) -> None: ... + @overload + def __init__(self, C: gp_Cylinder) -> None: ... + @overload + def __init__(self, C: gp_Cone) -> None: ... + @overload + def __init__(self, S: gp_Sphere) -> None: ... + @overload + def __init__(self, C: gp_Torus) -> None: ... + @overload + def __init__(self, S: Geom_Surface, TolDegen: float) -> None: ... + @overload + def __init__( + self, P: gp_Pln, UMin: float, UMax: float, VMin: float, VMax: float + ) -> None: ... + @overload + def __init__( + self, C: gp_Cylinder, UMin: float, UMax: float, VMin: float, VMax: float + ) -> None: ... + @overload + def __init__( + self, C: gp_Cone, UMin: float, UMax: float, VMin: float, VMax: float + ) -> None: ... + @overload + def __init__( + self, S: gp_Sphere, UMin: float, UMax: float, VMin: float, VMax: float + ) -> None: ... + @overload + def __init__( + self, C: gp_Torus, UMin: float, UMax: float, VMin: float, VMax: float + ) -> None: ... + @overload + def __init__( + self, + S: Geom_Surface, + UMin: float, + UMax: float, + VMin: float, + VMax: float, + TolDegen: float, + ) -> None: ... + @overload + def __init__(self, W: TopoDS_Wire, OnlyPlane: Optional[bool] = False) -> None: ... + @overload + def __init__( + self, P: gp_Pln, W: TopoDS_Wire, Inside: Optional[bool] = True + ) -> None: ... + @overload + def __init__( + self, C: gp_Cylinder, W: TopoDS_Wire, Inside: Optional[bool] = True + ) -> None: ... + @overload + def __init__( + self, C: gp_Cone, W: TopoDS_Wire, Inside: Optional[bool] = True + ) -> None: ... + @overload + def __init__( + self, S: gp_Sphere, W: TopoDS_Wire, Inside: Optional[bool] = True + ) -> None: ... + @overload + def __init__( + self, C: gp_Torus, W: TopoDS_Wire, Inside: Optional[bool] = True + ) -> None: ... + @overload + def __init__( + self, S: Geom_Surface, W: TopoDS_Wire, Inside: Optional[bool] = True + ) -> None: ... + @overload + def __init__(self, F: TopoDS_Face, W: TopoDS_Wire) -> None: ... + def Add(self, W: TopoDS_Wire) -> None: ... + def Error(self) -> BRepLib_FaceError: ... + def Face(self) -> TopoDS_Face: ... + @overload + def Init(self, F: TopoDS_Face) -> None: ... + @overload + def Init(self, S: Geom_Surface, Bound: bool, TolDegen: float) -> None: ... + @overload + def Init( + self, + S: Geom_Surface, + UMin: float, + UMax: float, + VMin: float, + VMax: float, + TolDegen: float, + ) -> None: ... + @staticmethod + def IsDegenerated(theCurve: Geom_Curve, theMaxTol: float) -> Tuple[bool, float]: ... + +class BRepLib_MakePolygon(BRepLib_MakeShape): + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, P1: gp_Pnt, P2: gp_Pnt) -> None: ... + @overload + def __init__( + self, P1: gp_Pnt, P2: gp_Pnt, P3: gp_Pnt, Close: Optional[bool] = False + ) -> None: ... + @overload + def __init__( + self, + P1: gp_Pnt, + P2: gp_Pnt, + P3: gp_Pnt, + P4: gp_Pnt, + Close: Optional[bool] = False, + ) -> None: ... + @overload + def __init__(self, V1: TopoDS_Vertex, V2: TopoDS_Vertex) -> None: ... + @overload + def __init__( + self, + V1: TopoDS_Vertex, + V2: TopoDS_Vertex, + V3: TopoDS_Vertex, + Close: Optional[bool] = False, + ) -> None: ... + @overload + def __init__( + self, + V1: TopoDS_Vertex, + V2: TopoDS_Vertex, + V3: TopoDS_Vertex, + V4: TopoDS_Vertex, + Close: Optional[bool] = False, + ) -> None: ... + @overload + def Add(self, P: gp_Pnt) -> None: ... + @overload + def Add(self, V: TopoDS_Vertex) -> None: ... + def Added(self) -> bool: ... + def Close(self) -> None: ... + def Edge(self) -> TopoDS_Edge: ... + def FirstVertex(self) -> TopoDS_Vertex: ... + def LastVertex(self) -> TopoDS_Vertex: ... + def Wire(self) -> TopoDS_Wire: ... + +class BRepLib_MakeShell(BRepLib_MakeShape): + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, S: Geom_Surface, Segment: Optional[bool] = False) -> None: ... + @overload + def __init__( + self, + S: Geom_Surface, + UMin: float, + UMax: float, + VMin: float, + VMax: float, + Segment: Optional[bool] = False, + ) -> None: ... + def Error(self) -> BRepLib_ShellError: ... + def Init( + self, + S: Geom_Surface, + UMin: float, + UMax: float, + VMin: float, + VMax: float, + Segment: Optional[bool] = False, + ) -> None: ... + def Shell(self) -> TopoDS_Shell: ... + +class BRepLib_MakeSolid(BRepLib_MakeShape): + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, S: TopoDS_CompSolid) -> None: ... + @overload + def __init__(self, S: TopoDS_Shell) -> None: ... + @overload + def __init__(self, S1: TopoDS_Shell, S2: TopoDS_Shell) -> None: ... + @overload + def __init__( + self, S1: TopoDS_Shell, S2: TopoDS_Shell, S3: TopoDS_Shell + ) -> None: ... + @overload + def __init__(self, So: TopoDS_Solid) -> None: ... + @overload + def __init__(self, So: TopoDS_Solid, S: TopoDS_Shell) -> None: ... + def Add(self, S: TopoDS_Shell) -> None: ... + def FaceStatus(self, F: TopoDS_Face) -> BRepLib_ShapeModification: ... + def Solid(self) -> TopoDS_Solid: ... + +class BRepLib_MakeVertex(BRepLib_MakeShape): + @overload + def __init__(self, P: gp_Pnt) -> None: ... + def Vertex(self) -> TopoDS_Vertex: ... + +class BRepLib_MakeWire(BRepLib_MakeShape): + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, E: TopoDS_Edge) -> None: ... + @overload + def __init__(self, E1: TopoDS_Edge, E2: TopoDS_Edge) -> None: ... + @overload + def __init__(self, E1: TopoDS_Edge, E2: TopoDS_Edge, E3: TopoDS_Edge) -> None: ... + @overload + def __init__( + self, E1: TopoDS_Edge, E2: TopoDS_Edge, E3: TopoDS_Edge, E4: TopoDS_Edge + ) -> None: ... + @overload + def __init__(self, W: TopoDS_Wire) -> None: ... + @overload + def __init__(self, W: TopoDS_Wire, E: TopoDS_Edge) -> None: ... + @overload + def Add(self, E: TopoDS_Edge) -> None: ... + @overload + def Add(self, W: TopoDS_Wire) -> None: ... + @overload + def Add(self, L: TopTools_ListOfShape) -> None: ... + def Edge(self) -> TopoDS_Edge: ... + def Error(self) -> BRepLib_WireError: ... + def Vertex(self) -> TopoDS_Vertex: ... + def Wire(self) -> TopoDS_Wire: ... + +# harray1 classes +# harray2 classes +# hsequence classes diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BRepMAT2d.py b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BRepMAT2d.py new file mode 100644 index 0000000000000000000000000000000000000000..e8413988cb20f9b7f299b959a6d56b932afc84f9 --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BRepMAT2d.py @@ -0,0 +1,1125 @@ +# This file was automatically generated by SWIG (https://www.swig.org). +# Version 4.3.0 +# +# Do not make changes to this file unless you know what you are doing - modify +# the SWIG interface file instead. + +""" +BRepMAT2d module, see official documentation at +https://dev.opencascade.org/doc/occt-7.9.0/refman/html/package_brepmat2d.html +""" + +from sys import version_info as _swig_python_version_info +# Import the low-level C/C++ module +if __package__ or "." in __name__: + from . import _BRepMAT2d +else: + import _BRepMAT2d + +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__ = _BRepMAT2d.delete_SwigPyIterator + + def value(self): + return _BRepMAT2d.SwigPyIterator_value(self) + + def incr(self, n=1): + return _BRepMAT2d.SwigPyIterator_incr(self, n) + + def decr(self, n=1): + return _BRepMAT2d.SwigPyIterator_decr(self, n) + + def distance(self, x): + return _BRepMAT2d.SwigPyIterator_distance(self, x) + + def equal(self, x): + return _BRepMAT2d.SwigPyIterator_equal(self, x) + + def copy(self): + return _BRepMAT2d.SwigPyIterator_copy(self) + + def next(self): + return _BRepMAT2d.SwigPyIterator_next(self) + + def __next__(self): + return _BRepMAT2d.SwigPyIterator___next__(self) + + def previous(self): + return _BRepMAT2d.SwigPyIterator_previous(self) + + def advance(self, n): + return _BRepMAT2d.SwigPyIterator_advance(self, n) + + def __eq__(self, x): + return _BRepMAT2d.SwigPyIterator___eq__(self, x) + + def __ne__(self, x): + return _BRepMAT2d.SwigPyIterator___ne__(self, x) + + def __iadd__(self, n): + return _BRepMAT2d.SwigPyIterator___iadd__(self, n) + + def __isub__(self, n): + return _BRepMAT2d.SwigPyIterator___isub__(self, n) + + def __add__(self, n): + return _BRepMAT2d.SwigPyIterator___add__(self, n) + + def __sub__(self, *args): + return _BRepMAT2d.SwigPyIterator___sub__(self, *args) + def __iter__(self): + return self + +# Register SwigPyIterator in _BRepMAT2d: +_BRepMAT2d.SwigPyIterator_swigregister(SwigPyIterator) + +def _dumps_object(klass): + """ Overwrite default string output for any wrapped object. + By default, __repr__ method returns something like: + > + This is too much verbose. + We prefer : + + or + + """ + klass_name = str(klass.__class__).split(".")[3].split("'")[0] + repr_string = " + + Description + ----------- + Returns the BasicElts located at the position on the contour designed by . Remark: the BasicElts on a contour are sorted. + + """ + return _BRepMAT2d.BRepMAT2d_BisectingLocus_BasicElt(self, *args) + + def Compute(self, *args): + r""" + + Parameters + ---------- + anExplo: BRepMAT2d_Explorer + LineIndex: int (optional, default to 1) + aSide: MAT_Side (optional, default to MAT_Left) + aJoinType: GeomAbs_JoinType (optional, default to GeomAbs_Arc) + IsOpenResult: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + Computation of the Bisector_Locus in a set of Lines defined in . The bisecting locus are computed on the side