diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/AIS.py b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/AIS.py new file mode 100644 index 0000000000000000000000000000000000000000..922b0545fa9b0235f85b7e3191e40d4d982b0529 --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/AIS.py @@ -0,0 +1,18123 @@ +# 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. + +""" +AIS module, see official documentation at +https://dev.opencascade.org/doc/occt-7.9.0/refman/html/package_ais.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 _AIS +else: + import _AIS + +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__ = _AIS.delete_SwigPyIterator + + def value(self): + return _AIS.SwigPyIterator_value(self) + + def incr(self, n=1): + return _AIS.SwigPyIterator_incr(self, n) + + def decr(self, n=1): + return _AIS.SwigPyIterator_decr(self, n) + + def distance(self, x): + return _AIS.SwigPyIterator_distance(self, x) + + def equal(self, x): + return _AIS.SwigPyIterator_equal(self, x) + + def copy(self): + return _AIS.SwigPyIterator_copy(self) + + def next(self): + return _AIS.SwigPyIterator_next(self) + + def __next__(self): + return _AIS.SwigPyIterator___next__(self) + + def previous(self): + return _AIS.SwigPyIterator_previous(self) + + def advance(self, n): + return _AIS.SwigPyIterator_advance(self, n) + + def __eq__(self, x): + return _AIS.SwigPyIterator___eq__(self, x) + + def __ne__(self, x): + return _AIS.SwigPyIterator___ne__(self, x) + + def __iadd__(self, n): + return _AIS.SwigPyIterator___iadd__(self, n) + + def __isub__(self, n): + return _AIS.SwigPyIterator___isub__(self, n) + + def __add__(self, n): + return _AIS.SwigPyIterator___add__(self, n) + + def __sub__(self, *args): + return _AIS.SwigPyIterator___sub__(self, *args) + def __iter__(self): + return self + +# Register SwigPyIterator in _AIS: +_AIS.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 AIS_NArray1OfEntityOwner in _AIS: +_AIS.AIS_NArray1OfEntityOwner_swigregister(AIS_NArray1OfEntityOwner) +class AIS_NListOfEntityOwner(OCC.Core.NCollection.NCollection_BaseList): + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") + __repr__ = _swig_repr + + def begin(self): + return _AIS.AIS_NListOfEntityOwner_begin(self) + + def end(self): + return _AIS.AIS_NListOfEntityOwner_end(self) + + def cbegin(self): + return _AIS.AIS_NListOfEntityOwner_cbegin(self) + + def cend(self): + return _AIS.AIS_NListOfEntityOwner_cend(self) + + def __init__(self, *args): + _AIS.AIS_NListOfEntityOwner_swiginit(self, _AIS.new_AIS_NListOfEntityOwner(*args)) + + def Size(self): + return _AIS.AIS_NListOfEntityOwner_Size(self) + + def Assign(self, theOther): + return _AIS.AIS_NListOfEntityOwner_Assign(self, theOther) + + def Set(self, *args): + return _AIS.AIS_NListOfEntityOwner_Set(self, *args) + + def Clear(self, theAllocator=0): + return _AIS.AIS_NListOfEntityOwner_Clear(self, theAllocator) + + def First(self): + return _AIS.AIS_NListOfEntityOwner_First(self) + + def Last(self): + return _AIS.AIS_NListOfEntityOwner_Last(self) + + def Append(self, *args): + return _AIS.AIS_NListOfEntityOwner_Append(self, *args) + + def Prepend(self, *args): + return _AIS.AIS_NListOfEntityOwner_Prepend(self, *args) + + def RemoveFirst(self): + return _AIS.AIS_NListOfEntityOwner_RemoveFirst(self) + + def Remove(self, theIter): + return _AIS.AIS_NListOfEntityOwner_Remove(self, theIter) + + def InsertBefore(self, *args): + return _AIS.AIS_NListOfEntityOwner_InsertBefore(self, *args) + + def InsertAfter(self, *args): + return _AIS.AIS_NListOfEntityOwner_InsertAfter(self, *args) + + def Reverse(self): + return _AIS.AIS_NListOfEntityOwner_Reverse(self) + __swig_destroy__ = _AIS.delete_AIS_NListOfEntityOwner + + def __len__(self): + return self.Size() + + def __iter__(self): + it = AIS_ListIteratorOfNListOfEntityOwner(self.this) + while it.More(): + yield it.Value() + it.Next() + + +# Register AIS_NListOfEntityOwner in _AIS: +_AIS.AIS_NListOfEntityOwner_swigregister(AIS_NListOfEntityOwner) +class ais(object): + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") + __repr__ = _swig_repr + + __repr__ = _dumps_object + + + def __init__(self): + _AIS.ais_swiginit(self, _AIS.new_ais()) + __swig_destroy__ = _AIS.delete_ais + +# Register ais in _AIS: +_AIS.ais_swigregister(ais) +class AIS_Animation(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 + ---------- + theAnimationName: str + + Return + ------- + None + + Description + ----------- + Creates empty animation. + + """ + _AIS.AIS_Animation_swiginit(self, _AIS.new_AIS_Animation(*args)) + + def Add(self, *args): + r""" + + Parameters + ---------- + theAnimation: AIS_Animation + + Return + ------- + None + + Description + ----------- + Add single animation to the timeline. + Parameter theAnimation input animation. + + """ + return _AIS.AIS_Animation_Add(self, *args) + + def Children(self, *args): + r""" + Return + ------- + NCollection_Sequence> + + Description + ----------- + Return sequence of child animations. + + """ + return _AIS.AIS_Animation_Children(self, *args) + + def Clear(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Clear animation timeline - remove all animations from it. + + """ + return _AIS.AIS_Animation_Clear(self, *args) + + def CopyFrom(self, *args): + r""" + + Parameters + ---------- + theOther: AIS_Animation + + Return + ------- + None + + Description + ----------- + Clears own children and then copy child animations from another object. Copy also Start Time and Duration values. + + """ + return _AIS.AIS_Animation_CopyFrom(self, *args) + + def Duration(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Return: duration of the animation in the timeline. + + """ + return _AIS.AIS_Animation_Duration(self, *args) + + def ElapsedTime(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Return elapsed time. + + """ + return _AIS.AIS_Animation_ElapsedTime(self, *args) + + def Find(self, *args): + r""" + + Parameters + ---------- + theAnimationName: str + + Return + ------- + opencascade::handle + + Description + ----------- + Return the child animation with the given name. + + """ + return _AIS.AIS_Animation_Find(self, *args) + + def HasOwnDuration(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return true if duration is defined. + + """ + return _AIS.AIS_Animation_HasOwnDuration(self, *args) + + def IsStopped(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Check if animation is to be performed in the animation timeline. + Return: True if it is stopped of finished. + + """ + return _AIS.AIS_Animation_IsStopped(self, *args) + + def Name(self, *args): + r""" + Return + ------- + TCollection_AsciiString + + Description + ----------- + Animation name. + + """ + return _AIS.AIS_Animation_Name(self, *args) + + def OwnDuration(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Return: own duration of the animation in the timeline. + + """ + return _AIS.AIS_Animation_OwnDuration(self, *args) + + def Pause(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Pause the process timeline. + + """ + return _AIS.AIS_Animation_Pause(self, *args) + + def Remove(self, *args): + r""" + + Parameters + ---------- + theAnimation: AIS_Animation + + Return + ------- + bool + + Description + ----------- + Remove the child animation. + + """ + return _AIS.AIS_Animation_Remove(self, *args) + + def Replace(self, *args): + r""" + + Parameters + ---------- + theAnimationOld: AIS_Animation + theAnimationNew: AIS_Animation + + Return + ------- + bool + + Description + ----------- + Replace the child animation. + + """ + return _AIS.AIS_Animation_Replace(self, *args) + + def SetOwnDuration(self, *args): + r""" + + Parameters + ---------- + theDuration: float + + Return + ------- + None + + Description + ----------- + Defines duration of the animation. + + """ + return _AIS.AIS_Animation_SetOwnDuration(self, *args) + + def SetStartPts(self, *args): + r""" + + Parameters + ---------- + thePtsStart: float + + Return + ------- + None + + Description + ----------- + Sets time limits for animation in the animation timeline. + + """ + return _AIS.AIS_Animation_SetStartPts(self, *args) + + def SetTimer(self, *args): + r""" + + Parameters + ---------- + theTimer: Media_Timer + + Return + ------- + None + + Description + ----------- + Set playback timer. + + """ + return _AIS.AIS_Animation_SetTimer(self, *args) + + def Start(self, *args): + r""" + + Parameters + ---------- + theToUpdate: bool + + Return + ------- + None + + Description + ----------- + Start animation. This method changes status of the animation to Started. This status defines whether animation is to be performed in the timeline or not. + Parameter theToUpdate call Update() method. + + """ + return _AIS.AIS_Animation_Start(self, *args) + + def StartPts(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Return: start time of the animation in the timeline. + + """ + return _AIS.AIS_Animation_StartPts(self, *args) + + def StartTimer(self, *args): + r""" + + Parameters + ---------- + theStartPts: float + thePlaySpeed: float + theToUpdate: bool + theToStopTimer: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + Start animation with internally defined timer instance. Calls ::Start() internally. //! Note, that this method initializes a timer calculating an elapsed time (presentation timestamps within AIS_Animation::UpdateTimer()), not a multimedia timer executing Viewer updates at specific intervals! Viewer redrawing should be managed at application level, so that AIS_Animation::UpdateTimer() is called once right before each redrawing of a Viewer content. //! + Parameter theStartPts starting timer position (presentation timestamp) + Parameter thePlaySpeed playback speed (1.0 means normal speed) + Parameter theToUpdate flag to update defined animations to specified start position + Parameter theToStopTimer flag to pause timer at the starting position. + + """ + return _AIS.AIS_Animation_StartTimer(self, *args) + + def Stop(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Stop animation. This method changed status of the animation to Stopped. This status shows that animation will not be performed in the timeline or it is finished. + + """ + return _AIS.AIS_Animation_Stop(self, *args) + + def Timer(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Return playback timer. + + """ + return _AIS.AIS_Animation_Timer(self, *args) + + def Update(self, *args): + r""" + + Parameters + ---------- + thePts: float + + Return + ------- + bool + + Description + ----------- + Update single frame of animation, update timer state + Input parameter: thePts the time moment within [0; Duration()] + Return: True if timeline is in progress. + + """ + return _AIS.AIS_Animation_Update(self, *args) + + def UpdateTimer(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Update single frame of animation, update timer state + Return: current time of timeline progress. + + """ + return _AIS.AIS_Animation_UpdateTimer(self, *args) + + def UpdateTotalDuration(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Update total duration considering all animations on timeline. + + """ + return _AIS.AIS_Animation_UpdateTotalDuration(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_AIS_Animation_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _AIS.delete_AIS_Animation + +# Register AIS_Animation in _AIS: +_AIS.AIS_Animation_swigregister(AIS_Animation) +class AIS_AnimationProgress(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. + + """ + _AIS.AIS_AnimationProgress_swiginit(self, _AIS.new_AIS_AnimationProgress(*args)) + + __repr__ = _dumps_object + + __swig_destroy__ = _AIS.delete_AIS_AnimationProgress + +# Register AIS_AnimationProgress in _AIS: +_AIS.AIS_AnimationProgress_swigregister(AIS_AnimationProgress) +class AIS_AttributeFilter(OCC.Core.SelectMgr.SelectMgr_Filter): + 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 + ----------- + Constructs an empty attribute filter object. This filter object determines whether selectable interactive objects have a non-null owner. + + Parameters + ---------- + aCol: Quantity_NameOfColor + + Return + ------- + None + + Description + ----------- + Constructs an attribute filter object defined by the color attribute aCol. + + Parameters + ---------- + aWidth: float + + Return + ------- + None + + Description + ----------- + Constructs an attribute filter object defined by the line width attribute aWidth. + + """ + _AIS.AIS_AttributeFilter_swiginit(self, _AIS.new_AIS_AttributeFilter(*args)) + + def HasColor(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Indicates that the Interactive Object has the color setting specified by the argument aCol at construction time. + + """ + return _AIS.AIS_AttributeFilter_HasColor(self, *args) + + def HasWidth(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Indicates that the Interactive Object has the width setting specified by the argument aWidth at construction time. + + """ + return _AIS.AIS_AttributeFilter_HasWidth(self, *args) + + def SetColor(self, *args): + r""" + + Parameters + ---------- + theCol: Quantity_NameOfColor + + Return + ------- + None + + Description + ----------- + Sets the color. + + """ + return _AIS.AIS_AttributeFilter_SetColor(self, *args) + + def SetWidth(self, *args): + r""" + + Parameters + ---------- + theWidth: float + + Return + ------- + None + + Description + ----------- + Sets the line width. + + """ + return _AIS.AIS_AttributeFilter_SetWidth(self, *args) + + def UnsetColor(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Removes the setting for color from the filter. + + """ + return _AIS.AIS_AttributeFilter_UnsetColor(self, *args) + + def UnsetWidth(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Removes the setting for width from the filter. + + """ + return _AIS.AIS_AttributeFilter_UnsetWidth(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_AIS_AttributeFilter_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _AIS.delete_AIS_AttributeFilter + +# Register AIS_AttributeFilter in _AIS: +_AIS.AIS_AttributeFilter_swigregister(AIS_AttributeFilter) +class AIS_BadEdgeFilter(OCC.Core.SelectMgr.SelectMgr_Filter): + 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 + ----------- + Constructs an empty filter object for bad edges. + + """ + _AIS.AIS_BadEdgeFilter_swiginit(self, _AIS.new_AIS_BadEdgeFilter(*args)) + + def AddEdge(self, *args): + r""" + + Parameters + ---------- + anEdge: TopoDS_Edge + Index: int + + Return + ------- + None + + Description + ----------- + Adds an edge to the list of non-selectionnable edges. + + """ + return _AIS.AIS_BadEdgeFilter_AddEdge(self, *args) + + def RemoveEdges(self, *args): + r""" + + Parameters + ---------- + Index: int + + Return + ------- + None + + Description + ----------- + removes from the list of non-selectionnable edges all edges in the contour . + + """ + return _AIS.AIS_BadEdgeFilter_RemoveEdges(self, *args) + + def SetContour(self, *args): + r""" + + Parameters + ---------- + Index: int + + Return + ------- + None + + Description + ----------- + sets with current contour. used by IsOk. + + """ + return _AIS.AIS_BadEdgeFilter_SetContour(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_AIS_BadEdgeFilter_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _AIS.delete_AIS_BadEdgeFilter + +# Register AIS_BadEdgeFilter in _AIS: +_AIS.AIS_BadEdgeFilter_swigregister(AIS_BadEdgeFilter) +class AIS_C0RegularityFilter(OCC.Core.SelectMgr.SelectMgr_Filter): + 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 + ---------- + aShape: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _AIS.AIS_C0RegularityFilter_swiginit(self, _AIS.new_AIS_C0RegularityFilter(*args)) + + + @staticmethod + def DownCast(t): + return Handle_AIS_C0RegularityFilter_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _AIS.delete_AIS_C0RegularityFilter + +# Register AIS_C0RegularityFilter in _AIS: +_AIS.AIS_C0RegularityFilter_swigregister(AIS_C0RegularityFilter) +class AIS_ColoredDrawer(OCC.Core.Prs3d.Prs3d_Drawer): + 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 + ---------- + theLink: Prs3d_Drawer + + Return + ------- + None + + Description + ----------- + Default constructor. + + """ + _AIS.AIS_ColoredDrawer_swiginit(self, _AIS.new_AIS_ColoredDrawer(*args)) + + def HasOwnColor(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_ColoredDrawer_HasOwnColor(self, *args) + + def HasOwnMaterial(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_ColoredDrawer_HasOwnMaterial(self, *args) + + def HasOwnTransparency(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_ColoredDrawer_HasOwnTransparency(self, *args) + + def HasOwnWidth(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_ColoredDrawer_HasOwnWidth(self, *args) + + def IsHidden(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_ColoredDrawer_IsHidden(self, *args) + + def SetHidden(self, *args): + r""" + + Parameters + ---------- + theToHide: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_ColoredDrawer_SetHidden(self, *args) + + def SetOwnColor(self, *args): + r""" + + Parameters + ---------- + &: Quantity_Color + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_ColoredDrawer_SetOwnColor(self, *args) + + def SetOwnMaterial(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_ColoredDrawer_SetOwnMaterial(self, *args) + + def SetOwnTransparency(self, *args): + r""" + + Parameters + ---------- + : float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_ColoredDrawer_SetOwnTransparency(self, *args) + + def SetOwnWidth(self, *args): + r""" + + Parameters + ---------- + Standard_Real: + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_ColoredDrawer_SetOwnWidth(self, *args) + + def UnsetOwnColor(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_ColoredDrawer_UnsetOwnColor(self, *args) + + def UnsetOwnMaterial(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_ColoredDrawer_UnsetOwnMaterial(self, *args) + + def UnsetOwnTransparency(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_ColoredDrawer_UnsetOwnTransparency(self, *args) + + def UnsetOwnWidth(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_ColoredDrawer_UnsetOwnWidth(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_AIS_ColoredDrawer_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _AIS.delete_AIS_ColoredDrawer + +# Register AIS_ColoredDrawer in _AIS: +_AIS.AIS_ColoredDrawer_swigregister(AIS_ColoredDrawer) +class AIS_ExclusionFilter(OCC.Core.SelectMgr.SelectMgr_Filter): + 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 + ---------- + ExclusionFlagOn: bool (optional, default to Standard_True) + + Return + ------- + None + + Description + ----------- + Constructs an empty exclusion filter object defined by the flag setting ExclusionFlagOn. By default, the flag is set to true. + + Parameters + ---------- + TypeToExclude: AIS_KindOfInteractive + ExclusionFlagOn: bool (optional, default to Standard_True) + + Return + ------- + None + + Description + ----------- + All the AIS objects of Will be rejected by the IsOk Method. + + Parameters + ---------- + TypeToExclude: AIS_KindOfInteractive + SignatureInType: int + ExclusionFlagOn: bool (optional, default to Standard_True) + + Return + ------- + None + + Description + ----------- + Constructs an exclusion filter object defined by the enumeration value TypeToExclude, the signature SignatureInType, and the flag setting ExclusionFlagOn. By default, the flag is set to true. + + """ + _AIS.AIS_ExclusionFilter_swiginit(self, _AIS.new_AIS_ExclusionFilter(*args)) + + def Add(self, *args): + r""" + + Parameters + ---------- + TypeToExclude: AIS_KindOfInteractive + + Return + ------- + bool + + Description + ----------- + Adds the type TypeToExclude to the list of types. + + Parameters + ---------- + TypeToExclude: AIS_KindOfInteractive + SignatureInType: int + + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_ExclusionFilter_Add(self, *args) + + def Clear(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_ExclusionFilter_Clear(self, *args) + + def IsExclusionFlagOn(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_ExclusionFilter_IsExclusionFlagOn(self, *args) + + def IsStored(self, *args): + r""" + + Parameters + ---------- + aType: AIS_KindOfInteractive + + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_ExclusionFilter_IsStored(self, *args) + + def ListOfSignature(self, *args): + r""" + + Parameters + ---------- + aType: AIS_KindOfInteractive + TheStoredList: TColStd_ListOfInteger + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_ExclusionFilter_ListOfSignature(self, *args) + + def ListOfStoredTypes(self, *args): + r""" + + Parameters + ---------- + TheList: TColStd_ListOfInteger + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_ExclusionFilter_ListOfStoredTypes(self, *args) + + def Remove(self, *args): + r""" + + Parameters + ---------- + TypeToExclude: AIS_KindOfInteractive + + Return + ------- + bool + + Description + ----------- + No available documentation. + + Parameters + ---------- + TypeToExclude: AIS_KindOfInteractive + SignatureInType: int + + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_ExclusionFilter_Remove(self, *args) + + def SetExclusionFlag(self, *args): + r""" + + Parameters + ---------- + theStatus: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_ExclusionFilter_SetExclusionFlag(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_AIS_ExclusionFilter_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _AIS.delete_AIS_ExclusionFilter + +# Register AIS_ExclusionFilter in _AIS: +_AIS.AIS_ExclusionFilter_swigregister(AIS_ExclusionFilter) +class AIS_GlobalStatus(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 + ----------- + Default constructor. + + """ + _AIS.AIS_GlobalStatus_swiginit(self, _AIS.new_AIS_GlobalStatus(*args)) + + def AddSelectionMode(self, *args): + r""" + + Parameters + ---------- + theMode: int + + Return + ------- + bool + + Description + ----------- + Add selection mode. + + """ + return _AIS.AIS_GlobalStatus_AddSelectionMode(self, *args) + + def ClearSelectionModes(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Remove all selection modes. + + """ + return _AIS.AIS_GlobalStatus_ClearSelectionModes(self, *args) + + def DisplayMode(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Returns the display mode. + + """ + return _AIS.AIS_GlobalStatus_DisplayMode(self, *args) + + def HilightStyle(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns applied highlight style for a particular object. + + """ + return _AIS.AIS_GlobalStatus_HilightStyle(self, *args) + + def IsHilighted(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True if object is highlighted. + + """ + return _AIS.AIS_GlobalStatus_IsHilighted(self, *args) + + def IsSModeIn(self, *args): + r""" + + Parameters + ---------- + theMode: int + + Return + ------- + bool + + Description + ----------- + Return True if selection mode was registered. + + """ + return _AIS.AIS_GlobalStatus_IsSModeIn(self, *args) + + def IsSubIntensityOn(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_GlobalStatus_IsSubIntensityOn(self, *args) + + def RemoveSelectionMode(self, *args): + r""" + + Parameters + ---------- + theMode: int + + Return + ------- + bool + + Description + ----------- + Remove selection mode. + + """ + return _AIS.AIS_GlobalStatus_RemoveSelectionMode(self, *args) + + def SelectionModes(self, *args): + r""" + Return + ------- + TColStd_ListOfInteger + + Description + ----------- + Returns active selection modes of the object. + + """ + return _AIS.AIS_GlobalStatus_SelectionModes(self, *args) + + def SetDisplayMode(self, *args): + r""" + + Parameters + ---------- + theMode: int + + Return + ------- + None + + Description + ----------- + Sets display mode. + + """ + return _AIS.AIS_GlobalStatus_SetDisplayMode(self, *args) + + def SetHilightStatus(self, *args): + r""" + + Parameters + ---------- + theStatus: bool + + Return + ------- + None + + Description + ----------- + Sets highlighted state. + + """ + return _AIS.AIS_GlobalStatus_SetHilightStatus(self, *args) + + def SetHilightStyle(self, *args): + r""" + + Parameters + ---------- + theStyle: Prs3d_Drawer + + Return + ------- + None + + Description + ----------- + Changes applied highlight style for a particular object. + + """ + return _AIS.AIS_GlobalStatus_SetHilightStyle(self, *args) + + def SetSubIntensity(self, *args): + r""" + + Parameters + ---------- + theIsOn: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_GlobalStatus_SetSubIntensity(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_AIS_GlobalStatus_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _AIS.delete_AIS_GlobalStatus + +# Register AIS_GlobalStatus in _AIS: +_AIS.AIS_GlobalStatus_swigregister(AIS_GlobalStatus) +class AIS_GraphicTool(object): + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") + __repr__ = _swig_repr + + @staticmethod + def GetInteriorColor(*args): + r""" + + Parameters + ---------- + aDrawer: Prs3d_Drawer + + Return + ------- + Quantity_NameOfColor + + Description + ----------- + No available documentation. + + Parameters + ---------- + aDrawer: Prs3d_Drawer + aColor: Quantity_Color + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_GraphicTool_GetInteriorColor(*args) + + @staticmethod + def GetLineAtt(*args): + r""" + + Parameters + ---------- + aDrawer: Prs3d_Drawer + TheTypeOfAttributes: AIS_TypeOfAttribute + + Return + ------- + aCol: Quantity_NameOfColor + aWidth: float + aTyp: Aspect_TypeOfLine + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_GraphicTool_GetLineAtt(*args) + + @staticmethod + def GetLineColor(*args): + r""" + + Parameters + ---------- + aDrawer: Prs3d_Drawer + TheTypeOfAttributes: AIS_TypeOfAttribute + + Return + ------- + Quantity_NameOfColor + + Description + ----------- + No available documentation. + + Parameters + ---------- + aDrawer: Prs3d_Drawer + TheTypeOfAttributes: AIS_TypeOfAttribute + TheLineColor: Quantity_Color + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_GraphicTool_GetLineColor(*args) + + @staticmethod + def GetLineType(*args): + r""" + + Parameters + ---------- + aDrawer: Prs3d_Drawer + TheTypeOfAttributes: AIS_TypeOfAttribute + + Return + ------- + Aspect_TypeOfLine + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_GraphicTool_GetLineType(*args) + + @staticmethod + def GetLineWidth(*args): + r""" + + Parameters + ---------- + aDrawer: Prs3d_Drawer + TheTypeOfAttributes: AIS_TypeOfAttribute + + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_GraphicTool_GetLineWidth(*args) + + @staticmethod + def GetMaterial(*args): + r""" + + Parameters + ---------- + aDrawer: Prs3d_Drawer + + Return + ------- + Graphic3d_MaterialAspect + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_GraphicTool_GetMaterial(*args) + + __repr__ = _dumps_object + + + def __init__(self): + _AIS.AIS_GraphicTool_swiginit(self, _AIS.new_AIS_GraphicTool()) + __swig_destroy__ = _AIS.delete_AIS_GraphicTool + +# Register AIS_GraphicTool in _AIS: +_AIS.AIS_GraphicTool_swigregister(AIS_GraphicTool) +class AIS_InteractiveContext(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 + ---------- + MainViewer: V3d_Viewer + + Return + ------- + None + + Description + ----------- + Constructs the interactive context object defined by the principal viewer MainViewer. + + """ + _AIS.AIS_InteractiveContext_swiginit(self, _AIS.new_AIS_InteractiveContext(*args)) + + def Activate(self, *args): + r""" + + Parameters + ---------- + theObj: AIS_InteractiveObject + theMode: int (optional, default to 0) + theIsForce: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + Activates the selection mode aMode whose index is given, for the given interactive entity anIobj. + + Parameters + ---------- + theMode: int + theIsForce: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + Activates the given selection mode for the all displayed objects. + + """ + return _AIS.AIS_InteractiveContext_Activate(self, *args) + + def ActivatedModes(self, *args): + r""" + + Parameters + ---------- + anIobj: AIS_InteractiveObject + theList: TColStd_ListOfInteger + + Return + ------- + None + + Description + ----------- + Returns the list of activated selection modes. + + """ + return _AIS.AIS_InteractiveContext_ActivatedModes(self, *args) + + def AddFilter(self, *args): + r""" + + Parameters + ---------- + theFilter: SelectMgr_Filter + + Return + ------- + None + + Description + ----------- + Allows you to add the filter. + + """ + return _AIS.AIS_InteractiveContext_AddFilter(self, *args) + + def AddOrRemoveCurrentObject(self, *args): + r""" + + Parameters + ---------- + theObj: AIS_InteractiveObject + theIsToUpdateViewer: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_InteractiveContext_AddOrRemoveCurrentObject(self, *args) + + def AddOrRemoveSelected(self, *args): + r""" + + Parameters + ---------- + theObject: AIS_InteractiveObject + theToUpdateViewer: bool + + Return + ------- + None + + Description + ----------- + Allows to highlight or unhighlight the owner given depending on its selection status. + + Parameters + ---------- + theOwner: SelectMgr_EntityOwner + theToUpdateViewer: bool + + Return + ------- + None + + Description + ----------- + Allows to highlight or unhighlight the owner given depending on its selection status. + + """ + return _AIS.AIS_InteractiveContext_AddOrRemoveSelected(self, *args) + + def AddSelect(self, *args): + r""" + + Parameters + ---------- + theObject: SelectMgr_EntityOwner + + Return + ------- + AIS_StatusOfPick + + Description + ----------- + Adds object in the selection. + + Parameters + ---------- + theObject: AIS_InteractiveObject + + Return + ------- + AIS_StatusOfPick + + Description + ----------- + Adds object in the selection. + + """ + return _AIS.AIS_InteractiveContext_AddSelect(self, *args) + + def Applicative(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns SelectedInteractive()->GetOwner(). + See also: SelectedOwner(). + + """ + return _AIS.AIS_InteractiveContext_Applicative(self, *args) + + def AutomaticHilight(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns true if the automatic highlight mode is active; True by default. + See also: MoveTo(), Select(), HilightWithColor(), Unhilight(). + + """ + return _AIS.AIS_InteractiveContext_AutomaticHilight(self, *args) + + def BeginImmediateDraw(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + initializes the list of presentations to be displayed returns False if no local context is opened. + + """ + return _AIS.AIS_InteractiveContext_BeginImmediateDraw(self, *args) + + def BoundingBoxOfSelection(self, *args): + r""" + + Parameters + ---------- + theView: V3d_View + + Return + ------- + Bnd_Box + + Description + ----------- + Returns bounding box of selected objects. + Return + ------- + Bnd_Box + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_InteractiveContext_BoundingBoxOfSelection(self, *args) + + def ClearActiveSensitive(self, *args): + r""" + + Parameters + ---------- + aView: V3d_View + + Return + ------- + None + + Description + ----------- + Clear visualization of sensitives. + + """ + return _AIS.AIS_InteractiveContext_ClearActiveSensitive(self, *args) + + def ClearCurrents(self, *args): + r""" + + Parameters + ---------- + theToUpdateViewer: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_InteractiveContext_ClearCurrents(self, *args) + + def ClearDetected(self, *args): + r""" + + Parameters + ---------- + theToRedrawImmediate: bool (optional, default to Standard_False) + + Return + ------- + bool + + Description + ----------- + Clears the list of entities detected by MoveTo() and resets dynamic highlighting. + Parameter theToRedrawImmediate if True, the main Viewer will be redrawn on update + Return: True if viewer needs to be updated (e.g. there were actually dynamically highlighted entities). + + """ + return _AIS.AIS_InteractiveContext_ClearDetected(self, *args) + + def ClearPrs(self, *args): + r""" + + Parameters + ---------- + theIObj: AIS_InteractiveObject + theMode: int + theToUpdateViewer: bool + + Return + ------- + None + + Description + ----------- + Empties the graphic presentation of the mode indexed by aMode. Warning! Removes theIObj. theIObj is still active if it was previously activated. + + """ + return _AIS.AIS_InteractiveContext_ClearPrs(self, *args) + + def ClearSelected(self, *args): + r""" + + Parameters + ---------- + theToUpdateViewer: bool + + Return + ------- + None + + Description + ----------- + Empties previous selected objects in order to get the selected objects detected by the selector using UpdateSelected. + + """ + return _AIS.AIS_InteractiveContext_ClearSelected(self, *args) + + def Color(self, *args): + r""" + + Parameters + ---------- + aniobj: AIS_InteractiveObject + acolor: Quantity_Color + + Return + ------- + None + + Description + ----------- + Returns the color of the Object in the interactive context. + + """ + return _AIS.AIS_InteractiveContext_Color(self, *args) + + def Current(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_InteractiveContext_Current(self, *args) + + def CurrentViewer(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the current viewer. + + """ + return _AIS.AIS_InteractiveContext_CurrentViewer(self, *args) + + def Deactivate(self, *args): + r""" + + Parameters + ---------- + theObj: AIS_InteractiveObject + + Return + ------- + None + + Description + ----------- + Deactivates all the activated selection modes of an object. + + Parameters + ---------- + theObj: AIS_InteractiveObject + theMode: int + + Return + ------- + None + + Description + ----------- + Deactivates all the activated selection modes of the interactive object anIobj with a given selection mode aMode. + + Parameters + ---------- + theMode: int + + Return + ------- + None + + Description + ----------- + Deactivates the given selection mode for all displayed objects. + Return + ------- + None + + Description + ----------- + Deactivates all the activated selection mode at all displayed objects. + + """ + return _AIS.AIS_InteractiveContext_Deactivate(self, *args) + + def DefaultDrawer(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the default attribute manager. This contains all the color and line attributes which can be used by interactive objects which do not have their own attributes. + + """ + return _AIS.AIS_InteractiveContext_DefaultDrawer(self, *args) + + def DetectedCurrentObject(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Return: current mouse-detected interactive object or null object, if there is no currently detected interactives + See also: DetectedCurrentOwner(), InitDetected(), MoreDetected(), NextDetected(). + + """ + return _AIS.AIS_InteractiveContext_DetectedCurrentObject(self, *args) + + def DetectedCurrentOwner(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the owner from detected list pointed by current iterator position. WARNING! This method is irrelevant to DetectedOwner() which returns last picked Owner regardless of iterator position! + See also: InitDetected(), MoreDetected(), NextDetected(). + + """ + return _AIS.AIS_InteractiveContext_DetectedCurrentOwner(self, *args) + + def DetectedCurrentShape(self, *args): + r""" + Return + ------- + TopoDS_Shape + + Description + ----------- + Return: current mouse-detected shape or empty (null) shape, if current interactive object is not a shape (AIS_Shape) or there is no current mouse-detected interactive object at all. + See also: DetectedCurrentOwner(), InitDetected(), MoreDetected(), NextDetected(). + + """ + return _AIS.AIS_InteractiveContext_DetectedCurrentShape(self, *args) + + def DetectedInteractive(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the interactive objects last detected in context. In general this is just a wrapper for opencascade::handle::DownCast(DetectedOwner()->Selectable()). + See also: DetectedOwner(). + + """ + return _AIS.AIS_InteractiveContext_DetectedInteractive(self, *args) + + def DetectedOwner(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the owner of the detected sensitive primitive which is currently dynamically highlighted. WARNING! This method is irrelevant to InitDetected()/MoreDetected()/NextDetected(). + See also: HasDetected(), HasNextDetected(), HilightPreviousDetected(), HilightNextDetected(). + + """ + return _AIS.AIS_InteractiveContext_DetectedOwner(self, *args) + + def DetectedShape(self, *args): + r""" + Return + ------- + TopoDS_Shape + + Description + ----------- + Returns the shape detected in local context. + See also: DetectedOwner(). + + """ + return _AIS.AIS_InteractiveContext_DetectedShape(self, *args) + + def DeviationAngle(self, *args): + r""" + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_InteractiveContext_DeviationAngle(self, *args) + + def DeviationCoefficient(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns the deviation coefficient. Drawings of curves or patches are made with respect to a maximal chordal deviation. A Deviation coefficient is used in the shading display mode. The shape is seen decomposed into triangles. These are used to calculate reflection of light from the surface of the object. The triangles are formed from chords of the curves in the shape. The deviation coefficient gives the highest value of the angle with which a chord can deviate from a tangent to a curve. If this limit is reached, a new triangle is begun. This deviation is absolute and is set through Prs3d_Drawer::SetMaximalChordialDeviation. The default value is 0.001. In drawing shapes, however, you are allowed to ask for a relative deviation. This deviation will be: SizeOfObject * DeviationCoefficient. + + """ + return _AIS.AIS_InteractiveContext_DeviationCoefficient(self, *args) + + def DisableDrawHiddenLine(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_InteractiveContext_DisableDrawHiddenLine(self, *args) + + def Disconnect(self, *args): + r""" + + Parameters + ---------- + theAssembly: AIS_InteractiveObject + theObjToDisconnect: AIS_InteractiveObject (optional, default to NULL) + + Return + ------- + None + + Description + ----------- + Disconnects theObjToDisconnect from theAssembly and removes dependent selection structures. + + """ + return _AIS.AIS_InteractiveContext_Disconnect(self, *args) + + def Display(self, *args): + r""" + + Parameters + ---------- + theIObj: AIS_InteractiveObject + theToUpdateViewer: bool + + Return + ------- + None + + Description + ----------- + Displays the object in this Context using default Display Mode. This will be the object's default display mode, if there is one. Otherwise, it will be the context mode. The Interactive Object's default selection mode is activated if GetAutoActivateSelection() is True. In general, this is 0. + + Parameters + ---------- + theIObj: AIS_InteractiveObject + theDispMode: int + theSelectionMode: int + theToUpdateViewer: bool + theDispStatus: PrsMgr_DisplayStatus (optional, default to PrsMgr_DisplayStatus_None) + + Return + ------- + None + + Description + ----------- + Sets status, display mode and selection mode for specified Object If theSelectionMode equals -1, theIObj will not be activated: it will be displayed but will not be selectable. + + Parameters + ---------- + theIObj: AIS_InteractiveObject + theDispMode: int + theSelectionMode: int + theToUpdateViewer: bool + theToAllowDecomposition: bool + theDispStatus: PrsMgr_DisplayStatus (optional, default to PrsMgr_DisplayStatus_None) + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_InteractiveContext_Display(self, *args) + + def DisplayActiveSensitive(self, *args): + r""" + + Parameters + ---------- + aView: V3d_View + + Return + ------- + None + + Description + ----------- + Visualization of sensitives - for debugging purposes!. + + Parameters + ---------- + anObject: AIS_InteractiveObject + aView: V3d_View + + Return + ------- + None + + Description + ----------- + Visualization of sensitives - for debugging purposes!. + + """ + return _AIS.AIS_InteractiveContext_DisplayActiveSensitive(self, *args) + + def DisplayAll(self, *args): + r""" + + Parameters + ---------- + theToUpdateViewer: bool + + Return + ------- + None + + Description + ----------- + Displays all hidden objects. + + """ + return _AIS.AIS_InteractiveContext_DisplayAll(self, *args) + + def DisplayMode(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Returns the Display Mode setting to be used by default. + + """ + return _AIS.AIS_InteractiveContext_DisplayMode(self, *args) + + def DisplayPriority(self, *args): + r""" + + Parameters + ---------- + theIObj: AIS_InteractiveObject + + Return + ------- + Graphic3d_DisplayPriority + + Description + ----------- + Returns the display priority of the Object. + + """ + return _AIS.AIS_InteractiveContext_DisplayPriority(self, *args) + + def DisplaySelected(self, *args): + r""" + + Parameters + ---------- + theToUpdateViewer: bool + + Return + ------- + None + + Description + ----------- + Displays current objects. + + """ + return _AIS.AIS_InteractiveContext_DisplaySelected(self, *args) + + def DisplayStatus(self, *args): + r""" + + Parameters + ---------- + anIobj: AIS_InteractiveObject + + Return + ------- + PrsMgr_DisplayStatus + + Description + ----------- + Returns the display status of the entity anIobj. This will be one of the following: - AIS_DS_Displayed displayed in main viewer - AIS_DS_Erased hidden in main viewer - AIS_DS_Temporary temporarily displayed - AIS_DS_None nowhere displayed. + + """ + return _AIS.AIS_InteractiveContext_DisplayStatus(self, *args) + + def DisplayedObjects(self, *args): + r""" + + Parameters + ---------- + aListOfIO: AIS_ListOfInteractive + + Return + ------- + None + + Description + ----------- + Returns the list of displayed objects of a particular Type WhichKind and Signature WhichSignature. By Default, WhichSignature equals -1. This means that there is a check on type only. + + Parameters + ---------- + theWhichKind: AIS_KindOfInteractive + theWhichSignature: int + theListOfIO: AIS_ListOfInteractive + + Return + ------- + None + + Description + ----------- + gives the list of displayed objects of a particular Type and signature. by Default, = -1 means control only on . + + """ + return _AIS.AIS_InteractiveContext_DisplayedObjects(self, *args) + + def DrawHiddenLine(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + returns Standard_True if the hidden lines are to be drawn. By default the hidden lines are not drawn. + + """ + return _AIS.AIS_InteractiveContext_DrawHiddenLine(self, *args) + + def DumpJson(self, depth=-1): + r""" + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + """ + return _AIS.AIS_InteractiveContext_DumpJson(self, depth) + + def EnableDrawHiddenLine(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_InteractiveContext_EnableDrawHiddenLine(self, *args) + + def EndImmediateDraw(self, *args): + r""" + + Parameters + ---------- + theView: V3d_View + + Return + ------- + bool + + Description + ----------- + returns True if the immediate display has been done. + Return + ------- + bool + + Description + ----------- + Uses the First Active View of Main Viewer! returns True if the immediate display has been done. + + """ + return _AIS.AIS_InteractiveContext_EndImmediateDraw(self, *args) + + def Erase(self, *args): + r""" + + Parameters + ---------- + theIObj: AIS_InteractiveObject + theToUpdateViewer: bool + + Return + ------- + None + + Description + ----------- + Hides the object. The object's presentations are simply flagged as invisible and therefore excluded from redrawing. To show hidden objects, use Display(). + + """ + return _AIS.AIS_InteractiveContext_Erase(self, *args) + + def EraseAll(self, *args): + r""" + + Parameters + ---------- + theToUpdateViewer: bool + + Return + ------- + None + + Description + ----------- + Hides all objects. The object's presentations are simply flagged as invisible and therefore excluded from redrawing. To show all hidden objects, use DisplayAll(). + + """ + return _AIS.AIS_InteractiveContext_EraseAll(self, *args) + + def EraseSelected(self, *args): + r""" + + Parameters + ---------- + theToUpdateViewer: bool + + Return + ------- + None + + Description + ----------- + Hides selected objects. The object's presentations are simply flagged as invisible and therefore excluded from redrawing. To show hidden objects, use Display(). + + """ + return _AIS.AIS_InteractiveContext_EraseSelected(self, *args) + + def ErasedObjects(self, *args): + r""" + + Parameters + ---------- + theListOfIO: AIS_ListOfInteractive + + Return + ------- + None + + Description + ----------- + Returns the list theListOfIO of erased objects (hidden objects) particular Type WhichKind and Signature WhichSignature. By Default, WhichSignature equals 1. This means that there is a check on type only. + + Parameters + ---------- + theWhichKind: AIS_KindOfInteractive + theWhichSignature: int + theListOfIO: AIS_ListOfInteractive + + Return + ------- + None + + Description + ----------- + gives the list of erased objects (hidden objects) Type and signature by Default, = -1 means control only on . + + """ + return _AIS.AIS_InteractiveContext_ErasedObjects(self, *args) + + def FilterType(self, *args): + r""" + Return + ------- + SelectMgr_FilterType + + Description + ----------- + Return: the context selection filter type. + + """ + return _AIS.AIS_InteractiveContext_FilterType(self, *args) + + def Filters(self, *args): + r""" + Return + ------- + SelectMgr_ListOfFilter + + Description + ----------- + Returns the list of filters active in a local context. + + """ + return _AIS.AIS_InteractiveContext_Filters(self, *args) + + def FirstSelectedObject(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the first selected object in the list of current selected. + + """ + return _AIS.AIS_InteractiveContext_FirstSelectedObject(self, *args) + + def FitSelected(self, *args): + r""" + + Parameters + ---------- + theView: V3d_View + theMargin: float + theToUpdate: bool + + Return + ------- + None + + Description + ----------- + Fits the view correspondingly to the bounds of selected objects. Infinite objects are ignored if infinite state of AIS_InteractiveObject is set to true. + + Parameters + ---------- + theView: V3d_View + + Return + ------- + None + + Description + ----------- + Fits the view correspondingly to the bounds of selected objects. Infinite objects are ignored if infinite state of AIS_InteractiveObject is set to true. + + """ + return _AIS.AIS_InteractiveContext_FitSelected(self, *args) + + def GetAutoActivateSelection(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Manages displaying the new object should also automatically activate default selection mode; True by default. + + """ + return _AIS.AIS_InteractiveContext_GetAutoActivateSelection(self, *args) + + def GetZLayer(self, *args): + r""" + + Parameters + ---------- + theIObj: AIS_InteractiveObject + + Return + ------- + Graphic3d_ZLayerId + + Description + ----------- + Get Z layer id set for displayed interactive object. + + """ + return _AIS.AIS_InteractiveContext_GetZLayer(self, *args) + + def GlobalFilter(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Return: the context selection global context filter. + + """ + return _AIS.AIS_InteractiveContext_GlobalFilter(self, *args) + + def GravityPoint(self, *args): + r""" + + Parameters + ---------- + theView: V3d_View + + Return + ------- + gp_Pnt + + Description + ----------- + Return rotation gravity point. + + """ + return _AIS.AIS_InteractiveContext_GravityPoint(self, *args) + + def HasApplicative(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns SelectedInteractive()->HasOwner(). + See also: SelectedOwner(). + + """ + return _AIS.AIS_InteractiveContext_HasApplicative(self, *args) + + def HasColor(self, *args): + r""" + + Parameters + ---------- + aniobj: AIS_InteractiveObject + + Return + ------- + bool + + Description + ----------- + Returns true if a view of the Interactive Object has color. + + """ + return _AIS.AIS_InteractiveContext_HasColor(self, *args) + + def HasDetected(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns true if there is a mouse-detected entity in context. + See also: DetectedOwner(), HasNextDetected(), HilightPreviousDetected(), HilightNextDetected(). + + """ + return _AIS.AIS_InteractiveContext_HasDetected(self, *args) + + def HasDetectedShape(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns true if there is a detected shape in local context. + See also: HasDetected(), DetectedShape(). + + """ + return _AIS.AIS_InteractiveContext_HasDetectedShape(self, *args) + + def HasLocation(self, *args): + r""" + + Parameters + ---------- + theObject: AIS_InteractiveObject + + Return + ------- + bool + + Description + ----------- + Returns true if the Object has a location. + + """ + return _AIS.AIS_InteractiveContext_HasLocation(self, *args) + + def HasNextDetected(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + returns True if other entities were detected in the last mouse detection + See also: HilightPreviousDetected(), HilightNextDetected(). + + """ + return _AIS.AIS_InteractiveContext_HasNextDetected(self, *args) + + def HasPolygonOffsets(self, *args): + r""" + + Parameters + ---------- + anObj: AIS_InteractiveObject + + Return + ------- + bool + + Description + ----------- + Simply calls AIS_InteractiveObject::HasPolygonOffsets(). + + """ + return _AIS.AIS_InteractiveContext_HasPolygonOffsets(self, *args) + + def HasSelectedShape(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True if the interactive context has a shape selected. + See also: SelectedShape(). + + """ + return _AIS.AIS_InteractiveContext_HasSelectedShape(self, *args) + + def HiddenLineAspect(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Initializes hidden line aspect in the default drawing tool, or Drawer. The default values are: Color: Quantity_NOC_YELLOW Type of line: Aspect_TOL_DASH Width: 1. + + """ + return _AIS.AIS_InteractiveContext_HiddenLineAspect(self, *args) + + def HighlightStyle(self, *args): + r""" + + Parameters + ---------- + theStyleType: Prs3d_TypeOfHighlight + + Return + ------- + opencascade::handle + + Description + ----------- + Returns default highlight style settings (could be overridden by PrsMgr_PresentableObject). //! Tip: although highlighting style is defined by Prs3d_Drawer, only a small set of properties derived from it's base class Graphic3d_PresentationAttributes will be actually used in most cases. //! Default highlight style for all types is Aspect_TOHM_COLOR. Other defaults: - Prs3d_TypeOfHighlight_Dynamic * Color: Quantity_NOC_CYAN1; * Layer: Graphic3d_ZLayerId_Top, object highlighting is drawn on top of main scene within Immediate Layers, so that V3d_View::RedrawImmediate() will be enough to see update; - Prs3d_TypeOfHighlight_LocalDynamic * Color: Quantity_NOC_CYAN1; * Layer: Graphic3d_ZLayerId_Topmost, object parts highlighting is drawn on top of main scene within Immediate Layers with depth cleared (even overlapped geometry will be revealed); - Prs3d_TypeOfHighlight_Selected * Color: Quantity_NOC_GRAY80; * Layer: Graphic3d_ZLayerId_UNKNOWN, object highlighting is drawn on top of main scene within the same layer as object itself (e.g. Graphic3d_ZLayerId_Default by default) and increased priority. //! + Input parameter: theStyleType highlight style to modify + Return: drawer associated to specified highlight type //! + See also: MoveTo() using Prs3d_TypeOfHighlight_Dynamic and Prs3d_TypeOfHighlight_LocalDynamic types + See also: SelectDetected() using Prs3d_TypeOfHighlight_Selected and Prs3d_TypeOfHighlight_LocalSelected types + See also: PrsMgr_PresentableObject::DynamicHilightAttributes() overriding Prs3d_TypeOfHighlight_Dynamic and Prs3d_TypeOfHighlight_LocalDynamic defaults on object level + See also: PrsMgr_PresentableObject::HilightAttributes() overriding Prs3d_TypeOfHighlight_Selected and Prs3d_TypeOfHighlight_LocalSelected defaults on object level. + Return + ------- + opencascade::handle + + Description + ----------- + Returns current dynamic highlight style settings corresponding to Prs3d_TypeOfHighlight_Dynamic. This is just a short-cut to HighlightStyle(Prs3d_TypeOfHighlight_Dynamic). + + Parameters + ---------- + theObj: AIS_InteractiveObject + theStyle: Prs3d_Drawer + + Return + ------- + bool + + Description + ----------- + Returns highlight style of the object if it is marked as highlighted via global status + Input parameter: theObj the object to check. + + Parameters + ---------- + theOwner: SelectMgr_EntityOwner + theStyle: Prs3d_Drawer + + Return + ------- + bool + + Description + ----------- + Returns highlight style of the owner if it is selected + Input parameter: theOwner the owner to check. + + """ + return _AIS.AIS_InteractiveContext_HighlightStyle(self, *args) + + def Hilight(self, *args): + r""" + + Parameters + ---------- + theObj: AIS_InteractiveObject + theIsToUpdateViewer: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_InteractiveContext_Hilight(self, *args) + + def HilightCurrents(self, *args): + r""" + + Parameters + ---------- + theToUpdateViewer: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_InteractiveContext_HilightCurrents(self, *args) + + def HilightNextDetected(self, *args): + r""" + + Parameters + ---------- + theView: V3d_View + theToRedrawImmediate: bool (optional, default to Standard_True) + + Return + ------- + int + + Description + ----------- + If more than 1 object is detected by the selector, only the 'best' owner is hilighted at the mouse position. This Method allows the user to hilight one after another the other detected entities. If The method select is called, the selected entity will be the hilighted one! WARNING: Loop Method. When all the detected entities have been hilighted, the next call will hilight the first one again. + Return: the Rank of hilighted entity + See also: HasNextDetected(), HilightPreviousDetected(). + + """ + return _AIS.AIS_InteractiveContext_HilightNextDetected(self, *args) + + def HilightPreviousDetected(self, *args): + r""" + + Parameters + ---------- + theView: V3d_View + theToRedrawImmediate: bool (optional, default to Standard_True) + + Return + ------- + int + + Description + ----------- + Same as previous methods in reverse direction. + See also: HasNextDetected(), HilightNextDetected(). + + """ + return _AIS.AIS_InteractiveContext_HilightPreviousDetected(self, *args) + + def HilightSelected(self, *args): + r""" + + Parameters + ---------- + theToUpdateViewer: bool + + Return + ------- + None + + Description + ----------- + Highlights selected objects. + + """ + return _AIS.AIS_InteractiveContext_HilightSelected(self, *args) + + def HilightWithColor(self, *args): + r""" + + Parameters + ---------- + theObj: AIS_InteractiveObject + theStyle: Prs3d_Drawer + theToUpdateViewer: bool + + Return + ------- + None + + Description + ----------- + Changes the color of all the lines of the object in view. + + """ + return _AIS.AIS_InteractiveContext_HilightWithColor(self, *args) + + def ImmediateAdd(self, *args): + r""" + + Parameters + ---------- + theObj: AIS_InteractiveObject + theMode: int (optional, default to 0) + + Return + ------- + bool + + Description + ----------- + returns True if has been stored in the list. + + """ + return _AIS.AIS_InteractiveContext_ImmediateAdd(self, *args) + + def InitCurrent(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_InteractiveContext_InitCurrent(self, *args) + + def InitDetected(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Initialization for iteration through mouse-detected objects in interactive context or in local context if it is opened. + See also: DetectedCurrentOwner(), MoreDetected(), NextDetected(). + + """ + return _AIS.AIS_InteractiveContext_InitDetected(self, *args) + + def InitSelected(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Initializes a scan of the selected objects. + See also: SelectedOwner(), MoreSelected(), NextSelected(). + + """ + return _AIS.AIS_InteractiveContext_InitSelected(self, *args) + + def IsCurrent(self, *args): + r""" + + Parameters + ---------- + theObject: AIS_InteractiveObject + + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_InteractiveContext_IsCurrent(self, *args) + + def IsDisplayed(self, *args): + r""" + + Parameters + ---------- + anIobj: AIS_InteractiveObject + + Return + ------- + bool + + Description + ----------- + Returns true if Object is displayed in the interactive context. + + Parameters + ---------- + aniobj: AIS_InteractiveObject + aMode: int + + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_InteractiveContext_IsDisplayed(self, *args) + + def IsHilighted(self, *args): + r""" + + Parameters + ---------- + theObj: AIS_InteractiveObject + + Return + ------- + bool + + Description + ----------- + Returns true if the object is marked as highlighted via its global status + Input parameter: theObj the object to check. + + Parameters + ---------- + theOwner: SelectMgr_EntityOwner + + Return + ------- + bool + + Description + ----------- + Returns true if the owner is marked as selected + Input parameter: theOwner the owner to check. + + """ + return _AIS.AIS_InteractiveContext_IsHilighted(self, *args) + + def IsImmediateModeOn(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_InteractiveContext_IsImmediateModeOn(self, *args) + + def IsSelected(self, *args): + r""" + + Parameters + ---------- + theOwner: SelectMgr_EntityOwner + + Return + ------- + bool + + Description + ----------- + Returns true is the owner given is selected. + + Parameters + ---------- + theObj: AIS_InteractiveObject + + Return + ------- + bool + + Description + ----------- + Returns true is the object given is selected. + + """ + return _AIS.AIS_InteractiveContext_IsSelected(self, *args) + + def IsoNumber(self, *args): + r""" + + Parameters + ---------- + WhichIsos: AIS_TypeOfIso (optional, default to AIS_TOI_Both) + + Return + ------- + int + + Description + ----------- + Returns the number of U and V isoparameters displayed. + + """ + return _AIS.AIS_InteractiveContext_IsoNumber(self, *args) + + def IsoOnPlane(self, *args): + r""" + + Parameters + ---------- + theToSwitchOn: bool + + Return + ------- + None + + Description + ----------- + Returns True if drawing isoparameters on planes is enabled. + Return + ------- + bool + + Description + ----------- + Returns True if drawing isoparameters on planes is enabled. if = False,. + + """ + return _AIS.AIS_InteractiveContext_IsoOnPlane(self, *args) + + def IsoOnTriangulation(self, *args): + r""" + + Parameters + ---------- + theIsEnabled: bool + theObject: AIS_InteractiveObject + + Return + ------- + None + + Description + ----------- + Enables or disables on-triangulation build for isolines for a particular object. In case if on-triangulation builder is disabled, default on-plane builder will compute isolines for the object given. + + Parameters + ---------- + theToSwitchOn: bool + + Return + ------- + None + + Description + ----------- + Enables or disables on-triangulation build for isolines for default drawer. In case if on-triangulation builder is disabled, default on-plane builder will compute isolines for the object given. + Return + ------- + bool + + Description + ----------- + Returns true if drawing isolines on triangulation algorithm is enabled. + + """ + return _AIS.AIS_InteractiveContext_IsoOnTriangulation(self, *args) + + def LastActiveView(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns last active View (argument of MoveTo()/Select() methods). + + """ + return _AIS.AIS_InteractiveContext_LastActiveView(self, *args) + + def Load(self, *args): + r""" + + Parameters + ---------- + theObj: AIS_InteractiveObject + theSelectionMode: int (optional, default to -1) + + Return + ------- + None + + Description + ----------- + Allows you to load the Interactive Object with a given selection mode, and/or with the desired decomposition option, whether the object is visualized or not. The loaded objects will be selectable but displayable in highlighting only when detected by the Selector. + + Parameters + ---------- + theObj: AIS_InteractiveObject + theSelectionMode: int + : bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_InteractiveContext_Load(self, *args) + + def Location(self, *args): + r""" + + Parameters + ---------- + theObject: AIS_InteractiveObject + + Return + ------- + TopLoc_Location + + Description + ----------- + Returns the location of the Object. + + """ + return _AIS.AIS_InteractiveContext_Location(self, *args) + + def MainPrsMgr(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_InteractiveContext_MainPrsMgr(self, *args) + + def MainSelector(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_InteractiveContext_MainSelector(self, *args) + + def MoreCurrent(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_InteractiveContext_MoreCurrent(self, *args) + + def MoreDetected(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return True if there is more mouse-detected objects after the current one during iteration through mouse-detected interactive objects. + See also: DetectedCurrentOwner(), InitDetected(), NextDetected(). + + """ + return _AIS.AIS_InteractiveContext_MoreDetected(self, *args) + + def MoreSelected(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns true if there is another object found by the scan of the list of selected objects. + See also: SelectedOwner(), InitSelected(), NextSelected(). + + """ + return _AIS.AIS_InteractiveContext_MoreSelected(self, *args) + + def MoveTo(self, *args): + r""" + + Parameters + ---------- + theXPix: int + theYPix: int + theView: V3d_View + theToRedrawOnUpdate: bool + + Return + ------- + AIS_StatusOfDetection + + Description + ----------- + Relays mouse position in pixels theXPix and theYPix to the interactive context selectors. This is done by the view theView passing this position to the main viewer and updating it. If theToRedrawOnUpdate is set to false, callee should call RedrawImmediate() to highlight detected object. + See also: PickingStrategy() + See also: HighlightStyle() defining default dynamic highlight styles of detected owners (Prs3d_TypeOfHighlight_Dynamic and Prs3d_TypeOfHighlight_LocalDynamic) + See also: PrsMgr_PresentableObject::DynamicHilightAttributes() defining per-object dynamic highlight style of detected owners (overrides defaults). + + Parameters + ---------- + theAxis: gp_Ax1 + theView: V3d_View + theToRedrawOnUpdate: bool + + Return + ------- + AIS_StatusOfDetection + + Description + ----------- + Relays axis theAxis to the interactive context selectors. This is done by the view theView passing this axis to the main viewer and updating it. If theToRedrawOnUpdate is set to false, callee should call RedrawImmediate() to highlight detected object. + See also: PickingStrategy(). + + """ + return _AIS.AIS_InteractiveContext_MoveTo(self, *args) + + def NbCurrents(self, *args): + r""" + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_InteractiveContext_NbCurrents(self, *args) + + def NbSelected(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Count a number of selected entities using InitSelected()+MoreSelected()+NextSelected() iterator. + See also: SelectedOwner(), InitSelected(), MoreSelected(), NextSelected(). + + """ + return _AIS.AIS_InteractiveContext_NbSelected(self, *args) + + def NextCurrent(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_InteractiveContext_NextCurrent(self, *args) + + def NextDetected(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Gets next current object during iteration through mouse-detected interactive objects. + See also: DetectedCurrentOwner(), InitDetected(), MoreDetected(). + + """ + return _AIS.AIS_InteractiveContext_NextDetected(self, *args) + + def NextSelected(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Continues the scan to the next object in the list of selected objects. + See also: SelectedOwner(), InitSelected(), MoreSelected(). + + """ + return _AIS.AIS_InteractiveContext_NextSelected(self, *args) + + def ObjectIterator(self, *args): + r""" + Return + ------- + AIS_DataMapIteratorOfDataMapOfIOStatus + + Description + ----------- + Create iterator through all objects registered in context. + + """ + return _AIS.AIS_InteractiveContext_ObjectIterator(self, *args) + + def ObjectsByDisplayStatus(self, *args): + r""" + + Parameters + ---------- + theStatus: PrsMgr_DisplayStatus + theListOfIO: AIS_ListOfInteractive + + Return + ------- + None + + Description + ----------- + Returns the list theListOfIO of objects with indicated display status particular Type WhichKind and Signature WhichSignature. By Default, WhichSignature equals 1. This means that there is a check on type only. + + Parameters + ---------- + WhichKind: AIS_KindOfInteractive + WhichSignature: int + theStatus: PrsMgr_DisplayStatus + theListOfIO: AIS_ListOfInteractive + + Return + ------- + None + + Description + ----------- + gives the list of objects with indicated display status Type and signature by Default, = -1 means control only on . + + """ + return _AIS.AIS_InteractiveContext_ObjectsByDisplayStatus(self, *args) + + def ObjectsForView(self, *args): + r""" + + Parameters + ---------- + theListOfIO: AIS_ListOfInteractive + theView: V3d_View + theIsVisibleInView: bool + theStatus: PrsMgr_DisplayStatus (optional, default to PrsMgr_DisplayStatus_None) + + Return + ------- + None + + Description + ----------- + Query objects visible or hidden in specified view due to affinity mask. + + """ + return _AIS.AIS_InteractiveContext_ObjectsForView(self, *args) + + def ObjectsInside(self, *args): + r""" + + Parameters + ---------- + aListOfIO: AIS_ListOfInteractive + WhichKind: AIS_KindOfInteractive (optional, default to AIS_KindOfInteractive_None) + WhichSignature: int (optional, default to -1) + + Return + ------- + None + + Description + ----------- + fills with objects of a particular Type and Signature with no consideration of display status. by Default, = -1 means control only on . if = AIS_KindOfInteractive_None and = -1, all the objects are put into the list. + + """ + return _AIS.AIS_InteractiveContext_ObjectsInside(self, *args) + + def PickingStrategy(self, *args): + r""" + Return + ------- + SelectMgr_PickingStrategy + + Description + ----------- + Return picking strategy; SelectMgr_PickingStrategy_FirstAcceptable by default. + See also: MoveTo(), Filters(). + + """ + return _AIS.AIS_InteractiveContext_PickingStrategy(self, *args) + + def PixelTolerance(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Returns the pixel tolerance, default is 2. Pixel Tolerance extends sensitivity within MoveTo() operation (picking by point) and can be adjusted by application based on user input precision (e.g. screen pixel density, input device precision, etc.). + + """ + return _AIS.AIS_InteractiveContext_PixelTolerance(self, *args) + + def PlaneSize(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + XSize: float + YSize: float + + Description + ----------- + Returns true if the length in the X direction XSize is the same as that in the Y direction YSize. + + """ + return _AIS.AIS_InteractiveContext_PlaneSize(self, *args) + + def PolygonOffsets(self, *args): + r""" + + Parameters + ---------- + anObj: AIS_InteractiveObject + + Return + ------- + aMode: int + aFactor: float + aUnits: float + + Description + ----------- + Retrieves current polygon offsets settings for Object. + + """ + return _AIS.AIS_InteractiveContext_PolygonOffsets(self, *args) + + def RebuildSelectionStructs(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Rebuilds 1st level of BVH selection forcibly. + + """ + return _AIS.AIS_InteractiveContext_RebuildSelectionStructs(self, *args) + + def RecomputePrsOnly(self, *args): + r""" + + Parameters + ---------- + theIObj: AIS_InteractiveObject + theToUpdateViewer: bool + theAllModes: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + Recomputes the displayed presentations, flags the others. Doesn't update presentations. + + """ + return _AIS.AIS_InteractiveContext_RecomputePrsOnly(self, *args) + + def RecomputeSelectionOnly(self, *args): + r""" + + Parameters + ---------- + anIObj: AIS_InteractiveObject + + Return + ------- + None + + Description + ----------- + Recomputes the active selections, flags the others. Doesn't update presentations. + + """ + return _AIS.AIS_InteractiveContext_RecomputeSelectionOnly(self, *args) + + def Redisplay(self, *args): + r""" + + Parameters + ---------- + theIObj: AIS_InteractiveObject + theToUpdateViewer: bool + theAllModes: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + Recomputes the seen parts presentation of the Object. If theAllModes equals true, all presentations are present in the object even if unseen. + + Parameters + ---------- + theTypeOfObject: AIS_KindOfInteractive + theSignature: int + theToUpdateViewer: bool + + Return + ------- + None + + Description + ----------- + Recomputes the Prs/Selection of displayed objects of a given type and a given signature. if signature = -1 doesn't take signature criterion. + + """ + return _AIS.AIS_InteractiveContext_Redisplay(self, *args) + + def RedrawImmediate(self, *args): + r""" + + Parameters + ---------- + theViewer: V3d_Viewer + + Return + ------- + None + + Description + ----------- + Redraws immediate structures in all views of the viewer given taking into account its visibility. + + """ + return _AIS.AIS_InteractiveContext_RedrawImmediate(self, *args) + + def Remove(self, *args): + r""" + + Parameters + ---------- + theIObj: AIS_InteractiveObject + theToUpdateViewer: bool + + Return + ------- + None + + Description + ----------- + Removes Object from every viewer. + + """ + return _AIS.AIS_InteractiveContext_Remove(self, *args) + + def RemoveAll(self, *args): + r""" + + Parameters + ---------- + theToUpdateViewer: bool + + Return + ------- + None + + Description + ----------- + Removes all the objects from Context. + + """ + return _AIS.AIS_InteractiveContext_RemoveAll(self, *args) + + def RemoveFilter(self, *args): + r""" + + Parameters + ---------- + theFilter: SelectMgr_Filter + + Return + ------- + None + + Description + ----------- + Removes a filter from context. + + """ + return _AIS.AIS_InteractiveContext_RemoveFilter(self, *args) + + def RemoveFilters(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Remove all filters from context. + + """ + return _AIS.AIS_InteractiveContext_RemoveFilters(self, *args) + + def ResetLocation(self, *args): + r""" + + Parameters + ---------- + theObject: AIS_InteractiveObject + + Return + ------- + None + + Description + ----------- + Puts the Object back into its initial position. + + """ + return _AIS.AIS_InteractiveContext_ResetLocation(self, *args) + + def Select(self, *args): + r""" + + Parameters + ---------- + theOwners: AIS_NArray1OfEntityOwner + theSelScheme: AIS_SelectionScheme + + Return + ------- + AIS_StatusOfPick + + Description + ----------- + Sets list of owner selected/deselected using specified selection scheme. + Parameter theOwners owners to change selection state + Parameter theSelScheme selection scheme + Return: picking status. + + Parameters + ---------- + theXPMin: int + theYPMin: int + theXPMax: int + theYPMax: int + theView: V3d_View + theToUpdateViewer: bool + + Return + ------- + AIS_StatusOfPick + + Description + ----------- + Selects everything found in the bounding rectangle defined by the pixel minima and maxima, XPMin, YPMin, XPMax, and YPMax in the view. The objects detected are passed to the main viewer, which is then updated. + + Parameters + ---------- + thePolyline: TColgp_Array1OfPnt2d + theView: V3d_View + theToUpdateViewer: bool + + Return + ------- + AIS_StatusOfPick + + Description + ----------- + polyline selection; clears the previous picked list. + + Parameters + ---------- + theToUpdateViewer: bool + + Return + ------- + AIS_StatusOfPick + + Description + ----------- + Stores and hilights the previous detected; Unhilights the previous picked. + See also: MoveTo(). + + """ + return _AIS.AIS_InteractiveContext_Select(self, *args) + + def SelectDetected(self, *args): + r""" + + Parameters + ---------- + theSelScheme: AIS_SelectionScheme (optional, default to AIS_SelectionScheme_Replace) + + Return + ------- + AIS_StatusOfPick + + Description + ----------- + Select and hilights the previous detected via AIS_InteractiveContext::MoveTo() method; unhilights the previous picked. Viewer should be explicitly redrawn after selection. + Input parameter: theSelScheme selection scheme + Return: picking status //! + See also: HighlightStyle() defining default highlight styles of selected owners (Prs3d_TypeOfHighlight_Selected and Prs3d_TypeOfHighlight_LocalSelected) + See also: PrsMgr_PresentableObject::HilightAttributes() defining per-object highlight style of selected owners (overrides defaults). + + """ + return _AIS.AIS_InteractiveContext_SelectDetected(self, *args) + + def SelectPoint(self, *args): + r""" + + Parameters + ---------- + thePnt: Graphic3d_Vec2i + theView: V3d_View + theSelScheme: AIS_SelectionScheme (optional, default to AIS_SelectionScheme_Replace) + + Return + ------- + AIS_StatusOfPick + + Description + ----------- + Selects the topmost object picked by the point in the view, Viewer should be explicitly redrawn after selection. + Input parameter: thePnt point pixel coordinates within the view + Input parameter: theView active view where point is defined + Input parameter: theSelScheme selection scheme + Return: picking status. + + """ + return _AIS.AIS_InteractiveContext_SelectPoint(self, *args) + + def SelectPolygon(self, *args): + r""" + + Parameters + ---------- + thePolyline: TColgp_Array1OfPnt2d + theView: V3d_View + theSelScheme: AIS_SelectionScheme (optional, default to AIS_SelectionScheme_Replace) + + Return + ------- + AIS_StatusOfPick + + Description + ----------- + Select everything found in the polygon defined by bounding polyline. Viewer should be explicitly redrawn after selection. + Input parameter: thePolyline polyline defining polygon bounds (in pixels) + Input parameter: theView active view where polyline is defined + Input parameter: theSelScheme selection scheme + Return: picking status. + + """ + return _AIS.AIS_InteractiveContext_SelectPolygon(self, *args) + + def SelectRectangle(self, *args): + r""" + + Parameters + ---------- + thePntMin: Graphic3d_Vec2i + thePntMax: Graphic3d_Vec2i + theView: V3d_View + theSelScheme: AIS_SelectionScheme (optional, default to AIS_SelectionScheme_Replace) + + Return + ------- + AIS_StatusOfPick + + Description + ----------- + Selects objects within the bounding rectangle. Viewer should be explicitly redrawn after selection. + Input parameter: thePntMin rectangle lower point (in pixels) + Input parameter: thePntMax rectangle upper point (in pixels) + Input parameter: theView active view where rectangle is defined + Input parameter: theSelScheme selection scheme + Return: picking status + See also: StdSelect_ViewerSelector3d::AllowOverlapDetection(). + + """ + return _AIS.AIS_InteractiveContext_SelectRectangle(self, *args) + + def SelectedInteractive(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Return opencascade::handle::DownCast (SelectedOwner()->Selectable()). + See also: SelectedOwner(). + + """ + return _AIS.AIS_InteractiveContext_SelectedInteractive(self, *args) + + def SelectedOwner(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the owner of the selected entity. + See also: InitSelected(), MoreSelected(), NextSelected(). + + """ + return _AIS.AIS_InteractiveContext_SelectedOwner(self, *args) + + def SelectedShape(self, *args): + r""" + Return + ------- + TopoDS_Shape + + Description + ----------- + Returns the selected shape. Basically it is just a shape returned stored by StdSelect_BRepOwner with graphic transformation being applied: @code const opencascade::handle aBRepOwner = opencascade::handle::DownCast (SelectedOwner()); TopoDS_Shape aSelShape = aBRepOwner->Shape(); TopoDS_Shape aLocatedShape = aSelShape.Located (aBRepOwner->Location() * aSelShape.Location()); @endcode + See also: SelectedOwner(), HasSelectedShape(). + + """ + return _AIS.AIS_InteractiveContext_SelectedShape(self, *args) + + def Selection(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns selection instance. + + """ + return _AIS.AIS_InteractiveContext_Selection(self, *args) + + def SelectionManager(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_InteractiveContext_SelectionManager(self, *args) + + def SelectionStyle(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns current selection style settings corrsponding to Prs3d_TypeOfHighlight_Selected. This is just a short-cut to HighlightStyle(Prs3d_TypeOfHighlight_Selected). + + """ + return _AIS.AIS_InteractiveContext_SelectionStyle(self, *args) + + def SetAngleAndDeviation(self, *args): + r""" + + Parameters + ---------- + theIObj: AIS_InteractiveObject + theAngle: float + theToUpdateViewer: bool + + Return + ------- + None + + Description + ----------- + Calls the AIS_Shape SetAngleAndDeviation to set both Angle and Deviation coefficients. + + """ + return _AIS.AIS_InteractiveContext_SetAngleAndDeviation(self, *args) + + def SetAutoActivateSelection(self, *args): + r""" + + Parameters + ---------- + theIsAuto: bool + + Return + ------- + None + + Description + ----------- + Enable or disable automatic activation of default selection mode while displaying the object. + + """ + return _AIS.AIS_InteractiveContext_SetAutoActivateSelection(self, *args) + + def SetAutomaticHilight(self, *args): + r""" + + Parameters + ---------- + theStatus: bool + + Return + ------- + None + + Description + ----------- + Sets the highlighting status of detected and selected entities. This function allows you to disconnect the automatic mode. //! MoveTo() will fill the list of detected entities and Select() will set selected state to detected objects regardless of this flag, but with disabled AutomaticHiligh() their highlighting state will be left unaffected, so that application will be able performing custom highlighting in a different way, if needed. //! This API should be distinguished from SelectMgr_SelectableObject::SetAutoHilight() that is used to implement custom highlighting logic for a specific interactive object class. //! + See also: MoveTo(), Select(), HilightWithColor(), Unhilight(). + + """ + return _AIS.AIS_InteractiveContext_SetAutomaticHilight(self, *args) + + def SetColor(self, *args): + r""" + + Parameters + ---------- + theIObj: AIS_InteractiveObject + theColor: Quantity_Color + theToUpdateViewer: bool + + Return + ------- + None + + Description + ----------- + Sets the color of the selected entity. + + """ + return _AIS.AIS_InteractiveContext_SetColor(self, *args) + + def SetCurrentFacingModel(self, *args): + r""" + + Parameters + ---------- + aniobj: AIS_InteractiveObject + aModel: Aspect_TypeOfFacingModel (optional, default to Aspect_TOFM_BOTH_SIDE) + + Return + ------- + None + + Description + ----------- + change the current facing model apply on polygons for SetColor(), SetTransparency(), SetMaterial() methods default facing model is Aspect_TOFM_TWO_SIDE. This mean that attributes is applying both on the front and back face. + + """ + return _AIS.AIS_InteractiveContext_SetCurrentFacingModel(self, *args) + + def SetCurrentObject(self, *args): + r""" + + Parameters + ---------- + theIObj: AIS_InteractiveObject + theToUpdateViewer: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_InteractiveContext_SetCurrentObject(self, *args) + + def SetDefaultDrawer(self, *args): + r""" + + Parameters + ---------- + theDrawer: Prs3d_Drawer + + Return + ------- + None + + Description + ----------- + Sets the default attribute manager; should be set at context creation time. Warning - this setter doesn't update links to the default drawer of already displayed objects!. + + """ + return _AIS.AIS_InteractiveContext_SetDefaultDrawer(self, *args) + + def SetDeviationAngle(self, *args): + r""" + + Parameters + ---------- + theIObj: AIS_InteractiveObject + theAngle: float + theToUpdateViewer: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theAngle: float + + Return + ------- + None + + Description + ----------- + default 20 degrees. + + """ + return _AIS.AIS_InteractiveContext_SetDeviationAngle(self, *args) + + def SetDeviationCoefficient(self, *args): + r""" + + Parameters + ---------- + theIObj: AIS_InteractiveObject + theCoefficient: float + theToUpdateViewer: bool + + Return + ------- + None + + Description + ----------- + Sets the deviation coefficient theCoefficient. Drawings of curves or patches are made with respect to a maximal chordal deviation. A Deviation coefficient is used in the shading display mode. The shape is seen decomposed into triangles. These are used to calculate reflection of light from the surface of the object. The triangles are formed from chords of the curves in the shape. The deviation coefficient theCoefficient gives the highest value of the angle with which a chord can deviate from a tangent to a curve. If this limit is reached, a new triangle is begun. This deviation is absolute and is set through the method: SetMaximalChordialDeviation. The default value is 0.001. In drawing shapes, however, you are allowed to ask for a relative deviation. This deviation will be: SizeOfObject * DeviationCoefficient. + + Parameters + ---------- + theCoefficient: float + + Return + ------- + None + + Description + ----------- + Sets the deviation coefficient theCoefficient. Drawings of curves or patches are made with respect to a maximal chordal deviation. A Deviation coefficient is used in the shading display mode. The shape is seen decomposed into triangles. These are used to calculate reflection of light from the surface of the object. The triangles are formed from chords of the curves in the shape. The deviation coefficient theCoefficient gives the highest value of the angle with which a chord can deviate from a tangent to a curve. If this limit is reached, a new triangle is begun. This deviation is absolute and is set through the method: SetMaximalChordialDeviation. The default value is 0.001. In drawing shapes, however, you are allowed to ask for a relative deviation. This deviation will be: SizeOfObject * DeviationCoefficient. + + """ + return _AIS.AIS_InteractiveContext_SetDeviationCoefficient(self, *args) + + def SetDisplayMode(self, *args): + r""" + + Parameters + ---------- + theMode: int + theToUpdateViewer: bool + + Return + ------- + None + + Description + ----------- + Sets the display mode of seen Interactive Objects (which have no overridden Display Mode). + + Parameters + ---------- + theIObj: AIS_InteractiveObject + theMode: int + theToUpdateViewer: bool + + Return + ------- + None + + Description + ----------- + Sets the display mode of seen Interactive Objects. theMode provides the display mode index of the entity theIObj. + + """ + return _AIS.AIS_InteractiveContext_SetDisplayMode(self, *args) + + def SetDisplayPriority(self, *args): + r""" + + Parameters + ---------- + theIObj: AIS_InteractiveObject + thePriority: Graphic3d_DisplayPriority + + Return + ------- + None + + Description + ----------- + Sets the display priority of the seen parts presentation of the Object. + + Parameters + ---------- + theIObj: AIS_InteractiveObject + thePriority: int + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_InteractiveContext_SetDisplayPriority(self, *args) + + def SetFilterType(self, *args): + r""" + + Parameters + ---------- + theFilterType: SelectMgr_FilterType + + Return + ------- + None + + Description + ----------- + Sets the context selection filter type. SelectMgr_TypeFilter_OR selection filter is used by default. + Parameter theFilterType the filter type. + + """ + return _AIS.AIS_InteractiveContext_SetFilterType(self, *args) + + def SetHiddenLineAspect(self, *args): + r""" + + Parameters + ---------- + theAspect: Prs3d_LineAspect + + Return + ------- + None + + Description + ----------- + Sets the hidden line aspect anAspect. Aspect defines display attributes for hidden lines in HLR projections. + + """ + return _AIS.AIS_InteractiveContext_SetHiddenLineAspect(self, *args) + + def SetHighlightStyle(self, *args): + r""" + + Parameters + ---------- + theStyleType: Prs3d_TypeOfHighlight + theStyle: Prs3d_Drawer + + Return + ------- + None + + Description + ----------- + Setup highlight style settings. Tip: it is better modifying existing style returned by method HighlightStyle() instead of creating a new Prs3d_Drawer to avoid unexpected results due misconfiguration. //! If a new highlight style is created, its presentation Zlayer should be checked, otherwise highlighting might not work as expected. + + Parameters + ---------- + theStyle: Prs3d_Drawer + + Return + ------- + None + + Description + ----------- + Setup the style of dynamic highlighting corrsponding to Prs3d_TypeOfHighlight_Selected. This is just a short-cut to SetHighlightStyle(Prs3d_TypeOfHighlight_Dynamic,theStyle). + + """ + return _AIS.AIS_InteractiveContext_SetHighlightStyle(self, *args) + + def SetIsoNumber(self, *args): + r""" + + Parameters + ---------- + NbIsos: int + WhichIsos: AIS_TypeOfIso (optional, default to AIS_TOI_Both) + + Return + ------- + None + + Description + ----------- + Sets the number of U and V isoparameters displayed. + + """ + return _AIS.AIS_InteractiveContext_SetIsoNumber(self, *args) + + def SetLocalAttributes(self, *args): + r""" + + Parameters + ---------- + theIObj: AIS_InteractiveObject + theDrawer: Prs3d_Drawer + theToUpdateViewer: bool + + Return + ------- + None + + Description + ----------- + Sets the graphic attributes of the interactive object, such as visualization mode, color, and material. + + """ + return _AIS.AIS_InteractiveContext_SetLocalAttributes(self, *args) + + def SetLocation(self, *args): + r""" + + Parameters + ---------- + theObject: AIS_InteractiveObject + theLocation: TopLoc_Location + + Return + ------- + None + + Description + ----------- + Puts the location on the initial graphic representation and the selection for the Object. + + """ + return _AIS.AIS_InteractiveContext_SetLocation(self, *args) + + def SetMaterial(self, *args): + r""" + + Parameters + ---------- + theIObj: AIS_InteractiveObject + theMaterial: Graphic3d_MaterialAspect + theToUpdateViewer: bool + + Return + ------- + None + + Description + ----------- + Provides the type of material setting for the view of the Object. + + """ + return _AIS.AIS_InteractiveContext_SetMaterial(self, *args) + + def SetPickingStrategy(self, *args): + r""" + + Parameters + ---------- + theStrategy: SelectMgr_PickingStrategy + + Return + ------- + None + + Description + ----------- + Setup picking strategy - which entities detected by picking line will be accepted, considering Selection Filters. By default (SelectMgr_PickingStrategy_FirstAcceptable), Selection Filters reduce the list of entities so that the context accepts topmost in remaining. //! This means that entities behind non-selectable (by filters) parts can be picked by user. If this behavior is undesirable, and user wants that non-selectable (by filters) parts should remain an obstacle for picking, SelectMgr_PickingStrategy_OnlyTopmost can be set instead. //! Notice, that since Selection Manager operates only objects registered in it, SelectMgr_PickingStrategy_OnlyTopmost will NOT prevent picking entities behind visible by unregistered in Selection Manager presentations (e.g. deactivated). Hence, SelectMgr_PickingStrategy_OnlyTopmost changes behavior only with Selection Filters enabled. + + """ + return _AIS.AIS_InteractiveContext_SetPickingStrategy(self, *args) + + def SetPixelTolerance(self, *args): + r""" + + Parameters + ---------- + thePrecision: int (optional, default to 2) + + Return + ------- + None + + Description + ----------- + Setup pixel tolerance for MoveTo() operation. + See also: MoveTo(). + + """ + return _AIS.AIS_InteractiveContext_SetPixelTolerance(self, *args) + + def SetPlaneSize(self, *args): + r""" + + Parameters + ---------- + theSizeX: float + theSizeY: float + theToUpdateViewer: bool + + Return + ------- + None + + Description + ----------- + Sets the plane size defined by the length in the X direction XSize and that in the Y direction YSize. + + Parameters + ---------- + theSize: float + theToUpdateViewer: bool + + Return + ------- + None + + Description + ----------- + Sets the plane size aSize. + + """ + return _AIS.AIS_InteractiveContext_SetPlaneSize(self, *args) + + def SetPolygonOffsets(self, *args): + r""" + + Parameters + ---------- + theIObj: AIS_InteractiveObject + theMode: int + theFactor: float + theUnits: float + theToUpdateViewer: bool + + Return + ------- + None + + Description + ----------- + Sets up polygon offsets for the given AIS_InteractiveObject. It simply calls AIS_InteractiveObject::SetPolygonOffsets(). + + """ + return _AIS.AIS_InteractiveContext_SetPolygonOffsets(self, *args) + + def SetSelected(self, *args): + r""" + + Parameters + ---------- + theOwners: SelectMgr_EntityOwner + theToUpdateViewer: bool + + Return + ------- + None + + Description + ----------- + Unhighlights previously selected owners and marks them as not selected. Marks owner given as selected and highlights it. Performs selection filters check. + + Parameters + ---------- + theObject: AIS_InteractiveObject + theToUpdateViewer: bool + + Return + ------- + None + + Description + ----------- + Puts the interactive object aniObj in the list of selected objects. Performs selection filters check. + + """ + return _AIS.AIS_InteractiveContext_SetSelected(self, *args) + + def SetSelectedAspect(self, *args): + r""" + + Parameters + ---------- + theAspect: Prs3d_BasicAspect + theToUpdateViewer: bool + + Return + ------- + None + + Description + ----------- + Sets the graphic basic aspect to the current presentation of ALL selected objects. + + """ + return _AIS.AIS_InteractiveContext_SetSelectedAspect(self, *args) + + def SetSelectedState(self, *args): + r""" + + Parameters + ---------- + theOwner: SelectMgr_EntityOwner + theIsSelected: bool + + Return + ------- + bool + + Description + ----------- + Updates Selected state of specified owner without calling HilightSelected(). Has no effect if Selected state is not changed, and redirects to AddOrRemoveSelected() otherwise. + Parameter theOwner owner object to set selected state + Parameter theIsSelected new selected state + Return: True if Selected state has been changed. + + """ + return _AIS.AIS_InteractiveContext_SetSelectedState(self, *args) + + def SetSelection(self, *args): + r""" + + Parameters + ---------- + theSelection: AIS_Selection + + Return + ------- + None + + Description + ----------- + Sets selection instance to manipulate a container of selected owners + Parameter theSelection an instance of the selection. + + """ + return _AIS.AIS_InteractiveContext_SetSelection(self, *args) + + def SetSelectionModeActive(self, *args): + r""" + + Parameters + ---------- + theObj: AIS_InteractiveObject + theMode: int + theToActivate: bool + theConcurrency: AIS_SelectionModesConcurrency (optional, default to AIS_SelectionModesConcurrency_Multiple) + theIsForce: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + Activates or deactivates the selection mode for specified object. Has no effect if selection mode was already active/deactivated. + Parameter theObj object to activate/deactivate selection mode + Parameter theMode selection mode to activate/deactivate; deactivation of -1 selection mode will effectively deactivate all selection modes; activation of -1 selection mode with AIS_SelectionModesConcurrency_Single will deactivate all selection modes, and will has no effect otherwise + Parameter theToActivate activation/deactivation flag + Parameter theConcurrency specifies how to handle already activated selection modes; default value (AIS_SelectionModesConcurrency_Multiple) means active selection modes should be left as is, AIS_SelectionModesConcurrency_Single can be used if only one selection mode is expected to be active and AIS_SelectionModesConcurrency_GlobalOrLocal can be used if either AIS_InteractiveObject::GlobalSelectionMode() or any combination of Local selection modes is acceptable; this value is considered only if theToActivate set to True + Parameter theIsForce when set to True, the display status will be ignored while activating selection mode. + + """ + return _AIS.AIS_InteractiveContext_SetSelectionModeActive(self, *args) + + def SetSelectionSensitivity(self, *args): + r""" + + Parameters + ---------- + theObject: AIS_InteractiveObject + theMode: int + theNewSensitivity: int + + Return + ------- + None + + Description + ----------- + Allows to manage sensitivity of a particular selection of interactive object theObject and changes previous sensitivity value of all sensitive entities in selection with theMode to the given theNewSensitivity. + + """ + return _AIS.AIS_InteractiveContext_SetSelectionSensitivity(self, *args) + + def SetSelectionStyle(self, *args): + r""" + + Parameters + ---------- + theStyle: Prs3d_Drawer + + Return + ------- + None + + Description + ----------- + Setup the style of selection highlighting. This is just a short-cut to SetHighlightStyle(Prs3d_TypeOfHighlight_Selected,theStyle). + + """ + return _AIS.AIS_InteractiveContext_SetSelectionStyle(self, *args) + + def SetSubIntensityColor(self, *args): + r""" + + Parameters + ---------- + theColor: Quantity_Color + + Return + ------- + None + + Description + ----------- + Sub-intensity allows temporary highlighting of particular objects with specified color in a manner of selection highlight, but without actual selection (e.g., global status and owner's selection state will not be updated). The method sets up the color for such highlighting. By default, this is Quantity_NOC_GRAY40. + + """ + return _AIS.AIS_InteractiveContext_SetSubIntensityColor(self, *args) + + def SetToHilightSelected(self, *args): + r""" + + Parameters + ---------- + toHilight: bool + + Return + ------- + None + + Description + ----------- + Specify whether selected object must be hilighted when mouse cursor is moved above it (in MoveTo method). By default this value is false and selected object is not hilighted in this case. + See also: MoveTo(). + + """ + return _AIS.AIS_InteractiveContext_SetToHilightSelected(self, *args) + + def SetTransformPersistence(self, *args): + r""" + + Parameters + ---------- + theObject: AIS_InteractiveObject + theTrsfPers: Graphic3d_TransformPers + + Return + ------- + None + + Description + ----------- + Sets transform persistence. + + """ + return _AIS.AIS_InteractiveContext_SetTransformPersistence(self, *args) + + def SetTransparency(self, *args): + r""" + + Parameters + ---------- + theIObj: AIS_InteractiveObject + theValue: float + theToUpdateViewer: bool + + Return + ------- + None + + Description + ----------- + Provides the transparency settings for viewing the Object. The transparency value aValue may be between 0.0, opaque, and 1.0, fully transparent. + + """ + return _AIS.AIS_InteractiveContext_SetTransparency(self, *args) + + def SetTrihedronSize(self, *args): + r""" + + Parameters + ---------- + theSize: float + theToUpdateViewer: bool + + Return + ------- + None + + Description + ----------- + Sets the size aSize of the trihedron. Is used to change the default value 100 mm for display of trihedra. Use of this function in one of your own interactive objects requires a call to the Compute function of the new class. This will recalculate the presentation for every trihedron displayed. + + """ + return _AIS.AIS_InteractiveContext_SetTrihedronSize(self, *args) + + def SetViewAffinity(self, *args): + r""" + + Parameters + ---------- + theIObj: AIS_InteractiveObject + theView: V3d_View + theIsVisible: bool + + Return + ------- + None + + Description + ----------- + Setup object visibility in specified view. Has no effect if object is not displayed in this context. + + """ + return _AIS.AIS_InteractiveContext_SetViewAffinity(self, *args) + + def SetWidth(self, *args): + r""" + + Parameters + ---------- + theIObj: AIS_InteractiveObject + theValue: float + theToUpdateViewer: bool + + Return + ------- + None + + Description + ----------- + Sets the width of the Object. + + """ + return _AIS.AIS_InteractiveContext_SetWidth(self, *args) + + def SetZLayer(self, *args): + r""" + + Parameters + ---------- + theIObj: AIS_InteractiveObject + theLayerId: int + + Return + ------- + None + + Description + ----------- + Set Z layer id for interactive object. The Z layers can be used to display temporarily presentations of some object in front of the other objects in the scene. The ids for Z layers are generated by V3d_Viewer. + + """ + return _AIS.AIS_InteractiveContext_SetZLayer(self, *args) + + def ShiftSelect(self, *args): + r""" + + Parameters + ---------- + theToUpdateViewer: bool + + Return + ------- + AIS_StatusOfPick + + Description + ----------- + Adds the last detected to the list of previous picked. If the last detected was already declared as picked, removes it from the Picked List. + See also: MoveTo(). + + Parameters + ---------- + thePolyline: TColgp_Array1OfPnt2d + theView: V3d_View + theToUpdateViewer: bool + + Return + ------- + AIS_StatusOfPick + + Description + ----------- + Adds the last detected to the list of previous picked. If the last detected was already declared as picked, removes it from the Picked List. + + Parameters + ---------- + theXPMin: int + theYPMin: int + theXPMax: int + theYPMax: int + theView: V3d_View + theToUpdateViewer: bool + + Return + ------- + AIS_StatusOfPick + + Description + ----------- + Rectangle of selection; adds new detected entities into the picked list, removes the detected entities that were already stored. + + """ + return _AIS.AIS_InteractiveContext_ShiftSelect(self, *args) + + def SubIntensityColor(self, *args): + r""" + Return + ------- + Quantity_Color + + Description + ----------- + Sub-intensity allows temporary highlighting of particular objects with specified color in a manner of selection highlight, but without actual selection (e.g., global status and owner's selection state will not be updated). The method returns the color of such highlighting. By default, it is Quantity_NOC_GRAY40. + + """ + return _AIS.AIS_InteractiveContext_SubIntensityColor(self, *args) + + def SubIntensityOff(self, *args): + r""" + + Parameters + ---------- + theIObj: AIS_InteractiveObject + theToUpdateViewer: bool + + Return + ------- + None + + Description + ----------- + Removes the subintensity option for the entity. If a local context is open, the presentation of the Interactive Object activates the selection mode. + + """ + return _AIS.AIS_InteractiveContext_SubIntensityOff(self, *args) + + def SubIntensityOn(self, *args): + r""" + + Parameters + ---------- + theIObj: AIS_InteractiveObject + theToUpdateViewer: bool + + Return + ------- + None + + Description + ----------- + Highlights, and removes highlights from, the displayed object which is displayed at Neutral Point with subintensity color. Available only for active local context. There is no effect if there is no local context. If a local context is open, the presentation of the Interactive Object activates the selection mode. + + """ + return _AIS.AIS_InteractiveContext_SubIntensityOn(self, *args) + + def ToHilightSelected(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return value specified whether selected object must be hilighted when mouse cursor is moved above it + See also: MoveTo(). + + """ + return _AIS.AIS_InteractiveContext_ToHilightSelected(self, *args) + + def TrihedronSize(self, *args): + r""" + Return + ------- + float + + Description + ----------- + returns the current value of trihedron size. + + """ + return _AIS.AIS_InteractiveContext_TrihedronSize(self, *args) + + def Unhilight(self, *args): + r""" + + Parameters + ---------- + theIObj: AIS_InteractiveObject + theToUpdateViewer: bool + + Return + ------- + None + + Description + ----------- + Removes hilighting from the Object. + + """ + return _AIS.AIS_InteractiveContext_Unhilight(self, *args) + + def UnhilightCurrents(self, *args): + r""" + + Parameters + ---------- + theToUpdateViewer: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_InteractiveContext_UnhilightCurrents(self, *args) + + def UnhilightSelected(self, *args): + r""" + + Parameters + ---------- + theToUpdateViewer: bool + + Return + ------- + None + + Description + ----------- + Removes highlighting from selected objects. + + """ + return _AIS.AIS_InteractiveContext_UnhilightSelected(self, *args) + + def UnsetColor(self, *args): + r""" + + Parameters + ---------- + theIObj: AIS_InteractiveObject + theToUpdateViewer: bool + + Return + ------- + None + + Description + ----------- + Removes the color selection for the selected entity. + + """ + return _AIS.AIS_InteractiveContext_UnsetColor(self, *args) + + def UnsetDisplayMode(self, *args): + r""" + + Parameters + ---------- + theIObj: AIS_InteractiveObject + theToUpdateViewer: bool + + Return + ------- + None + + Description + ----------- + Unsets the display mode of seen Interactive Objects. + + """ + return _AIS.AIS_InteractiveContext_UnsetDisplayMode(self, *args) + + def UnsetLocalAttributes(self, *args): + r""" + + Parameters + ---------- + theIObj: AIS_InteractiveObject + theToUpdateViewer: bool + + Return + ------- + None + + Description + ----------- + Removes the settings for local attributes of the Object and returns to defaults. + + """ + return _AIS.AIS_InteractiveContext_UnsetLocalAttributes(self, *args) + + def UnsetMaterial(self, *args): + r""" + + Parameters + ---------- + theIObj: AIS_InteractiveObject + theToUpdateViewer: bool + + Return + ------- + None + + Description + ----------- + Removes the type of material setting for viewing the Object. + + """ + return _AIS.AIS_InteractiveContext_UnsetMaterial(self, *args) + + def UnsetTransparency(self, *args): + r""" + + Parameters + ---------- + theIObj: AIS_InteractiveObject + theToUpdateViewer: bool + + Return + ------- + None + + Description + ----------- + Removes the transparency settings for viewing the Object. + + """ + return _AIS.AIS_InteractiveContext_UnsetTransparency(self, *args) + + def UnsetWidth(self, *args): + r""" + + Parameters + ---------- + theIObj: AIS_InteractiveObject + theToUpdateViewer: bool + + Return + ------- + None + + Description + ----------- + Removes the width setting of the Object. + + """ + return _AIS.AIS_InteractiveContext_UnsetWidth(self, *args) + + def Update(self, *args): + r""" + + Parameters + ---------- + theIObj: AIS_InteractiveObject + theUpdateViewer: bool + + Return + ------- + None + + Description + ----------- + Updates displayed interactive object by checking and recomputing its flagged as 'to be recomputed' presentation and selection structures. This method does not force any recomputation on its own. The method recomputes selections even if they are loaded without activation in particular selector. + + """ + return _AIS.AIS_InteractiveContext_Update(self, *args) + + def UpdateCurrent(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_InteractiveContext_UpdateCurrent(self, *args) + + def UpdateCurrentViewer(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Updates the current viewer. + + """ + return _AIS.AIS_InteractiveContext_UpdateCurrentViewer(self, *args) + + def UpdateSelected(self, *args): + r""" + + Parameters + ---------- + theToUpdateViewer: bool + + Return + ------- + None + + Description + ----------- + Updates the list of selected objects: i.e. highlights the newly selected ones and unhighlights previously selected objects. + See also: HilightSelected(). + + """ + return _AIS.AIS_InteractiveContext_UpdateSelected(self, *args) + + def Width(self, *args): + r""" + + Parameters + ---------- + aniobj: AIS_InteractiveObject + + Return + ------- + float + + Description + ----------- + Returns the width of the Interactive Object in the interactive context. + + """ + return _AIS.AIS_InteractiveContext_Width(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_AIS_InteractiveContext_DownCast(t) + + + __repr__ = _dumps_object + + @methodnotwrapped + def EntityOwners(self): + pass + + @methodnotwrapped + def Status(self): + pass + + __swig_destroy__ = _AIS.delete_AIS_InteractiveContext + +# Register AIS_InteractiveContext in _AIS: +_AIS.AIS_InteractiveContext_swigregister(AIS_InteractiveContext) +class AIS_InteractiveObject(OCC.Core.SelectMgr.SelectMgr_SelectableObject): + 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 ClearOwner(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Each Interactive Object has methods which allow us to attribute an Owner to it in the form of a Transient. This method removes the owner from the graphic entity. + + """ + return _AIS.AIS_InteractiveObject_ClearOwner(self, *args) + + def DumpJson(self, depth=-1): + r""" + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + """ + return _AIS.AIS_InteractiveObject_DumpJson(self, depth) + + def GetContext(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the context pointer to the interactive context. + + """ + return _AIS.AIS_InteractiveObject_GetContext(self, *args) + + def GetOwner(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the owner of the Interactive Object. The owner can be a shape for a set of sub-shapes or a sub-shape for sub-shapes which it is composed of, and takes the form of a transient. There are two types of owners: - Direct owners, decomposition shapes such as edges, wires, and faces. - Users, presentable objects connecting to sensitive primitives, or a shape which has been decomposed. + + """ + return _AIS.AIS_InteractiveObject_GetOwner(self, *args) + + def HasInteractiveContext(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Indicates whether the Interactive Object has a pointer to an interactive context. + + """ + return _AIS.AIS_InteractiveObject_HasInteractiveContext(self, *args) + + def HasOwner(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns true if the object has an owner attributed to it. The owner can be a shape for a set of sub-shapes or a sub-shape for sub-shapes which it is composed of, and takes the form of a transient. + + """ + return _AIS.AIS_InteractiveObject_HasOwner(self, *args) + + def HasPresentation(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True when this object has a presentation in the current DisplayMode(). + + """ + return _AIS.AIS_InteractiveObject_HasPresentation(self, *args) + + def InteractiveContext(self, *args): + r""" + Return + ------- + AIS_InteractiveContext * + + Description + ----------- + Returns the context pointer to the interactive context. + + """ + return _AIS.AIS_InteractiveObject_InteractiveContext(self, *args) + + def Presentation(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the current presentation of this object according to the current DisplayMode(). + + """ + return _AIS.AIS_InteractiveObject_Presentation(self, *args) + + def ProcessDragging(self, *args): + r""" + + Parameters + ---------- + theCtx: AIS_InteractiveContext + theView: V3d_View + theOwner: SelectMgr_EntityOwner + theDragFrom: Graphic3d_Vec2i + theDragTo: Graphic3d_Vec2i + theAction: AIS_DragAction + + Return + ------- + bool + + Description + ----------- + Drag object in the viewer. + Input parameter: theCtx interactive context + Input parameter: theView active View + Input parameter: theOwner the owner of detected entity + Input parameter: theDragFrom drag start point + Input parameter: theDragTo drag end point + Input parameter: theAction drag action + Return: False if object rejects dragging action (e.g. AIS_DragAction_Start). + + """ + return _AIS.AIS_InteractiveObject_ProcessDragging(self, *args) + + def Redisplay(self, *args): + r""" + + Parameters + ---------- + AllModes: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + Updates the active presentation; if = Standard_True all the presentations inside are recomputed. IMPORTANT: It is preferable to call Redisplay method of corresponding AIS_InteractiveContext instance for cases when it is accessible. This method just redirects call to myCTXPtr, so this class field must be up to date for proper result. + + """ + return _AIS.AIS_InteractiveObject_Redisplay(self, *args) + + def SetAspect(self, *args): + r""" + + Parameters + ---------- + anAspect: Prs3d_BasicAspect + + Return + ------- + None + + Description + ----------- + Sets the graphic basic aspect to the current presentation. + + """ + return _AIS.AIS_InteractiveObject_SetAspect(self, *args) + + def SetContext(self, *args): + r""" + + Parameters + ---------- + aCtx: AIS_InteractiveContext + + Return + ------- + None + + Description + ----------- + Sets the interactive context aCtx and provides a link to the default drawing tool or 'Drawer' if there is none. + + """ + return _AIS.AIS_InteractiveObject_SetContext(self, *args) + + def SetOwner(self, *args): + r""" + + Parameters + ---------- + theApplicativeEntity: Standard_Transient + + Return + ------- + None + + Description + ----------- + Allows you to attribute the owner theApplicativeEntity to an Interactive Object. This can be a shape for a set of sub-shapes or a sub-shape for sub-shapes which it is composed of. The owner takes the form of a transient. + + """ + return _AIS.AIS_InteractiveObject_SetOwner(self, *args) + + def Signature(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Specifies additional characteristics of Interactive Object of Type(); -1 by default. Among the datums, this signature is attributed to the shape. The remaining datums have the following default signatures: - Point signature 1 - Axis signature 2 - Trihedron signature 3 - PlaneTrihedron signature 4 - Line signature 5 - Circle signature 6 - Plane signature 7. + + """ + return _AIS.AIS_InteractiveObject_Signature(self, *args) + + def Type(self, *args): + r""" + Return + ------- + AIS_KindOfInteractive + + Description + ----------- + Returns the kind of Interactive Object; AIS_KindOfInteractive_None by default. + + """ + return _AIS.AIS_InteractiveObject_Type(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_AIS_InteractiveObject_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _AIS.delete_AIS_InteractiveObject + +# Register AIS_InteractiveObject in _AIS: +_AIS.AIS_InteractiveObject_swigregister(AIS_InteractiveObject) +class AIS_LightSourceOwner(OCC.Core.SelectMgr.SelectMgr_EntityOwner): + 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 + ---------- + theObject: AIS_LightSource + thePriority: int (optional, default to 5) + + Return + ------- + None + + Description + ----------- + Main constructor. + + """ + _AIS.AIS_LightSourceOwner_swiginit(self, _AIS.new_AIS_LightSourceOwner(*args)) + + __repr__ = _dumps_object + + __swig_destroy__ = _AIS.delete_AIS_LightSourceOwner + +# Register AIS_LightSourceOwner in _AIS: +_AIS.AIS_LightSourceOwner_swigregister(AIS_LightSourceOwner) +class AIS_ManipulatorOwner(OCC.Core.SelectMgr.SelectMgr_EntityOwner): + 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 + ---------- + theSelObject: SelectMgr_SelectableObject + theIndex: int + theMode: AIS_ManipulatorMode + thePriority: int (optional, default to 0) + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _AIS.AIS_ManipulatorOwner_swiginit(self, _AIS.new_AIS_ManipulatorOwner(*args)) + + def Index(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Return: index of manipulator axis. + + """ + return _AIS.AIS_ManipulatorOwner_Index(self, *args) + + def Mode(self, *args): + r""" + Return + ------- + AIS_ManipulatorMode + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_ManipulatorOwner_Mode(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_AIS_ManipulatorOwner_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _AIS.delete_AIS_ManipulatorOwner + +# Register AIS_ManipulatorOwner in _AIS: +_AIS.AIS_ManipulatorOwner_swigregister(AIS_ManipulatorOwner) +class AIS_PointCloudOwner(OCC.Core.SelectMgr.SelectMgr_EntityOwner): + 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 + ---------- + theOrigin: AIS_PointCloud + + Return + ------- + None + + Description + ----------- + Main constructor. + + """ + _AIS.AIS_PointCloudOwner_swiginit(self, _AIS.new_AIS_PointCloudOwner(*args)) + + def DetectedPoints(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Return last detected points. WARNING! Indexation starts with 0 (shifted by -1 comparing to Graphic3d_ArrayOfPoints::Vertice()). + + """ + return _AIS.AIS_PointCloudOwner_DetectedPoints(self, *args) + + def SelectedPoints(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Return selected points. WARNING! Indexation starts with 0 (shifted by -1 comparing to Graphic3d_ArrayOfPoints::Vertice()). + + """ + return _AIS.AIS_PointCloudOwner_SelectedPoints(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _AIS.delete_AIS_PointCloudOwner + +# Register AIS_PointCloudOwner in _AIS: +_AIS.AIS_PointCloudOwner_swigregister(AIS_PointCloudOwner) +class AIS_Selection(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 a new selection. + + """ + _AIS.AIS_Selection_swiginit(self, _AIS.new_AIS_Selection(*args)) + + def AddSelect(self, *args): + r""" + + Parameters + ---------- + theObject: SelectMgr_EntityOwner + + Return + ------- + AIS_SelectStatus + + Description + ----------- + the object is always add int the selection. faster when the number of objects selected is great. + + """ + return _AIS.AIS_Selection_AddSelect(self, *args) + + def Clear(self, *args): + r""" + Return + ------- + None + + Description + ----------- + removes all the object of the selection. + + """ + return _AIS.AIS_Selection_Clear(self, *args) + + def ClearAndSelect(self, *args): + r""" + + Parameters + ---------- + theObject: SelectMgr_EntityOwner + theFilter: SelectMgr_Filter + theIsDetected: bool + + Return + ------- + None + + Description + ----------- + clears the selection and adds the object in the selection. + Input parameter: theObject element to change selection state + Input parameter: theFilter context filter + Input parameter: theIsDetected flag of object detection. + + """ + return _AIS.AIS_Selection_ClearAndSelect(self, *args) + + def Extent(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Return the number of selected objects. + + """ + return _AIS.AIS_Selection_Extent(self, *args) + + def Init(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Start iteration through selected objects. + + """ + return _AIS.AIS_Selection_Init(self, *args) + + def IsEmpty(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return true if list of selected objects is empty. + + """ + return _AIS.AIS_Selection_IsEmpty(self, *args) + + def IsSelected(self, *args): + r""" + + Parameters + ---------- + theObject: SelectMgr_EntityOwner + + Return + ------- + bool + + Description + ----------- + checks if the object is in the selection. + + """ + return _AIS.AIS_Selection_IsSelected(self, *args) + + def More(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return true if iterator points to selected object. + + """ + return _AIS.AIS_Selection_More(self, *args) + + def Next(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Continue iteration through selected objects. + + """ + return _AIS.AIS_Selection_Next(self, *args) + + def Objects(self, *args): + r""" + Return + ------- + AIS_NListOfEntityOwner + + Description + ----------- + Return the list of selected objects. + + """ + return _AIS.AIS_Selection_Objects(self, *args) + + def Select(self, *args): + r""" + + Parameters + ---------- + theOwner: SelectMgr_EntityOwner + theFilter: SelectMgr_Filter + theSelScheme: AIS_SelectionScheme + theIsDetected: bool + + Return + ------- + AIS_SelectStatus + + Description + ----------- + if the object is not yet in the selection, it will be added. if the object is already in the selection, it will be removed. + Input parameter: theOwner element to change selection state + Input parameter: theFilter context filter + Input parameter: theSelScheme selection scheme + Input parameter: theIsDetected flag of object detection + Return: result of selection. + + """ + return _AIS.AIS_Selection_Select(self, *args) + + def SelectOwners(self, *args): + r""" + + Parameters + ---------- + thePickedOwners: AIS_NArray1OfEntityOwner + theSelScheme: AIS_SelectionScheme + theToAllowSelOverlap: bool + theFilter: SelectMgr_Filter + + Return + ------- + None + + Description + ----------- + Select or deselect owners depending on the selection scheme. + Input parameter: thePickedOwners elements to change selection state + Input parameter: theSelScheme selection scheme, defines how owner is selected + Input parameter: theToAllowSelOverlap selection flag, if true - overlapped entities are allowed + Input parameter: theFilter context filter to skip not acceptable owners. + + """ + return _AIS.AIS_Selection_SelectOwners(self, *args) + + def Value(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Return selected object at iterator position. + + """ + return _AIS.AIS_Selection_Value(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_AIS_Selection_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _AIS.delete_AIS_Selection + +# Register AIS_Selection in _AIS: +_AIS.AIS_Selection_swigregister(AIS_Selection) +class AIS_TrihedronOwner(OCC.Core.SelectMgr.SelectMgr_EntityOwner): + 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 + ---------- + theSelObject: SelectMgr_SelectableObject + theDatumPart: Prs3d_DatumParts + thePriority: int + + Return + ------- + None + + Description + ----------- + Creates an owner of AIS_Trihedron object. + + """ + _AIS.AIS_TrihedronOwner_swiginit(self, _AIS.new_AIS_TrihedronOwner(*args)) + + def DatumPart(self, *args): + r""" + Return + ------- + Prs3d_DatumParts + + Description + ----------- + Returns the datum part identifier. + + """ + return _AIS.AIS_TrihedronOwner_DatumPart(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_AIS_TrihedronOwner_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _AIS.delete_AIS_TrihedronOwner + +# Register AIS_TrihedronOwner in _AIS: +_AIS.AIS_TrihedronOwner_swigregister(AIS_TrihedronOwner) +class AIS_TypeFilter(OCC.Core.SelectMgr.SelectMgr_Filter): + 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 + ---------- + aGivenKind: AIS_KindOfInteractive + + Return + ------- + None + + Description + ----------- + Initializes filter for type, aGivenKind. + + """ + _AIS.AIS_TypeFilter_swiginit(self, _AIS.new_AIS_TypeFilter(*args)) + + + @staticmethod + def DownCast(t): + return Handle_AIS_TypeFilter_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _AIS.delete_AIS_TypeFilter + +# Register AIS_TypeFilter in _AIS: +_AIS.AIS_TypeFilter_swigregister(AIS_TypeFilter) +class AIS_ViewController(OCC.Core.Aspect.Aspect_WindowInputListener): + 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 + ----------- + Empty constructor. + + """ + _AIS.AIS_ViewController_swiginit(self, _AIS.new_AIS_ViewController(*args)) + + def AbortViewAnimation(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Interrupt active view animation. + + """ + return _AIS.AIS_ViewController_AbortViewAnimation(self, *args) + + def ChangeInputBuffer(self, *args): + r""" + + Parameters + ---------- + theType: AIS_ViewInputBufferType + + Return + ------- + AIS_ViewInputBuffer + + Description + ----------- + Return input buffer. + + """ + return _AIS.AIS_ViewController_ChangeInputBuffer(self, *args) + + def ChangeMouseGestureMap(self, *args): + r""" + Return + ------- + AIS_MouseGestureMap + + Description + ----------- + Return map defining mouse gestures. + + """ + return _AIS.AIS_ViewController_ChangeMouseGestureMap(self, *args) + + def ChangeMouseSelectionSchemes(self, *args): + r""" + Return + ------- + AIS_MouseSelectionSchemeMap + + Description + ----------- + Return map defining mouse gestures. + + """ + return _AIS.AIS_ViewController_ChangeMouseSelectionSchemes(self, *args) + + def FetchNavigationKeys(self, *args): + r""" + + Parameters + ---------- + theCrouchRatio: float + theRunRatio: float + + Return + ------- + AIS_WalkDelta + + Description + ----------- + Fetch active navigation actions. + + """ + return _AIS.AIS_ViewController_FetchNavigationKeys(self, *args) + + def FitAllAuto(self, *args): + r""" + + Parameters + ---------- + theCtx: AIS_InteractiveContext + theView: V3d_View + + Return + ------- + None + + Description + ----------- + Modify view camera to fit all objects. Default implementation fits either all visible and all selected objects (swapped on each call). + + """ + return _AIS.AIS_ViewController_FitAllAuto(self, *args) + + def FlushViewEvents(self, *args): + r""" + + Parameters + ---------- + theCtx: AIS_InteractiveContext + theView: V3d_View + theToHandle: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + Update buffer for rendering thread. This method is expected to be called within synchronization barrier between GUI and Rendering threads (e.g. GUI thread should be locked beforehand to avoid data races). + Parameter theCtx interactive context + Parameter theView active view + Parameter theToHandle if True, the HandleViewEvents() will be called. + + """ + return _AIS.AIS_ViewController_FlushViewEvents(self, *args) + + def GravityPoint(self, *args): + r""" + + Parameters + ---------- + theCtx: AIS_InteractiveContext + theView: V3d_View + + Return + ------- + gp_Pnt + + Description + ----------- + Compute rotation gravity center point depending on rotation mode. This method is expected to be called from rendering thread. + + """ + return _AIS.AIS_ViewController_GravityPoint(self, *args) + + def HandleViewEvents(self, *args): + r""" + + Parameters + ---------- + theCtx: AIS_InteractiveContext + theView: V3d_View + + Return + ------- + None + + Description + ----------- + Process events within rendering thread. + + """ + return _AIS.AIS_ViewController_HandleViewEvents(self, *args) + + def HasPreviousMoveTo(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return True if previous position of MoveTo has been defined. + + """ + return _AIS.AIS_ViewController_HasPreviousMoveTo(self, *args) + + def InputBuffer(self, *args): + r""" + + Parameters + ---------- + theType: AIS_ViewInputBufferType + + Return + ------- + AIS_ViewInputBuffer + + Description + ----------- + Return input buffer. + + """ + return _AIS.AIS_ViewController_InputBuffer(self, *args) + + def IsContinuousRedraw(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return True if continuous redrawing is enabled; False by default. This option would request a next viewer frame to be completely redrawn right after current frame is finished. + + """ + return _AIS.AIS_ViewController_IsContinuousRedraw(self, *args) + + def MinZoomDistance(self, *args): + r""" + Return + ------- + double + + Description + ----------- + Return minimal camera distance for zoom operation. + + """ + return _AIS.AIS_ViewController_MinZoomDistance(self, *args) + + def MouseAcceleration(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Return mouse input acceleration ratio in First Person mode; 1.0 by default. + + """ + return _AIS.AIS_ViewController_MouseAcceleration(self, *args) + + def MouseDoubleClickInterval(self, *args): + r""" + Return + ------- + double + + Description + ----------- + Return double click interval in seconds; 0.4 by default. + + """ + return _AIS.AIS_ViewController_MouseDoubleClickInterval(self, *args) + + def MouseGestureMap(self, *args): + r""" + Return + ------- + AIS_MouseGestureMap + + Description + ----------- + Return map defining mouse gestures. + + """ + return _AIS.AIS_ViewController_MouseGestureMap(self, *args) + + def MouseSelectionSchemes(self, *args): + r""" + Return + ------- + AIS_MouseSelectionSchemeMap + + Description + ----------- + Return map defining mouse selection schemes. + + """ + return _AIS.AIS_ViewController_MouseSelectionSchemes(self, *args) + + def NavigationMode(self, *args): + r""" + Return + ------- + AIS_NavigationMode + + Description + ----------- + Return camera navigation mode; AIS_NavigationMode_Orbit by default. + + """ + return _AIS.AIS_ViewController_NavigationMode(self, *args) + + def ObjectsAnimation(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Return objects animation; empty (but not NULL) animation by default. + + """ + return _AIS.AIS_ViewController_ObjectsAnimation(self, *args) + + def OnObjectDragged(self, *args): + r""" + + Parameters + ---------- + theCtx: AIS_InteractiveContext + theView: V3d_View + theAction: AIS_DragAction + + Return + ------- + None + + Description + ----------- + Callback called by handleMoveTo() on dragging object in 3D Viewer. This method is expected to be called from rendering thread. + + """ + return _AIS.AIS_ViewController_OnObjectDragged(self, *args) + + def OnSelectionChanged(self, *args): + r""" + + Parameters + ---------- + theCtx: AIS_InteractiveContext + theView: V3d_View + + Return + ------- + None + + Description + ----------- + Callback called by handleMoveTo() on Selection in 3D Viewer. This method is expected to be called from rendering thread. + + """ + return _AIS.AIS_ViewController_OnSelectionChanged(self, *args) + + def OnSubviewChanged(self, *args): + r""" + + Parameters + ---------- + theCtx: AIS_InteractiveContext + theOldView: V3d_View + theNewView: V3d_View + + Return + ------- + None + + Description + ----------- + Callback called by HandleViewEvents() on Selection of another (sub)view. This method is expected to be called from rendering thread. + + """ + return _AIS.AIS_ViewController_OnSubviewChanged(self, *args) + + def OrbitAcceleration(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Return orbit rotation acceleration ratio; 1.0 by default. + + """ + return _AIS.AIS_ViewController_OrbitAcceleration(self, *args) + + def PickAxis(self, *args): + r""" + + Parameters + ---------- + theTopPnt: gp_Pnt + theCtx: AIS_InteractiveContext + theView: V3d_View + theAxis: gp_Ax1 + + Return + ------- + bool + + Description + ----------- + Pick closest point by axis. This method is expected to be called from rendering thread. @param[out] theTopPnt result point + Input parameter: theCtx interactive context + Input parameter: theView active view + Input parameter: theAxis selection axis + Return: True if result has been found. + + """ + return _AIS.AIS_ViewController_PickAxis(self, *args) + + def PickPoint(self, *args): + r""" + + Parameters + ---------- + thePnt: gp_Pnt + theCtx: AIS_InteractiveContext + theView: V3d_View + theCursor: Graphic3d_Vec2i + theToStickToPickRay: bool + + Return + ------- + bool + + Description + ----------- + Pick closest point under mouse cursor. This method is expected to be called from rendering thread. @param[out] thePnt result point + Input parameter: theCtx interactive context + Input parameter: theView active view + Input parameter: theCursor mouse cursor + Input parameter: theToStickToPickRay when True, the result point will lie on picking ray + Return: True if result has been found. + + """ + return _AIS.AIS_ViewController_PickPoint(self, *args) + + def PreviousMoveTo(self, *args): + r""" + Return + ------- + Graphic3d_Vec2i + + Description + ----------- + Return previous position of MoveTo event in 3D viewer. + + """ + return _AIS.AIS_ViewController_PreviousMoveTo(self, *args) + + def ResetPreviousMoveTo(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Reset previous position of MoveTo. + + """ + return _AIS.AIS_ViewController_ResetPreviousMoveTo(self, *args) + + def ResetViewInput(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Reset input state (pressed keys, mouse buttons, etc.) e.g. on window focus loss. This method is expected to be called from UI thread. + + """ + return _AIS.AIS_ViewController_ResetViewInput(self, *args) + + def RotationMode(self, *args): + r""" + Return + ------- + AIS_RotationMode + + Description + ----------- + Return camera rotation mode, AIS_RotationMode_BndBoxActive by default. + + """ + return _AIS.AIS_ViewController_RotationMode(self, *args) + + def SelectInViewer(self, *args): + r""" + + Parameters + ---------- + thePnt: Graphic3d_Vec2i + theScheme: AIS_SelectionScheme (optional, default to AIS_SelectionScheme_Replace) + + Return + ------- + None + + Description + ----------- + Perform selection in 3D viewer. This method is expected to be called from UI thread. + Parameter thePnt picking point + Parameter theScheme selection scheme. + + Parameters + ---------- + thePnts: NCollection_Sequence + theScheme: AIS_SelectionScheme (optional, default to AIS_SelectionScheme_Replace) + + Return + ------- + None + + Description + ----------- + Perform selection in 3D viewer. This method is expected to be called from UI thread. + Parameter thePnts picking point + Parameter theScheme selection scheme. + + """ + return _AIS.AIS_ViewController_SelectInViewer(self, *args) + + def SetAllowDragging(self, *args): + r""" + + Parameters + ---------- + theToEnable: bool + + Return + ------- + None + + Description + ----------- + Set if dynamic highlight on mouse move is allowed. + + """ + return _AIS.AIS_ViewController_SetAllowDragging(self, *args) + + def SetAllowHighlight(self, *args): + r""" + + Parameters + ---------- + theToEnable: bool + + Return + ------- + None + + Description + ----------- + Set if dragging object is allowed. + + """ + return _AIS.AIS_ViewController_SetAllowHighlight(self, *args) + + def SetAllowPanning(self, *args): + r""" + + Parameters + ---------- + theToEnable: bool + + Return + ------- + None + + Description + ----------- + Set if panning is allowed. + + """ + return _AIS.AIS_ViewController_SetAllowPanning(self, *args) + + def SetAllowRotation(self, *args): + r""" + + Parameters + ---------- + theToEnable: bool + + Return + ------- + None + + Description + ----------- + Set if camera rotation is allowed. + + """ + return _AIS.AIS_ViewController_SetAllowRotation(self, *args) + + def SetAllowTouchZRotation(self, *args): + r""" + + Parameters + ---------- + theToEnable: bool + + Return + ------- + None + + Description + ----------- + Set if z-rotation via two-touches gesture is enabled. + + """ + return _AIS.AIS_ViewController_SetAllowTouchZRotation(self, *args) + + def SetAllowZFocus(self, *args): + r""" + + Parameters + ---------- + theToEnable: bool + + Return + ------- + None + + Description + ----------- + Set if ZFocus change is allowed. + + """ + return _AIS.AIS_ViewController_SetAllowZFocus(self, *args) + + def SetAllowZooming(self, *args): + r""" + + Parameters + ---------- + theToEnable: bool + + Return + ------- + None + + Description + ----------- + Set if zooming is allowed. + + """ + return _AIS.AIS_ViewController_SetAllowZooming(self, *args) + + def SetContinuousRedraw(self, *args): + r""" + + Parameters + ---------- + theToEnable: bool + + Return + ------- + None + + Description + ----------- + Enable or disable continuous updates. + + """ + return _AIS.AIS_ViewController_SetContinuousRedraw(self, *args) + + def SetDisplayXRAuxDevices(self, *args): + r""" + + Parameters + ---------- + theToDisplay: bool + + Return + ------- + None + + Description + ----------- + Set if auxiliary tracked XR devices should be displayed. + + """ + return _AIS.AIS_ViewController_SetDisplayXRAuxDevices(self, *args) + + def SetDisplayXRHands(self, *args): + r""" + + Parameters + ---------- + theToDisplay: bool + + Return + ------- + None + + Description + ----------- + Set if tracked XR hand controllers should be displayed. + + """ + return _AIS.AIS_ViewController_SetDisplayXRHands(self, *args) + + def SetInvertPitch(self, *args): + r""" + + Parameters + ---------- + theToInvert: bool + + Return + ------- + None + + Description + ----------- + Set flag inverting pitch direction. + + """ + return _AIS.AIS_ViewController_SetInvertPitch(self, *args) + + def SetLockOrbitZUp(self, *args): + r""" + + Parameters + ---------- + theToForceUp: bool + + Return + ------- + None + + Description + ----------- + Set if camera up orientation within AIS_NavigationMode_Orbit rotation mode should be forced Z up. + + """ + return _AIS.AIS_ViewController_SetLockOrbitZUp(self, *args) + + def SetMinZoomDistance(self, *args): + r""" + + Parameters + ---------- + theDist: double + + Return + ------- + None + + Description + ----------- + Set minimal camera distance for zoom operation. + + """ + return _AIS.AIS_ViewController_SetMinZoomDistance(self, *args) + + def SetMouseAcceleration(self, *args): + r""" + + Parameters + ---------- + theRatio: float + + Return + ------- + None + + Description + ----------- + Set mouse input acceleration ratio. + + """ + return _AIS.AIS_ViewController_SetMouseAcceleration(self, *args) + + def SetMouseDoubleClickInterval(self, *args): + r""" + + Parameters + ---------- + theSeconds: double + + Return + ------- + None + + Description + ----------- + Set double click interval in seconds. + + """ + return _AIS.AIS_ViewController_SetMouseDoubleClickInterval(self, *args) + + def SetNavigationMode(self, *args): + r""" + + Parameters + ---------- + theMode: AIS_NavigationMode + + Return + ------- + None + + Description + ----------- + Set camera navigation mode. + + """ + return _AIS.AIS_ViewController_SetNavigationMode(self, *args) + + def SetObjectsAnimation(self, *args): + r""" + + Parameters + ---------- + theAnimation: AIS_Animation + + Return + ------- + None + + Description + ----------- + Set object animation to be handled within handleViewRedraw(). + + """ + return _AIS.AIS_ViewController_SetObjectsAnimation(self, *args) + + def SetOrbitAcceleration(self, *args): + r""" + + Parameters + ---------- + theRatio: float + + Return + ------- + None + + Description + ----------- + Set orbit rotation acceleration ratio. + + """ + return _AIS.AIS_ViewController_SetOrbitAcceleration(self, *args) + + def SetPauseObjectsAnimation(self, *args): + r""" + + Parameters + ---------- + theToPause: bool + + Return + ------- + None + + Description + ----------- + Set if object animation should be paused on mouse click. + + """ + return _AIS.AIS_ViewController_SetPauseObjectsAnimation(self, *args) + + def SetRotationMode(self, *args): + r""" + + Parameters + ---------- + theMode: AIS_RotationMode + + Return + ------- + None + + Description + ----------- + Set camera rotation mode. + + """ + return _AIS.AIS_ViewController_SetRotationMode(self, *args) + + def SetShowPanAnchorPoint(self, *args): + r""" + + Parameters + ---------- + theToShow: bool + + Return + ------- + None + + Description + ----------- + Set if panning anchor point within perspective projection should be displayed in 3D Viewer. + + """ + return _AIS.AIS_ViewController_SetShowPanAnchorPoint(self, *args) + + def SetShowRotateCenter(self, *args): + r""" + + Parameters + ---------- + theToShow: bool + + Return + ------- + None + + Description + ----------- + Set if rotation point should be displayed in 3D Viewer. + + """ + return _AIS.AIS_ViewController_SetShowRotateCenter(self, *args) + + def SetStickToRayOnRotation(self, *args): + r""" + + Parameters + ---------- + theToEnable: bool + + Return + ------- + None + + Description + ----------- + Set if picked point should be projected to picking ray on rotating around point. + + """ + return _AIS.AIS_ViewController_SetStickToRayOnRotation(self, *args) + + def SetStickToRayOnZoom(self, *args): + r""" + + Parameters + ---------- + theToEnable: bool + + Return + ------- + None + + Description + ----------- + Set if picked point should be projected to picking ray on zooming at point. + + """ + return _AIS.AIS_ViewController_SetStickToRayOnZoom(self, *args) + + def SetThrustSpeed(self, *args): + r""" + + Parameters + ---------- + theSpeed: float + + Return + ------- + None + + Description + ----------- + Set active thrust value. + + """ + return _AIS.AIS_ViewController_SetThrustSpeed(self, *args) + + def SetTouchToleranceScale(self, *args): + r""" + + Parameters + ---------- + theTolerance: float + + Return + ------- + None + + Description + ----------- + Set scale factor for adjusting tolerances for starting multi-touch gestures. + + """ + return _AIS.AIS_ViewController_SetTouchToleranceScale(self, *args) + + def SetViewAnimation(self, *args): + r""" + + Parameters + ---------- + theAnimation: AIS_AnimationCamera + + Return + ------- + None + + Description + ----------- + Set view animation to be handled within handleViewRedraw(). + + """ + return _AIS.AIS_ViewController_SetViewAnimation(self, *args) + + def SetWalkSpeedAbsolute(self, *args): + r""" + + Parameters + ---------- + theSpeed: float + + Return + ------- + None + + Description + ----------- + Set normal walking speed, in m/s; 1.5 by default. + + """ + return _AIS.AIS_ViewController_SetWalkSpeedAbsolute(self, *args) + + def SetWalkSpeedRelative(self, *args): + r""" + + Parameters + ---------- + theFactor: float + + Return + ------- + None + + Description + ----------- + Set walking speed relative to scene bounding box. + + """ + return _AIS.AIS_ViewController_SetWalkSpeedRelative(self, *args) + + def ThrustSpeed(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Return active thrust value; 0.0f by default. + + """ + return _AIS.AIS_ViewController_ThrustSpeed(self, *args) + + def ToAllowDragging(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return True if dragging object is allowed; True by default. + + """ + return _AIS.AIS_ViewController_ToAllowDragging(self, *args) + + def ToAllowHighlight(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return True if dynamic highlight on mouse move is allowed; True by default. + + """ + return _AIS.AIS_ViewController_ToAllowHighlight(self, *args) + + def ToAllowPanning(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return True if panning is allowed; True by default. + + """ + return _AIS.AIS_ViewController_ToAllowPanning(self, *args) + + def ToAllowRotation(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return True if camera rotation is allowed; True by default. + + """ + return _AIS.AIS_ViewController_ToAllowRotation(self, *args) + + def ToAllowTouchZRotation(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return True if z-rotation via two-touches gesture is enabled; False by default. + + """ + return _AIS.AIS_ViewController_ToAllowTouchZRotation(self, *args) + + def ToAllowZFocus(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return True if ZFocus change is allowed; True by default. + + """ + return _AIS.AIS_ViewController_ToAllowZFocus(self, *args) + + def ToAllowZooming(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return True if zooming is allowed; True by default. + + """ + return _AIS.AIS_ViewController_ToAllowZooming(self, *args) + + def ToDisplayXRAuxDevices(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return True to display auxiliary tracked XR devices (like tracking stations). + + """ + return _AIS.AIS_ViewController_ToDisplayXRAuxDevices(self, *args) + + def ToDisplayXRHands(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return True to display XR hand controllers. + + """ + return _AIS.AIS_ViewController_ToDisplayXRHands(self, *args) + + def ToInvertPitch(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return True if pitch direction should be inverted while processing Aspect_VKey_NavLookUp/Aspect_VKey_NavLookDown; False by default. + + """ + return _AIS.AIS_ViewController_ToInvertPitch(self, *args) + + def ToLockOrbitZUp(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return True if camera up orientation within AIS_NavigationMode_Orbit rotation mode should be forced Z up; False by default. + + """ + return _AIS.AIS_ViewController_ToLockOrbitZUp(self, *args) + + def ToPauseObjectsAnimation(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return True if object animation should be paused on mouse click; False by default. + + """ + return _AIS.AIS_ViewController_ToPauseObjectsAnimation(self, *args) + + def ToShowPanAnchorPoint(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return True if panning anchor point within perspective projection should be displayed in 3D Viewer; True by default. + + """ + return _AIS.AIS_ViewController_ToShowPanAnchorPoint(self, *args) + + def ToShowRotateCenter(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return True if rotation point should be displayed in 3D Viewer; True by default. + + """ + return _AIS.AIS_ViewController_ToShowRotateCenter(self, *args) + + def ToStickToRayOnRotation(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return True if picked point should be projected to picking ray on rotating around point; True by default. + + """ + return _AIS.AIS_ViewController_ToStickToRayOnRotation(self, *args) + + def ToStickToRayOnZoom(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return True if picked point should be projected to picking ray on zooming at point; True by default. + + """ + return _AIS.AIS_ViewController_ToStickToRayOnZoom(self, *args) + + def TouchToleranceScale(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Return scale factor for adjusting tolerances for starting multi-touch gestures; 1.0 by default This scale factor is expected to be computed from touch screen resolution. + + """ + return _AIS.AIS_ViewController_TouchToleranceScale(self, *args) + + def UpdateMouseClick(self, *args): + r""" + + Parameters + ---------- + thePoint: Graphic3d_Vec2i + theButton: Aspect_VKeyMouse + theModifiers: Aspect_VKeyFlags + theIsDoubleClick: bool + + Return + ------- + bool + + Description + ----------- + Handle mouse button click event (emulated by UpdateMouseButtons() while releasing single button). Note that as this method is called by UpdateMouseButtons(), it should be executed from UI thread. Default implementation redirects to SelectInViewer(). This method is expected to be called from UI thread. + Parameter thePoint mouse cursor position + Parameter theButton clicked button + Parameter theModifiers key modifiers + Parameter theIsDoubleClick flag indicating double mouse click + Return: True if View should be redrawn. + + """ + return _AIS.AIS_ViewController_UpdateMouseClick(self, *args) + + def UpdatePolySelection(self, *args): + r""" + + Parameters + ---------- + thePnt: Graphic3d_Vec2i + theToAppend: bool + + Return + ------- + None + + Description + ----------- + Update polygonal selection tool. This method is expected to be called from UI thread. + Parameter thePnt new point to add to polygon + Parameter theToAppend append new point or update the last point. + + """ + return _AIS.AIS_ViewController_UpdatePolySelection(self, *args) + + def UpdateRubberBand(self, *args): + r""" + + Parameters + ---------- + thePntFrom: Graphic3d_Vec2i + thePntTo: Graphic3d_Vec2i + + Return + ------- + None + + Description + ----------- + Update rectangle selection tool. This method is expected to be called from UI thread. + Parameter thePntFrom rectangle first corner + Parameter thePntTo rectangle another corner. + + """ + return _AIS.AIS_ViewController_UpdateRubberBand(self, *args) + + def UpdateViewOrientation(self, *args): + r""" + + Parameters + ---------- + theOrientation: V3d_TypeOfOrientation + theToFitAll: bool + + Return + ------- + None + + Description + ----------- + Reset view orientation. This method is expected to be called from UI thread. + + """ + return _AIS.AIS_ViewController_UpdateViewOrientation(self, *args) + + def UpdateZRotation(self, *args): + r""" + + Parameters + ---------- + theAngle: double + + Return + ------- + bool + + Description + ----------- + Update Z rotation event. + Parameter theAngle rotation angle, in radians. + Return: True if new zoom event has been created or False if existing one has been updated. + + """ + return _AIS.AIS_ViewController_UpdateZRotation(self, *args) + + def UpdateZoom(self, *args): + r""" + + Parameters + ---------- + theDelta: Aspect_ScrollDelta + + Return + ------- + bool + + Description + ----------- + Update zoom event (e.g. from mouse scroll). This method is expected to be called from UI thread. + Parameter theDelta mouse cursor position to zoom at and zoom delta + Return: True if new zoom event has been created or False if existing one has been updated. + + """ + return _AIS.AIS_ViewController_UpdateZoom(self, *args) + + def ViewAnimation(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Return view animation; empty (but not NULL) animation by default. + + """ + return _AIS.AIS_ViewController_ViewAnimation(self, *args) + + def WalkSpeedAbsolute(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Return normal walking speed, in m/s; 1.5 by default. + + """ + return _AIS.AIS_ViewController_WalkSpeedAbsolute(self, *args) + + def WalkSpeedRelative(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Return walking speed relative to scene bounding box; 0.1 by default. + + """ + return _AIS.AIS_ViewController_WalkSpeedRelative(self, *args) + + def handleCameraActions(self, *args): + r""" + + Parameters + ---------- + theCtx: AIS_InteractiveContext + theView: V3d_View + theWalk: AIS_WalkDelta + + Return + ------- + None + + Description + ----------- + Perform immediate camera actions (rotate/zoom/pan) on gesture progress. This method is expected to be called from rendering thread. + + """ + return _AIS.AIS_ViewController_handleCameraActions(self, *args) + + def handleMoveTo(self, *args): + r""" + + Parameters + ---------- + theCtx: AIS_InteractiveContext + theView: V3d_View + + Return + ------- + None + + Description + ----------- + Perform moveto/selection/dragging. This method is expected to be called from rendering thread. + + """ + return _AIS.AIS_ViewController_handleMoveTo(self, *args) + + def handleNavigationKeys(self, *args): + r""" + + Parameters + ---------- + theCtx: AIS_InteractiveContext + theView: V3d_View + + Return + ------- + AIS_WalkDelta + + Description + ----------- + Perform navigation (Aspect_VKey_NavForward and similar keys). This method is expected to be called from rendering thread. + + """ + return _AIS.AIS_ViewController_handleNavigationKeys(self, *args) + + def handleOrbitRotation(self, *args): + r""" + + Parameters + ---------- + theView: V3d_View + thePnt: gp_Pnt + theToLockZUp: bool + + Return + ------- + None + + Description + ----------- + Handle orbital rotation events myGL.OrbitRotation. + Parameter theView view to modify + Parameter thePnt 3D point to rotate around + Parameter theToLockZUp amend camera to exclude roll angle (put camera Up vector to plane containing global Z and view direction). + + """ + return _AIS.AIS_ViewController_handleOrbitRotation(self, *args) + + def handlePanning(self, *args): + r""" + + Parameters + ---------- + theView: V3d_View + + Return + ------- + None + + Description + ----------- + Handle panning event myGL.Panning. + + """ + return _AIS.AIS_ViewController_handlePanning(self, *args) + + def handleViewOrientationKeys(self, *args): + r""" + + Parameters + ---------- + theCtx: AIS_InteractiveContext + theView: V3d_View + + Return + ------- + None + + Description + ----------- + Handle hot-keys defining new camera orientation (Aspect_VKey_ViewTop and similar keys). Default implementation starts an animated transaction from the current to the target camera orientation, when specific action key was pressed. This method is expected to be called from rendering thread. + + """ + return _AIS.AIS_ViewController_handleViewOrientationKeys(self, *args) + + def handleViewRedraw(self, *args): + r""" + + Parameters + ---------- + theCtx: AIS_InteractiveContext + theView: V3d_View + + Return + ------- + None + + Description + ----------- + Handle view redraw. This method is expected to be called from rendering thread. + + """ + return _AIS.AIS_ViewController_handleViewRedraw(self, *args) + + def handleViewRotation(self, *args): + r""" + + Parameters + ---------- + theView: V3d_View + theYawExtra: double + thePitchExtra: double + theRoll: double + theToRestartOnIncrement: bool + + Return + ------- + None + + Description + ----------- + Handle view direction rotation events myGL.ViewRotation. This method is expected to be called from rendering thread. + Parameter theView camera to modify + Parameter theYawExtra extra yaw increment + Parameter thePitchExtra extra pitch increment + Parameter theRoll roll value + Parameter theToRestartOnIncrement flag indicating flight mode. + + """ + return _AIS.AIS_ViewController_handleViewRotation(self, *args) + + def handleXRHighlight(self, *args): + r""" + + Parameters + ---------- + theCtx: AIS_InteractiveContext + theView: V3d_View + + Return + ------- + None + + Description + ----------- + Perform dynamic highlighting for active hand. + + """ + return _AIS.AIS_ViewController_handleXRHighlight(self, *args) + + def handleXRInput(self, *args): + r""" + + Parameters + ---------- + theCtx: AIS_InteractiveContext + theView: V3d_View + theWalk: AIS_WalkDelta + + Return + ------- + None + + Description + ----------- + Perform XR input. This method is expected to be called from rendering thread. + + """ + return _AIS.AIS_ViewController_handleXRInput(self, *args) + + def handleXRMoveTo(self, *args): + r""" + + Parameters + ---------- + theCtx: AIS_InteractiveContext + theView: V3d_View + thePose: gp_Trsf + theToHighlight: bool + + Return + ------- + int + + Description + ----------- + Perform picking with/without dynamic highlighting for XR pose. + + """ + return _AIS.AIS_ViewController_handleXRMoveTo(self, *args) + + def handleXRPicking(self, *args): + r""" + + Parameters + ---------- + theCtx: AIS_InteractiveContext + theView: V3d_View + + Return + ------- + None + + Description + ----------- + Handle picking on trigger click. + + """ + return _AIS.AIS_ViewController_handleXRPicking(self, *args) + + def handleXRPresentations(self, *args): + r""" + + Parameters + ---------- + theCtx: AIS_InteractiveContext + theView: V3d_View + + Return + ------- + None + + Description + ----------- + Display auxiliary XR presentations. + + """ + return _AIS.AIS_ViewController_handleXRPresentations(self, *args) + + def handleXRTeleport(self, *args): + r""" + + Parameters + ---------- + theCtx: AIS_InteractiveContext + theView: V3d_View + + Return + ------- + None + + Description + ----------- + Handle trackpad teleportation action. + + """ + return _AIS.AIS_ViewController_handleXRTeleport(self, *args) + + def handleXRTurnPad(self, *args): + r""" + + Parameters + ---------- + theCtx: AIS_InteractiveContext + theView: V3d_View + + Return + ------- + None + + Description + ----------- + Handle trackpad view turn action. + + """ + return _AIS.AIS_ViewController_handleXRTurnPad(self, *args) + + def handleZFocusScroll(self, *args): + r""" + + Parameters + ---------- + theView: V3d_View + theParams: Aspect_ScrollDelta + + Return + ------- + None + + Description + ----------- + Handle ZScroll event myGL.ZoomActions. This method is expected to be called from rendering thread. + + """ + return _AIS.AIS_ViewController_handleZFocusScroll(self, *args) + + def handleZRotate(self, *args): + r""" + + Parameters + ---------- + theView: V3d_View + + Return + ------- + None + + Description + ----------- + Handle Z rotation event myGL.ZRotate. + + """ + return _AIS.AIS_ViewController_handleZRotate(self, *args) + + def handleZoom(self, *args): + r""" + + Parameters + ---------- + theView: V3d_View + theParams: Aspect_ScrollDelta + thePnt: gp_Pnt * + + Return + ------- + None + + Description + ----------- + Handle zoom event myGL.ZoomActions. This method is expected to be called from rendering thread. + + """ + return _AIS.AIS_ViewController_handleZoom(self, *args) + + def hasPanningAnchorPoint(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return if panning anchor point has been defined. + + """ + return _AIS.AIS_ViewController_hasPanningAnchorPoint(self, *args) + + def panningAnchorPoint(self, *args): + r""" + Return + ------- + gp_Pnt + + Description + ----------- + Return active panning anchor point. + + """ + return _AIS.AIS_ViewController_panningAnchorPoint(self, *args) + + def setAskNextFrame(self, *args): + r""" + + Parameters + ---------- + theToDraw: bool (optional, default to true) + + Return + ------- + None + + Description + ----------- + Set if another frame should be drawn right after this one. + + """ + return _AIS.AIS_ViewController_setAskNextFrame(self, *args) + + def setPanningAnchorPoint(self, *args): + r""" + + Parameters + ---------- + thePnt: gp_Pnt + + Return + ------- + None + + Description + ----------- + Set active panning anchor point. + + """ + return _AIS.AIS_ViewController_setPanningAnchorPoint(self, *args) + + def toAskNextFrame(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return True if another frame should be drawn right after this one. + + """ + return _AIS.AIS_ViewController_toAskNextFrame(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _AIS.delete_AIS_ViewController + +# Register AIS_ViewController in _AIS: +_AIS.AIS_ViewController_swigregister(AIS_ViewController) +class AIS_ViewCubeOwner(OCC.Core.SelectMgr.SelectMgr_EntityOwner): + 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 + ---------- + theObject: AIS_ViewCube + theOrient: V3d_TypeOfOrientation + thePriority: int (optional, default to 5) + + Return + ------- + None + + Description + ----------- + Main constructor. + + """ + _AIS.AIS_ViewCubeOwner_swiginit(self, _AIS.new_AIS_ViewCubeOwner(*args)) + + def MainOrientation(self, *args): + r""" + Return + ------- + V3d_TypeOfOrientation + + Description + ----------- + Return new orientation to set. + + """ + return _AIS.AIS_ViewCubeOwner_MainOrientation(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _AIS.delete_AIS_ViewCubeOwner + +# Register AIS_ViewCubeOwner in _AIS: +_AIS.AIS_ViewCubeOwner_swigregister(AIS_ViewCubeOwner) +class AIS_ViewCubeSensitive(OCC.Core.Select3D.Select3D_SensitivePrimitiveArray): + 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 + ---------- + theOwner: SelectMgr_EntityOwner + theTris: Graphic3d_ArrayOfTriangles + + Return + ------- + None + + Description + ----------- + Constructor. + + """ + _AIS.AIS_ViewCubeSensitive_swiginit(self, _AIS.new_AIS_ViewCubeSensitive(*args)) + + __repr__ = _dumps_object + + __swig_destroy__ = _AIS.delete_AIS_ViewCubeSensitive + +# Register AIS_ViewCubeSensitive in _AIS: +_AIS.AIS_ViewCubeSensitive_swigregister(AIS_ViewCubeSensitive) +class AIS_ViewInputBuffer(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. + + """ + _AIS.AIS_ViewInputBuffer_swiginit(self, _AIS.new_AIS_ViewInputBuffer(*args)) + + def Reset(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Reset events buffer. + + """ + return _AIS.AIS_ViewInputBuffer_Reset(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _AIS.delete_AIS_ViewInputBuffer + +# Register AIS_ViewInputBuffer in _AIS: +_AIS.AIS_ViewInputBuffer_swigregister(AIS_ViewInputBuffer) +class AIS_WalkDelta(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 + ----------- + Empty constructor. + + """ + _AIS.AIS_WalkDelta_swiginit(self, _AIS.new_AIS_WalkDelta(*args)) + + def IsCrouching(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return crouching state. + + """ + return _AIS.AIS_WalkDelta_IsCrouching(self, *args) + + def IsDefined(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return True if navigation keys are pressed even if delta from the previous frame is empty. + + """ + return _AIS.AIS_WalkDelta_IsDefined(self, *args) + + def IsEmpty(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return True when both Rotation and Translation deltas are empty. + + """ + return _AIS.AIS_WalkDelta_IsEmpty(self, *args) + + def IsJumping(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return jumping state. + + """ + return _AIS.AIS_WalkDelta_IsJumping(self, *args) + + def IsRunning(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return running state. + + """ + return _AIS.AIS_WalkDelta_IsRunning(self, *args) + + def SetCrouching(self, *args): + r""" + + Parameters + ---------- + theIsCrouching: bool + + Return + ------- + None + + Description + ----------- + Set crouching state. + + """ + return _AIS.AIS_WalkDelta_SetCrouching(self, *args) + + def SetDefined(self, *args): + r""" + + Parameters + ---------- + theIsDefined: bool + + Return + ------- + None + + Description + ----------- + Set if any navigation key is pressed. + + """ + return _AIS.AIS_WalkDelta_SetDefined(self, *args) + + def SetJumping(self, *args): + r""" + + Parameters + ---------- + theIsJumping: bool + + Return + ------- + None + + Description + ----------- + Set jumping state. + + """ + return _AIS.AIS_WalkDelta_SetJumping(self, *args) + + def SetRunning(self, *args): + r""" + + Parameters + ---------- + theIsRunning: bool + + Return + ------- + None + + Description + ----------- + Set running state. + + """ + return _AIS.AIS_WalkDelta_SetRunning(self, *args) + + def ToMove(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return True if translation delta is defined. + + """ + return _AIS.AIS_WalkDelta_ToMove(self, *args) + + def ToRotate(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return True if rotation delta is defined. + + """ + return _AIS.AIS_WalkDelta_ToRotate(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _AIS.delete_AIS_WalkDelta + +# Register AIS_WalkDelta in _AIS: +_AIS.AIS_WalkDelta_swigregister(AIS_WalkDelta) +class AIS_WalkPart(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 + ----------- + Empty constructor. + + """ + _AIS.AIS_WalkPart_swiginit(self, _AIS.new_AIS_WalkPart(*args)) + + def IsEmpty(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return True if delta is empty. + + """ + return _AIS.AIS_WalkPart_IsEmpty(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _AIS.delete_AIS_WalkPart + +# Register AIS_WalkPart in _AIS: +_AIS.AIS_WalkPart_swigregister(AIS_WalkPart) +class AIS_AnimationCamera(AIS_Animation): + 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 + ---------- + theAnimationName: str + theView: V3d_View + + Return + ------- + None + + Description + ----------- + Main constructor. + + """ + _AIS.AIS_AnimationCamera_swiginit(self, _AIS.new_AIS_AnimationCamera(*args)) + + def CameraEnd(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Return camera end position. + + """ + return _AIS.AIS_AnimationCamera_CameraEnd(self, *args) + + def CameraStart(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Return camera start position. + + """ + return _AIS.AIS_AnimationCamera_CameraStart(self, *args) + + def SetCameraEnd(self, *args): + r""" + + Parameters + ---------- + theCameraEnd: Graphic3d_Camera + + Return + ------- + None + + Description + ----------- + Define camera end position. + + """ + return _AIS.AIS_AnimationCamera_SetCameraEnd(self, *args) + + def SetCameraStart(self, *args): + r""" + + Parameters + ---------- + theCameraStart: Graphic3d_Camera + + Return + ------- + None + + Description + ----------- + Define camera start position. + + """ + return _AIS.AIS_AnimationCamera_SetCameraStart(self, *args) + + def SetView(self, *args): + r""" + + Parameters + ---------- + theView: V3d_View + + Return + ------- + None + + Description + ----------- + Set target view. + + """ + return _AIS.AIS_AnimationCamera_SetView(self, *args) + + def View(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Return the target view. + + """ + return _AIS.AIS_AnimationCamera_View(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_AIS_AnimationCamera_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _AIS.delete_AIS_AnimationCamera + +# Register AIS_AnimationCamera in _AIS: +_AIS.AIS_AnimationCamera_swigregister(AIS_AnimationCamera) +class AIS_Axis(AIS_InteractiveObject): + 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 + ---------- + aComponent: Geom_Line + + Return + ------- + None + + Description + ----------- + Initializes the line aComponent. + + Parameters + ---------- + aComponent: Geom_Axis2Placement + anAxisType: AIS_TypeOfAxis + + Return + ------- + None + + Description + ----------- + initializes the axis2 position aComponent. The coordinate system used is right-handed. + + Parameters + ---------- + anAxis: Geom_Axis1Placement + + Return + ------- + None + + Description + ----------- + Initializes the axis1 position anAxis. + + Parameters + ---------- + theAxis: gp_Ax1 + theLength: float (optional, default to -1) + + Return + ------- + None + + Description + ----------- + Initializes the ray as axis with start point and direction + Input parameter: theAxis Start point and direction of the ray + Input parameter: theLength Optional length of the ray (ray is infinite by default). + + """ + _AIS.AIS_Axis_swiginit(self, _AIS.new_AIS_Axis(*args)) + + def Axis2Placement(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the position of axis2 and positions it by identifying it as the x, y, or z axis and giving its direction in 3D space. The coordinate system used is right-handed. + + """ + return _AIS.AIS_Axis_Axis2Placement(self, *args) + + def Component(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the axis entity aComponent and identifies it as a component of a shape. + + """ + return _AIS.AIS_Axis_Component(self, *args) + + def IsXYZAxis(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns a signature of 2 for axis datums. When you activate mode 2 by a signature, you pick AIS objects of type AIS_Axis. + + """ + return _AIS.AIS_Axis_IsXYZAxis(self, *args) + + def SetAxis1Placement(self, *args): + r""" + + Parameters + ---------- + anAxis: Geom_Axis1Placement + + Return + ------- + None + + Description + ----------- + Constructs a new line to serve as the axis anAxis in 3D space. + + """ + return _AIS.AIS_Axis_SetAxis1Placement(self, *args) + + def SetAxis2Placement(self, *args): + r""" + + Parameters + ---------- + aComponent: Geom_Axis2Placement + anAxisType: AIS_TypeOfAxis + + Return + ------- + None + + Description + ----------- + Allows you to provide settings for aComponent:the position and direction of an axis in 3D space. The coordinate system used is right-handed. + + """ + return _AIS.AIS_Axis_SetAxis2Placement(self, *args) + + def SetComponent(self, *args): + r""" + + Parameters + ---------- + aComponent: Geom_Line + + Return + ------- + None + + Description + ----------- + Sets the coordinates of the lin aComponent. + + """ + return _AIS.AIS_Axis_SetComponent(self, *args) + + def SetDisplayAspect(self, *args): + r""" + + Parameters + ---------- + theNewDatumAspect: Prs3d_LineAspect + + Return + ------- + None + + Description + ----------- + Set required visualization parameters. + + """ + return _AIS.AIS_Axis_SetDisplayAspect(self, *args) + + def SetTypeOfAxis(self, *args): + r""" + + Parameters + ---------- + theTypeAxis: AIS_TypeOfAxis + + Return + ------- + None + + Description + ----------- + Constructs the entity theTypeAxis to stock information concerning type of axis. + + """ + return _AIS.AIS_Axis_SetTypeOfAxis(self, *args) + + def TypeOfAxis(self, *args): + r""" + Return + ------- + AIS_TypeOfAxis + + Description + ----------- + Returns the type of axis. + + """ + return _AIS.AIS_Axis_TypeOfAxis(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_AIS_Axis_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _AIS.delete_AIS_Axis + +# Register AIS_Axis in _AIS: +_AIS.AIS_Axis_swigregister(AIS_Axis) +class AIS_BaseAnimationObject(AIS_Animation): + 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 + + + @staticmethod + def DownCast(t): + return Handle_AIS_BaseAnimationObject_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _AIS.delete_AIS_BaseAnimationObject + +# Register AIS_BaseAnimationObject in _AIS: +_AIS.AIS_BaseAnimationObject_swigregister(AIS_BaseAnimationObject) +class AIS_CameraFrustum(AIS_InteractiveObject): + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") + __repr__ = _swig_repr + SelectionMode_Edges = _AIS.AIS_CameraFrustum_SelectionMode_Edges + SelectionMode_Volume = _AIS.AIS_CameraFrustum_SelectionMode_Volume + + + class SelectionMode(IntEnum): + SelectionMode_Edges = 0 + SelectionMode_Volume = 1 + SelectionMode_Edges = SelectionMode.SelectionMode_Edges + SelectionMode_Volume = SelectionMode.SelectionMode_Volume + + + def __init__(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Constructs camera frustum with default configuration. + + """ + _AIS.AIS_CameraFrustum_swiginit(self, _AIS.new_AIS_CameraFrustum(*args)) + + def SetCameraFrustum(self, *args): + r""" + + Parameters + ---------- + theCamera: Graphic3d_Camera + + Return + ------- + None + + Description + ----------- + Sets camera frustum. + + """ + return _AIS.AIS_CameraFrustum_SetCameraFrustum(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _AIS.delete_AIS_CameraFrustum + +# Register AIS_CameraFrustum in _AIS: +_AIS.AIS_CameraFrustum_swigregister(AIS_CameraFrustum) +class AIS_Circle(AIS_InteractiveObject): + 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 + ---------- + aCircle: Geom_Circle + + Return + ------- + None + + Description + ----------- + Initializes this algorithm for constructing AIS circle datums initializes the circle aCircle. + + Parameters + ---------- + theCircle: Geom_Circle + theUStart: float + theUEnd: float + theIsFilledCircleSens: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + Initializes this algorithm for constructing AIS circle datums. Initializes the circle theCircle, the arc starting point theUStart, the arc ending point theUEnd, and the type of sensitivity theIsFilledCircleSens. + + """ + _AIS.AIS_Circle_swiginit(self, _AIS.new_AIS_Circle(*args)) + + def Circle(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the circle component defined in SetCircle. + + """ + return _AIS.AIS_Circle_Circle(self, *args) + + def IsFilledCircleSens(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns the type of sensitivity for the circle;. + + """ + return _AIS.AIS_Circle_IsFilledCircleSens(self, *args) + + def Parameters(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + theU1: float + theU2: float + + Description + ----------- + Constructs instances of the starting point and the end point parameters, theU1 and theU2. + + """ + return _AIS.AIS_Circle_Parameters(self, *args) + + def SetCircle(self, *args): + r""" + + Parameters + ---------- + theCircle: Geom_Circle + + Return + ------- + None + + Description + ----------- + Allows you to provide settings for the circle datum aCircle. + + """ + return _AIS.AIS_Circle_SetCircle(self, *args) + + def SetFilledCircleSens(self, *args): + r""" + + Parameters + ---------- + theIsFilledCircleSens: bool + + Return + ------- + None + + Description + ----------- + Sets the type of sensitivity for the circle. If theIsFilledCircleSens set to Standard_True then the whole circle will be detectable, otherwise only the boundary of the circle. + + """ + return _AIS.AIS_Circle_SetFilledCircleSens(self, *args) + + def SetFirstParam(self, *args): + r""" + + Parameters + ---------- + theU: float + + Return + ------- + None + + Description + ----------- + Allows you to set the parameter theU for the starting point of an arc. + + """ + return _AIS.AIS_Circle_SetFirstParam(self, *args) + + def SetLastParam(self, *args): + r""" + + Parameters + ---------- + theU: float + + Return + ------- + None + + Description + ----------- + Allows you to provide the parameter theU for the end point of an arc. + + """ + return _AIS.AIS_Circle_SetLastParam(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_AIS_Circle_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _AIS.delete_AIS_Circle + +# Register AIS_Circle in _AIS: +_AIS.AIS_Circle_swigregister(AIS_Circle) +class AIS_ColorScale(AIS_InteractiveObject): + 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. + + """ + _AIS.AIS_ColorScale_swiginit(self, _AIS.new_AIS_ColorScale(*args)) + + def ColorRange(self, *args): + r""" + + Parameters + ---------- + theMinColor: Quantity_Color + theMaxColor: Quantity_Color + + Return + ------- + None + + Description + ----------- + Returns color range corresponding to minimum and maximum values, blue to red by default. + + """ + return _AIS.AIS_ColorScale_ColorRange(self, *args) + + def Compute(self, *args): + r""" + + Parameters + ---------- + thePrsMgr: PrsMgr_PresentationManager + thePresentation: Prs3d_Presentation + theMode: int + + Return + ------- + None + + Description + ----------- + Compute presentation. + + """ + return _AIS.AIS_ColorScale_Compute(self, *args) + + def FindColor(self, *args): + r""" + + Parameters + ---------- + theValue: float + theMin: float + theMax: float + theColorsCount: int + theColorHlsMin: Graphic3d_Vec3d + theColorHlsMax: Graphic3d_Vec3d + theColor: Quantity_Color + + Return + ------- + bool + + Description + ----------- + Calculate color according passed value; returns true if value is in range or false, if isn't. + + Parameters + ---------- + theValue: float + theMin: float + theMax: float + theColorsCount: int + theColor: Quantity_Color + + Return + ------- + bool + + Description + ----------- + Calculate color according passed value; returns true if value is in range or false, if isn't. + + Parameters + ---------- + theValue: float + theColor: Quantity_Color + + Return + ------- + bool + + Description + ----------- + Calculate color according passed value; returns true if value is in range or false, if isn't. + + """ + return _AIS.AIS_ColorScale_FindColor(self, *args) + + def Format(self, *args): + r""" + Return + ------- + TCollection_AsciiString + + Description + ----------- + Returns the format of text. + + """ + return _AIS.AIS_ColorScale_Format(self, *args) + + def GetBreadth(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Returns the breadth of color bar, 0 by default (e.g. should be set by user explicitly before displaying). + + """ + return _AIS.AIS_ColorScale_GetBreadth(self, *args) + + def GetColorType(self, *args): + r""" + Return + ------- + Aspect_TypeOfColorScaleData + + Description + ----------- + Returns the type of colors, Aspect_TOCSD_AUTO by default. Aspect_TOCSD_AUTO - value between Red and Blue Aspect_TOCSD_USER - user specified color from color map. + + """ + return _AIS.AIS_ColorScale_GetColorType(self, *args) + + def GetColors(self, *args): + r""" + + Parameters + ---------- + theColors: Aspect_SequenceOfColor + + Return + ------- + None + + Description + ----------- + Returns the user specified colors. + Return + ------- + Aspect_SequenceOfColor + + Description + ----------- + Returns the user specified colors. + + """ + return _AIS.AIS_ColorScale_GetColors(self, *args) + + def GetFormat(self, *args): + r""" + Return + ------- + TCollection_AsciiString + + Description + ----------- + Returns the format for numbers, '%.4g' by default. The same like format for function printf(). Used if GetLabelType() is TOCSD_AUTO;. + + """ + return _AIS.AIS_ColorScale_GetFormat(self, *args) + + def GetHeight(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Returns the height of color bar, 0 by default (e.g. should be set by user explicitly before displaying). + + """ + return _AIS.AIS_ColorScale_GetHeight(self, *args) + + def GetIntervalColor(self, *args): + r""" + + Parameters + ---------- + theIndex: int + + Return + ------- + Quantity_Color + + Description + ----------- + Returns the user specified color from color map with index (starts at 1). Returns default color if index is out of range in color map. + + """ + return _AIS.AIS_ColorScale_GetIntervalColor(self, *args) + + def GetLabel(self, *args): + r""" + + Parameters + ---------- + theIndex: int + + Return + ------- + TCollection_ExtendedString + + Description + ----------- + Returns the user specified label with index theIndex. Index is in range from 1 to GetNumberOfIntervals() or to GetNumberOfIntervals() + 1 if IsLabelAtBorder() is true. Returns empty string if label not defined. + + """ + return _AIS.AIS_ColorScale_GetLabel(self, *args) + + def GetLabelPosition(self, *args): + r""" + Return + ------- + Aspect_TypeOfColorScalePosition + + Description + ----------- + Returns the position of labels concerning color filled rectangles, Aspect_TOCSP_RIGHT by default. + + """ + return _AIS.AIS_ColorScale_GetLabelPosition(self, *args) + + def GetLabelType(self, *args): + r""" + Return + ------- + Aspect_TypeOfColorScaleData + + Description + ----------- + Returns the type of labels, Aspect_TOCSD_AUTO by default. Aspect_TOCSD_AUTO - labels as boundary values for intervals Aspect_TOCSD_USER - user specified label is used. + + """ + return _AIS.AIS_ColorScale_GetLabelType(self, *args) + + def GetLabels(self, *args): + r""" + + Parameters + ---------- + theLabels: TColStd_SequenceOfExtendedString + + Return + ------- + None + + Description + ----------- + Returns the user specified labels. + + """ + return _AIS.AIS_ColorScale_GetLabels(self, *args) + + def GetMax(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns maximal value of color scale, 1.0 by default. + + """ + return _AIS.AIS_ColorScale_GetMax(self, *args) + + def GetMin(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns minimal value of color scale, 0.0 by default. + + """ + return _AIS.AIS_ColorScale_GetMin(self, *args) + + def GetNumberOfIntervals(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Returns the number of color scale intervals, 10 by default. + + """ + return _AIS.AIS_ColorScale_GetNumberOfIntervals(self, *args) + + def GetPosition(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + theX: float + theY: float + + Description + ----------- + Returns the bottom-left position of color scale, 0x0 by default. + + """ + return _AIS.AIS_ColorScale_GetPosition(self, *args) + + def GetRange(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + theMin: float + theMax: float + + Description + ----------- + Returns minimal and maximal values of color scale, 0.0 to 1.0 by default. + + """ + return _AIS.AIS_ColorScale_GetRange(self, *args) + + def GetSize(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + theBreadth: int + theHeight: int + + Description + ----------- + Returns the size of color bar, 0 and 0 by default (e.g. should be set by user explicitly before displaying). + + """ + return _AIS.AIS_ColorScale_GetSize(self, *args) + + def GetTextHeight(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Returns the font height of text labels, 20 by default. + + """ + return _AIS.AIS_ColorScale_GetTextHeight(self, *args) + + def GetTitle(self, *args): + r""" + Return + ------- + TCollection_ExtendedString + + Description + ----------- + Returns the color scale title string, empty string by default. + + """ + return _AIS.AIS_ColorScale_GetTitle(self, *args) + + def GetTitlePosition(self, *args): + r""" + Return + ------- + Aspect_TypeOfColorScalePosition + + Description + ----------- + Returns the position of color scale title, Aspect_TOCSP_LEFT by default. + + """ + return _AIS.AIS_ColorScale_GetTitlePosition(self, *args) + + def GetXPosition(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Returns the left position of color scale, 0 by default. + + """ + return _AIS.AIS_ColorScale_GetXPosition(self, *args) + + def GetYPosition(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Returns the bottom position of color scale, 0 by default. + + """ + return _AIS.AIS_ColorScale_GetYPosition(self, *args) + + def HueMax(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns the hue angle corresponding to maximum value, 0 by default (red). + + """ + return _AIS.AIS_ColorScale_HueMax(self, *args) + + def HueMin(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns the hue angle corresponding to minimum value, 230 by default (blue). + + """ + return _AIS.AIS_ColorScale_HueMin(self, *args) + + def HueRange(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + theMinAngle: float + theMaxAngle: float + + Description + ----------- + Returns the hue angle range corresponding to minimum and maximum values, 230 to 0 by default (blue to red). + + """ + return _AIS.AIS_ColorScale_HueRange(self, *args) + + def IsLabelAtBorder(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True if the labels are placed at border of color intervals, True by default. The automatically generated label will show value exactly on the current position: - value connecting two neighbor intervals (True) - value in the middle of interval (False). + + """ + return _AIS.AIS_ColorScale_IsLabelAtBorder(self, *args) + + def IsLogarithmic(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True if the color scale has logarithmic intervals, False by default. + + """ + return _AIS.AIS_ColorScale_IsLogarithmic(self, *args) + + def IsReversed(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True if the labels and colors used in reversed order, False by default. - Normal, bottom-up order with Minimal value on the Bottom and Maximum value on Top. - Reversed, top-down order with Maximum value on the Bottom and Minimum value on Top. + + """ + return _AIS.AIS_ColorScale_IsReversed(self, *args) + + def IsSmoothTransition(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return True if color transition between neighbor intervals should be linearly interpolated, False by default. + + """ + return _AIS.AIS_ColorScale_IsSmoothTransition(self, *args) + + def Labels(self, *args): + r""" + Return + ------- + TColStd_SequenceOfExtendedString + + Description + ----------- + Returns the user specified labels. + + """ + return _AIS.AIS_ColorScale_Labels(self, *args) + + @staticmethod + def MakeUniformColors(*args): + r""" + + Parameters + ---------- + theNbColors: int + theLightness: float + theHueFrom: float + theHueTo: float + + Return + ------- + Aspect_SequenceOfColor + + Description + ----------- + Generates sequence of colors of the same lightness value in CIE Lch color space (see #Quantity_TOC_CIELch), with hue values in the specified range. The colors are distributed across the range such as to have perceptually same difference between neighbour colors. For each color, maximal chroma value fitting in sRGB gamut is used. //! + Parameter theNbColors - number of colors to generate + Parameter theLightness - lightness to be used (0 is black, 100 is white, 32 is lightness of pure blue) + Parameter theHueFrom - hue value at the start of the scale + Parameter theHueTo - hue value defining the end of the scale //! Hue value can be out of the range [0, 360], interpreted as modulo 360. The colors of the scale will be in the order of increasing hue if theHueTo > theHueFrom, and decreasing otherwise. + + """ + return _AIS.AIS_ColorScale_MakeUniformColors(*args) + + def SetBreadth(self, *args): + r""" + + Parameters + ---------- + theBreadth: int + + Return + ------- + None + + Description + ----------- + Sets the width of color bar. + + """ + return _AIS.AIS_ColorScale_SetBreadth(self, *args) + + def SetColorRange(self, *args): + r""" + + Parameters + ---------- + theMinColor: Quantity_Color + theMaxColor: Quantity_Color + + Return + ------- + None + + Description + ----------- + Sets color range corresponding to minimum and maximum values. + + """ + return _AIS.AIS_ColorScale_SetColorRange(self, *args) + + def SetColorType(self, *args): + r""" + + Parameters + ---------- + theType: Aspect_TypeOfColorScaleData + + Return + ------- + None + + Description + ----------- + Sets the type of colors. Aspect_TOCSD_AUTO - value between Red and Blue Aspect_TOCSD_USER - user specified color from color map. + + """ + return _AIS.AIS_ColorScale_SetColorType(self, *args) + + def SetColors(self, *args): + r""" + + Parameters + ---------- + theSeq: Aspect_SequenceOfColor + + Return + ------- + None + + Description + ----------- + Sets the color scale colors. The length of the sequence should be equal to GetNumberOfIntervals(). + + """ + return _AIS.AIS_ColorScale_SetColors(self, *args) + + def SetFormat(self, *args): + r""" + + Parameters + ---------- + theFormat: str + + Return + ------- + None + + Description + ----------- + Sets the color scale auto label format specification. + + """ + return _AIS.AIS_ColorScale_SetFormat(self, *args) + + def SetHeight(self, *args): + r""" + + Parameters + ---------- + theHeight: int + + Return + ------- + None + + Description + ----------- + Sets the height of color bar. + + """ + return _AIS.AIS_ColorScale_SetHeight(self, *args) + + def SetHueRange(self, *args): + r""" + + Parameters + ---------- + theMinAngle: float + theMaxAngle: float + + Return + ------- + None + + Description + ----------- + Sets hue angle range corresponding to minimum and maximum values. The valid angle range is [0, 360], see Quantity_Color and Quantity_TOC_HLS for more details. + + """ + return _AIS.AIS_ColorScale_SetHueRange(self, *args) + + def SetIntervalColor(self, *args): + r""" + + Parameters + ---------- + theColor: Quantity_Color + theIndex: int + + Return + ------- + None + + Description + ----------- + Sets the color of the specified interval. Note that list is automatically resized to include specified index. + Parameter theColor color value to set + Parameter theIndex index in range [1, GetNumberOfIntervals()]; appended to the end of list if -1 is specified. + + """ + return _AIS.AIS_ColorScale_SetIntervalColor(self, *args) + + def SetLabel(self, *args): + r""" + + Parameters + ---------- + theLabel: str + theIndex: int + + Return + ------- + None + + Description + ----------- + Sets the color scale label at index. Note that list is automatically resized to include specified index. + Parameter theLabel new label text + Parameter theIndex index in range [1, GetNumberOfIntervals()] or [1, GetNumberOfIntervals() + 1] if IsLabelAtBorder() is true; label is appended to the end of list if negative index is specified. + + """ + return _AIS.AIS_ColorScale_SetLabel(self, *args) + + def SetLabelAtBorder(self, *args): + r""" + + Parameters + ---------- + theOn: bool + + Return + ------- + None + + Description + ----------- + Sets true if the labels are placed at border of color intervals (True by default). If set to False, labels will be drawn at color intervals rather than at borders. + + """ + return _AIS.AIS_ColorScale_SetLabelAtBorder(self, *args) + + def SetLabelPosition(self, *args): + r""" + + Parameters + ---------- + thePos: Aspect_TypeOfColorScalePosition + + Return + ------- + None + + Description + ----------- + Sets the color scale labels position relative to color bar. + + """ + return _AIS.AIS_ColorScale_SetLabelPosition(self, *args) + + def SetLabelType(self, *args): + r""" + + Parameters + ---------- + theType: Aspect_TypeOfColorScaleData + + Return + ------- + None + + Description + ----------- + Sets the type of labels. Aspect_TOCSD_AUTO - labels as boundary values for intervals Aspect_TOCSD_USER - user specified label is used. + + """ + return _AIS.AIS_ColorScale_SetLabelType(self, *args) + + def SetLabels(self, *args): + r""" + + Parameters + ---------- + theSeq: TColStd_SequenceOfExtendedString + + Return + ------- + None + + Description + ----------- + Sets the color scale labels. The length of the sequence should be equal to GetNumberOfIntervals() or to GetNumberOfIntervals() + 1 if IsLabelAtBorder() is true. If length of the sequence does not much the number of intervals, then these labels will be considered as 'free' and will be located at the virtual intervals corresponding to the number of labels (with flag IsLabelAtBorder() having the same effect as in normal case). + + """ + return _AIS.AIS_ColorScale_SetLabels(self, *args) + + def SetLogarithmic(self, *args): + r""" + + Parameters + ---------- + isLogarithmic: bool + + Return + ------- + None + + Description + ----------- + Sets true if the color scale has logarithmic intervals. + + """ + return _AIS.AIS_ColorScale_SetLogarithmic(self, *args) + + def SetMax(self, *args): + r""" + + Parameters + ---------- + theMax: float + + Return + ------- + None + + Description + ----------- + Sets the maximal value of color scale. + + """ + return _AIS.AIS_ColorScale_SetMax(self, *args) + + def SetMin(self, *args): + r""" + + Parameters + ---------- + theMin: float + + Return + ------- + None + + Description + ----------- + Sets the minimal value of color scale. + + """ + return _AIS.AIS_ColorScale_SetMin(self, *args) + + def SetNumberOfIntervals(self, *args): + r""" + + Parameters + ---------- + theNum: int + + Return + ------- + None + + Description + ----------- + Sets the number of color scale intervals. + + """ + return _AIS.AIS_ColorScale_SetNumberOfIntervals(self, *args) + + def SetPosition(self, *args): + r""" + + Parameters + ---------- + theX: int + theY: int + + Return + ------- + None + + Description + ----------- + Sets the position of color scale. + + """ + return _AIS.AIS_ColorScale_SetPosition(self, *args) + + def SetRange(self, *args): + r""" + + Parameters + ---------- + theMin: float + theMax: float + + Return + ------- + None + + Description + ----------- + Sets the minimal and maximal value of color scale. Note that values order will be ignored - the minimum and maximum values will be swapped if needed. ::SetReversed() should be called to swap displaying order. + + """ + return _AIS.AIS_ColorScale_SetRange(self, *args) + + def SetReversed(self, *args): + r""" + + Parameters + ---------- + theReverse: bool + + Return + ------- + None + + Description + ----------- + Sets true if the labels and colors used in reversed order. + + """ + return _AIS.AIS_ColorScale_SetReversed(self, *args) + + def SetSize(self, *args): + r""" + + Parameters + ---------- + theBreadth: int + theHeight: int + + Return + ------- + None + + Description + ----------- + Sets the size of color bar. + + """ + return _AIS.AIS_ColorScale_SetSize(self, *args) + + def SetSmoothTransition(self, *args): + r""" + + Parameters + ---------- + theIsSmooth: bool + + Return + ------- + None + + Description + ----------- + Setup smooth color transition. + + """ + return _AIS.AIS_ColorScale_SetSmoothTransition(self, *args) + + def SetTextHeight(self, *args): + r""" + + Parameters + ---------- + theHeight: int + + Return + ------- + None + + Description + ----------- + Sets the height of text of color scale. + + """ + return _AIS.AIS_ColorScale_SetTextHeight(self, *args) + + def SetTitle(self, *args): + r""" + + Parameters + ---------- + theTitle: str + + Return + ------- + None + + Description + ----------- + Sets the color scale title string. + + """ + return _AIS.AIS_ColorScale_SetTitle(self, *args) + + def SetTitlePosition(self, *args): + r""" + + Parameters + ---------- + thePos: Aspect_TypeOfColorScalePosition + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_ColorScale_SetTitlePosition(self, *args) + + def SetUniformColors(self, *args): + r""" + + Parameters + ---------- + theLightness: float + theHueFrom: float + theHueTo: float + + Return + ------- + None + + Description + ----------- + Populates colors scale by colors of the same lightness value in CIE Lch color space, distributed by hue, with perceptually uniform differences between consequent colors. See MakeUniformColors() for description of parameters. + + """ + return _AIS.AIS_ColorScale_SetUniformColors(self, *args) + + def SetXPosition(self, *args): + r""" + + Parameters + ---------- + theX: int + + Return + ------- + None + + Description + ----------- + Sets the left position of color scale. + + """ + return _AIS.AIS_ColorScale_SetXPosition(self, *args) + + def SetYPosition(self, *args): + r""" + + Parameters + ---------- + theY: int + + Return + ------- + None + + Description + ----------- + Sets the bottom position of color scale. + + """ + return _AIS.AIS_ColorScale_SetYPosition(self, *args) + + def TextHeight(self, *args): + r""" + + Parameters + ---------- + theText: str + + Return + ------- + int + + Description + ----------- + Returns the height of text. + Input parameter: theText the text of which to calculate height. + + """ + return _AIS.AIS_ColorScale_TextHeight(self, *args) + + def TextSize(self, *args): + r""" + + Parameters + ---------- + theText: str + theHeight: int + + Return + ------- + theWidth: int + theAscent: int + theDescent: int + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_ColorScale_TextSize(self, *args) + + def TextWidth(self, *args): + r""" + + Parameters + ---------- + theText: str + + Return + ------- + int + + Description + ----------- + Returns the width of text. + Input parameter: theText the text of which to calculate width. + + """ + return _AIS.AIS_ColorScale_TextWidth(self, *args) + + @staticmethod + def hueToValidRange(*args): + r""" + + Parameters + ---------- + theHue: float + + Return + ------- + float + + Description + ----------- + Shift hue into valid range. Lightness and Saturation should be specified in valid range [0.0, 1.0], however Hue might be given out of Quantity_Color range to specify desired range for interpolation. + + """ + return _AIS.AIS_ColorScale_hueToValidRange(*args) + + + @staticmethod + def DownCast(t): + return Handle_AIS_ColorScale_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _AIS.delete_AIS_ColorScale + +# Register AIS_ColorScale in _AIS: +_AIS.AIS_ColorScale_swigregister(AIS_ColorScale) +class AIS_ConnectedInteractive(AIS_InteractiveObject): + 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 + ---------- + aTypeOfPresentation3d: PrsMgr_TypeOfPresentation3d (optional, default to PrsMgr_TOP_AllView) + + Return + ------- + None + + Description + ----------- + Disconnects the previous view and sets highlight mode to 0. This highlights the wireframe presentation aTypeOfPresentation3d. Top_AllView deactivates hidden line removal. + + """ + _AIS.AIS_ConnectedInteractive_swiginit(self, _AIS.new_AIS_ConnectedInteractive(*args)) + + def Connect(self, *args): + r""" + + Parameters + ---------- + theAnotherObj: AIS_InteractiveObject + + Return + ------- + None + + Description + ----------- + Establishes the connection between the Connected Interactive Object, anotherIobj, and its reference. + + Parameters + ---------- + theAnotherObj: AIS_InteractiveObject + theLocation: gp_Trsf + + Return + ------- + None + + Description + ----------- + Establishes the connection between the Connected Interactive Object, anotherIobj, and its reference. Locates instance in aLocation. + + Parameters + ---------- + theAnotherObj: AIS_InteractiveObject + theLocation: TopLoc_Datum3D + + Return + ------- + None + + Description + ----------- + Establishes the connection between the Connected Interactive Object, anotherIobj, and its reference. Locates instance in aLocation. + + """ + return _AIS.AIS_ConnectedInteractive_Connect(self, *args) + + def ConnectedTo(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the connection with the reference Interactive Object. + + """ + return _AIS.AIS_ConnectedInteractive_ConnectedTo(self, *args) + + def Disconnect(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Clears the connection with a source reference. The presentation will no longer be displayed. Warning Must be done before deleting the presentation. + + """ + return _AIS.AIS_ConnectedInteractive_Disconnect(self, *args) + + def HasConnection(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns true if there is a connection established between the presentation and its source reference. + + """ + return _AIS.AIS_ConnectedInteractive_HasConnection(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_AIS_ConnectedInteractive_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _AIS.delete_AIS_ConnectedInteractive + +# Register AIS_ConnectedInteractive in _AIS: +_AIS.AIS_ConnectedInteractive_swigregister(AIS_ConnectedInteractive) +class AIS_LightSource(AIS_InteractiveObject): + 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 + ---------- + theLightSource: Graphic3d_CLight + + Return + ------- + None + + Description + ----------- + Initializes the light source by copying Graphic3d_CLight settings. + + """ + _AIS.AIS_LightSource_swiginit(self, _AIS.new_AIS_LightSource(*args)) + + def ArcSize(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Returns Sensitive sphere arc size in pixels; 20 by default. + + """ + return _AIS.AIS_LightSource_ArcSize(self, *args) + + def IsZoomable(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True if transform-persistence is allowed; True by default for Ambient and Directional lights and False by default for Positional and Spot lights. + + """ + return _AIS.AIS_LightSource_IsZoomable(self, *args) + + def Light(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the light. + + """ + return _AIS.AIS_LightSource_Light(self, *args) + + def MarkerImage(self, *args): + r""" + + Parameters + ---------- + theIsEnabled: bool + + Return + ------- + opencascade::handle + + Description + ----------- + Returns light source icon. + Input parameter: theIsEnabled marker index for enabled/disabled light source states. + + """ + return _AIS.AIS_LightSource_MarkerImage(self, *args) + + def MarkerType(self, *args): + r""" + + Parameters + ---------- + theIsEnabled: bool + + Return + ------- + Aspect_TypeOfMarker + + Description + ----------- + Returns light source icon. + Input parameter: theIsEnabled marker index for enabled/disabled light source states. + + """ + return _AIS.AIS_LightSource_MarkerType(self, *args) + + def NbArrows(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Returns a number of directional light arrows to display; 5 by default. + + """ + return _AIS.AIS_LightSource_NbArrows(self, *args) + + def NbSplitsArrow(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Returns tessellation level for arrows; 20 by default. + + """ + return _AIS.AIS_LightSource_NbSplitsArrow(self, *args) + + def NbSplitsQuadric(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Returns tessellation level for quadric surfaces; 30 by default. + + """ + return _AIS.AIS_LightSource_NbSplitsQuadric(self, *args) + + def SetArcSize(self, *args): + r""" + + Parameters + ---------- + theSize: int + + Return + ------- + None + + Description + ----------- + Sets the size of sensitive sphere arc. + + """ + return _AIS.AIS_LightSource_SetArcSize(self, *args) + + def SetDisplayName(self, *args): + r""" + + Parameters + ---------- + theToDisplay: bool + + Return + ------- + None + + Description + ----------- + Show/hide light source name. + + """ + return _AIS.AIS_LightSource_SetDisplayName(self, *args) + + def SetDisplayRange(self, *args): + r""" + + Parameters + ---------- + theToDisplay: bool + + Return + ------- + None + + Description + ----------- + Show/hide light source range shaded presentation. + + """ + return _AIS.AIS_LightSource_SetDisplayRange(self, *args) + + def SetDraggable(self, *args): + r""" + + Parameters + ---------- + theIsDraggable: bool + + Return + ------- + None + + Description + ----------- + Sets if dragging is allowed. + + """ + return _AIS.AIS_LightSource_SetDraggable(self, *args) + + def SetLight(self, *args): + r""" + + Parameters + ---------- + theLight: Graphic3d_CLight + + Return + ------- + None + + Description + ----------- + Set the light. + + """ + return _AIS.AIS_LightSource_SetLight(self, *args) + + def SetMarkerImage(self, *args): + r""" + + Parameters + ---------- + theImage: Graphic3d_MarkerImage + theIsEnabled: bool + + Return + ------- + None + + Description + ----------- + Sets custom icon to light source. + + """ + return _AIS.AIS_LightSource_SetMarkerImage(self, *args) + + def SetMarkerType(self, *args): + r""" + + Parameters + ---------- + theType: Aspect_TypeOfMarker + theIsEnabled: bool + + Return + ------- + None + + Description + ----------- + Sets standard icon to light source. + + """ + return _AIS.AIS_LightSource_SetMarkerType(self, *args) + + def SetNbArrows(self, *args): + r""" + + Parameters + ---------- + theNbArrows: int + + Return + ------- + None + + Description + ----------- + Returns a number of directional light arrows to display (supported values: 1, 3, 5, 9). + + """ + return _AIS.AIS_LightSource_SetNbArrows(self, *args) + + def SetNbSplitsArrow(self, *args): + r""" + + Parameters + ---------- + theNbSplits: int + + Return + ------- + None + + Description + ----------- + Sets tessellation level for arrows. + + """ + return _AIS.AIS_LightSource_SetNbSplitsArrow(self, *args) + + def SetNbSplitsQuadric(self, *args): + r""" + + Parameters + ---------- + theNbSplits: int + + Return + ------- + None + + Description + ----------- + Sets tessellation level for quadric surfaces. + + """ + return _AIS.AIS_LightSource_SetNbSplitsQuadric(self, *args) + + def SetSize(self, *args): + r""" + + Parameters + ---------- + theSize: float + + Return + ------- + None + + Description + ----------- + Sets the size of presentation. + + """ + return _AIS.AIS_LightSource_SetSize(self, *args) + + def SetSwitchOnClick(self, *args): + r""" + + Parameters + ---------- + theToHandle: bool + + Return + ------- + None + + Description + ----------- + Sets if mouse click should turn light on/off. + + """ + return _AIS.AIS_LightSource_SetSwitchOnClick(self, *args) + + def SetZoomable(self, *args): + r""" + + Parameters + ---------- + theIsZoomable: bool + + Return + ------- + None + + Description + ----------- + Sets if transform-persistence is allowed. + + """ + return _AIS.AIS_LightSource_SetZoomable(self, *args) + + def Size(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns the size of presentation; 50 by default. + + """ + return _AIS.AIS_LightSource_Size(self, *args) + + def ToDisplayName(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True if the light source name should be displayed; True by default. + + """ + return _AIS.AIS_LightSource_ToDisplayName(self, *args) + + def ToDisplayRange(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True to display light source range as sphere (positional light) or cone (spot light); True by default. Has no effect for non-zoomable presentation. + + """ + return _AIS.AIS_LightSource_ToDisplayRange(self, *args) + + def ToSwitchOnClick(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True if mouse click will turn light on/off; True by default. + + """ + return _AIS.AIS_LightSource_ToSwitchOnClick(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _AIS.delete_AIS_LightSource + +# Register AIS_LightSource in _AIS: +_AIS.AIS_LightSource_swigregister(AIS_LightSource) +class AIS_Line(AIS_InteractiveObject): + 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 + ---------- + aLine: Geom_Line + + Return + ------- + None + + Description + ----------- + Initializes the line aLine. + + Parameters + ---------- + aStartPoint: Geom_Point + aEndPoint: Geom_Point + + Return + ------- + None + + Description + ----------- + Initializes a starting point aStartPoint and a finishing point aEndPoint for the line. + + """ + _AIS.AIS_Line_swiginit(self, _AIS.new_AIS_Line(*args)) + + def Line(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Constructs an infinite line. + + """ + return _AIS.AIS_Line_Line(self, *args) + + def Points(self, *args): + r""" + + Parameters + ---------- + thePStart: Geom_Point + thePEnd: Geom_Point + + Return + ------- + None + + Description + ----------- + Returns the starting point thePStart and the end point thePEnd of the line set by SetPoints. + + """ + return _AIS.AIS_Line_Points(self, *args) + + def SetLine(self, *args): + r""" + + Parameters + ---------- + theLine: Geom_Line + + Return + ------- + None + + Description + ----------- + instantiates an infinite line. + + """ + return _AIS.AIS_Line_SetLine(self, *args) + + def SetPoints(self, *args): + r""" + + Parameters + ---------- + thePStart: Geom_Point + thePEnd: Geom_Point + + Return + ------- + None + + Description + ----------- + Sets the starting point thePStart and ending point thePEnd of the infinite line to create a finite line segment. + + """ + return _AIS.AIS_Line_SetPoints(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_AIS_Line_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _AIS.delete_AIS_Line + +# Register AIS_Line in _AIS: +_AIS.AIS_Line_swigregister(AIS_Line) +class AIS_Manipulator(AIS_InteractiveObject): + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") + __repr__ = _swig_repr + ManipulatorSkin_Shaded = _AIS.AIS_Manipulator_ManipulatorSkin_Shaded + ManipulatorSkin_Flat = _AIS.AIS_Manipulator_ManipulatorSkin_Flat + + + class ManipulatorSkin(IntEnum): + ManipulatorSkin_Shaded = 0 + ManipulatorSkin_Flat = 1 + ManipulatorSkin_Shaded = ManipulatorSkin.ManipulatorSkin_Shaded + ManipulatorSkin_Flat = ManipulatorSkin.ManipulatorSkin_Flat + + + def __init__(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Constructs a manipulator object with default placement and all parts to be displayed. + + Parameters + ---------- + thePosition: gp_Ax2 + + Return + ------- + None + + Description + ----------- + Constructs a manipulator object with input location and positions of axes and all parts to be displayed. + + """ + _AIS.AIS_Manipulator_swiginit(self, _AIS.new_AIS_Manipulator(*args)) + + def ActiveAxisIndex(self, *args): + r""" + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_Manipulator_ActiveAxisIndex(self, *args) + + def ActiveMode(self, *args): + r""" + Return + ------- + AIS_ManipulatorMode + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_Manipulator_ActiveMode(self, *args) + + def Attach(self, *args): + r""" + + Parameters + ---------- + theObject: AIS_InteractiveObject + theOptions: OptionsForAttach (optional, default to OptionsForAttach()) + + Return + ------- + None + + Description + ----------- + Attaches himself to the input interactive object and become displayed in the same context. It is placed in the center of object bounding box, and its size is adjusted to the object bounding box. + + Parameters + ---------- + theObject: AIS_ManipulatorObjectSequence + theOptions: OptionsForAttach (optional, default to OptionsForAttach()) + + Return + ------- + None + + Description + ----------- + Attaches himself to the input interactive object group and become displayed in the same context. It become attached to the first object, baut manage manipulation of the whole group. It is placed in the center of object bounding box, and its size is adjusted to the object bounding box. + + """ + return _AIS.AIS_Manipulator_Attach(self, *args) + + def Compute(self, *args): + r""" + + Parameters + ---------- + thePrsMgr: PrsMgr_PresentationManager + thePrs: Prs3d_Presentation + theMode: int (optional, default to 0) + + Return + ------- + None + + Description + ----------- + Fills presentation. @note Manipulator presentation does not use display mode and for all modes has the same presentation. + + """ + return _AIS.AIS_Manipulator_Compute(self, *args) + + def DeactivateCurrentMode(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Make inactive the current selected manipulator part and reset current axis index and current mode. After its call HasActiveMode() returns false. + See also: HasActiveMode(). + + """ + return _AIS.AIS_Manipulator_DeactivateCurrentMode(self, *args) + + def Detach(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Detaches himself from the owner object, and removes itself from context. + + """ + return _AIS.AIS_Manipulator_Detach(self, *args) + + def EnableMode(self, *args): + r""" + + Parameters + ---------- + theMode: AIS_ManipulatorMode + + Return + ------- + None + + Description + ----------- + Enable manipualtion mode. @warning It activates selection mode in the current context. If manipulator is not displayed, no mode will be activated. + + """ + return _AIS.AIS_Manipulator_EnableMode(self, *args) + + def HasActiveMode(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return: true if some part of manipulator is selected (transformation mode is active, and owning object can be transformed). + + """ + return _AIS.AIS_Manipulator_HasActiveMode(self, *args) + + def HasActiveTransformation(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_Manipulator_HasActiveTransformation(self, *args) + + def IsAttached(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return: true if manipulator is attached to some interactive object (has owning object). + + """ + return _AIS.AIS_Manipulator_IsAttached(self, *args) + + def IsModeActivationOnDetection(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return: true if manual mode activation is enabled. + + """ + return _AIS.AIS_Manipulator_IsModeActivationOnDetection(self, *args) + + def Object(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Return: the first (leading) object of the owning objects. + + Parameters + ---------- + theIndex: int + + Return + ------- + opencascade::handle + + Description + ----------- + Return: one of the owning objects. @warning raises program error if theIndex is more than owning objects count or less than 1. + + """ + return _AIS.AIS_Manipulator_Object(self, *args) + + def ObjectTransformation(self, *args): + r""" + + Parameters + ---------- + theX: int + theY: int + theView: V3d_View + theTrsf: gp_Trsf + + Return + ------- + bool + + Description + ----------- + Computes transformation of parent object according to the active mode and input motion vector. You can use this method to get object transformation according to current mode or use own algorithm to implement any other transformation for modes. + Return: transformation of parent object. + + """ + return _AIS.AIS_Manipulator_ObjectTransformation(self, *args) + + def Objects(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Return: all owning objects. + + """ + return _AIS.AIS_Manipulator_Objects(self, *args) + + def Position(self, *args): + r""" + Return + ------- + gp_Ax2 + + Description + ----------- + Return: poition of manipulator interactive object. + + """ + return _AIS.AIS_Manipulator_Position(self, *args) + + def RecomputeSelection(self, *args): + r""" + + Parameters + ---------- + theMode: AIS_ManipulatorMode + + Return + ------- + None + + Description + ----------- + Recomputes sensitive primitives for the given selection mode. + Parameter theMode selection mode to recompute sensitive primitives. + + """ + return _AIS.AIS_Manipulator_RecomputeSelection(self, *args) + + def SetGap(self, *args): + r""" + + Parameters + ---------- + theValue: float + + Return + ------- + None + + Description + ----------- + Sets gaps between translator, scaler and rotator sub-presentations. + + """ + return _AIS.AIS_Manipulator_SetGap(self, *args) + + def SetModeActivationOnDetection(self, *args): + r""" + + Parameters + ---------- + theToEnable: bool + + Return + ------- + None + + Description + ----------- + Enables mode activation on detection (highlighting). By default, mode is activated on selection of manipulator part. @warning If this mode is enabled, selection of parts does nothing. + + """ + return _AIS.AIS_Manipulator_SetModeActivationOnDetection(self, *args) + + def SetPart(self, *args): + r""" + + Parameters + ---------- + theAxisIndex: int + theMode: AIS_ManipulatorMode + theIsEnabled: bool + + Return + ------- + None + + Description + ----------- + Disable or enable visual parts for translation, rotation or scaling for some axis. By default all parts are enabled (will be displayed). @warning Enabling or disabling of visual parts of manipulator does not manage the manipulation (selection) mode. @warning Raises program error if axis index is < 0 or > 2. + + Parameters + ---------- + theMode: AIS_ManipulatorMode + theIsEnabled: bool + + Return + ------- + None + + Description + ----------- + Disable or enable visual parts for translation, rotation or scaling for ALL axes. By default all parts are enabled (will be displayed). @warning Enabling or disabling of visual parts of manipulator does not manage the manipulation (selection) mode. @warning Raises program error if axis index is < 0 or > 2. + + """ + return _AIS.AIS_Manipulator_SetPart(self, *args) + + def SetPosition(self, *args): + r""" + + Parameters + ---------- + thePosition: gp_Ax2 + + Return + ------- + None + + Description + ----------- + Sets position of the manipulator object. + + """ + return _AIS.AIS_Manipulator_SetPosition(self, *args) + + def SetSize(self, *args): + r""" + + Parameters + ---------- + theSideLength: float + + Return + ------- + None + + Description + ----------- + Sets size (length of side of the manipulator cubic bounding box. + + """ + return _AIS.AIS_Manipulator_SetSize(self, *args) + + def SetSkinMode(self, *args): + r""" + + Parameters + ---------- + theSkinMode: ManipulatorSkin + + Return + ------- + None + + Description + ----------- + Sets skin mode for the manipulator. + + """ + return _AIS.AIS_Manipulator_SetSkinMode(self, *args) + + def SetZoomPersistence(self, *args): + r""" + + Parameters + ---------- + theToEnable: bool + + Return + ------- + None + + Description + ----------- + Enable or disable zoom persistence mode for the manipulator. With this mode turned on the presentation will keep fixed screen size. @warning when turned on this option overrides transform persistence properties and local transformation to achieve necessary visual effect. @warning revise use of AdjustSize argument of of \sa AttachToObjects method when enabling zoom persistence. + + """ + return _AIS.AIS_Manipulator_SetZoomPersistence(self, *args) + + def Size(self, *args): + r""" + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_Manipulator_Size(self, *args) + + def SkinMode(self, *args): + r""" + Return + ------- + AIS_Manipulator::ManipulatorSkin + + Description + ----------- + Return: current manipulator skin mode. + + """ + return _AIS.AIS_Manipulator_SkinMode(self, *args) + + def StartTransform(self, *args): + r""" + + Parameters + ---------- + theX: int + theY: int + theView: V3d_View + + Return + ------- + None + + Description + ----------- + Init start (reference) transformation. @warning It is used in chain with StartTransform-Transform(gp_Trsf)-StopTransform and is used only for custom transform set. If Transform(const Standard_Integer, const Standard_Integer) is used, initial data is set automatically, and it is reset on DeactivateCurrentMode call if it is not reset yet. + + """ + return _AIS.AIS_Manipulator_StartTransform(self, *args) + + def StartTransformation(self, *args): + r""" + Return + ------- + gp_Trsf + + Description + ----------- + No available documentation. + + Parameters + ---------- + theIndex: int + + Return + ------- + gp_Trsf + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_Manipulator_StartTransformation(self, *args) + + def StopTransform(self, *args): + r""" + + Parameters + ---------- + theToApply: bool (optional, default to Standard_True) + + Return + ------- + None + + Description + ----------- + Reset start (reference) transformation. + Input parameter: theToApply option to apply or to cancel the started transformation. @warning It is used in chain with StartTransform-Transform(gp_Trsf)-StopTransform and is used only for custom transform set. + + """ + return _AIS.AIS_Manipulator_StopTransform(self, *args) + + def Transform(self, *args): + r""" + + Parameters + ---------- + aTrsf: gp_Trsf + + Return + ------- + None + + Description + ----------- + Apply to the owning objects the input transformation. @remark The transformation is set using SetLocalTransformation for owning objects. The location of the manipulator is stored also in Local Transformation, so that there's no need to redisplay objects. @warning It is used in chain with StartTransform-Transform(gp_Trsf)-StopTransform and is used only for custom transform set. @warning It will does nothing if transformation is not initiated (with StartTransform() call). + + Parameters + ---------- + theX: int + theY: int + theView: V3d_View + + Return + ------- + gp_Trsf + + Description + ----------- + Apply transformation made from mouse moving from start position (save on the first Transform() call and reset on DeactivateCurrentMode() call.) to the in/out mouse position (theX, theY). + + """ + return _AIS.AIS_Manipulator_Transform(self, *args) + + def ZoomPersistence(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns state of zoom persistence mode, whether it turned on or off. + + """ + return _AIS.AIS_Manipulator_ZoomPersistence(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_AIS_Manipulator_DownCast(t) + + + __repr__ = _dumps_object + + @methodnotwrapped + def TransformBehavior(self): + pass + + @methodnotwrapped + def ChangeTransformBehavior(self): + pass + + @methodnotwrapped + def SetTransformBehavior(self): + pass + + __swig_destroy__ = _AIS.delete_AIS_Manipulator + +# Register AIS_Manipulator in _AIS: +_AIS.AIS_Manipulator_swigregister(AIS_Manipulator) +class AIS_MediaPlayer(AIS_InteractiveObject): + 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 + ----------- + Empty constructor. + + """ + _AIS.AIS_MediaPlayer_swiginit(self, _AIS.new_AIS_MediaPlayer(*args)) + + def Duration(self, *args): + r""" + Return + ------- + double + + Description + ----------- + Return duration. + + """ + return _AIS.AIS_MediaPlayer_Duration(self, *args) + + def OpenInput(self, *args): + r""" + + Parameters + ---------- + thePath: str + theToWait: bool + + Return + ------- + None + + Description + ----------- + Open specified file. + + """ + return _AIS.AIS_MediaPlayer_OpenInput(self, *args) + + def PlayPause(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Switch playback state. + + """ + return _AIS.AIS_MediaPlayer_PlayPause(self, *args) + + def PlayerContext(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Return player context. + + """ + return _AIS.AIS_MediaPlayer_PlayerContext(self, *args) + + def PresentFrame(self, *args): + r""" + + Parameters + ---------- + theLeftCorner: Graphic3d_Vec2i + theMaxSize: Graphic3d_Vec2i + + Return + ------- + bool + + Description + ----------- + Display new frame. + + """ + return _AIS.AIS_MediaPlayer_PresentFrame(self, *args) + + def SetCallback(self, *args): + r""" + + Parameters + ---------- + theCallbackFunction: Graphic3d_MediaTextureSet::CallbackOnUpdate_t + theCallbackUserPtr: void * + + Return + ------- + None + + Description + ----------- + Setup callback to be called on queue progress (e.g. when new frame should be displayed). + + """ + return _AIS.AIS_MediaPlayer_SetCallback(self, *args) + + def SetClosePlayer(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Schedule player to be closed. + + """ + return _AIS.AIS_MediaPlayer_SetClosePlayer(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _AIS.delete_AIS_MediaPlayer + +# Register AIS_MediaPlayer in _AIS: +_AIS.AIS_MediaPlayer_swigregister(AIS_MediaPlayer) +class AIS_MultipleConnectedInteractive(AIS_InteractiveObject): + 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 + ----------- + Initializes the Interactive Object with multiple connections to AIS_Interactive objects. + + """ + _AIS.AIS_MultipleConnectedInteractive_swiginit(self, _AIS.new_AIS_MultipleConnectedInteractive(*args)) + + def Connect(self, *args): + r""" + + Parameters + ---------- + theAnotherObj: AIS_InteractiveObject + theLocation: TopLoc_Datum3D + theTrsfPers: Graphic3d_TransformPers + + Return + ------- + opencascade::handle + + Description + ----------- + Establishes the connection between the Connected Interactive Object, theInteractive, and its reference. Locates instance in theLocation and applies specified transformation persistence mode. + Return: created instance object (AIS_ConnectedInteractive or AIS_MultipleConnectedInteractive). + + Parameters + ---------- + theAnotherObj: AIS_InteractiveObject + + Return + ------- + opencascade::handle + + Description + ----------- + Establishes the connection between the Connected Interactive Object, theInteractive, and its reference. Copies local transformation and transformation persistence mode from theInteractive. + Return: created instance object (AIS_ConnectedInteractive or AIS_MultipleConnectedInteractive). + + Parameters + ---------- + theAnotherObj: AIS_InteractiveObject + theLocation: gp_Trsf + + Return + ------- + opencascade::handle + + Description + ----------- + Establishes the connection between the Connected Interactive Object, theInteractive, and its reference. Locates instance in theLocation and copies transformation persistence mode from theInteractive. + Return: created instance object (AIS_ConnectedInteractive or AIS_MultipleConnectedInteractive). + + Parameters + ---------- + theAnotherObj: AIS_InteractiveObject + theLocation: gp_Trsf + theTrsfPers: Graphic3d_TransformPers + + Return + ------- + opencascade::handle + + Description + ----------- + Establishes the connection between the Connected Interactive Object, theInteractive, and its reference. Locates instance in theLocation and applies specified transformation persistence mode. + Return: created instance object (AIS_ConnectedInteractive or AIS_MultipleConnectedInteractive). + + """ + return _AIS.AIS_MultipleConnectedInteractive_Connect(self, *args) + + def Disconnect(self, *args): + r""" + + Parameters + ---------- + theInteractive: AIS_InteractiveObject + + Return + ------- + None + + Description + ----------- + Removes the connection with theInteractive. + + """ + return _AIS.AIS_MultipleConnectedInteractive_Disconnect(self, *args) + + def DisconnectAll(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Clears all the connections to objects. + + """ + return _AIS.AIS_MultipleConnectedInteractive_DisconnectAll(self, *args) + + def HasConnection(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns true if the object is connected to others. + + """ + return _AIS.AIS_MultipleConnectedInteractive_HasConnection(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_AIS_MultipleConnectedInteractive_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _AIS.delete_AIS_MultipleConnectedInteractive + +# Register AIS_MultipleConnectedInteractive in _AIS: +_AIS.AIS_MultipleConnectedInteractive_swigregister(AIS_MultipleConnectedInteractive) +class AIS_Plane(AIS_InteractiveObject): + 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 + ---------- + aComponent: Geom_Plane + aCurrentMode: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + initializes the plane aComponent. If the mode aCurrentMode equals true, the drawing tool, 'Drawer' is not initialized. + + Parameters + ---------- + aComponent: Geom_Plane + aCenter: gp_Pnt + aCurrentMode: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + initializes the plane aComponent and the point aCenter. If the mode aCurrentMode equals true, the drawing tool, 'Drawer' is not initialized. aCurrentMode equals true, the drawing tool, 'Drawer' is not initialized. + + Parameters + ---------- + aComponent: Geom_Plane + aCenter: gp_Pnt + aPmin: gp_Pnt + aPmax: gp_Pnt + aCurrentMode: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + initializes the plane aComponent, the point aCenter, and the minimum and maximum points, aPmin and aPmax. If the mode aCurrentMode equals true, the drawing tool, 'Drawer' is not initialized. + + Parameters + ---------- + aComponent: Geom_Axis2Placement + aPlaneType: AIS_TypeOfPlane + aCurrentMode: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _AIS.AIS_Plane_swiginit(self, _AIS.new_AIS_Plane(*args)) + + def Axis2Placement(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the position of the plane's axis2 system identifying the x, y, or z axis and giving the plane a direction in 3D space. An axis2 system is a right-handed coordinate system. + + """ + return _AIS.AIS_Plane_Axis2Placement(self, *args) + + def Center(self, *args): + r""" + Return + ------- + gp_Pnt + + Description + ----------- + Returns the coordinates of the center point. + + """ + return _AIS.AIS_Plane_Center(self, *args) + + def Component(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the component specified in SetComponent. + + """ + return _AIS.AIS_Plane_Component(self, *args) + + def CurrentMode(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns the non-default current display mode set by SetCurrentMode. + + """ + return _AIS.AIS_Plane_CurrentMode(self, *args) + + def HasMinimumSize(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns true if transform persistence for zoom is set. + + """ + return _AIS.AIS_Plane_HasMinimumSize(self, *args) + + def HasOwnSize(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_Plane_HasOwnSize(self, *args) + + def IsXYZPlane(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns the type of plane - xy, yz, or xz. + + """ + return _AIS.AIS_Plane_IsXYZPlane(self, *args) + + def PlaneAttributes(self, *args): + r""" + + Parameters + ---------- + aComponent: Geom_Plane + aCenter: gp_Pnt + aPmin: gp_Pnt + aPmax: gp_Pnt + + Return + ------- + bool + + Description + ----------- + Returns the settings for the selected plane aComponent, provided in SetPlaneAttributes. These include the points aCenter, aPmin, and aPmax. + + """ + return _AIS.AIS_Plane_PlaneAttributes(self, *args) + + def SetAxis2Placement(self, *args): + r""" + + Parameters + ---------- + aComponent: Geom_Axis2Placement + aPlaneType: AIS_TypeOfPlane + + Return + ------- + None + + Description + ----------- + Allows you to provide settings for the position and direction of one of the plane's axes, aComponent, in 3D space. The coordinate system used is right-handed, and the type of plane aPlaneType is one of: - AIS_ TOPL_Unknown - AIS_ TOPL_XYPlane - AIS_ TOPL_XZPlane - AIS_ TOPL_YZPlane}. + + """ + return _AIS.AIS_Plane_SetAxis2Placement(self, *args) + + def SetCenter(self, *args): + r""" + + Parameters + ---------- + theCenter: gp_Pnt + + Return + ------- + None + + Description + ----------- + Provides settings for the center theCenter other than (0, 0, 0). + + """ + return _AIS.AIS_Plane_SetCenter(self, *args) + + def SetComponent(self, *args): + r""" + + Parameters + ---------- + aComponent: Geom_Plane + + Return + ------- + None + + Description + ----------- + Creates an instance of the plane aComponent. + + """ + return _AIS.AIS_Plane_SetComponent(self, *args) + + def SetCurrentMode(self, *args): + r""" + + Parameters + ---------- + theCurrentMode: bool + + Return + ------- + None + + Description + ----------- + Allows you to provide settings for a non-default current display mode. + + """ + return _AIS.AIS_Plane_SetCurrentMode(self, *args) + + def SetMinimumSize(self, *args): + r""" + + Parameters + ---------- + theValue: float + + Return + ------- + None + + Description + ----------- + Sets transform persistence for zoom with value of minimum size. + + """ + return _AIS.AIS_Plane_SetMinimumSize(self, *args) + + def SetPlaneAttributes(self, *args): + r""" + + Parameters + ---------- + aComponent: Geom_Plane + aCenter: gp_Pnt + aPmin: gp_Pnt + aPmax: gp_Pnt + + Return + ------- + None + + Description + ----------- + Allows you to provide settings other than default ones for the selected plane. These include: center point aCenter, maximum aPmax and minimum aPmin. + + """ + return _AIS.AIS_Plane_SetPlaneAttributes(self, *args) + + def SetSize(self, *args): + r""" + + Parameters + ---------- + aValue: float + + Return + ------- + None + + Description + ----------- + Same value for x and y directions. + + Parameters + ---------- + Xval: float + YVal: float + + Return + ------- + None + + Description + ----------- + Sets the size defined by the length along the X axis XVal and the length along the Y axis YVal. + + """ + return _AIS.AIS_Plane_SetSize(self, *args) + + def SetTypeOfSensitivity(self, *args): + r""" + + Parameters + ---------- + theTypeOfSensitivity: Select3D_TypeOfSensitivity + + Return + ------- + None + + Description + ----------- + Sets the type of sensitivity for the plane. + + """ + return _AIS.AIS_Plane_SetTypeOfSensitivity(self, *args) + + def Size(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + X: float + Y: float + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_Plane_Size(self, *args) + + def TypeOfPlane(self, *args): + r""" + Return + ------- + AIS_TypeOfPlane + + Description + ----------- + Returns the type of plane - xy, yz, xz or unknown. + + """ + return _AIS.AIS_Plane_TypeOfPlane(self, *args) + + def TypeOfSensitivity(self, *args): + r""" + Return + ------- + Select3D_TypeOfSensitivity + + Description + ----------- + Returns the type of sensitivity for the plane;. + + """ + return _AIS.AIS_Plane_TypeOfSensitivity(self, *args) + + def UnsetMinimumSize(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Unsets transform persistence zoom. + + """ + return _AIS.AIS_Plane_UnsetMinimumSize(self, *args) + + def UnsetSize(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_Plane_UnsetSize(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_AIS_Plane_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _AIS.delete_AIS_Plane + +# Register AIS_Plane in _AIS: +_AIS.AIS_Plane_swigregister(AIS_Plane) +class AIS_PlaneTrihedron(AIS_InteractiveObject): + 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 + ---------- + aPlane: Geom_Plane + + Return + ------- + None + + Description + ----------- + Initializes the plane aPlane. The plane trihedron is constructed from this and an axis. + + """ + _AIS.AIS_PlaneTrihedron_swiginit(self, _AIS.new_AIS_PlaneTrihedron(*args)) + + def Component(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the component specified in SetComponent. + + """ + return _AIS.AIS_PlaneTrihedron_Component(self, *args) + + def GetLength(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns the length of X and Y axes. + + """ + return _AIS.AIS_PlaneTrihedron_GetLength(self, *args) + + def Position(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the point of origin of the plane trihedron. + + """ + return _AIS.AIS_PlaneTrihedron_Position(self, *args) + + def SetComponent(self, *args): + r""" + + Parameters + ---------- + aPlane: Geom_Plane + + Return + ------- + None + + Description + ----------- + Creates an instance of the component object aPlane. + + """ + return _AIS.AIS_PlaneTrihedron_SetComponent(self, *args) + + def SetLength(self, *args): + r""" + + Parameters + ---------- + theLength: float + + Return + ------- + None + + Description + ----------- + Sets the length of the X and Y axes. + + """ + return _AIS.AIS_PlaneTrihedron_SetLength(self, *args) + + def SetXLabel(self, *args): + r""" + + Parameters + ---------- + theLabel: str + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_PlaneTrihedron_SetXLabel(self, *args) + + def SetYLabel(self, *args): + r""" + + Parameters + ---------- + theLabel: str + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_PlaneTrihedron_SetYLabel(self, *args) + + def XAxis(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the 'XAxis'. + + """ + return _AIS.AIS_PlaneTrihedron_XAxis(self, *args) + + def YAxis(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the 'YAxis'. + + """ + return _AIS.AIS_PlaneTrihedron_YAxis(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_AIS_PlaneTrihedron_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _AIS.delete_AIS_PlaneTrihedron + +# Register AIS_PlaneTrihedron in _AIS: +_AIS.AIS_PlaneTrihedron_swigregister(AIS_PlaneTrihedron) +class AIS_Point(AIS_InteractiveObject): + 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 + ---------- + aComponent: Geom_Point + + Return + ------- + None + + Description + ----------- + Initializes the point aComponent from which the point datum will be built. + + """ + _AIS.AIS_Point_swiginit(self, _AIS.new_AIS_Point(*args)) + + def Component(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the component specified in SetComponent. + + """ + return _AIS.AIS_Point_Component(self, *args) + + def HasMarker(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns true if the point datum has a marker. + + """ + return _AIS.AIS_Point_HasMarker(self, *args) + + def SetComponent(self, *args): + r""" + + Parameters + ---------- + aComponent: Geom_Point + + Return + ------- + None + + Description + ----------- + Constructs an instance of the point aComponent. + + """ + return _AIS.AIS_Point_SetComponent(self, *args) + + def SetMarker(self, *args): + r""" + + Parameters + ---------- + aType: Aspect_TypeOfMarker + + Return + ------- + None + + Description + ----------- + Allows you to provide settings for a marker. These include - type of marker, - marker color, - scale factor. + + """ + return _AIS.AIS_Point_SetMarker(self, *args) + + def UnsetMarker(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Removes the marker settings. + + """ + return _AIS.AIS_Point_UnsetMarker(self, *args) + + def Vertex(self, *args): + r""" + Return + ------- + TopoDS_Vertex + + Description + ----------- + Converts a point into a vertex. + + """ + return _AIS.AIS_Point_Vertex(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_AIS_Point_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _AIS.delete_AIS_Point + +# Register AIS_Point in _AIS: +_AIS.AIS_Point_swigregister(AIS_Point) +class AIS_PointCloud(AIS_InteractiveObject): + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") + __repr__ = _swig_repr + DM_Points = _AIS.AIS_PointCloud_DM_Points + DM_BndBox = _AIS.AIS_PointCloud_DM_BndBox + SM_Points = _AIS.AIS_PointCloud_SM_Points + SM_SubsetOfPoints = _AIS.AIS_PointCloud_SM_SubsetOfPoints + SM_BndBox = _AIS.AIS_PointCloud_SM_BndBox + + + class DisplayMode(IntEnum): + DM_Points = 0 + DM_BndBox = 2 + DM_Points = DisplayMode.DM_Points + DM_BndBox = DisplayMode.DM_BndBox + + class SelectionMode(IntEnum): + SM_Points = 0 + SM_SubsetOfPoints = 1 + SM_BndBox = 2 + SM_Points = SelectionMode.SM_Points + SM_SubsetOfPoints = SelectionMode.SM_SubsetOfPoints + SM_BndBox = SelectionMode.SM_BndBox + + + def __init__(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Constructor. + + """ + _AIS.AIS_PointCloud_swiginit(self, _AIS.new_AIS_PointCloud(*args)) + + def GetBoundingBox(self, *args): + r""" + Return + ------- + Bnd_Box + + Description + ----------- + Get bounding box for presentation. + + """ + return _AIS.AIS_PointCloud_GetBoundingBox(self, *args) + + def GetPoints(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Get the points array. Method might be overridden to fill in points array dynamically from application data structures. + Return: the array of points. + + """ + return _AIS.AIS_PointCloud_GetPoints(self, *args) + + def SetPoints(self, *args): + r""" + + Parameters + ---------- + thePoints: Graphic3d_ArrayOfPoints + + Return + ------- + None + + Description + ----------- + Sets the points from array of points. Method will not copy the input data - array will be stored as handle. + Input parameter: thePoints the array of points. + + Parameters + ---------- + theCoords: TColgp_HArray1OfPnt + theColors: Quantity_HArray1OfColor (optional, default to NULL) + theNormals: TColgp_HArray1OfDir (optional, default to NULL) + + Return + ------- + None + + Description + ----------- + Sets the points with optional colors. The input data will be copied into internal buffer. The input arrays should have equal length, otherwise the presentation will not be computed and displayed. + Input parameter: theCoords the array of coordinates + Input parameter: theColors optional array of colors + Input parameter: theNormals optional array of normals. + + """ + return _AIS.AIS_PointCloud_SetPoints(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_AIS_PointCloud_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _AIS.delete_AIS_PointCloud + +# Register AIS_PointCloud in _AIS: +_AIS.AIS_PointCloud_swigregister(AIS_PointCloud) +class AIS_RubberBand(AIS_InteractiveObject): + 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 + ----------- + Constructs rubber band with default configuration: empty filling and white solid lines. @warning It binds this object with Graphic3d_ZLayerId_TopOSD layer. + + Parameters + ---------- + theLineColor: Quantity_Color + theType: Aspect_TypeOfLine + theLineWidth: float (optional, default to 1.0) + theIsPolygonClosed: bool (optional, default to Standard_True) + + Return + ------- + None + + Description + ----------- + Constructs the rubber band with empty filling and defined line style. + Input parameter: theLineColor color of rubber band lines + Input parameter: theType type of rubber band lines + Input parameter: theLineWidth width of rubber band line. By default it is 1. @warning It binds this object with Graphic3d_ZLayerId_TopOSD layer. + + Parameters + ---------- + theLineColor: Quantity_Color + theType: Aspect_TypeOfLine + theFillColor: Quantity_Color + theTransparency: float (optional, default to 1.0) + theLineWidth: float (optional, default to 1.0) + theIsPolygonClosed: bool (optional, default to Standard_True) + + Return + ------- + None + + Description + ----------- + Constructs the rubber band with defined filling and line parameters. + Input parameter: theLineColor color of rubber band lines + Input parameter: theType type of rubber band lines + Input parameter: theFillColor color of rubber band filling + Input parameter: theTransparency transparency of the filling. 0 is for opaque filling. By default it is transparent. + Input parameter: theLineWidth width of rubber band line. By default it is 1. @warning It binds this object with Graphic3d_ZLayerId_TopOSD layer. + + """ + _AIS.AIS_RubberBand_swiginit(self, _AIS.new_AIS_RubberBand(*args)) + + def AddPoint(self, *args): + r""" + + Parameters + ---------- + thePoint: Graphic3d_Vec2i + + Return + ------- + None + + Description + ----------- + Adds last point to the list of points. They are used to build polygon for rubber band. + See also: RemoveLastPoint(), GetPoints(). + + """ + return _AIS.AIS_RubberBand_AddPoint(self, *args) + + def ClearPoints(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Remove all points for the rubber band polygon. + + """ + return _AIS.AIS_RubberBand_ClearPoints(self, *args) + + def FillColor(self, *args): + r""" + Return + ------- + Quantity_Color + + Description + ----------- + Return: the color of rubber band filling. + + """ + return _AIS.AIS_RubberBand_FillColor(self, *args) + + def FillTransparency(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Return: fill transparency. + + """ + return _AIS.AIS_RubberBand_FillTransparency(self, *args) + + def IsFilling(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return: true if filling of rubber band is enabled. + + """ + return _AIS.AIS_RubberBand_IsFilling(self, *args) + + def IsPolygonClosed(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return: true if automatic closing of rubber band is enabled. + + """ + return _AIS.AIS_RubberBand_IsPolygonClosed(self, *args) + + def LineColor(self, *args): + r""" + Return + ------- + Quantity_Color + + Description + ----------- + Return: the Color attributes. + + """ + return _AIS.AIS_RubberBand_LineColor(self, *args) + + def LineType(self, *args): + r""" + Return + ------- + Aspect_TypeOfLine + + Description + ----------- + Return: type of lines. + + """ + return _AIS.AIS_RubberBand_LineType(self, *args) + + def LineWidth(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Return: width of lines. + + """ + return _AIS.AIS_RubberBand_LineWidth(self, *args) + + def Points(self, *args): + r""" + Return + ------- + NCollection_Sequence + + Description + ----------- + Return: points for the rubber band polygon. + + """ + return _AIS.AIS_RubberBand_Points(self, *args) + + def RemoveLastPoint(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Remove last point from the list of points for the rubber band polygon. + See also: AddPoint(), GetPoints(). + + """ + return _AIS.AIS_RubberBand_RemoveLastPoint(self, *args) + + def SetFillColor(self, *args): + r""" + + Parameters + ---------- + theColor: Quantity_Color + + Return + ------- + None + + Description + ----------- + Sets color of rubber band filling. + + """ + return _AIS.AIS_RubberBand_SetFillColor(self, *args) + + def SetFillTransparency(self, *args): + r""" + + Parameters + ---------- + theValue: float + + Return + ------- + None + + Description + ----------- + Sets fill transparency. + Input parameter: theValue the transparency value. 1.0 is for transparent background. + + """ + return _AIS.AIS_RubberBand_SetFillTransparency(self, *args) + + def SetFilling(self, *args): + r""" + + Parameters + ---------- + theIsFilling: bool + + Return + ------- + None + + Description + ----------- + Enable or disable filling of rubber band. + + Parameters + ---------- + theColor: Quantity_Color + theTransparency: float + + Return + ------- + None + + Description + ----------- + Enable filling of rubber band with defined parameters. + Input parameter: theColor color of filling + Input parameter: theTransparency transparency of the filling. 0 is for opaque filling. + + """ + return _AIS.AIS_RubberBand_SetFilling(self, *args) + + def SetLineColor(self, *args): + r""" + + Parameters + ---------- + theColor: Quantity_Color + + Return + ------- + None + + Description + ----------- + Sets color of lines for rubber band presentation. + + """ + return _AIS.AIS_RubberBand_SetLineColor(self, *args) + + def SetLineType(self, *args): + r""" + + Parameters + ---------- + theType: Aspect_TypeOfLine + + Return + ------- + None + + Description + ----------- + Sets type of line for rubber band presentation. + + """ + return _AIS.AIS_RubberBand_SetLineType(self, *args) + + def SetLineWidth(self, *args): + r""" + + Parameters + ---------- + theWidth: float + + Return + ------- + None + + Description + ----------- + Sets width of line for rubber band presentation. + + """ + return _AIS.AIS_RubberBand_SetLineWidth(self, *args) + + def SetPolygonClosed(self, *args): + r""" + + Parameters + ---------- + theIsPolygonClosed: bool + + Return + ------- + None + + Description + ----------- + Automatically create an additional line connecting the first and the last screen points to close the boundary polyline. + + """ + return _AIS.AIS_RubberBand_SetPolygonClosed(self, *args) + + def SetRectangle(self, *args): + r""" + + Parameters + ---------- + theMinX: int + theMinY: int + theMaxX: int + theMaxY: int + + Return + ------- + None + + Description + ----------- + Sets rectangle bounds. + + """ + return _AIS.AIS_RubberBand_SetRectangle(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_AIS_RubberBand_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _AIS.delete_AIS_RubberBand + +# Register AIS_RubberBand in _AIS: +_AIS.AIS_RubberBand_swigregister(AIS_RubberBand) +class AIS_Shape(AIS_InteractiveObject): + 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 + ---------- + shap: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + Initializes construction of the shape shap from wires, edges and vertices. + + """ + _AIS.AIS_Shape_swiginit(self, _AIS.new_AIS_Shape(*args)) + + def BoundingBox(self, *args): + r""" + Return + ------- + Bnd_Box + + Description + ----------- + Constructs a bounding box with which to reconstruct compound topological shapes for presentation. + + """ + return _AIS.AIS_Shape_BoundingBox(self, *args) + + def DumpJson(self, depth=-1): + r""" + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + """ + return _AIS.AIS_Shape_DumpJson(self, depth) + + def OwnDeviationAngle(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + anAngle: float + aPreviousAngle: float + + Description + ----------- + Returns true and the values of the deviation angle anAngle and the previous deviation angle aPreviousAngle. If these values are not already set, false is returned. + + """ + return _AIS.AIS_Shape_OwnDeviationAngle(self, *args) + + def OwnDeviationCoefficient(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + aCoefficient: float + aPreviousCoefficient: float + + Description + ----------- + Returns true and the values of the deviation coefficient aCoefficient and the previous deviation coefficient aPreviousCoefficient. If these values are not already set, false is returned. + + """ + return _AIS.AIS_Shape_OwnDeviationCoefficient(self, *args) + + @staticmethod + def SelectionMode(*args): + r""" + + Parameters + ---------- + theShapeType: TopAbs_ShapeEnum + + Return + ------- + int + + Description + ----------- + Return selection mode for specified shape type. + + """ + return _AIS.AIS_Shape_SelectionMode(*args) + + @staticmethod + def SelectionType(*args): + r""" + + Parameters + ---------- + theSelMode: int + + Return + ------- + TopAbs_ShapeEnum + + Description + ----------- + Return shape type for specified selection mode. + + """ + return _AIS.AIS_Shape_SelectionType(*args) + + def Set(self, *args): + r""" + + Parameters + ---------- + theShape: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + Alias for ::SetShape(). + + """ + return _AIS.AIS_Shape_Set(self, *args) + + def SetAngleAndDeviation(self, *args): + r""" + + Parameters + ---------- + anAngle: float + + Return + ------- + None + + Description + ----------- + this compute a new angle and Deviation from the value anAngle and set the values stored in myDrawer with these that become local to the shape. + + """ + return _AIS.AIS_Shape_SetAngleAndDeviation(self, *args) + + def SetOwnDeviationAngle(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Sets a local value for deviation angle for this specific shape. + + Parameters + ---------- + anAngle: float + + Return + ------- + None + + Description + ----------- + sets myOwnDeviationAngle field in Prs3d_Drawer & recomputes presentation. + + """ + return _AIS.AIS_Shape_SetOwnDeviationAngle(self, *args) + + def SetOwnDeviationCoefficient(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Sets a local value for deviation coefficient for this specific shape. + + Parameters + ---------- + aCoefficient: float + + Return + ------- + None + + Description + ----------- + Sets a local value for deviation coefficient for this specific shape. + + """ + return _AIS.AIS_Shape_SetOwnDeviationCoefficient(self, *args) + + def SetShape(self, *args): + r""" + + Parameters + ---------- + theShape: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + Constructs an instance of the shape object theShape. + + """ + return _AIS.AIS_Shape_SetShape(self, *args) + + def SetTextureOriginUV(self, *args): + r""" + + Parameters + ---------- + theOriginUV: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + Use this method to change the origin of the texture. The texel (0,0) will be mapped to the surface (myUVOrigin.X(), myUVOrigin.Y()). + + """ + return _AIS.AIS_Shape_SetTextureOriginUV(self, *args) + + def SetTextureRepeatUV(self, *args): + r""" + + Parameters + ---------- + theRepeatUV: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + Sets the number of occurrences of the texture on each face. The texture itself is parameterized in (0,1) by (0,1). Each face of the shape to be textured is parameterized in UV space (Umin,Umax) by (Vmin,Vmax). + + """ + return _AIS.AIS_Shape_SetTextureRepeatUV(self, *args) + + def SetTextureScaleUV(self, *args): + r""" + + Parameters + ---------- + theScaleUV: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + Use this method to scale the texture (percent of the face). You can specify a scale factor for both U and V. Example: if you set ScaleU and ScaleV to 0.5 and you enable texture repeat, the texture will appear twice on the face in each direction. + + """ + return _AIS.AIS_Shape_SetTextureScaleUV(self, *args) + + def SetTypeOfHLR(self, *args): + r""" + + Parameters + ---------- + theTypeOfHLR: Prs3d_TypeOfHLR + + Return + ------- + None + + Description + ----------- + Sets the type of HLR algorithm used by the shape. + + """ + return _AIS.AIS_Shape_SetTypeOfHLR(self, *args) + + def Shape(self, *args): + r""" + Return + ------- + TopoDS_Shape + + Description + ----------- + Returns this shape object. + + """ + return _AIS.AIS_Shape_Shape(self, *args) + + def TextureOriginUV(self, *args): + r""" + Return + ------- + gp_Pnt2d + + Description + ----------- + Return texture origin UV position; (0, 0) by default. + + """ + return _AIS.AIS_Shape_TextureOriginUV(self, *args) + + def TextureRepeatUV(self, *args): + r""" + Return + ------- + gp_Pnt2d + + Description + ----------- + Return texture repeat UV values; (1, 1) by default. + + """ + return _AIS.AIS_Shape_TextureRepeatUV(self, *args) + + def TextureScaleUV(self, *args): + r""" + Return + ------- + gp_Pnt2d + + Description + ----------- + Return scale factor for UV coordinates; (1, 1) by default. + + """ + return _AIS.AIS_Shape_TextureScaleUV(self, *args) + + def TypeOfHLR(self, *args): + r""" + Return + ------- + Prs3d_TypeOfHLR + + Description + ----------- + Gets the type of HLR algorithm. + + """ + return _AIS.AIS_Shape_TypeOfHLR(self, *args) + + def UserAngle(self, *args): + r""" + Return + ------- + float + + Description + ----------- + gives back the angle initial value put by the User. + + """ + return _AIS.AIS_Shape_UserAngle(self, *args) + + @staticmethod + def computeHlrPresentation(*args): + r""" + + Parameters + ---------- + theProjector: Graphic3d_Camera + thePrs: Prs3d_Presentation + theShape: TopoDS_Shape + theDrawer: Prs3d_Drawer + + Return + ------- + None + + Description + ----------- + Compute HLR presentation for specified shape. + + """ + return _AIS.AIS_Shape_computeHlrPresentation(*args) + + + @staticmethod + def DownCast(t): + return Handle_AIS_Shape_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _AIS.delete_AIS_Shape + +# Register AIS_Shape in _AIS: +_AIS.AIS_Shape_swigregister(AIS_Shape) +class AIS_SignatureFilter(AIS_TypeFilter): + 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 + ---------- + aGivenKind: AIS_KindOfInteractive + aGivenSignature: int + + Return + ------- + None + + Description + ----------- + Initializes the signature filter, adding the signature specification, aGivenSignature, to that for type, aGivenKind, in AIS_TypeFilter. + + """ + _AIS.AIS_SignatureFilter_swiginit(self, _AIS.new_AIS_SignatureFilter(*args)) + + + @staticmethod + def DownCast(t): + return Handle_AIS_SignatureFilter_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _AIS.delete_AIS_SignatureFilter + +# Register AIS_SignatureFilter in _AIS: +_AIS.AIS_SignatureFilter_swigregister(AIS_SignatureFilter) +class AIS_TextLabel(AIS_InteractiveObject): + 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. + + """ + _AIS.AIS_TextLabel_swiginit(self, _AIS.new_AIS_TextLabel(*args)) + + def FontAspect(self, *args): + r""" + Return + ------- + Font_FontAspect + + Description + ----------- + Returns the font aspect of the label text. + + """ + return _AIS.AIS_TextLabel_FontAspect(self, *args) + + def FontName(self, *args): + r""" + Return + ------- + TCollection_AsciiString + + Description + ----------- + Returns the font of the label text. + + """ + return _AIS.AIS_TextLabel_FontName(self, *args) + + def HasFlipping(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_TextLabel_HasFlipping(self, *args) + + def HasOrientation3D(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns true if the current text placement mode uses text orientation in the model 3D space. + + """ + return _AIS.AIS_TextLabel_HasOrientation3D(self, *args) + + def HasOwnAnchorPoint(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns flag if text uses position as point of attach. + + """ + return _AIS.AIS_TextLabel_HasOwnAnchorPoint(self, *args) + + def Orientation3D(self, *args): + r""" + Return + ------- + gp_Ax2 + + Description + ----------- + Returns label orientation in the model 3D space. + + """ + return _AIS.AIS_TextLabel_Orientation3D(self, *args) + + def Position(self, *args): + r""" + Return + ------- + gp_Pnt + + Description + ----------- + Returns position. + + """ + return _AIS.AIS_TextLabel_Position(self, *args) + + def SetAngle(self, *args): + r""" + + Parameters + ---------- + theAngle: float + + Return + ------- + None + + Description + ----------- + Setup angle. + + """ + return _AIS.AIS_TextLabel_SetAngle(self, *args) + + def SetColorSubTitle(self, *args): + r""" + + Parameters + ---------- + theColor: Quantity_Color + + Return + ------- + None + + Description + ----------- + Modifies the colour of the subtitle for the TODT_SUBTITLE TextDisplayType and the colour of backgroubd for the TODT_DEKALE TextDisplayType. + + """ + return _AIS.AIS_TextLabel_SetColorSubTitle(self, *args) + + def SetDisplayType(self, *args): + r""" + + Parameters + ---------- + theDisplayType: Aspect_TypeOfDisplayText + + Return + ------- + None + + Description + ----------- + Define the display type of the text. //! TODT_NORMAL Default display. Text only. TODT_SUBTITLE There is a subtitle under the text. TODT_DEKALE The text is displayed with a 3D style. TODT_BLEND The text is displayed in XOR. TODT_DIMENSION Dimension line under text will be invisible. + + """ + return _AIS.AIS_TextLabel_SetDisplayType(self, *args) + + def SetFlipping(self, *args): + r""" + + Parameters + ---------- + theIsFlipping: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_TextLabel_SetFlipping(self, *args) + + def SetFont(self, *args): + r""" + + Parameters + ---------- + theFont: str + + Return + ------- + None + + Description + ----------- + Setup font. + + """ + return _AIS.AIS_TextLabel_SetFont(self, *args) + + def SetFontAspect(self, *args): + r""" + + Parameters + ---------- + theFontAspect: Font_FontAspect + + Return + ------- + None + + Description + ----------- + Setup font aspect. + + """ + return _AIS.AIS_TextLabel_SetFontAspect(self, *args) + + def SetHJustification(self, *args): + r""" + + Parameters + ---------- + theHJust: Graphic3d_HorizontalTextAlignment + + Return + ------- + None + + Description + ----------- + Setup horizontal justification. + + """ + return _AIS.AIS_TextLabel_SetHJustification(self, *args) + + def SetHeight(self, *args): + r""" + + Parameters + ---------- + theHeight: float + + Return + ------- + None + + Description + ----------- + Setup height. + + """ + return _AIS.AIS_TextLabel_SetHeight(self, *args) + + def SetOrientation3D(self, *args): + r""" + + Parameters + ---------- + theOrientation: gp_Ax2 + + Return + ------- + None + + Description + ----------- + Setup label orientation in the model 3D space. + + """ + return _AIS.AIS_TextLabel_SetOrientation3D(self, *args) + + def SetOwnAnchorPoint(self, *args): + r""" + + Parameters + ---------- + theOwnAnchorPoint: bool + + Return + ------- + None + + Description + ----------- + Set flag if text uses position as point of attach. + + """ + return _AIS.AIS_TextLabel_SetOwnAnchorPoint(self, *args) + + def SetPosition(self, *args): + r""" + + Parameters + ---------- + thePosition: gp_Pnt + + Return + ------- + None + + Description + ----------- + Setup position. + + """ + return _AIS.AIS_TextLabel_SetPosition(self, *args) + + def SetText(self, *args): + r""" + + Parameters + ---------- + theText: str + + Return + ------- + None + + Description + ----------- + Setup text. + + """ + return _AIS.AIS_TextLabel_SetText(self, *args) + + def SetTextFormatter(self, *args): + r""" + + Parameters + ---------- + theFormatter: Font_TextFormatter + + Return + ------- + None + + Description + ----------- + Setup text formatter for presentation. It's empty by default. + + """ + return _AIS.AIS_TextLabel_SetTextFormatter(self, *args) + + def SetVJustification(self, *args): + r""" + + Parameters + ---------- + theVJust: Graphic3d_VerticalTextAlignment + + Return + ------- + None + + Description + ----------- + Setup vertical justification. + + """ + return _AIS.AIS_TextLabel_SetVJustification(self, *args) + + def SetZoomable(self, *args): + r""" + + Parameters + ---------- + theIsZoomable: bool + + Return + ------- + None + + Description + ----------- + Setup zoomable property. + + """ + return _AIS.AIS_TextLabel_SetZoomable(self, *args) + + def Text(self, *args): + r""" + Return + ------- + TCollection_ExtendedString + + Description + ----------- + Returns the label text. + + """ + return _AIS.AIS_TextLabel_Text(self, *args) + + def TextFormatter(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns text presentation formatter; NULL by default, which means standard text formatter will be used. + + """ + return _AIS.AIS_TextLabel_TextFormatter(self, *args) + + def UnsetOrientation3D(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Reset label orientation in the model 3D space. + + """ + return _AIS.AIS_TextLabel_UnsetOrientation3D(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_AIS_TextLabel_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _AIS.delete_AIS_TextLabel + +# Register AIS_TextLabel in _AIS: +_AIS.AIS_TextLabel_swigregister(AIS_TextLabel) +class AIS_Triangulation(AIS_InteractiveObject): + 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 + ---------- + aTriangulation: Poly_Triangulation + + Return + ------- + None + + Description + ----------- + Constructs the Triangulation display object. + + """ + _AIS.AIS_Triangulation_swiginit(self, _AIS.new_AIS_Triangulation(*args)) + + def GetColors(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Get the color for each node. Each 32-bit color is Alpha << 24 + Blue << 16 + Green << 8 + Red. + + """ + return _AIS.AIS_Triangulation_GetColors(self, *args) + + def GetTriangulation(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns Poly_Triangulation . + + """ + return _AIS.AIS_Triangulation_GetTriangulation(self, *args) + + def HasVertexColors(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns true if triangulation has vertex colors. + + """ + return _AIS.AIS_Triangulation_HasVertexColors(self, *args) + + def SetColors(self, *args): + r""" + + Parameters + ---------- + aColor: TColStd_HArray1OfInteger + + Return + ------- + None + + Description + ----------- + Set the color for each node. Each 32-bit color is Alpha << 24 + Blue << 16 + Green << 8 + Red Order of color components is essential for further usage by OpenGL. + + """ + return _AIS.AIS_Triangulation_SetColors(self, *args) + + def SetTriangulation(self, *args): + r""" + + Parameters + ---------- + aTriangulation: Poly_Triangulation + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _AIS.AIS_Triangulation_SetTriangulation(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_AIS_Triangulation_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _AIS.delete_AIS_Triangulation + +# Register AIS_Triangulation in _AIS: +_AIS.AIS_Triangulation_swigregister(AIS_Triangulation) +class AIS_Trihedron(AIS_InteractiveObject): + 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 + ---------- + theComponent: Geom_Axis2Placement + + Return + ------- + None + + Description + ----------- + Initializes a trihedron entity. + + """ + _AIS.AIS_Trihedron_swiginit(self, _AIS.new_AIS_Trihedron(*args)) + + def ArrowColor(self, *args): + r""" + Return + ------- + Quantity_Color + + Description + ----------- + Returns trihedron arrow color. + + """ + return _AIS.AIS_Trihedron_ArrowColor(self, *args) + + def Component(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the right-handed coordinate system set in SetComponent. + + """ + return _AIS.AIS_Trihedron_Component(self, *args) + + def DatumDisplayMode(self, *args): + r""" + Return + ------- + Prs3d_DatumMode + + Description + ----------- + Returns datum display mode. + + """ + return _AIS.AIS_Trihedron_DatumDisplayMode(self, *args) + + def DatumPartColor(self, *args): + r""" + + Parameters + ---------- + thePart: Prs3d_DatumParts + + Return + ------- + Quantity_Color + + Description + ----------- + Returns color of datum part: origin or some of trihedron axes. + + """ + return _AIS.AIS_Trihedron_DatumPartColor(self, *args) + + def HasArrowColor(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns true if trihedron has own arrow color. + + """ + return _AIS.AIS_Trihedron_HasArrowColor(self, *args) + + def HasOwnSize(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns true if the trihedron object has a size other than the default size of 100 mm. along each axis. + + """ + return _AIS.AIS_Trihedron_HasOwnSize(self, *args) + + def HasTextColor(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns true if trihedron has own text color. + + """ + return _AIS.AIS_Trihedron_HasTextColor(self, *args) + + def Label(self, *args): + r""" + + Parameters + ---------- + thePart: Prs3d_DatumParts + + Return + ------- + TCollection_ExtendedString + + Description + ----------- + Returns text of axis. Parameter thePart should be XAxis, YAxis or ZAxis. + + """ + return _AIS.AIS_Trihedron_Label(self, *args) + + def SelectionPriority(self, *args): + r""" + + Parameters + ---------- + thePart: Prs3d_DatumParts + + Return + ------- + int + + Description + ----------- + Returns priority of selection for owner of the given type. + + """ + return _AIS.AIS_Trihedron_SelectionPriority(self, *args) + + def SetArrowColor(self, *args): + r""" + + Parameters + ---------- + theColor: Quantity_Color + + Return + ------- + None + + Description + ----------- + Sets color of arrow of trihedron axes. + + Parameters + ---------- + thePart: Prs3d_DatumParts + theColor: Quantity_Color + + Return + ------- + None + + Description + ----------- + Sets color of arrow of trihedron axes. + + """ + return _AIS.AIS_Trihedron_SetArrowColor(self, *args) + + def SetAxisColor(self, *args): + r""" + + Parameters + ---------- + theColor: Quantity_Color + + Return + ------- + None + + Description + ----------- + Sets color of z-axis. //Standard_DEPRECATED(//DEPRECATION_WARNING). + + """ + return _AIS.AIS_Trihedron_SetAxisColor(self, *args) + + def SetComponent(self, *args): + r""" + + Parameters + ---------- + theComponent: Geom_Axis2Placement + + Return + ------- + None + + Description + ----------- + Constructs the right-handed coordinate system aComponent. + + """ + return _AIS.AIS_Trihedron_SetComponent(self, *args) + + def SetDatumDisplayMode(self, *args): + r""" + + Parameters + ---------- + theMode: Prs3d_DatumMode + + Return + ------- + None + + Description + ----------- + Sets Shading or Wireframe display mode, triangle or segment graphic group is used relatively. + + """ + return _AIS.AIS_Trihedron_SetDatumDisplayMode(self, *args) + + def SetDatumPartColor(self, *args): + r""" + + Parameters + ---------- + thePart: Prs3d_DatumParts + theColor: Quantity_Color + + Return + ------- + None + + Description + ----------- + Sets color of datum part: origin or some of trihedron axes. If presentation is shading mode, this color is set for both sides of facing model. + + """ + return _AIS.AIS_Trihedron_SetDatumPartColor(self, *args) + + def SetDrawArrows(self, *args): + r""" + + Parameters + ---------- + theToDraw: bool + + Return + ------- + None + + Description + ----------- + Sets whether to draw the arrows in visualization. + + """ + return _AIS.AIS_Trihedron_SetDrawArrows(self, *args) + + def SetLabel(self, *args): + r""" + + Parameters + ---------- + thePart: Prs3d_DatumParts + theName: str + + Return + ------- + None + + Description + ----------- + Sets text label for trihedron axis. Parameter thePart should be XAxis, YAxis or ZAxis. + + """ + return _AIS.AIS_Trihedron_SetLabel(self, *args) + + def SetOriginColor(self, *args): + r""" + + Parameters + ---------- + theColor: Quantity_Color + + Return + ------- + None + + Description + ----------- + Sets color of origin. //Standard_DEPRECATED(//DEPRECATION_WARNING). + + """ + return _AIS.AIS_Trihedron_SetOriginColor(self, *args) + + def SetSelectionPriority(self, *args): + r""" + + Parameters + ---------- + thePart: Prs3d_DatumParts + thePriority: int + + Return + ------- + None + + Description + ----------- + Sets priority of selection for owner of the given type. + + """ + return _AIS.AIS_Trihedron_SetSelectionPriority(self, *args) + + def SetSize(self, *args): + r""" + + Parameters + ---------- + theValue: float + + Return + ------- + None + + Description + ----------- + Sets the size of trihedron object. + + """ + return _AIS.AIS_Trihedron_SetSize(self, *args) + + def SetTextColor(self, *args): + r""" + + Parameters + ---------- + theColor: Quantity_Color + + Return + ------- + None + + Description + ----------- + Sets color of label of trihedron axes. + + Parameters + ---------- + thePart: Prs3d_DatumParts + theColor: Quantity_Color + + Return + ------- + None + + Description + ----------- + Sets color of label of trihedron axis. + + """ + return _AIS.AIS_Trihedron_SetTextColor(self, *args) + + def SetXAxisColor(self, *args): + r""" + + Parameters + ---------- + theColor: Quantity_Color + + Return + ------- + None + + Description + ----------- + Sets color of x-axis. //Standard_DEPRECATED(//DEPRECATION_WARNING). + + """ + return _AIS.AIS_Trihedron_SetXAxisColor(self, *args) + + def SetYAxisColor(self, *args): + r""" + + Parameters + ---------- + theColor: Quantity_Color + + Return + ------- + None + + Description + ----------- + Sets color of y-axis. //Standard_DEPRECATED(//DEPRECATION_WARNING). + + """ + return _AIS.AIS_Trihedron_SetYAxisColor(self, *args) + + def Size(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns the size of trihedron object; 100.0 by DEFAULT. + + """ + return _AIS.AIS_Trihedron_Size(self, *args) + + def TextColor(self, *args): + r""" + Return + ------- + Quantity_Color + + Description + ----------- + Returns trihedron text color. + + """ + return _AIS.AIS_Trihedron_TextColor(self, *args) + + def ToDrawArrows(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns true if arrows are to be drawn. + + """ + return _AIS.AIS_Trihedron_ToDrawArrows(self, *args) + + def UnsetSize(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Removes any non-default settings for size of this trihedron object. If the object has 1 color, the default size of the drawer is reproduced, otherwise DatumAspect becomes null. + + """ + return _AIS.AIS_Trihedron_UnsetSize(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_AIS_Trihedron_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _AIS.delete_AIS_Trihedron + +# Register AIS_Trihedron in _AIS: +_AIS.AIS_Trihedron_swigregister(AIS_Trihedron) +class AIS_ViewCube(AIS_InteractiveObject): + 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 + ----------- + Empty constructor. + + """ + _AIS.AIS_ViewCube_swiginit(self, _AIS.new_AIS_ViewCube(*args)) + + def AxesConeRadius(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns radius of cone of axes of the trihedron; 3.0 by default. + + """ + return _AIS.AIS_ViewCube_AxesConeRadius(self, *args) + + def AxesPadding(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Return padding between axes and 3D part (box); 10 by default. + + """ + return _AIS.AIS_ViewCube_AxesPadding(self, *args) + + def AxesRadius(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns radius of axes of the trihedron; 1.0 by default. + + """ + return _AIS.AIS_ViewCube_AxesRadius(self, *args) + + def AxesSphereRadius(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns radius of sphere (central point) of the trihedron; 4.0 by default. + + """ + return _AIS.AIS_ViewCube_AxesSphereRadius(self, *args) + + def AxisLabel(self, *args): + r""" + + Parameters + ---------- + theAxis: Prs3d_DatumParts + + Return + ------- + TCollection_AsciiString + + Description + ----------- + Return axes labels or empty string if undefined. Default labels: X, Y, Z. + + """ + return _AIS.AIS_ViewCube_AxisLabel(self, *args) + + def BoxColor(self, *args): + r""" + Return + ------- + Quantity_Color + + Description + ----------- + Return value of front color for the 3D part of object. + + """ + return _AIS.AIS_ViewCube_BoxColor(self, *args) + + def BoxCornerMinSize(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Return minimal size of box corner; 2 by default. + + """ + return _AIS.AIS_ViewCube_BoxCornerMinSize(self, *args) + + def BoxCornerStyle(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Return shading style of box corners. + + """ + return _AIS.AIS_ViewCube_BoxCornerStyle(self, *args) + + def BoxEdgeGap(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Return gap between box edges and box sides; 0 by default. + + """ + return _AIS.AIS_ViewCube_BoxEdgeGap(self, *args) + + def BoxEdgeMinSize(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Return minimal size of box edge; 2 by default. + + """ + return _AIS.AIS_ViewCube_BoxEdgeMinSize(self, *args) + + def BoxEdgeStyle(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Return shading style of box edges. + + """ + return _AIS.AIS_ViewCube_BoxEdgeStyle(self, *args) + + def BoxFacetExtension(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Return box facet extension to edge/corner facet split; 10 by default. + + """ + return _AIS.AIS_ViewCube_BoxFacetExtension(self, *args) + + def BoxSideLabel(self, *args): + r""" + + Parameters + ---------- + theSide: V3d_TypeOfOrientation + + Return + ------- + TCollection_AsciiString + + Description + ----------- + Return box side label or empty string if undefined. Default labels: FRONT, BACK, LEFT, RIGHT, TOP, BOTTOM. + + """ + return _AIS.AIS_ViewCube_BoxSideLabel(self, *args) + + def BoxSideStyle(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Return shading style of box sides. + + """ + return _AIS.AIS_ViewCube_BoxSideStyle(self, *args) + + def BoxTransparency(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Return transparency for 3D part of object. + + """ + return _AIS.AIS_ViewCube_BoxTransparency(self, *args) + + def Compute(self, *args): + r""" + + Parameters + ---------- + thePrsMgr: PrsMgr_PresentationManager + thePrs: Prs3d_Presentation + theMode: int (optional, default to 0) + + Return + ------- + None + + Description + ----------- + Compute 3D part of View Cube. + Input parameter: thePrsMgr presentation manager. + Input parameter: thePrs input presentation that is to be filled with flat presentation primitives. + Input parameter: theMode display mode. @warning this object accept only 0 display mode. + + """ + return _AIS.AIS_ViewCube_Compute(self, *args) + + def Duration(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Return duration of animation in seconds; 0.5 sec by default. + + """ + return _AIS.AIS_ViewCube_Duration(self, *args) + + def Font(self, *args): + r""" + Return + ------- + TCollection_AsciiString + + Description + ----------- + Return font name that is used for displaying of sides and axes text. Alias for: @code Attributes()->TextAspect()->Aspect()->SetFont() @endcode. + + """ + return _AIS.AIS_ViewCube_Font(self, *args) + + def FontHeight(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Return height of font. + + """ + return _AIS.AIS_ViewCube_FontHeight(self, *args) + + def HandleClick(self, *args): + r""" + + Parameters + ---------- + theOwner: AIS_ViewCubeOwner + + Return + ------- + None + + Description + ----------- + Perform camera transformation corresponding to the input detected owner. + + """ + return _AIS.AIS_ViewCube_HandleClick(self, *args) + + def HasAnimation(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return: True if View Cube has unfinished animation of view camera. + + """ + return _AIS.AIS_ViewCube_HasAnimation(self, *args) + + def InnerColor(self, *args): + r""" + Return + ------- + Quantity_Color + + Description + ----------- + Return color of sides back material. + + """ + return _AIS.AIS_ViewCube_InnerColor(self, *args) + + @staticmethod + def IsBoxCorner(*args): + r""" + + Parameters + ---------- + theOrient: V3d_TypeOfOrientation + + Return + ------- + bool + + Description + ----------- + Return True if specified orientation belongs to box corner (vertex). + + """ + return _AIS.AIS_ViewCube_IsBoxCorner(*args) + + @staticmethod + def IsBoxEdge(*args): + r""" + + Parameters + ---------- + theOrient: V3d_TypeOfOrientation + + Return + ------- + bool + + Description + ----------- + Return True if specified orientation belongs to box edge. + + """ + return _AIS.AIS_ViewCube_IsBoxEdge(*args) + + @staticmethod + def IsBoxSide(*args): + r""" + + Parameters + ---------- + theOrient: V3d_TypeOfOrientation + + Return + ------- + bool + + Description + ----------- + Return True if specified orientation belongs to box side. + + """ + return _AIS.AIS_ViewCube_IsBoxSide(*args) + + def IsFixedAnimationLoop(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return True if camera animation should be done in uninterruptible loop; True by default. + + """ + return _AIS.AIS_ViewCube_IsFixedAnimationLoop(self, *args) + + def IsYup(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return True if application expects Y-up viewer orientation instead of Z-up; False by default. + + """ + return _AIS.AIS_ViewCube_IsYup(self, *args) + + def ResetStyles(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Reset all size and style parameters to default. @warning It doesn't reset position of View Cube. + + """ + return _AIS.AIS_ViewCube_ResetStyles(self, *args) + + def RoundRadius(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Return relative radius of side corners (round rectangle); 0.0 by default. The value in within [0, 0.5] range meaning absolute radius = RoundRadius() / Size(). + + """ + return _AIS.AIS_ViewCube_RoundRadius(self, *args) + + def SetAutoStartAnimation(self, *args): + r""" + + Parameters + ---------- + theToEnable: bool + + Return + ------- + None + + Description + ----------- + Enable/disable automatic camera transformation on selection (highlighting). The automatic logic can be disabled if application wants performing action manually basing on picking results (AIS_ViewCubeOwner). + + """ + return _AIS.AIS_ViewCube_SetAutoStartAnimation(self, *args) + + def SetAxesConeRadius(self, *args): + r""" + + Parameters + ---------- + theRadius: float + + Return + ------- + None + + Description + ----------- + Sets radius of cone of axes of the trihedron. + + """ + return _AIS.AIS_ViewCube_SetAxesConeRadius(self, *args) + + def SetAxesLabels(self, *args): + r""" + + Parameters + ---------- + theX: str + theY: str + theZ: str + + Return + ------- + None + + Description + ----------- + Set axes labels. + + """ + return _AIS.AIS_ViewCube_SetAxesLabels(self, *args) + + def SetAxesPadding(self, *args): + r""" + + Parameters + ---------- + theValue: float + + Return + ------- + None + + Description + ----------- + Set new value of padding between axes and 3D part (box). + + """ + return _AIS.AIS_ViewCube_SetAxesPadding(self, *args) + + def SetAxesRadius(self, *args): + r""" + + Parameters + ---------- + theRadius: float + + Return + ------- + None + + Description + ----------- + Sets radius of axes of the trihedron. + + """ + return _AIS.AIS_ViewCube_SetAxesRadius(self, *args) + + def SetAxesSphereRadius(self, *args): + r""" + + Parameters + ---------- + theRadius: float + + Return + ------- + None + + Description + ----------- + Sets radius of sphere (central point) of the trihedron. + + """ + return _AIS.AIS_ViewCube_SetAxesSphereRadius(self, *args) + + def SetBoxColor(self, *args): + r""" + + Parameters + ---------- + theColor: Quantity_Color + + Return + ------- + None + + Description + ----------- + Set new value of front color for the 3D part of object. + Input parameter: theColor input color value. + + """ + return _AIS.AIS_ViewCube_SetBoxColor(self, *args) + + def SetBoxCornerMinSize(self, *args): + r""" + + Parameters + ---------- + theValue: float + + Return + ------- + None + + Description + ----------- + Set new value of box corner minimal size. + + """ + return _AIS.AIS_ViewCube_SetBoxCornerMinSize(self, *args) + + def SetBoxEdgeGap(self, *args): + r""" + + Parameters + ---------- + theValue: float + + Return + ------- + None + + Description + ----------- + Set new value of box edges gap. + + """ + return _AIS.AIS_ViewCube_SetBoxEdgeGap(self, *args) + + def SetBoxEdgeMinSize(self, *args): + r""" + + Parameters + ---------- + theValue: float + + Return + ------- + None + + Description + ----------- + Set new value of box edge minimal size. + + """ + return _AIS.AIS_ViewCube_SetBoxEdgeMinSize(self, *args) + + def SetBoxFacetExtension(self, *args): + r""" + + Parameters + ---------- + theValue: float + + Return + ------- + None + + Description + ----------- + Set new value of box facet extension. + + """ + return _AIS.AIS_ViewCube_SetBoxFacetExtension(self, *args) + + def SetBoxSideLabel(self, *args): + r""" + + Parameters + ---------- + theSide: V3d_TypeOfOrientation + theLabel: str + + Return + ------- + None + + Description + ----------- + Set box side label. + + """ + return _AIS.AIS_ViewCube_SetBoxSideLabel(self, *args) + + def SetBoxTransparency(self, *args): + r""" + + Parameters + ---------- + theValue: float + + Return + ------- + None + + Description + ----------- + Set new value of transparency for 3D part of object. + Input parameter: theValue input transparency value. + + """ + return _AIS.AIS_ViewCube_SetBoxTransparency(self, *args) + + def SetDrawAxes(self, *args): + r""" + + Parameters + ---------- + theValue: bool + + Return + ------- + None + + Description + ----------- + Enable/disable drawing of trihedron. + + """ + return _AIS.AIS_ViewCube_SetDrawAxes(self, *args) + + def SetDrawEdges(self, *args): + r""" + + Parameters + ---------- + theValue: bool + + Return + ------- + None + + Description + ----------- + Enable/disable drawing of edges of View Cube. + + """ + return _AIS.AIS_ViewCube_SetDrawEdges(self, *args) + + def SetDrawVertices(self, *args): + r""" + + Parameters + ---------- + theValue: bool + + Return + ------- + None + + Description + ----------- + Enable/disable drawing of vertices (corners) of View Cube. + + """ + return _AIS.AIS_ViewCube_SetDrawVertices(self, *args) + + def SetDuration(self, *args): + r""" + + Parameters + ---------- + theValue: float + + Return + ------- + None + + Description + ----------- + Set duration of animation. + Input parameter: theValue input value of duration in seconds. + + """ + return _AIS.AIS_ViewCube_SetDuration(self, *args) + + def SetFitSelected(self, *args): + r""" + + Parameters + ---------- + theToFitSelected: bool + + Return + ------- + None + + Description + ----------- + Set if animation should fit selected objects or to fit entire scene. + + """ + return _AIS.AIS_ViewCube_SetFitSelected(self, *args) + + def SetFixedAnimationLoop(self, *args): + r""" + + Parameters + ---------- + theToEnable: bool + + Return + ------- + None + + Description + ----------- + Set if camera animation should be done in uninterruptible loop. + + """ + return _AIS.AIS_ViewCube_SetFixedAnimationLoop(self, *args) + + def SetFont(self, *args): + r""" + + Parameters + ---------- + theFont: str + + Return + ------- + None + + Description + ----------- + Set font name that is used for displaying of sides and axes text. Alias for: @code Attributes()->TextAspect()->SetFont() @endcode. + + """ + return _AIS.AIS_ViewCube_SetFont(self, *args) + + def SetFontHeight(self, *args): + r""" + + Parameters + ---------- + theValue: float + + Return + ------- + None + + Description + ----------- + Change font height. Alias for: @code Attributes()->TextAspect()->SetHeight() @endcode. + + """ + return _AIS.AIS_ViewCube_SetFontHeight(self, *args) + + def SetInnerColor(self, *args): + r""" + + Parameters + ---------- + theColor: Quantity_Color + + Return + ------- + None + + Description + ----------- + Set color of sides back material. Alias for: @code Attributes()->ShadingAspect()->Aspect()->ChangeBackMaterial().SetColor() @endcode. + + """ + return _AIS.AIS_ViewCube_SetInnerColor(self, *args) + + def SetResetCamera(self, *args): + r""" + + Parameters + ---------- + theToReset: bool + + Return + ------- + None + + Description + ----------- + Set if new camera Up direction should be always set to default value for a new camera Direction. + + """ + return _AIS.AIS_ViewCube_SetResetCamera(self, *args) + + def SetRoundRadius(self, *args): + r""" + + Parameters + ---------- + theValue: float + + Return + ------- + None + + Description + ----------- + Set relative radius of View Cube sides corners (round rectangle). The value should be within [0, 0.5] range. + + """ + return _AIS.AIS_ViewCube_SetRoundRadius(self, *args) + + def SetSize(self, *args): + r""" + + Parameters + ---------- + theValue: float + theToAdaptAnother: bool (optional, default to true) + + Return + ------- + None + + Description + ----------- + Sets size (width and height) of View cube sides. + Parameter theToAdaptAnother if True, then other parameters will be adapted to specified size. + + """ + return _AIS.AIS_ViewCube_SetSize(self, *args) + + def SetTextColor(self, *args): + r""" + + Parameters + ---------- + theColor: Quantity_Color + + Return + ------- + None + + Description + ----------- + Set color of text labels on box sides. Alias for: @code Attributes()->TextAspect()->SetColor() @endcode. + + """ + return _AIS.AIS_ViewCube_SetTextColor(self, *args) + + def SetViewAnimation(self, *args): + r""" + + Parameters + ---------- + theAnimation: AIS_AnimationCamera + + Return + ------- + None + + Description + ----------- + Set view animation. + + """ + return _AIS.AIS_ViewCube_SetViewAnimation(self, *args) + + def SetYup(self, *args): + r""" + + Parameters + ---------- + theIsYup: bool + theToUpdateLabels: bool (optional, default to Standard_True) + + Return + ------- + None + + Description + ----------- + Set if application expects Y-up viewer orientation instead of Z-up. + + """ + return _AIS.AIS_ViewCube_SetYup(self, *args) + + def Size(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Return: size (width and height) of View cube sides; 100 by default. + + """ + return _AIS.AIS_ViewCube_Size(self, *args) + + def StartAnimation(self, *args): + r""" + + Parameters + ---------- + theOwner: AIS_ViewCubeOwner + + Return + ------- + None + + Description + ----------- + Start camera transformation corresponding to the input detected owner. + Input parameter: theOwner detected owner. + + """ + return _AIS.AIS_ViewCube_StartAnimation(self, *args) + + def TextColor(self, *args): + r""" + Return + ------- + Quantity_Color + + Description + ----------- + Return text color of labels of box sides; BLACK by default. + + """ + return _AIS.AIS_ViewCube_TextColor(self, *args) + + def ToAutoStartAnimation(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return True if automatic camera transformation on selection (highlighting) is enabled; True by default. + + """ + return _AIS.AIS_ViewCube_ToAutoStartAnimation(self, *args) + + def ToDrawAxes(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return: True if trihedron is drawn; True by default. + + """ + return _AIS.AIS_ViewCube_ToDrawAxes(self, *args) + + def ToDrawEdges(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return: True if edges of View Cube is drawn; True by default. + + """ + return _AIS.AIS_ViewCube_ToDrawEdges(self, *args) + + def ToDrawVertices(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return True if vertices (vertex) of View Cube is drawn; True by default. + + """ + return _AIS.AIS_ViewCube_ToDrawVertices(self, *args) + + def ToFitSelected(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return True if animation should fit selected objects and False to fit entire scene; True by default. + + """ + return _AIS.AIS_ViewCube_ToFitSelected(self, *args) + + def ToResetCameraUp(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return True if new camera Up direction should be always set to default value for a new camera Direction; False by default. When this flag is False, the new camera Up will be set as current Up orthogonalized to the new camera Direction, and will set to default Up on second click. + + """ + return _AIS.AIS_ViewCube_ToResetCameraUp(self, *args) + + def UpdateAnimation(self, *args): + r""" + + Parameters + ---------- + theToUpdate: bool + + Return + ------- + bool + + Description + ----------- + Perform one step of current camera transformation. theToUpdate[in] enable/disable update of view. + Return: True if animation is not stopped. + + """ + return _AIS.AIS_ViewCube_UpdateAnimation(self, *args) + + def ViewAnimation(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Return view animation. + + """ + return _AIS.AIS_ViewCube_ViewAnimation(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _AIS.delete_AIS_ViewCube + +# Register AIS_ViewCube in _AIS: +_AIS.AIS_ViewCube_swigregister(AIS_ViewCube) +class AIS_XRTrackedDevice(AIS_InteractiveObject): + 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 + ---------- + theTris: Graphic3d_ArrayOfTriangles + theTexture: Image_Texture + + Return + ------- + None + + Description + ----------- + Main constructor. + Return + ------- + None + + Description + ----------- + Empty constructor. + + """ + _AIS.AIS_XRTrackedDevice_swiginit(self, _AIS.new_AIS_XRTrackedDevice(*args)) + + def LaserColor(self, *args): + r""" + Return + ------- + Quantity_Color + + Description + ----------- + Return laser color. + + """ + return _AIS.AIS_XRTrackedDevice_LaserColor(self, *args) + + def LaserLength(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Return laser length. + + """ + return _AIS.AIS_XRTrackedDevice_LaserLength(self, *args) + + def Role(self, *args): + r""" + Return + ------- + Aspect_XRTrackedDeviceRole + + Description + ----------- + Return device role. + + """ + return _AIS.AIS_XRTrackedDevice_Role(self, *args) + + def SetLaserColor(self, *args): + r""" + + Parameters + ---------- + theColor: Quantity_Color + + Return + ------- + None + + Description + ----------- + Set laser color. + + """ + return _AIS.AIS_XRTrackedDevice_SetLaserColor(self, *args) + + def SetLaserLength(self, *args): + r""" + + Parameters + ---------- + theLength: float + + Return + ------- + None + + Description + ----------- + Set laser length. + + """ + return _AIS.AIS_XRTrackedDevice_SetLaserLength(self, *args) + + def SetRole(self, *args): + r""" + + Parameters + ---------- + theRole: Aspect_XRTrackedDeviceRole + + Return + ------- + None + + Description + ----------- + Set device role. + + """ + return _AIS.AIS_XRTrackedDevice_SetRole(self, *args) + + def SetUnitFactor(self, *args): + r""" + + Parameters + ---------- + theFactor: float + + Return + ------- + None + + Description + ----------- + Set unit scale factor. + + """ + return _AIS.AIS_XRTrackedDevice_SetUnitFactor(self, *args) + + def UnitFactor(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Return unit scale factor. + + """ + return _AIS.AIS_XRTrackedDevice_UnitFactor(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _AIS.delete_AIS_XRTrackedDevice + +# Register AIS_XRTrackedDevice in _AIS: +_AIS.AIS_XRTrackedDevice_swigregister(AIS_XRTrackedDevice) +class AIS_AnimationAxisRotation(AIS_BaseAnimationObject): + 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 + ---------- + theAnimationName: str + theContext: AIS_InteractiveContext + theObject: AIS_InteractiveObject + theAxis: gp_Ax1 + theAngleStart: float + theAngleEnd: float + + Return + ------- + None + + Description + ----------- + Constructor with initialization. + Input parameter: theAnimationName animation identifier + Input parameter: theContext interactive context where object have been displayed + Input parameter: theObject object to apply rotation + Input parameter: theAxis rotation axis + Input parameter: theAngleStart rotation angle at the start of animation + Input parameter: theAngleEnd rotation angle at the end of animation. + + """ + _AIS.AIS_AnimationAxisRotation_swiginit(self, _AIS.new_AIS_AnimationAxisRotation(*args)) + + + @staticmethod + def DownCast(t): + return Handle_AIS_AnimationAxisRotation_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _AIS.delete_AIS_AnimationAxisRotation + +# Register AIS_AnimationAxisRotation in _AIS: +_AIS.AIS_AnimationAxisRotation_swigregister(AIS_AnimationAxisRotation) +class AIS_AnimationObject(AIS_BaseAnimationObject): + 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 + ---------- + theAnimationName: str + theContext: AIS_InteractiveContext + theObject: AIS_InteractiveObject + theTrsfStart: gp_Trsf + theTrsfEnd: gp_Trsf + + Return + ------- + None + + Description + ----------- + Constructor with initialization. Note that start/end transformations specify exactly local transformation of the object, not the transformation to be applied to existing local transformation. + Input parameter: theAnimationName animation identifier + Input parameter: theContext interactive context where object have been displayed + Input parameter: theObject object to apply local transformation + Input parameter: theTrsfStart local transformation at the start of animation (e.g. theObject->LocalTransformation()) + Input parameter: theTrsfEnd local transformation at the end of animation. + + """ + _AIS.AIS_AnimationObject_swiginit(self, _AIS.new_AIS_AnimationObject(*args)) + + + @staticmethod + def DownCast(t): + return Handle_AIS_AnimationObject_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _AIS.delete_AIS_AnimationObject + +# Register AIS_AnimationObject in _AIS: +_AIS.AIS_AnimationObject_swigregister(AIS_AnimationObject) +class AIS_ColoredShape(AIS_Shape): + 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 + + Return + ------- + None + + Description + ----------- + Default constructor. + + Parameters + ---------- + theShape: AIS_Shape + + Return + ------- + None + + Description + ----------- + Copy constructor. + + """ + _AIS.AIS_ColoredShape_swiginit(self, _AIS.new_AIS_ColoredShape(*args)) + + def ChangeCustomAspectsMap(self, *args): + r""" + Return + ------- + AIS_DataMapOfShapeDrawer + + Description + ----------- + Return the map of custom aspects. + + """ + return _AIS.AIS_ColoredShape_ChangeCustomAspectsMap(self, *args) + + def ClearCustomAspects(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Reset the map of custom sub-shape aspects. + + """ + return _AIS.AIS_ColoredShape_ClearCustomAspects(self, *args) + + def CustomAspects(self, *args): + r""" + + Parameters + ---------- + theShape: TopoDS_Shape + + Return + ------- + opencascade::handle + + Description + ----------- + Customize properties of specified sub-shape. The shape will be stored in the map but ignored, if it is not sub-shape of main Shape! This method can be used to mark sub-shapes with customizable properties. + + """ + return _AIS.AIS_ColoredShape_CustomAspects(self, *args) + + def CustomAspectsMap(self, *args): + r""" + Return + ------- + AIS_DataMapOfShapeDrawer + + Description + ----------- + Return the map of custom aspects. + + """ + return _AIS.AIS_ColoredShape_CustomAspectsMap(self, *args) + + def SetCustomColor(self, *args): + r""" + + Parameters + ---------- + theShape: TopoDS_Shape + theColor: Quantity_Color + + Return + ------- + None + + Description + ----------- + Customize color of specified sub-shape. + + """ + return _AIS.AIS_ColoredShape_SetCustomColor(self, *args) + + def SetCustomTransparency(self, *args): + r""" + + Parameters + ---------- + theShape: TopoDS_Shape + theTransparency: float + + Return + ------- + None + + Description + ----------- + Customize transparency of specified sub-shape. + + """ + return _AIS.AIS_ColoredShape_SetCustomTransparency(self, *args) + + def SetCustomWidth(self, *args): + r""" + + Parameters + ---------- + theShape: TopoDS_Shape + theLineWidth: float + + Return + ------- + None + + Description + ----------- + Customize line width of specified sub-shape. + + """ + return _AIS.AIS_ColoredShape_SetCustomWidth(self, *args) + + def UnsetCustomAspects(self, *args): + r""" + + Parameters + ---------- + theShape: TopoDS_Shape + theToUnregister: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + Reset custom properties of specified sub-shape. + Parameter theToUnregister unregister or not sub-shape from the map. + + """ + return _AIS.AIS_ColoredShape_UnsetCustomAspects(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_AIS_ColoredShape_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _AIS.delete_AIS_ColoredShape + +# Register AIS_ColoredShape in _AIS: +_AIS.AIS_ColoredShape_swigregister(AIS_ColoredShape) +class AIS_TexturedShape(AIS_Shape): + 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 + + Return + ------- + None + + Description + ----------- + Initializes the textured shape. + + """ + _AIS.AIS_TexturedShape_swiginit(self, _AIS.new_AIS_TexturedShape(*args)) + + def DisableTextureModulate(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Disables texture modulation. + + """ + return _AIS.AIS_TexturedShape_DisableTextureModulate(self, *args) + + def EnableTextureModulate(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Enables texture modulation. + + """ + return _AIS.AIS_TexturedShape_EnableTextureModulate(self, *args) + + def SetTextureFileName(self, *args): + r""" + + Parameters + ---------- + theTextureFileName: str + + Return + ------- + None + + Description + ----------- + Sets the texture source. can specify path to texture image or one of the standard predefined textures. The accepted file types are those used in Image_AlienPixMap with extensions such as rgb, png, jpg and more. To specify the standard predefined texture, the should contain integer - the Graphic3d_NameOfTexture2D enumeration index. Setting texture source using this method resets the source pixmap (if was set previously). + + """ + return _AIS.AIS_TexturedShape_SetTextureFileName(self, *args) + + def SetTextureMapOff(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Disables texture mapping. + + """ + return _AIS.AIS_TexturedShape_SetTextureMapOff(self, *args) + + def SetTextureMapOn(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Enables texture mapping. + + """ + return _AIS.AIS_TexturedShape_SetTextureMapOn(self, *args) + + def SetTextureOrigin(self, *args): + r""" + + Parameters + ---------- + theToSetTextureOrigin: bool + theUOrigin: float (optional, default to 0.0) + theVOrigin: float (optional, default to 0.0) + + Return + ------- + None + + Description + ----------- + Use this method to change the origin of the texture. The texel (0,0) will be mapped to the surface (UOrigin,VOrigin). + + """ + return _AIS.AIS_TexturedShape_SetTextureOrigin(self, *args) + + def SetTexturePixMap(self, *args): + r""" + + Parameters + ---------- + theTexturePixMap: Image_PixMap + + Return + ------- + None + + Description + ----------- + Sets the texture source. specifies image data. Please note that the data should be in Bottom-Up order, the flag of Image_PixMap::IsTopDown() will be ignored by graphic driver. Setting texture source using this method resets the source by filename (if was set previously). + + """ + return _AIS.AIS_TexturedShape_SetTexturePixMap(self, *args) + + def SetTextureRepeat(self, *args): + r""" + + Parameters + ---------- + theToRepeat: bool + theURepeat: float (optional, default to 1.0) + theVRepeat: float (optional, default to 1.0) + + Return + ------- + None + + Description + ----------- + Sets the number of occurrences of the texture on each face. The texture itself is parameterized in (0,1) by (0,1). Each face of the shape to be textured is parameterized in UV space (Umin,Umax) by (Vmin,Vmax). If RepeatYN is set to false, texture coordinates are clamped in the range (0,1)x(0,1) of the face. + + """ + return _AIS.AIS_TexturedShape_SetTextureRepeat(self, *args) + + def SetTextureScale(self, *args): + r""" + + Parameters + ---------- + theToSetTextureScale: bool + theScaleU: float (optional, default to 1.0) + theScaleV: float (optional, default to 1.0) + + Return + ------- + None + + Description + ----------- + Use this method to scale the texture (percent of the face). You can specify a scale factor for both U and V. Example: if you set ScaleU and ScaleV to 0.5 and you enable texture repeat, the texture will appear twice on the face in each direction. + + """ + return _AIS.AIS_TexturedShape_SetTextureScale(self, *args) + + def TextureFile(self, *args): + r""" + Return + ------- + str + + Description + ----------- + Return: path to the texture file. + + """ + return _AIS.AIS_TexturedShape_TextureFile(self, *args) + + def TextureMapState(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return: flag to control texture mapping (for presentation mode 3). + + """ + return _AIS.AIS_TexturedShape_TextureMapState(self, *args) + + def TextureModulate(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return: true if texture color modulation is turned on. + + """ + return _AIS.AIS_TexturedShape_TextureModulate(self, *args) + + def TextureOrigin(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return: true if texture UV origin has been modified. + + """ + return _AIS.AIS_TexturedShape_TextureOrigin(self, *args) + + def TexturePixMap(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Return: the source pixmap for texture map. + + """ + return _AIS.AIS_TexturedShape_TexturePixMap(self, *args) + + def TextureRepeat(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return: texture repeat flag. + + """ + return _AIS.AIS_TexturedShape_TextureRepeat(self, *args) + + def TextureScale(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return: true if scale factor should be applied to texture mapping. + + """ + return _AIS.AIS_TexturedShape_TextureScale(self, *args) + + def TextureScaleU(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Return: scale factor for U coordinate (1.0 by default). + + """ + return _AIS.AIS_TexturedShape_TextureScaleU(self, *args) + + def TextureScaleV(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Return: scale factor for V coordinate (1.0 by default). + + """ + return _AIS.AIS_TexturedShape_TextureScaleV(self, *args) + + def TextureUOrigin(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Return: texture origin U position (0.0 by default). + + """ + return _AIS.AIS_TexturedShape_TextureUOrigin(self, *args) + + def TextureVOrigin(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Return: texture origin V position (0.0 by default). + + """ + return _AIS.AIS_TexturedShape_TextureVOrigin(self, *args) + + def URepeat(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Return: texture repeat U value. + + """ + return _AIS.AIS_TexturedShape_URepeat(self, *args) + + def UpdateAttributes(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Use this method to display the textured shape without recomputing the whole presentation. Use this method when ONLY the texture content has been changed. If other parameters (ie: scale factors, texture origin, texture repeat...) have changed, the whole presentation has to be recomputed: @code if (myShape->DisplayMode() == 3) { myAISContext->RecomputePrsOnly (myShape); } else { myAISContext->SetDisplayMode (myShape, 3, Standard_False); myAISContext->Display (myShape, Standard_True); } @endcode. + + """ + return _AIS.AIS_TexturedShape_UpdateAttributes(self, *args) + + def VRepeat(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Return: texture repeat V value. + + """ + return _AIS.AIS_TexturedShape_VRepeat(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_AIS_TexturedShape_DownCast(t) + + + __repr__ = _dumps_object + + @methodnotwrapped + def ShowTriangles(self): + pass + + __swig_destroy__ = _AIS.delete_AIS_TexturedShape + +# Register AIS_TexturedShape in _AIS: +_AIS.AIS_TexturedShape_swigregister(AIS_TexturedShape) + +AIS_AnimationTimer=OCC.Core.Media.Media_Timer +AIS_DisplayStatus=OCC.Core.PrsMgr.PrsMgr_DisplayStatus + + +@deprecated +def AIS_GraphicTool_GetInteriorColor(*args): + return AIS_GraphicTool.GetInteriorColor(*args) + +@deprecated +def AIS_GraphicTool_GetInteriorColor(*args): + return AIS_GraphicTool.GetInteriorColor(*args) + +@deprecated +def AIS_GraphicTool_GetLineAtt(*args): + return AIS_GraphicTool.GetLineAtt(*args) + +@deprecated +def AIS_GraphicTool_GetLineColor(*args): + return AIS_GraphicTool.GetLineColor(*args) + +@deprecated +def AIS_GraphicTool_GetLineColor(*args): + return AIS_GraphicTool.GetLineColor(*args) + +@deprecated +def AIS_GraphicTool_GetLineType(*args): + return AIS_GraphicTool.GetLineType(*args) + +@deprecated +def AIS_GraphicTool_GetLineWidth(*args): + return AIS_GraphicTool.GetLineWidth(*args) + +@deprecated +def AIS_GraphicTool_GetMaterial(*args): + return AIS_GraphicTool.GetMaterial(*args) + +@deprecated +def AIS_ColorScale_FindColor(*args): + return AIS_ColorScale.FindColor(*args) + +@deprecated +def AIS_ColorScale_FindColor(*args): + return AIS_ColorScale.FindColor(*args) + +@deprecated +def AIS_ColorScale_MakeUniformColors(*args): + return AIS_ColorScale.MakeUniformColors(*args) + +@deprecated +def AIS_ColorScale_hueToValidRange(*args): + return AIS_ColorScale.hueToValidRange(*args) + +@deprecated +def AIS_Shape_SelectionMode(*args): + return AIS_Shape.SelectionMode(*args) + +@deprecated +def AIS_Shape_SelectionType(*args): + return AIS_Shape.SelectionType(*args) + +@deprecated +def AIS_Shape_computeHlrPresentation(*args): + return AIS_Shape.computeHlrPresentation(*args) + +@deprecated +def AIS_ViewCube_IsBoxCorner(*args): + return AIS_ViewCube.IsBoxCorner(*args) + +@deprecated +def AIS_ViewCube_IsBoxEdge(*args): + return AIS_ViewCube.IsBoxEdge(*args) + +@deprecated +def AIS_ViewCube_IsBoxSide(*args): + return AIS_ViewCube.IsBoxSide(*args) + + + diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/Adaptor2d.py b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/Adaptor2d.py new file mode 100644 index 0000000000000000000000000000000000000000..2db429251db8f3113ac40f4f4f9f7dabbe8e45f6 --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/Adaptor2d.py @@ -0,0 +1,1163 @@ +# 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. + +""" +Adaptor2d module, see official documentation at +https://dev.opencascade.org/doc/occt-7.9.0/refman/html/package_adaptor2d.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 _Adaptor2d +else: + import _Adaptor2d + +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__ = _Adaptor2d.delete_SwigPyIterator + + def value(self): + return _Adaptor2d.SwigPyIterator_value(self) + + def incr(self, n=1): + return _Adaptor2d.SwigPyIterator_incr(self, n) + + def decr(self, n=1): + return _Adaptor2d.SwigPyIterator_decr(self, n) + + def distance(self, x): + return _Adaptor2d.SwigPyIterator_distance(self, x) + + def equal(self, x): + return _Adaptor2d.SwigPyIterator_equal(self, x) + + def copy(self): + return _Adaptor2d.SwigPyIterator_copy(self) + + def next(self): + return _Adaptor2d.SwigPyIterator_next(self) + + def __next__(self): + return _Adaptor2d.SwigPyIterator___next__(self) + + def previous(self): + return _Adaptor2d.SwigPyIterator_previous(self) + + def advance(self, n): + return _Adaptor2d.SwigPyIterator_advance(self, n) + + def __eq__(self, x): + return _Adaptor2d.SwigPyIterator___eq__(self, x) + + def __ne__(self, x): + return _Adaptor2d.SwigPyIterator___ne__(self, x) + + def __iadd__(self, n): + return _Adaptor2d.SwigPyIterator___iadd__(self, n) + + def __isub__(self, n): + return _Adaptor2d.SwigPyIterator___isub__(self, n) + + def __add__(self, n): + return _Adaptor2d.SwigPyIterator___add__(self, n) + + def __sub__(self, *args): + return _Adaptor2d.SwigPyIterator___sub__(self, *args) + def __iter__(self): + return self + +# Register SwigPyIterator in _Adaptor2d: +_Adaptor2d.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 + ----------- + No available documentation. + + """ + return _Adaptor2d.Adaptor2d_Curve2d_BSpline(self, *args) + + def Bezier(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _Adaptor2d.Adaptor2d_Curve2d_Bezier(self, *args) + + def Circle(self, *args): + r""" + Return + ------- + gp_Circ2d + + Description + ----------- + No available documentation. + + """ + return _Adaptor2d.Adaptor2d_Curve2d_Circle(self, *args) + + def Continuity(self, *args): + r""" + Return + ------- + GeomAbs_Shape + + Description + ----------- + No available documentation. + + """ + return _Adaptor2d.Adaptor2d_Curve2d_Continuity(self, *args) + + def D0(self, *args): + r""" + + Parameters + ---------- + U: float + P: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + Computes the point of parameter U on the curve. + + """ + return _Adaptor2d.Adaptor2d_Curve2d_D0(self, *args) + + def D1(self, *args): + r""" + + Parameters + ---------- + U: float + P: gp_Pnt2d + V: gp_Vec2d + + Return + ------- + None + + Description + ----------- + Computes the point of parameter U on the curve with its first derivative. Raised if the continuity of the current interval is not C1. + + """ + return _Adaptor2d.Adaptor2d_Curve2d_D1(self, *args) + + def D2(self, *args): + r""" + + Parameters + ---------- + U: float + P: gp_Pnt2d + V1: gp_Vec2d + V2: gp_Vec2d + + Return + ------- + None + + Description + ----------- + Returns the point P of parameter U, the first and second derivatives V1 and V2. Raised if the continuity of the current interval is not C2. + + """ + return _Adaptor2d.Adaptor2d_Curve2d_D2(self, *args) + + def D3(self, *args): + r""" + + Parameters + ---------- + U: float + P: gp_Pnt2d + V1: gp_Vec2d + V2: gp_Vec2d + V3: gp_Vec2d + + Return + ------- + None + + Description + ----------- + Returns the point P of parameter U, the first, the second and the third derivative. Raised if the continuity of the current interval is not C3. + + """ + return _Adaptor2d.Adaptor2d_Curve2d_D3(self, *args) + + def DN(self, *args): + r""" + + Parameters + ---------- + U: float + N: int + + Return + ------- + gp_Vec2d + + Description + ----------- + The returned vector gives the value of the derivative for the order of derivation N. Raised if the continuity of the current interval is not CN. Raised if N < 1. + + """ + return _Adaptor2d.Adaptor2d_Curve2d_DN(self, *args) + + def Degree(self, *args): + r""" + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _Adaptor2d.Adaptor2d_Curve2d_Degree(self, *args) + + def Ellipse(self, *args): + r""" + Return + ------- + gp_Elips2d + + Description + ----------- + No available documentation. + + """ + return _Adaptor2d.Adaptor2d_Curve2d_Ellipse(self, *args) + + def FirstParameter(self, *args): + r""" + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _Adaptor2d.Adaptor2d_Curve2d_FirstParameter(self, *args) + + def GetType(self, *args): + r""" + Return + ------- + GeomAbs_CurveType + + Description + ----------- + Returns the type of the curve in the current interval: Line, Circle, Ellipse, Hyperbola, Parabola, BezierCurve, BSplineCurve, OtherCurve. + + """ + return _Adaptor2d.Adaptor2d_Curve2d_GetType(self, *args) + + def Hyperbola(self, *args): + r""" + Return + ------- + gp_Hypr2d + + Description + ----------- + No available documentation. + + """ + return _Adaptor2d.Adaptor2d_Curve2d_Hyperbola(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 _Adaptor2d.Adaptor2d_Curve2d_Intervals(self, *args) + + def IsClosed(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _Adaptor2d.Adaptor2d_Curve2d_IsClosed(self, *args) + + def IsPeriodic(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _Adaptor2d.Adaptor2d_Curve2d_IsPeriodic(self, *args) + + def IsRational(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _Adaptor2d.Adaptor2d_Curve2d_IsRational(self, *args) + + def LastParameter(self, *args): + r""" + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _Adaptor2d.Adaptor2d_Curve2d_LastParameter(self, *args) + + def Line(self, *args): + r""" + Return + ------- + gp_Lin2d + + Description + ----------- + No available documentation. + + """ + return _Adaptor2d.Adaptor2d_Curve2d_Line(self, *args) + + def NbIntervals(self, *args): + r""" + + Parameters + ---------- + S: GeomAbs_Shape + + Return + ------- + int + + Description + ----------- + If necessary, breaks the curve in intervals of continuity . And returns the number of intervals. + + """ + return _Adaptor2d.Adaptor2d_Curve2d_NbIntervals(self, *args) + + def NbKnots(self, *args): + r""" + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _Adaptor2d.Adaptor2d_Curve2d_NbKnots(self, *args) + + def NbPoles(self, *args): + r""" + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _Adaptor2d.Adaptor2d_Curve2d_NbPoles(self, *args) + + def NbSamples(self, *args): + r""" + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _Adaptor2d.Adaptor2d_Curve2d_NbSamples(self, *args) + + def Parabola(self, *args): + r""" + Return + ------- + gp_Parab2d + + Description + ----------- + No available documentation. + + """ + return _Adaptor2d.Adaptor2d_Curve2d_Parabola(self, *args) + + def Period(self, *args): + r""" + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _Adaptor2d.Adaptor2d_Curve2d_Period(self, *args) + + def Resolution(self, *args): + r""" + + Parameters + ---------- + R3d: float + + Return + ------- + float + + Description + ----------- + Returns the parametric resolution corresponding to the real space resolution . + + """ + return _Adaptor2d.Adaptor2d_Curve2d_Resolution(self, *args) + + def ShallowCopy(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Shallow copy of adaptor. + + """ + return _Adaptor2d.Adaptor2d_Curve2d_ShallowCopy(self, *args) + + def Trim(self, *args): + r""" + + Parameters + ---------- + First: float + Last: float + Tol: float + + Return + ------- + opencascade::handle + + Description + ----------- + Returns a curve equivalent of between parameters and . is used to test for 3d points confusion. If >= . + + """ + return _Adaptor2d.Adaptor2d_Curve2d_Trim(self, *args) + + def Value(self, *args): + r""" + + Parameters + ---------- + U: float + + Return + ------- + gp_Pnt2d + + Description + ----------- + Computes the point of parameter U on the curve. + + """ + return _Adaptor2d.Adaptor2d_Curve2d_Value(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_Adaptor2d_Curve2d_DownCast(t) + + + __repr__ = _dumps_object + + + def __init__(self): + _Adaptor2d.Adaptor2d_Curve2d_swiginit(self, _Adaptor2d.new_Adaptor2d_Curve2d()) + __swig_destroy__ = _Adaptor2d.delete_Adaptor2d_Curve2d + +# Register Adaptor2d_Curve2d in _Adaptor2d: +_Adaptor2d.Adaptor2d_Curve2d_swigregister(Adaptor2d_Curve2d) +class Adaptor2d_Line2d(Adaptor2d_Curve2d): + 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 + ---------- + P: gp_Pnt2d + D: gp_Dir2d + UFirst: float + ULast: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _Adaptor2d.Adaptor2d_Line2d_swiginit(self, _Adaptor2d.new_Adaptor2d_Line2d(*args)) + + def Load(self, *args): + r""" + + Parameters + ---------- + L: gp_Lin2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: gp_Lin2d + UFirst: float + ULast: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _Adaptor2d.Adaptor2d_Line2d_Load(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_Adaptor2d_Line2d_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _Adaptor2d.delete_Adaptor2d_Line2d + +# Register Adaptor2d_Line2d in _Adaptor2d: +_Adaptor2d.Adaptor2d_Line2d_swigregister(Adaptor2d_Line2d) +class Adaptor2d_OffsetCurve(Adaptor2d_Curve2d): + 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 + ----------- + The Offset is set to 0. + + Parameters + ---------- + C: Adaptor2d_Curve2d + + Return + ------- + None + + Description + ----------- + The curve is loaded. The Offset is set to 0. + + Parameters + ---------- + C: Adaptor2d_Curve2d + Offset: float + + Return + ------- + None + + Description + ----------- + Creates an OffsetCurve curve. The Offset is set to Offset. + + Parameters + ---------- + C: Adaptor2d_Curve2d + Offset: float + WFirst: float + WLast: float + + Return + ------- + None + + Description + ----------- + Create an Offset curve. WFirst,WLast define the bounds of the Offset curve. + + """ + _Adaptor2d.Adaptor2d_OffsetCurve_swiginit(self, _Adaptor2d.new_Adaptor2d_OffsetCurve(*args)) + + def Curve(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _Adaptor2d.Adaptor2d_OffsetCurve_Curve(self, *args) + + def Load(self, *args): + r""" + + Parameters + ---------- + S: Adaptor2d_Curve2d + + Return + ------- + None + + Description + ----------- + Changes the curve. The Offset is reset to 0. + + Parameters + ---------- + Offset: float + + Return + ------- + None + + Description + ----------- + Changes the Offset on the current Curve. + + Parameters + ---------- + Offset: float + WFirst: float + WLast: float + + Return + ------- + None + + Description + ----------- + Changes the Offset Curve on the current Curve. + + """ + return _Adaptor2d.Adaptor2d_OffsetCurve_Load(self, *args) + + def Offset(self, *args): + r""" + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _Adaptor2d.Adaptor2d_OffsetCurve_Offset(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_Adaptor2d_OffsetCurve_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _Adaptor2d.delete_Adaptor2d_OffsetCurve + +# Register Adaptor2d_OffsetCurve in _Adaptor2d: +_Adaptor2d.Adaptor2d_OffsetCurve_swigregister(Adaptor2d_OffsetCurve) + + + diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/AdvApprox.pyi b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/AdvApprox.pyi new file mode 100644 index 0000000000000000000000000000000000000000..bef8e43e5b544a54cd61318fc40010d7c3b71262 --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/AdvApprox.pyi @@ -0,0 +1,150 @@ +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.GeomAbs import * +from OCC.Core.TColgp import * +from OCC.Core.PLib import * + +class AdvApprox_ApproxAFunction: + @overload + def __init__( + self, + Num1DSS: int, + Num2DSS: int, + Num3DSS: int, + OneDTol: TColStd_HArray1OfReal, + TwoDTol: TColStd_HArray1OfReal, + ThreeDTol: TColStd_HArray1OfReal, + First: float, + Last: float, + Continuity: GeomAbs_Shape, + MaxDeg: int, + MaxSeg: int, + Func: AdvApprox_EvaluatorFunction, + ) -> None: ... + @overload + def __init__( + self, + Num1DSS: int, + Num2DSS: int, + Num3DSS: int, + OneDTol: TColStd_HArray1OfReal, + TwoDTol: TColStd_HArray1OfReal, + ThreeDTol: TColStd_HArray1OfReal, + First: float, + Last: float, + Continuity: GeomAbs_Shape, + MaxDeg: int, + MaxSeg: int, + Func: AdvApprox_EvaluatorFunction, + CutTool: AdvApprox_Cutting, + ) -> None: ... + @staticmethod + def Approximation( + TotalDimension: int, + TotalNumSS: int, + LocalDimension: TColStd_Array1OfInteger, + First: float, + Last: float, + Evaluator: AdvApprox_EvaluatorFunction, + CutTool: AdvApprox_Cutting, + ContinuityOrder: int, + NumMaxCoeffs: int, + MaxSegments: int, + TolerancesArray: TColStd_Array1OfReal, + code_precis: int, + NumCoeffPerCurveArray: TColStd_Array1OfInteger, + LocalCoefficientArray: TColStd_Array1OfReal, + IntervalsArray: TColStd_Array1OfReal, + ErrorMaxArray: TColStd_Array1OfReal, + AverageErrorArray: TColStd_Array1OfReal, + ) -> Tuple[int, int]: ... + @overload + def AverageError(self, Dimension: int) -> TColStd_HArray1OfReal: ... + @overload + def AverageError(self, Dimension: int, Index: int) -> float: ... + def Degree(self) -> int: ... + def Dump(self) -> str: ... + def HasResult(self) -> bool: ... + def IsDone(self) -> bool: ... + def Knots(self) -> TColStd_HArray1OfReal: ... + @overload + def MaxError(self, Dimension: int) -> TColStd_HArray1OfReal: ... + @overload + def MaxError(self, Dimension: int, Index: int) -> float: ... + def Multiplicities(self) -> TColStd_HArray1OfInteger: ... + def NbKnots(self) -> int: ... + def NbPoles(self) -> int: ... + def NumSubSpaces(self, Dimension: int) -> int: ... + @overload + def Poles(self) -> TColgp_HArray2OfPnt: ... + @overload + def Poles(self, Index: int, P: TColgp_Array1OfPnt) -> None: ... + @overload + def Poles1d(self) -> TColStd_HArray2OfReal: ... + @overload + def Poles1d(self, Index: int, P: TColStd_Array1OfReal) -> None: ... + @overload + def Poles2d(self) -> TColgp_HArray2OfPnt2d: ... + @overload + def Poles2d(self, Index: int, P: TColgp_Array1OfPnt2d) -> None: ... + +class AdvApprox_Cutting: + def Value(self, a: float, b: float) -> Tuple[bool, float]: ... + +class AdvApprox_SimpleApprox: + def __init__( + self, + TotalDimension: int, + TotalNumSS: int, + Continuity: GeomAbs_Shape, + WorkDegree: int, + NbGaussPoints: int, + JacobiBase: PLib_JacobiPolynomial, + Func: AdvApprox_EvaluatorFunction, + ) -> None: ... + def AverageError(self, Index: int) -> float: ... + def Coefficients(self) -> TColStd_HArray1OfReal: ... + def Degree(self) -> int: ... + def DifTab(self) -> TColStd_HArray1OfReal: ... + def Dump(self) -> str: ... + def FirstConstr(self) -> TColStd_HArray2OfReal: ... + def IsDone(self) -> bool: ... + def LastConstr(self) -> TColStd_HArray2OfReal: ... + def MaxError(self, Index: int) -> float: ... + def Perform( + self, + LocalDimension: TColStd_Array1OfInteger, + LocalTolerancesArray: TColStd_Array1OfReal, + First: float, + Last: float, + MaxDegree: int, + ) -> None: ... + def SomTab(self) -> TColStd_HArray1OfReal: ... + +class AdvApprox_DichoCutting(AdvApprox_Cutting): + def __init__(self) -> None: ... + def Value(self, a: float, b: float) -> Tuple[bool, float]: ... + +class AdvApprox_PrefAndRec(AdvApprox_Cutting): + def __init__( + self, + RecomendedCut: TColStd_Array1OfReal, + PrefferedCut: TColStd_Array1OfReal, + Weight: Optional[float] = 5, + ) -> None: ... + def Value(self, a: float, b: float) -> Tuple[bool, float]: ... + +class AdvApprox_PrefCutting(AdvApprox_Cutting): + def __init__(self, CutPnts: TColStd_Array1OfReal) -> None: ... + def Value(self, a: float, b: float) -> Tuple[bool, float]: ... + +# classnotwrapped +class AdvApprox_EvaluatorFunction: ... + +# harray1 classes +# harray2 classes +# hsequence classes diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/AppBlend.pyi b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/AppBlend.pyi new file mode 100644 index 0000000000000000000000000000000000000000..5ca78d918a24c1ddea757ee091bbc794d46f7fdb --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/AppBlend.pyi @@ -0,0 +1,47 @@ +from enum import IntEnum +from typing import overload, NewType, Optional, Tuple + +from OCC.Core.Standard import * +from OCC.Core.NCollection import * +from OCC.Core.TColgp import * +from OCC.Core.TColStd import * + +class AppBlend_Approx: + def Curve2d( + self, + Index: int, + TPoles: TColgp_Array1OfPnt2d, + TKnots: TColStd_Array1OfReal, + TMults: TColStd_Array1OfInteger, + ) -> None: ... + def Curve2dPoles(self, Index: int) -> TColgp_Array1OfPnt2d: ... + def Curves2dDegree(self) -> int: ... + def Curves2dKnots(self) -> TColStd_Array1OfReal: ... + def Curves2dMults(self) -> TColStd_Array1OfInteger: ... + def Curves2dShape(self) -> Tuple[int, int, int]: ... + def IsDone(self) -> bool: ... + def NbCurves2d(self) -> int: ... + def SurfPoles(self) -> TColgp_Array2OfPnt: ... + def SurfShape(self) -> Tuple[int, int, int, int, int, int]: ... + def SurfUKnots(self) -> TColStd_Array1OfReal: ... + def SurfUMults(self) -> TColStd_Array1OfInteger: ... + def SurfVKnots(self) -> TColStd_Array1OfReal: ... + def SurfVMults(self) -> TColStd_Array1OfInteger: ... + def SurfWeights(self) -> TColStd_Array2OfReal: ... + def Surface( + self, + TPoles: TColgp_Array2OfPnt, + TWeights: TColStd_Array2OfReal, + TUKnots: TColStd_Array1OfReal, + TVKnots: TColStd_Array1OfReal, + TUMults: TColStd_Array1OfInteger, + TVMults: TColStd_Array1OfInteger, + ) -> None: ... + def TolCurveOnSurf(self, Index: int) -> float: ... + def TolReached(self) -> Tuple[float, float]: ... + def UDegree(self) -> int: ... + def VDegree(self) -> int: ... + +# harray1 classes +# harray2 classes +# hsequence classes diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/ApproxInt.py b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/ApproxInt.py new file mode 100644 index 0000000000000000000000000000000000000000..4004dd1280920754701e8c8d257fb92e9808c6cd --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/ApproxInt.py @@ -0,0 +1,733 @@ +# 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. + +""" +ApproxInt module, see official documentation at +https://dev.opencascade.org/doc/occt-7.9.0/refman/html/package_approxint.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 _ApproxInt +else: + import _ApproxInt + +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__ = _ApproxInt.delete_SwigPyIterator + + def value(self): + return _ApproxInt.SwigPyIterator_value(self) + + def incr(self, n=1): + return _ApproxInt.SwigPyIterator_incr(self, n) + + def decr(self, n=1): + return _ApproxInt.SwigPyIterator_decr(self, n) + + def distance(self, x): + return _ApproxInt.SwigPyIterator_distance(self, x) + + def equal(self, x): + return _ApproxInt.SwigPyIterator_equal(self, x) + + def copy(self): + return _ApproxInt.SwigPyIterator_copy(self) + + def next(self): + return _ApproxInt.SwigPyIterator_next(self) + + def __next__(self): + return _ApproxInt.SwigPyIterator___next__(self) + + def previous(self): + return _ApproxInt.SwigPyIterator_previous(self) + + def advance(self, n): + return _ApproxInt.SwigPyIterator_advance(self, n) + + def __eq__(self, x): + return _ApproxInt.SwigPyIterator___eq__(self, x) + + def __ne__(self, x): + return _ApproxInt.SwigPyIterator___ne__(self, x) + + def __iadd__(self, n): + return _ApproxInt.SwigPyIterator___iadd__(self, n) + + def __isub__(self, n): + return _ApproxInt.SwigPyIterator___isub__(self, n) + + def __add__(self, n): + return _ApproxInt.SwigPyIterator___add__(self, n) + + def __sub__(self, *args): + return _ApproxInt.SwigPyIterator___sub__(self, *args) + def __iter__(self): + return self + +# Register SwigPyIterator in _ApproxInt: +_ApproxInt.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 = " + theDim: int + thePars: math_Vector + theCurv: TColStd_Array1OfReal + + Return + ------- + theMaxCurv: float + + Description + ----------- + Builds discrete curvature. + + """ + return _ApproxInt.ApproxInt_KnotTools_BuildCurvature(*args) + + @staticmethod + def BuildKnots(*args): + r""" + + Parameters + ---------- + thePntsXYZ: TColgp_Array1OfPnt + thePntsU1V1: TColgp_Array1OfPnt2d + thePntsU2V2: TColgp_Array1OfPnt2d + thePars: math_Vector + theApproxXYZ: bool + theApproxU1V1: bool + theApproxU2V2: bool + theMinNbPnts: int + theKnots: NCollection_Vector + + Return + ------- + None + + Description + ----------- + Main function to build optimal knot sequence. At least one set from (thePntsXYZ, thePntsU1V1, thePntsU2V2) should exist. + Parameter thePntsXYZ - Set of 3d points. + Parameter thePntsU1V1 - Set of 2d points. + Parameter thePntsU2V2 - Set of 2d points. + Parameter thePars - Expected parameters associated with set. + Parameter theApproxXYZ - Flag, existence of 3d set. + Parameter theApproxU1V1 - Flag existence of first 2d set. + Parameter theApproxU2V2 - Flag existence of second 2d set. + Parameter theMinNbPnts - Minimal number of points per knot interval. + Parameter theKnots - output knots sequence. + + """ + return _ApproxInt.ApproxInt_KnotTools_BuildKnots(*args) + + @staticmethod + def DefineParType(*args): + r""" + + Parameters + ---------- + theWL: IntPatch_WLine + theFpar: int + theLpar: int + theApproxXYZ: bool + theApproxU1V1: bool + theApproxU2V2: bool + + Return + ------- + Approx_ParametrizationType + + Description + ----------- + Defines preferable parametrization type for theWL. + + """ + return _ApproxInt.ApproxInt_KnotTools_DefineParType(*args) + + __repr__ = _dumps_object + + + def __init__(self): + _ApproxInt.ApproxInt_KnotTools_swiginit(self, _ApproxInt.new_ApproxInt_KnotTools()) + __swig_destroy__ = _ApproxInt.delete_ApproxInt_KnotTools + +# Register ApproxInt_KnotTools in _ApproxInt: +_ApproxInt.ApproxInt_KnotTools_swigregister(ApproxInt_KnotTools) +class ApproxInt_SvSurfaces(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 Compute(self, *args): + r""" + + Parameters + ---------- + Pt: gp_Pnt + Tg: gp_Vec + Tguv1: gp_Vec2d + Tguv2: gp_Vec2d + + Return + ------- + u1: float + v1: float + u2: float + v2: float + + Description + ----------- + returns True if Tg,Tguv1 Tguv2 can be computed. + + """ + return _ApproxInt.ApproxInt_SvSurfaces_Compute(self, *args) + + def GetUseSolver(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _ApproxInt.ApproxInt_SvSurfaces_GetUseSolver(self, *args) + + def Pnt(self, *args): + r""" + + Parameters + ---------- + u1: float + v1: float + u2: float + v2: float + P: gp_Pnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _ApproxInt.ApproxInt_SvSurfaces_Pnt(self, *args) + + def SeekPoint(self, *args): + r""" + + Parameters + ---------- + u1: float + v1: float + u2: float + v2: float + Point: IntSurf_PntOn2S + + Return + ------- + bool + + Description + ----------- + computes point on curve and parameters on the surfaces. + + """ + return _ApproxInt.ApproxInt_SvSurfaces_SeekPoint(self, *args) + + def SetUseSolver(self, *args): + r""" + + Parameters + ---------- + theUseSol: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _ApproxInt.ApproxInt_SvSurfaces_SetUseSolver(self, *args) + + def Tangency(self, *args): + r""" + + Parameters + ---------- + u1: float + v1: float + u2: float + v2: float + Tg: gp_Vec + + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _ApproxInt.ApproxInt_SvSurfaces_Tangency(self, *args) + + def TangencyOnSurf1(self, *args): + r""" + + Parameters + ---------- + u1: float + v1: float + u2: float + v2: float + Tg: gp_Vec2d + + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _ApproxInt.ApproxInt_SvSurfaces_TangencyOnSurf1(self, *args) + + def TangencyOnSurf2(self, *args): + r""" + + Parameters + ---------- + u1: float + v1: float + u2: float + v2: float + Tg: gp_Vec2d + + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _ApproxInt.ApproxInt_SvSurfaces_TangencyOnSurf2(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _ApproxInt.delete_ApproxInt_SvSurfaces + +# Register ApproxInt_SvSurfaces in _ApproxInt: +_ApproxInt.ApproxInt_SvSurfaces_swigregister(ApproxInt_SvSurfaces) + + + +@deprecated +def ApproxInt_KnotTools_BuildCurvature(*args): + return ApproxInt_KnotTools.BuildCurvature(*args) + +@deprecated +def ApproxInt_KnotTools_BuildKnots(*args): + return ApproxInt_KnotTools.BuildKnots(*args) + +@deprecated +def ApproxInt_KnotTools_DefineParType(*args): + return ApproxInt_KnotTools.DefineParType(*args) + + + diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/Aspect.py b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/Aspect.py new file mode 100644 index 0000000000000000000000000000000000000000..6763cfe6bf87f49468beb24e083e350ecaf95eb9 --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/Aspect.py @@ -0,0 +1,5614 @@ +# 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. + +""" +Aspect module, see official documentation at +https://dev.opencascade.org/doc/occt-7.9.0/refman/html/package_aspect.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 _Aspect +else: + import _Aspect + +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__ = _Aspect.delete_SwigPyIterator + + def value(self): + return _Aspect.SwigPyIterator_value(self) + + def incr(self, n=1): + return _Aspect.SwigPyIterator_incr(self, n) + + def decr(self, n=1): + return _Aspect.SwigPyIterator_decr(self, n) + + def distance(self, x): + return _Aspect.SwigPyIterator_distance(self, x) + + def equal(self, x): + return _Aspect.SwigPyIterator_equal(self, x) + + def copy(self): + return _Aspect.SwigPyIterator_copy(self) + + def next(self): + return _Aspect.SwigPyIterator_next(self) + + def __next__(self): + return _Aspect.SwigPyIterator___next__(self) + + def previous(self): + return _Aspect.SwigPyIterator_previous(self) + + def advance(self, n): + return _Aspect.SwigPyIterator_advance(self, n) + + def __eq__(self, x): + return _Aspect.SwigPyIterator___eq__(self, x) + + def __ne__(self, x): + return _Aspect.SwigPyIterator___ne__(self, x) + + def __iadd__(self, n): + return _Aspect.SwigPyIterator___iadd__(self, n) + + def __isub__(self, n): + return _Aspect.SwigPyIterator___isub__(self, n) + + def __add__(self, n): + return _Aspect.SwigPyIterator___add__(self, n) + + def __sub__(self, *args): + return _Aspect.SwigPyIterator___sub__(self, *args) + def __iter__(self): + return self + +# Register SwigPyIterator in _Aspect: +_Aspect.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 Aspect_TrackedDevicePoseArray in _Aspect: +_Aspect.Aspect_TrackedDevicePoseArray_swigregister(Aspect_TrackedDevicePoseArray) +class Aspect_XRActionMap(OCC.Core.NCollection.NCollection_BaseMap): + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") + __repr__ = _swig_repr + + def begin(self): + return _Aspect.Aspect_XRActionMap_begin(self) + + def end(self): + return _Aspect.Aspect_XRActionMap_end(self) + + def cbegin(self): + return _Aspect.Aspect_XRActionMap_cbegin(self) + + def cend(self): + return _Aspect.Aspect_XRActionMap_cend(self) + + def __init__(self, *args): + _Aspect.Aspect_XRActionMap_swiginit(self, _Aspect.new_Aspect_XRActionMap(*args)) + + def Exchange(self, theOther): + return _Aspect.Aspect_XRActionMap_Exchange(self, theOther) + + def Assign(self, theOther): + return _Aspect.Aspect_XRActionMap_Assign(self, theOther) + + def Set(self, *args): + return _Aspect.Aspect_XRActionMap_Set(self, *args) + + def ReSize(self, N): + return _Aspect.Aspect_XRActionMap_ReSize(self, N) + + def Add(self, *args): + return _Aspect.Aspect_XRActionMap_Add(self, *args) + + def Contains(self, theKey1): + return _Aspect.Aspect_XRActionMap_Contains(self, theKey1) + + def Substitute(self, theIndex, theKey1, theItem): + return _Aspect.Aspect_XRActionMap_Substitute(self, theIndex, theKey1, theItem) + + def Swap(self, theIndex1, theIndex2): + return _Aspect.Aspect_XRActionMap_Swap(self, theIndex1, theIndex2) + + def RemoveLast(self): + return _Aspect.Aspect_XRActionMap_RemoveLast(self) + + def RemoveFromIndex(self, theIndex): + return _Aspect.Aspect_XRActionMap_RemoveFromIndex(self, theIndex) + + def RemoveKey(self, theKey1): + return _Aspect.Aspect_XRActionMap_RemoveKey(self, theKey1) + + def FindKey(self, theIndex): + return _Aspect.Aspect_XRActionMap_FindKey(self, theIndex) + + def FindFromIndex(self, theIndex): + return _Aspect.Aspect_XRActionMap_FindFromIndex(self, theIndex) + + def ChangeFromIndex(self, theIndex): + return _Aspect.Aspect_XRActionMap_ChangeFromIndex(self, theIndex) + + def __call__(self, *args): + return _Aspect.Aspect_XRActionMap___call__(self, *args) + + def FindIndex(self, theKey1): + return _Aspect.Aspect_XRActionMap_FindIndex(self, theKey1) + + def ChangeFromKey(self, theKey1): + return _Aspect.Aspect_XRActionMap_ChangeFromKey(self, theKey1) + + def Seek(self, theKey1): + return _Aspect.Aspect_XRActionMap_Seek(self, theKey1) + + def ChangeSeek(self, theKey1): + return _Aspect.Aspect_XRActionMap_ChangeSeek(self, theKey1) + + def FindFromKey(self, *args): + return _Aspect.Aspect_XRActionMap_FindFromKey(self, *args) + + def Clear(self, *args): + return _Aspect.Aspect_XRActionMap_Clear(self, *args) + __swig_destroy__ = _Aspect.delete_Aspect_XRActionMap + + def Size(self): + return _Aspect.Aspect_XRActionMap_Size(self) + +# Register Aspect_XRActionMap in _Aspect: +_Aspect.Aspect_XRActionMap_swigregister(Aspect_XRActionMap) +class Aspect_XRActionSetMap(OCC.Core.NCollection.NCollection_BaseMap): + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") + __repr__ = _swig_repr + + def begin(self): + return _Aspect.Aspect_XRActionSetMap_begin(self) + + def end(self): + return _Aspect.Aspect_XRActionSetMap_end(self) + + def cbegin(self): + return _Aspect.Aspect_XRActionSetMap_cbegin(self) + + def cend(self): + return _Aspect.Aspect_XRActionSetMap_cend(self) + + def __init__(self, *args): + _Aspect.Aspect_XRActionSetMap_swiginit(self, _Aspect.new_Aspect_XRActionSetMap(*args)) + + def Exchange(self, theOther): + return _Aspect.Aspect_XRActionSetMap_Exchange(self, theOther) + + def Assign(self, theOther): + return _Aspect.Aspect_XRActionSetMap_Assign(self, theOther) + + def Set(self, *args): + return _Aspect.Aspect_XRActionSetMap_Set(self, *args) + + def ReSize(self, N): + return _Aspect.Aspect_XRActionSetMap_ReSize(self, N) + + def Add(self, *args): + return _Aspect.Aspect_XRActionSetMap_Add(self, *args) + + def Contains(self, theKey1): + return _Aspect.Aspect_XRActionSetMap_Contains(self, theKey1) + + def Substitute(self, theIndex, theKey1, theItem): + return _Aspect.Aspect_XRActionSetMap_Substitute(self, theIndex, theKey1, theItem) + + def Swap(self, theIndex1, theIndex2): + return _Aspect.Aspect_XRActionSetMap_Swap(self, theIndex1, theIndex2) + + def RemoveLast(self): + return _Aspect.Aspect_XRActionSetMap_RemoveLast(self) + + def RemoveFromIndex(self, theIndex): + return _Aspect.Aspect_XRActionSetMap_RemoveFromIndex(self, theIndex) + + def RemoveKey(self, theKey1): + return _Aspect.Aspect_XRActionSetMap_RemoveKey(self, theKey1) + + def FindKey(self, theIndex): + return _Aspect.Aspect_XRActionSetMap_FindKey(self, theIndex) + + def FindFromIndex(self, theIndex): + return _Aspect.Aspect_XRActionSetMap_FindFromIndex(self, theIndex) + + def ChangeFromIndex(self, theIndex): + return _Aspect.Aspect_XRActionSetMap_ChangeFromIndex(self, theIndex) + + def __call__(self, *args): + return _Aspect.Aspect_XRActionSetMap___call__(self, *args) + + def FindIndex(self, theKey1): + return _Aspect.Aspect_XRActionSetMap_FindIndex(self, theKey1) + + def ChangeFromKey(self, theKey1): + return _Aspect.Aspect_XRActionSetMap_ChangeFromKey(self, theKey1) + + def Seek(self, theKey1): + return _Aspect.Aspect_XRActionSetMap_Seek(self, theKey1) + + def ChangeSeek(self, theKey1): + return _Aspect.Aspect_XRActionSetMap_ChangeSeek(self, theKey1) + + def FindFromKey(self, *args): + return _Aspect.Aspect_XRActionSetMap_FindFromKey(self, *args) + + def Clear(self, *args): + return _Aspect.Aspect_XRActionSetMap_Clear(self, *args) + __swig_destroy__ = _Aspect.delete_Aspect_XRActionSetMap + + def Size(self): + return _Aspect.Aspect_XRActionSetMap_Size(self) + +# Register Aspect_XRActionSetMap in _Aspect: +_Aspect.Aspect_XRActionSetMap_swigregister(Aspect_XRActionSetMap) +class Aspect_Background(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 + ----------- + Creates a window background. Default color: NOC_MATRAGRAY. + + Parameters + ---------- + AColor: Quantity_Color + + Return + ------- + None + + Description + ----------- + Creates a window background with the colour . + + """ + _Aspect.Aspect_Background_swiginit(self, _Aspect.new_Aspect_Background(*args)) + + def Color(self, *args): + r""" + Return + ------- + Quantity_Color + + Description + ----------- + Returns the colour of the window background . + + """ + return _Aspect.Aspect_Background_Color(self, *args) + + def DumpJson(self, depth=-1): + r""" + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + """ + return _Aspect.Aspect_Background_DumpJson(self, depth) + + def SetColor(self, *args): + r""" + + Parameters + ---------- + AColor: Quantity_Color + + Return + ------- + None + + Description + ----------- + Modifies the colour of the window background . + + """ + return _Aspect.Aspect_Background_SetColor(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _Aspect.delete_Aspect_Background + +# Register Aspect_Background in _Aspect: +_Aspect.Aspect_Background_swigregister(Aspect_Background) +class Aspect_DisplayConnection(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 GetDefaultFBConfig(self, *args): + r""" + Return + ------- + Aspect_FBConfig + + Description + ----------- + Return: native Window FB config (GLXFBConfig on Xlib). + + """ + return _Aspect.Aspect_DisplayConnection_GetDefaultFBConfig(self, *args) + + def GetDefaultVisualInfo(self, *args): + r""" + Return + ------- + Aspect_XVisualInfo * + + Description + ----------- + Return default window visual or NULL when undefined. + + """ + return _Aspect.Aspect_DisplayConnection_GetDefaultVisualInfo(self, *args) + + def GetDisplayAspect(self, *args): + r""" + Return + ------- + Aspect_XDisplay * + + Description + ----------- + Return: pointer to Display structure that serves as the connection to the X server. + + """ + return _Aspect.Aspect_DisplayConnection_GetDisplayAspect(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_Aspect_DisplayConnection_DownCast(t) + + + __repr__ = _dumps_object + + @methodnotwrapped + def GetAtom(self): + pass + + @methodnotwrapped + def GetDisplay(self): + pass + + @methodnotwrapped + def GetDisplayName(self): + pass + + @methodnotwrapped + def Init(self): + pass + + @methodnotwrapped + def IsOwnDisplay(self): + pass + + @methodnotwrapped + def GetAtomX(self): + pass + + @methodnotwrapped + def GetDefaultVisualInfoX(self): + pass + + @methodnotwrapped + def SetDefaultVisualInfo(self): + pass + + + def __init__(self): + _Aspect.Aspect_DisplayConnection_swiginit(self, _Aspect.new_Aspect_DisplayConnection()) + __swig_destroy__ = _Aspect.delete_Aspect_DisplayConnection + +# Register Aspect_DisplayConnection in _Aspect: +_Aspect.Aspect_DisplayConnection_swigregister(Aspect_DisplayConnection) +class Aspect_GenId(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 + ----------- + Creates an available set of identifiers with the lower bound 0 and the upper bound INT_MAX / 2. + + Parameters + ---------- + theLow: int + theUpper: int + + Return + ------- + None + + Description + ----------- + Creates an available set of identifiers with specified range. Raises IdentDefinitionError if theUpper is less than theLow. + + """ + _Aspect.Aspect_GenId_swiginit(self, _Aspect.new_Aspect_GenId(*args)) + + def Available(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Returns the number of available identifiers. + + """ + return _Aspect.Aspect_GenId_Available(self, *args) + + def DumpJson(self, depth=-1): + r""" + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + """ + return _Aspect.Aspect_GenId_DumpJson(self, depth) + + def Free(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Free all identifiers - make the whole range available again. + + Parameters + ---------- + theId: int + + Return + ------- + None + + Description + ----------- + Free specified identifier. Warning - method has no protection against double-freeing!. + + """ + return _Aspect.Aspect_GenId_Free(self, *args) + + def HasFree(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns true if there are available identifiers in range. + + """ + return _Aspect.Aspect_GenId_HasFree(self, *args) + + def Lower(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Returns the lower identifier in range. + + """ + return _Aspect.Aspect_GenId_Lower(self, *args) + + def Next(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Returns the next available identifier. Warning: Raises IdentDefinitionError if all identifiers are busy. + + Parameters + ---------- + + Return + ------- + theId: int + + Description + ----------- + Generates the next available identifier. @param[out] theId generated identifier + Return: False if all identifiers are busy. + + """ + return _Aspect.Aspect_GenId_Next(self, *args) + + def Upper(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Returns the upper identifier in range. + + """ + return _Aspect.Aspect_GenId_Upper(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _Aspect.delete_Aspect_GenId + +# Register Aspect_GenId in _Aspect: +_Aspect.Aspect_GenId_swigregister(Aspect_GenId) +class Aspect_Grid(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 Activate(self, *args): + r""" + Return + ------- + None + + Description + ----------- + activates the grid. The Hit method will return gridx and gridx computed according to the steps of the grid. + + """ + return _Aspect.Aspect_Grid_Activate(self, *args) + + def Colors(self, *args): + r""" + + Parameters + ---------- + aColor: Quantity_Color + aTenthColor: Quantity_Color + + Return + ------- + None + + Description + ----------- + Returns the colors of the grid. + + """ + return _Aspect.Aspect_Grid_Colors(self, *args) + + def Compute(self, *args): + r""" + + Parameters + ---------- + X: float + Y: float + + Return + ------- + gridX: float + gridY: float + + Description + ----------- + returns the point of the grid the closest to the point X,Y. + + """ + return _Aspect.Aspect_Grid_Compute(self, *args) + + def Deactivate(self, *args): + r""" + Return + ------- + None + + Description + ----------- + deactivates the grid. The hit method will return gridx and gridx as the enter value X & Y. + + """ + return _Aspect.Aspect_Grid_Deactivate(self, *args) + + def Display(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Display the grid at screen. + + """ + return _Aspect.Aspect_Grid_Display(self, *args) + + def DrawMode(self, *args): + r""" + Return + ------- + Aspect_GridDrawMode + + Description + ----------- + Returns the grid aspect. + + """ + return _Aspect.Aspect_Grid_DrawMode(self, *args) + + def DumpJson(self, depth=-1): + r""" + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + """ + return _Aspect.Aspect_Grid_DumpJson(self, depth) + + def Erase(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Erase the grid from screen. + + """ + return _Aspect.Aspect_Grid_Erase(self, *args) + + def Hit(self, *args): + r""" + + Parameters + ---------- + X: float + Y: float + + Return + ------- + gridX: float + gridY: float + + Description + ----------- + returns the point of the grid the closest to the point X,Y if the grid is active. If the grid is not active returns X,Y. + + """ + return _Aspect.Aspect_Grid_Hit(self, *args) + + def Init(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _Aspect.Aspect_Grid_Init(self, *args) + + def IsActive(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True when the grid is active. + + """ + return _Aspect.Aspect_Grid_IsActive(self, *args) + + def IsDisplayed(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True when the grid is displayed at screen. + + """ + return _Aspect.Aspect_Grid_IsDisplayed(self, *args) + + def Rotate(self, *args): + r""" + + Parameters + ---------- + anAngle: float + + Return + ------- + None + + Description + ----------- + Rotate the grid from a relative angle. + + """ + return _Aspect.Aspect_Grid_Rotate(self, *args) + + def RotationAngle(self, *args): + r""" + Return + ------- + float + + Description + ----------- + returns the x Angle of the grid. + + """ + return _Aspect.Aspect_Grid_RotationAngle(self, *args) + + def SetColors(self, *args): + r""" + + Parameters + ---------- + aColor: Quantity_Color + aTenthColor: Quantity_Color + + Return + ------- + None + + Description + ----------- + Change the colors of the grid. + + """ + return _Aspect.Aspect_Grid_SetColors(self, *args) + + def SetDrawMode(self, *args): + r""" + + Parameters + ---------- + aDrawMode: Aspect_GridDrawMode + + Return + ------- + None + + Description + ----------- + Change the grid aspect. + + """ + return _Aspect.Aspect_Grid_SetDrawMode(self, *args) + + def SetRotationAngle(self, *args): + r""" + + Parameters + ---------- + anAngle: float + + Return + ------- + None + + Description + ----------- + defines the orientation of the grid. + + """ + return _Aspect.Aspect_Grid_SetRotationAngle(self, *args) + + def SetXOrigin(self, *args): + r""" + + Parameters + ---------- + anOrigin: float + + Return + ------- + None + + Description + ----------- + defines the x Origin of the grid. + + """ + return _Aspect.Aspect_Grid_SetXOrigin(self, *args) + + def SetYOrigin(self, *args): + r""" + + Parameters + ---------- + anOrigin: float + + Return + ------- + None + + Description + ----------- + defines the y Origin of the grid. + + """ + return _Aspect.Aspect_Grid_SetYOrigin(self, *args) + + def Translate(self, *args): + r""" + + Parameters + ---------- + aDx: float + aDy: float + + Return + ------- + None + + Description + ----------- + Translate the grid from a relative distance. + + """ + return _Aspect.Aspect_Grid_Translate(self, *args) + + def XOrigin(self, *args): + r""" + Return + ------- + float + + Description + ----------- + returns the x Origin of the grid. + + """ + return _Aspect.Aspect_Grid_XOrigin(self, *args) + + def YOrigin(self, *args): + r""" + Return + ------- + float + + Description + ----------- + returns the x Origin of the grid. + + """ + return _Aspect.Aspect_Grid_YOrigin(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_Aspect_Grid_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _Aspect.delete_Aspect_Grid + +# Register Aspect_Grid in _Aspect: +_Aspect.Aspect_Grid_swigregister(Aspect_Grid) +class Aspect_ScrollDelta(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 + ----------- + Empty constructor. + + Parameters + ---------- + thePnt: NCollection_Vec2 + theValue: float + theFlags: Aspect_VKeyFlags (optional, default to Aspect_VKeyFlags_NONE) + + Return + ------- + None + + Description + ----------- + Constructor. + + Parameters + ---------- + theValue: float + theFlags: Aspect_VKeyFlags (optional, default to Aspect_VKeyFlags_NONE) + + Return + ------- + None + + Description + ----------- + Constructor with undefined point. + + """ + _Aspect.Aspect_ScrollDelta_swiginit(self, _Aspect.new_Aspect_ScrollDelta(*args)) + + def HasPoint(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return true if action has point defined. + + """ + return _Aspect.Aspect_ScrollDelta_HasPoint(self, *args) + + def ResetPoint(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Reset at point. + + """ + return _Aspect.Aspect_ScrollDelta_ResetPoint(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _Aspect.delete_Aspect_ScrollDelta + +# Register Aspect_ScrollDelta in _Aspect: +_Aspect.Aspect_ScrollDelta_swigregister(Aspect_ScrollDelta) +class Aspect_SkydomeBackground(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 + ----------- + Creates a window skydome background. By default skydome is initialized with sun at its zenith (0.0, 1.0, 0.0), average clody (0.2), zero time parameter, zero fogginess, 512x512 texture size. + + Parameters + ---------- + theSunDirection: gp_Dir + theCloudiness: float + theTime: float + theFogginess: float + theSize: int + + Return + ------- + None + + Description + ----------- + Creates a window skydome background with given parameters. + Input parameter: theSunDirection direction to the sun (moon). Sun direction with negative Y component represents moon with (-X, -Y, -Z) direction. + Input parameter: theCloudiness cloud intensity, 0.0 means no clouds at all and 1.0 - high clody. + Input parameter: theTime time parameter of simulation. Might be tweaked to slightly change appearance. + Input parameter: theFogginess fog intensity, 0.0 means no fog and 1.0 - high fogginess + Input parameter: theSize size of cubemap side in pixels. + + """ + _Aspect.Aspect_SkydomeBackground_swiginit(self, _Aspect.new_Aspect_SkydomeBackground(*args)) + + def Cloudiness(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Get cloud intensity. By default this value is 0.2 0.0 means no clouds at all and 1.0 - high clody. + + """ + return _Aspect.Aspect_SkydomeBackground_Cloudiness(self, *args) + + def DumpJson(self, depth=-1): + r""" + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + """ + return _Aspect.Aspect_SkydomeBackground_DumpJson(self, depth) + + def Fogginess(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Get fog intensity. By default this value is 0.0 0.0 means no fog and 1.0 - high fogginess. + + """ + return _Aspect.Aspect_SkydomeBackground_Fogginess(self, *args) + + def SetCloudiness(self, *args): + r""" + + Parameters + ---------- + theCloudiness: float + + Return + ------- + None + + Description + ----------- + Set cloud intensity. By default this value is 0.2 0.0 means no clouds at all and 1.0 - high clody. + + """ + return _Aspect.Aspect_SkydomeBackground_SetCloudiness(self, *args) + + def SetFogginess(self, *args): + r""" + + Parameters + ---------- + theFogginess: float + + Return + ------- + None + + Description + ----------- + Set fog intensity. By default this value is 0.0 0.0 means no fog and 1.0 - high fogginess. + + """ + return _Aspect.Aspect_SkydomeBackground_SetFogginess(self, *args) + + def SetSize(self, *args): + r""" + + Parameters + ---------- + theSize: int + + Return + ------- + None + + Description + ----------- + Set size of cubemap. By default this value is 512. + + """ + return _Aspect.Aspect_SkydomeBackground_SetSize(self, *args) + + def SetSunDirection(self, *args): + r""" + + Parameters + ---------- + theSunDirection: gp_Dir + + Return + ------- + None + + Description + ----------- + Set sun direction. By default this value is (0, 1, 0) Sun direction with negative Y component represents moon with (-X, -Y, -Z) direction. + + """ + return _Aspect.Aspect_SkydomeBackground_SetSunDirection(self, *args) + + def SetTimeParameter(self, *args): + r""" + + Parameters + ---------- + theTime: float + + Return + ------- + None + + Description + ----------- + Set time of cloud simulation. By default this value is 0.0 This value might be tweaked to slightly change appearance of clouds. + + """ + return _Aspect.Aspect_SkydomeBackground_SetTimeParameter(self, *args) + + def Size(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Get size of cubemap. By default this value is 512. + + """ + return _Aspect.Aspect_SkydomeBackground_Size(self, *args) + + def SunDirection(self, *args): + r""" + Return + ------- + gp_Dir + + Description + ----------- + Get sun direction. By default this value is (0, 1, 0) Sun direction with negative Y component represents moon with (-X, -Y, -Z) direction. + + """ + return _Aspect.Aspect_SkydomeBackground_SunDirection(self, *args) + + def TimeParameter(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Get time of cloud simulation. By default this value is 0.0 This value might be tweaked to slightly change appearance of clouds. + + """ + return _Aspect.Aspect_SkydomeBackground_TimeParameter(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _Aspect.delete_Aspect_SkydomeBackground + +# Register Aspect_SkydomeBackground in _Aspect: +_Aspect.Aspect_SkydomeBackground_swigregister(Aspect_SkydomeBackground) +class Aspect_Touch(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 + ----------- + Empty constructor. + + Parameters + ---------- + thePnt: NCollection_Vec2 + theIsPreciseDevice: bool + + Return + ------- + None + + Description + ----------- + Constructor with initialization. + + Parameters + ---------- + theX: float + theY: float + theIsPreciseDevice: bool + + Return + ------- + None + + Description + ----------- + Constructor with initialization. + + """ + _Aspect.Aspect_Touch_swiginit(self, _Aspect.new_Aspect_Touch(*args)) + + def Delta(self, *args): + r""" + Return + ------- + NCollection_Vec2 + + Description + ----------- + Return values delta. + + """ + return _Aspect.Aspect_Touch_Delta(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _Aspect.delete_Aspect_Touch + +# Register Aspect_Touch in _Aspect: +_Aspect.Aspect_Touch_swigregister(Aspect_Touch) +class Aspect_TrackedDevicePose(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 + ----------- + Empty constructor. + + """ + _Aspect.Aspect_TrackedDevicePose_swiginit(self, _Aspect.new_Aspect_TrackedDevicePose(*args)) + + __repr__ = _dumps_object + + __swig_destroy__ = _Aspect.delete_Aspect_TrackedDevicePose + +# Register Aspect_TrackedDevicePose in _Aspect: +_Aspect.Aspect_TrackedDevicePose_swigregister(Aspect_TrackedDevicePose) +class Aspect_VKeySet(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 + ----------- + Main constructor. + + """ + _Aspect.Aspect_VKeySet_swiginit(self, _Aspect.new_Aspect_VKeySet(*args)) + + def DownTime(self, *args): + r""" + + Parameters + ---------- + theKey: Aspect_VKey + + Return + ------- + double + + Description + ----------- + Return timestamp of press event. + + """ + return _Aspect.Aspect_VKeySet_DownTime(self, *args) + + def HoldDuration(self, *args): + r""" + + Parameters + ---------- + theKey: Aspect_VKey + theTime: double + + Return + ------- + theDuration: double + + Description + ----------- + Return duration of the button in pressed state. + Parameter theKey key to check + Parameter theTime current time (for computing duration from key down time) + Parameter theDuration key press duration + Return: True if key was in pressed state. + + Parameters + ---------- + theKey: Aspect_VKey + theTime: double + + Return + ------- + theDuration: double + thePressure: double + + Description + ----------- + Return duration of the button in pressed state. + Parameter theKey key to check + Parameter theTime current time (for computing duration from key down time) + Parameter theDuration key press duration + Parameter thePressure key pressure + Return: True if key was in pressed state. + + """ + return _Aspect.Aspect_VKeySet_HoldDuration(self, *args) + + def IsFreeKey(self, *args): + r""" + + Parameters + ---------- + theKey: Aspect_VKey + + Return + ------- + bool + + Description + ----------- + Return True if key is in Free state. + + """ + return _Aspect.Aspect_VKeySet_IsFreeKey(self, *args) + + def IsKeyDown(self, *args): + r""" + + Parameters + ---------- + theKey: Aspect_VKey + + Return + ------- + bool + + Description + ----------- + Return True if key is in Pressed state. + + """ + return _Aspect.Aspect_VKeySet_IsKeyDown(self, *args) + + def KeyDown(self, *args): + r""" + + Parameters + ---------- + theKey: Aspect_VKey + theTime: double + thePressure: double (optional, default to 1.0) + + Return + ------- + None + + Description + ----------- + Press key. + Parameter theKey key pressed + Parameter theTime event timestamp. + + """ + return _Aspect.Aspect_VKeySet_KeyDown(self, *args) + + def KeyFromAxis(self, *args): + r""" + + Parameters + ---------- + theNegative: Aspect_VKey + thePositive: Aspect_VKey + theTime: double + thePressure: double + + Return + ------- + None + + Description + ----------- + Simulate key up/down events from axis value. + + """ + return _Aspect.Aspect_VKeySet_KeyFromAxis(self, *args) + + def KeyUp(self, *args): + r""" + + Parameters + ---------- + theKey: Aspect_VKey + theTime: double + + Return + ------- + None + + Description + ----------- + Release key. + Parameter theKey key pressed + Parameter theTime event timestamp. + + """ + return _Aspect.Aspect_VKeySet_KeyUp(self, *args) + + def Modifiers(self, *args): + r""" + Return + ------- + Aspect_VKeyFlags + + Description + ----------- + Return active modifiers. + + """ + return _Aspect.Aspect_VKeySet_Modifiers(self, *args) + + def Mutex(self, *args): + r""" + Return + ------- + Standard_Mutex + + Description + ----------- + Return mutex for thread-safe updates. All operations in class implicitly locks this mutex, so this method could be used only for batch processing of keys. + + """ + return _Aspect.Aspect_VKeySet_Mutex(self, *args) + + def Reset(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Reset the key state into unpressed state. + + """ + return _Aspect.Aspect_VKeySet_Reset(self, *args) + + def TimeUp(self, *args): + r""" + + Parameters + ---------- + theKey: Aspect_VKey + + Return + ------- + double + + Description + ----------- + Return timestamp of release event. + + """ + return _Aspect.Aspect_VKeySet_TimeUp(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_Aspect_VKeySet_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _Aspect.delete_Aspect_VKeySet + +# Register Aspect_VKeySet in _Aspect: +_Aspect.Aspect_VKeySet_swigregister(Aspect_VKeySet) +class Aspect_Window(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 Background(self, *args): + r""" + Return + ------- + Aspect_Background + + Description + ----------- + Returns the window background. + + """ + return _Aspect.Aspect_Window_Background(self, *args) + + def BackgroundFillMethod(self, *args): + r""" + Return + ------- + Aspect_FillMethod + + Description + ----------- + Returns the current image background fill mode. + + """ + return _Aspect.Aspect_Window_BackgroundFillMethod(self, *args) + + def ConvertPointFromBacking(self, *args): + r""" + + Parameters + ---------- + thePnt: Graphic3d_Vec2d + + Return + ------- + Graphic3d_Vec2d + + Description + ----------- + Convert point from backing store units to logical units. + + """ + return _Aspect.Aspect_Window_ConvertPointFromBacking(self, *args) + + def ConvertPointToBacking(self, *args): + r""" + + Parameters + ---------- + thePnt: Graphic3d_Vec2d + + Return + ------- + Graphic3d_Vec2d + + Description + ----------- + Convert point from logical units into backing store units. + + """ + return _Aspect.Aspect_Window_ConvertPointToBacking(self, *args) + + def DevicePixelRatio(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Return device pixel ratio (logical to backing store scale factor). + + """ + return _Aspect.Aspect_Window_DevicePixelRatio(self, *args) + + def Dimensions(self, *args): + r""" + Return + ------- + Graphic3d_Vec2i + + Description + ----------- + Returns window dimensions. + + """ + return _Aspect.Aspect_Window_Dimensions(self, *args) + + def DisplayConnection(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns connection to Display or NULL. + + """ + return _Aspect.Aspect_Window_DisplayConnection(self, *args) + + def DoMapping(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Apply the mapping change to the window . and returns True if the window is mapped at screen. + + """ + return _Aspect.Aspect_Window_DoMapping(self, *args) + + def DoResize(self, *args): + r""" + Return + ------- + Aspect_TypeOfResize + + Description + ----------- + Apply the resizing to the window . + + """ + return _Aspect.Aspect_Window_DoResize(self, *args) + + def DumpJson(self, depth=-1): + r""" + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + """ + return _Aspect.Aspect_Window_DumpJson(self, depth) + + def GradientBackground(self, *args): + r""" + Return + ------- + Aspect_GradientBackground + + Description + ----------- + Returns the window gradient background. + + """ + return _Aspect.Aspect_Window_GradientBackground(self, *args) + + def InvalidateContent(self, *args): + r""" + + Parameters + ---------- + theDisp: Aspect_DisplayConnection + + Return + ------- + None + + Description + ----------- + Invalidate entire window content. //! Implementation is expected to allow calling this method from non-GUI thread, e.g. by queuing exposure event into window message queue or in other thread-safe manner. //! Optional display argument should be passed when called from non-GUI thread on platforms implementing thread-unsafe connections to display. NULL can be passed instead otherwise. + + """ + return _Aspect.Aspect_Window_InvalidateContent(self, *args) + + def IsMapped(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True if the window is opened and False if the window is closed. + + """ + return _Aspect.Aspect_Window_IsMapped(self, *args) + + def IsVirtual(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True if the window is virtual. + + """ + return _Aspect.Aspect_Window_IsVirtual(self, *args) + + def Map(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Opens the window . + + """ + return _Aspect.Aspect_Window_Map(self, *args) + + def NativeFBConfig(self, *args): + r""" + Return + ------- + Aspect_FBConfig + + Description + ----------- + Returns native Window FB config (GLXFBConfig on Xlib). + + """ + return _Aspect.Aspect_Window_NativeFBConfig(self, *args) + + def Position(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + X1: int + Y1: int + X2: int + Y2: int + + Description + ----------- + Returns The Window POSITION in PIXEL. + + """ + return _Aspect.Aspect_Window_Position(self, *args) + + def Ratio(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns The Window RATIO equal to the physical WIDTH/HEIGHT dimensions. + + """ + return _Aspect.Aspect_Window_Ratio(self, *args) + + def SetBackground(self, *args): + r""" + + Parameters + ---------- + theBack: Aspect_Background + + Return + ------- + None + + Description + ----------- + Modifies the window background. + + Parameters + ---------- + theColor: Quantity_Color + + Return + ------- + None + + Description + ----------- + Modifies the window background. + + Parameters + ---------- + theBackground: Aspect_GradientBackground + + Return + ------- + None + + Description + ----------- + Modifies the window gradient background. + + Parameters + ---------- + theFirstColor: Quantity_Color + theSecondColor: Quantity_Color + theFillMethod: Aspect_GradientFillMethod + + Return + ------- + None + + Description + ----------- + Modifies the window gradient background. + + """ + return _Aspect.Aspect_Window_SetBackground(self, *args) + + def SetTitle(self, *args): + r""" + + Parameters + ---------- + theTitle: str + + Return + ------- + None + + Description + ----------- + Sets window title. + + """ + return _Aspect.Aspect_Window_SetTitle(self, *args) + + def SetVirtual(self, *args): + r""" + + Parameters + ---------- + theVirtual: bool + + Return + ------- + None + + Description + ----------- + Setup the virtual state. + + """ + return _Aspect.Aspect_Window_SetVirtual(self, *args) + + def Size(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + Width: int + Height: int + + Description + ----------- + Returns The Window SIZE in PIXEL. + + """ + return _Aspect.Aspect_Window_Size(self, *args) + + def TopLeft(self, *args): + r""" + Return + ------- + Graphic3d_Vec2i + + Description + ----------- + Returns window top-left corner. + + """ + return _Aspect.Aspect_Window_TopLeft(self, *args) + + def Unmap(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Closes the window . + + """ + return _Aspect.Aspect_Window_Unmap(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_Aspect_Window_DownCast(t) + + + __repr__ = _dumps_object + + @methodnotwrapped + def NativeHandle(self): + pass + + @methodnotwrapped + def NativeParentHandle(self): + pass + + __swig_destroy__ = _Aspect.delete_Aspect_Window + +# Register Aspect_Window in _Aspect: +_Aspect.Aspect_Window_swigregister(Aspect_Window) +class Aspect_WindowInputListener(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 AddTouchPoint(self, *args): + r""" + + Parameters + ---------- + theId: Standard_Size + thePnt: Graphic3d_Vec2d + theClearBefore: bool (optional, default to false) + + Return + ------- + None + + Description + ----------- + Add touch point with the given ID. This method is expected to be called from UI thread. + Parameter theId touch unique identifier + Parameter thePnt touch coordinates + Parameter theClearBefore if True previously registered touches will be removed. + + """ + return _Aspect.Aspect_WindowInputListener_AddTouchPoint(self, *args) + + def Change3dMouseIsNoRotate(self, *args): + r""" + Return + ------- + NCollection_Vec3 + + Description + ----------- + Return 3d mouse rotation axes (tilt/roll/spin) ignore flag; (False, False, False) by default. + + """ + return _Aspect.Aspect_WindowInputListener_Change3dMouseIsNoRotate(self, *args) + + def Change3dMouseToReverse(self, *args): + r""" + Return + ------- + NCollection_Vec3 + + Description + ----------- + Return 3d mouse rotation axes (tilt/roll/spin) reverse flag; (True, False, False) by default. + + """ + return _Aspect.Aspect_WindowInputListener_Change3dMouseToReverse(self, *args) + + def ChangeKeys(self, *args): + r""" + Return + ------- + Aspect_VKeySet + + Description + ----------- + Return keyboard state. + + """ + return _Aspect.Aspect_WindowInputListener_ChangeKeys(self, *args) + + def EventTime(self, *args): + r""" + Return + ------- + double + + Description + ----------- + Return event time (e.g. current time). + + """ + return _Aspect.Aspect_WindowInputListener_EventTime(self, *args) + + def Get3dMouseIsNoRotate(self, *args): + r""" + Return + ------- + NCollection_Vec3 + + Description + ----------- + Return 3d mouse rotation axes (tilt/roll/spin) ignore flag; (False, False, False) by default. + + """ + return _Aspect.Aspect_WindowInputListener_Get3dMouseIsNoRotate(self, *args) + + def Get3dMouseRotationScale(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Return acceleration ratio for rotation event; 4.0 by default. + + """ + return _Aspect.Aspect_WindowInputListener_Get3dMouseRotationScale(self, *args) + + def Get3dMouseToReverse(self, *args): + r""" + Return + ------- + NCollection_Vec3 + + Description + ----------- + Return 3d mouse rotation axes (tilt/roll/spin) reverse flag; (True, False, False) by default. + + """ + return _Aspect.Aspect_WindowInputListener_Get3dMouseToReverse(self, *args) + + def Get3dMouseTranslationScale(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Return acceleration ratio for translation event; 2.0 by default. + + """ + return _Aspect.Aspect_WindowInputListener_Get3dMouseTranslationScale(self, *args) + + def HasTouchPoints(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return True if touches map is not empty. + + """ + return _Aspect.Aspect_WindowInputListener_HasTouchPoints(self, *args) + + def KeyDown(self, *args): + r""" + + Parameters + ---------- + theKey: Aspect_VKey + theTime: double + thePressure: double (optional, default to 1.0) + + Return + ------- + None + + Description + ----------- + Press key. Default implementation updates internal cache. + Parameter theKey key pressed + Parameter theTime event timestamp. + + """ + return _Aspect.Aspect_WindowInputListener_KeyDown(self, *args) + + def KeyFromAxis(self, *args): + r""" + + Parameters + ---------- + theNegative: Aspect_VKey + thePositive: Aspect_VKey + theTime: double + thePressure: double + + Return + ------- + None + + Description + ----------- + Simulate key up/down events from axis value. Default implementation updates internal cache. + + """ + return _Aspect.Aspect_WindowInputListener_KeyFromAxis(self, *args) + + def KeyUp(self, *args): + r""" + + Parameters + ---------- + theKey: Aspect_VKey + theTime: double + + Return + ------- + None + + Description + ----------- + Release key. Default implementation updates internal cache. + Parameter theKey key pressed + Parameter theTime event timestamp. + + """ + return _Aspect.Aspect_WindowInputListener_KeyUp(self, *args) + + def Keys(self, *args): + r""" + Return + ------- + Aspect_VKeySet + + Description + ----------- + Return keyboard state. + + """ + return _Aspect.Aspect_WindowInputListener_Keys(self, *args) + + def LastMouseFlags(self, *args): + r""" + Return + ------- + Aspect_VKeyFlags + + Description + ----------- + Return active key modifiers passed with last mouse event. + + """ + return _Aspect.Aspect_WindowInputListener_LastMouseFlags(self, *args) + + def LastMousePosition(self, *args): + r""" + Return + ------- + Graphic3d_Vec2i + + Description + ----------- + Return last mouse position. + + """ + return _Aspect.Aspect_WindowInputListener_LastMousePosition(self, *args) + + def PressMouseButton(self, *args): + r""" + + Parameters + ---------- + thePoint: Graphic3d_Vec2i + theButton: Aspect_VKeyMouse + theModifiers: Aspect_VKeyFlags + theIsEmulated: bool + + Return + ------- + bool + + Description + ----------- + Handle mouse button press event. This method is expected to be called from UI thread. Default implementation redirects to UpdateMousePosition(). + Parameter thePoint mouse cursor position + Parameter theButton pressed button + Parameter theModifiers key modifiers + Parameter theIsEmulated if True then mouse event comes NOT from real mouse but emulated from non-precise input like touch on screen + Return: True if window content should be redrawn. + + """ + return _Aspect.Aspect_WindowInputListener_PressMouseButton(self, *args) + + def PressedMouseButtons(self, *args): + r""" + Return + ------- + Aspect_VKeyMouse + + Description + ----------- + Return currently pressed mouse buttons. + + """ + return _Aspect.Aspect_WindowInputListener_PressedMouseButtons(self, *args) + + def ProcessClose(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Handle window close event. + + """ + return _Aspect.Aspect_WindowInputListener_ProcessClose(self, *args) + + def ProcessConfigure(self, *args): + r""" + + Parameters + ---------- + theIsResized: bool + + Return + ------- + None + + Description + ----------- + Handle window resize event. + + """ + return _Aspect.Aspect_WindowInputListener_ProcessConfigure(self, *args) + + def ProcessExpose(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Handle expose event (window content has been invalidation and should be redrawn). + + """ + return _Aspect.Aspect_WindowInputListener_ProcessExpose(self, *args) + + def ProcessFocus(self, *args): + r""" + + Parameters + ---------- + theIsActivated: bool + + Return + ------- + None + + Description + ----------- + Handle focus event. + + """ + return _Aspect.Aspect_WindowInputListener_ProcessFocus(self, *args) + + def ProcessInput(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Handle window input event immediately (flush input buffer or ignore). + + """ + return _Aspect.Aspect_WindowInputListener_ProcessInput(self, *args) + + def ReleaseMouseButton(self, *args): + r""" + + Parameters + ---------- + thePoint: Graphic3d_Vec2i + theButton: Aspect_VKeyMouse + theModifiers: Aspect_VKeyFlags + theIsEmulated: bool + + Return + ------- + bool + + Description + ----------- + Handle mouse button release event. This method is expected to be called from UI thread. Default implementation redirects to UpdateMousePosition(). + Parameter thePoint mouse cursor position + Parameter theButton released button + Parameter theModifiers key modifiers + Parameter theIsEmulated if True then mouse event comes NOT from real mouse but emulated from non-precise input like touch on screen + Return: True if window content should be redrawn. + + """ + return _Aspect.Aspect_WindowInputListener_ReleaseMouseButton(self, *args) + + def RemoveTouchPoint(self, *args): + r""" + + Parameters + ---------- + theId: Standard_Size + theClearSelectPnts: bool (optional, default to false) + + Return + ------- + bool + + Description + ----------- + Remove touch point with the given ID. This method is expected to be called from UI thread. + Parameter theId touch unique identifier + Parameter theClearSelectPnts if True will initiate clearing of selection points + Return: True if point has been removed. + + """ + return _Aspect.Aspect_WindowInputListener_RemoveTouchPoint(self, *args) + + def Set3dMousePreciseInput(self, *args): + r""" + + Parameters + ---------- + theIsQuadric: bool + + Return + ------- + None + + Description + ----------- + Set quadric acceleration flag. + + """ + return _Aspect.Aspect_WindowInputListener_Set3dMousePreciseInput(self, *args) + + def Set3dMouseRotationScale(self, *args): + r""" + + Parameters + ---------- + theScale: float + + Return + ------- + None + + Description + ----------- + Set acceleration ratio for rotation event. + + """ + return _Aspect.Aspect_WindowInputListener_Set3dMouseRotationScale(self, *args) + + def Set3dMouseTranslationScale(self, *args): + r""" + + Parameters + ---------- + theScale: float + + Return + ------- + None + + Description + ----------- + Set acceleration ratio for translation event. + + """ + return _Aspect.Aspect_WindowInputListener_Set3dMouseTranslationScale(self, *args) + + def To3dMousePreciseInput(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return quadric acceleration flag; True by default. + + """ + return _Aspect.Aspect_WindowInputListener_To3dMousePreciseInput(self, *args) + + def TouchPoints(self, *args): + r""" + Return + ------- + Aspect_TouchMap + + Description + ----------- + Return map of active touches. + + """ + return _Aspect.Aspect_WindowInputListener_TouchPoints(self, *args) + + def Update3dMouse(self, *args): + r""" + + Parameters + ---------- + theEvent: WNT_HIDSpaceMouse + + Return + ------- + bool + + Description + ----------- + Process 3d mouse input event (redirects to translation, rotation and keys). + + """ + return _Aspect.Aspect_WindowInputListener_Update3dMouse(self, *args) + + def UpdateMouseButtons(self, *args): + r""" + + Parameters + ---------- + thePoint: Graphic3d_Vec2i + theButtons: Aspect_VKeyMouse + theModifiers: Aspect_VKeyFlags + theIsEmulated: bool + + Return + ------- + bool + + Description + ----------- + Handle mouse button press/release event. This method is expected to be called from UI thread. + Parameter thePoint mouse cursor position + Parameter theButtons pressed buttons + Parameter theModifiers key modifiers + Parameter theIsEmulated if True then mouse event comes NOT from real mouse but emulated from non-precise input like touch on screen + Return: True if window content should be redrawn. + + """ + return _Aspect.Aspect_WindowInputListener_UpdateMouseButtons(self, *args) + + def UpdateMousePosition(self, *args): + r""" + + Parameters + ---------- + thePoint: Graphic3d_Vec2i + theButtons: Aspect_VKeyMouse + theModifiers: Aspect_VKeyFlags + theIsEmulated: bool + + Return + ------- + bool + + Description + ----------- + Handle mouse cursor movement event. This method is expected to be called from UI thread. Default implementation does nothing. + Parameter thePoint mouse cursor position + Parameter theButtons pressed buttons + Parameter theModifiers key modifiers + Parameter theIsEmulated if True then mouse event comes NOT from real mouse but emulated from non-precise input like touch on screen + Return: True if window content should be redrawn. + + """ + return _Aspect.Aspect_WindowInputListener_UpdateMousePosition(self, *args) + + def UpdateMouseScroll(self, *args): + r""" + + Parameters + ---------- + theDelta: Aspect_ScrollDelta + + Return + ------- + bool + + Description + ----------- + Update mouse scroll event. This method is expected to be called from UI thread. + Parameter theDelta mouse cursor position and delta + Return: True if new event has been created or False if existing one has been updated. + + """ + return _Aspect.Aspect_WindowInputListener_UpdateMouseScroll(self, *args) + + def UpdateTouchPoint(self, *args): + r""" + + Parameters + ---------- + theId: Standard_Size + thePnt: Graphic3d_Vec2d + + Return + ------- + None + + Description + ----------- + Update touch point with the given ID. If point with specified ID was not registered before, it will be added. This method is expected to be called from UI thread. + Parameter theId touch unique identifier + Parameter thePnt touch coordinates. + + """ + return _Aspect.Aspect_WindowInputListener_UpdateTouchPoint(self, *args) + + def update3dMouseKeys(self, *args): + r""" + + Parameters + ---------- + theEvent: WNT_HIDSpaceMouse + + Return + ------- + bool + + Description + ----------- + Process 3d mouse input keys event. + + """ + return _Aspect.Aspect_WindowInputListener_update3dMouseKeys(self, *args) + + def update3dMouseRotation(self, *args): + r""" + + Parameters + ---------- + theEvent: WNT_HIDSpaceMouse + + Return + ------- + bool + + Description + ----------- + Process 3d mouse input rotation event. + + """ + return _Aspect.Aspect_WindowInputListener_update3dMouseRotation(self, *args) + + def update3dMouseTranslation(self, *args): + r""" + + Parameters + ---------- + theEvent: WNT_HIDSpaceMouse + + Return + ------- + bool + + Description + ----------- + Process 3d mouse input translation event. + + """ + return _Aspect.Aspect_WindowInputListener_update3dMouseTranslation(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _Aspect.delete_Aspect_WindowInputListener + +# Register Aspect_WindowInputListener in _Aspect: +_Aspect.Aspect_WindowInputListener_swigregister(Aspect_WindowInputListener) +class Aspect_XRAction(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 + ---------- + theId: str + theType: Aspect_XRActionType + + Return + ------- + None + + Description + ----------- + Main constructor. + + """ + _Aspect.Aspect_XRAction_swiginit(self, _Aspect.new_Aspect_XRAction(*args)) + + def Id(self, *args): + r""" + Return + ------- + TCollection_AsciiString + + Description + ----------- + Return action id. + + """ + return _Aspect.Aspect_XRAction_Id(self, *args) + + def IsValid(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return True if action is defined. + + """ + return _Aspect.Aspect_XRAction_IsValid(self, *args) + + def RawHandle(self, *args): + r""" + Return + ------- + uint64_t + + Description + ----------- + Return action handle. + + """ + return _Aspect.Aspect_XRAction_RawHandle(self, *args) + + def SetRawHandle(self, *args): + r""" + + Parameters + ---------- + theHande: uint64_t + + Return + ------- + None + + Description + ----------- + Set action handle. + + """ + return _Aspect.Aspect_XRAction_SetRawHandle(self, *args) + + def Type(self, *args): + r""" + Return + ------- + Aspect_XRActionType + + Description + ----------- + Return action type. + + """ + return _Aspect.Aspect_XRAction_Type(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_Aspect_XRAction_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _Aspect.delete_Aspect_XRAction + +# Register Aspect_XRAction in _Aspect: +_Aspect.Aspect_XRAction_swigregister(Aspect_XRAction) +class Aspect_XRActionSet(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 + ---------- + theId: str + + Return + ------- + None + + Description + ----------- + Main constructor. + + """ + _Aspect.Aspect_XRActionSet_swiginit(self, _Aspect.new_Aspect_XRActionSet(*args)) + + def Actions(self, *args): + r""" + Return + ------- + Aspect_XRActionMap + + Description + ----------- + Return map of actions. + + """ + return _Aspect.Aspect_XRActionSet_Actions(self, *args) + + def AddAction(self, *args): + r""" + + Parameters + ---------- + theAction: Aspect_XRAction + + Return + ------- + None + + Description + ----------- + Add action. + + """ + return _Aspect.Aspect_XRActionSet_AddAction(self, *args) + + def Id(self, *args): + r""" + Return + ------- + TCollection_AsciiString + + Description + ----------- + Return action id. + + """ + return _Aspect.Aspect_XRActionSet_Id(self, *args) + + def RawHandle(self, *args): + r""" + Return + ------- + uint64_t + + Description + ----------- + Return action handle. + + """ + return _Aspect.Aspect_XRActionSet_RawHandle(self, *args) + + def SetRawHandle(self, *args): + r""" + + Parameters + ---------- + theHande: uint64_t + + Return + ------- + None + + Description + ----------- + Set action handle. + + """ + return _Aspect.Aspect_XRActionSet_SetRawHandle(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_Aspect_XRActionSet_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _Aspect.delete_Aspect_XRActionSet + +# Register Aspect_XRActionSet in _Aspect: +_Aspect.Aspect_XRActionSet_swigregister(Aspect_XRActionSet) +class Aspect_XRAnalogActionData(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 + ----------- + Empty constructor. + + """ + _Aspect.Aspect_XRAnalogActionData_swiginit(self, _Aspect.new_Aspect_XRAnalogActionData(*args)) + + def IsChanged(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return True if delta is non-zero. + + """ + return _Aspect.Aspect_XRAnalogActionData_IsChanged(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _Aspect.delete_Aspect_XRAnalogActionData + +# Register Aspect_XRAnalogActionData in _Aspect: +_Aspect.Aspect_XRAnalogActionData_swigregister(Aspect_XRAnalogActionData) +class Aspect_XRDigitalActionData(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 + ----------- + Empty constructor. + + """ + _Aspect.Aspect_XRDigitalActionData_swiginit(self, _Aspect.new_Aspect_XRDigitalActionData(*args)) + + __repr__ = _dumps_object + + __swig_destroy__ = _Aspect.delete_Aspect_XRDigitalActionData + +# Register Aspect_XRDigitalActionData in _Aspect: +_Aspect.Aspect_XRDigitalActionData_swigregister(Aspect_XRDigitalActionData) +class Aspect_XRHapticActionData(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 + ----------- + Empty constructor. + + """ + _Aspect.Aspect_XRHapticActionData_swiginit(self, _Aspect.new_Aspect_XRHapticActionData(*args)) + + def IsValid(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return True if data is not empty. + + """ + return _Aspect.Aspect_XRHapticActionData_IsValid(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _Aspect.delete_Aspect_XRHapticActionData + +# Register Aspect_XRHapticActionData in _Aspect: +_Aspect.Aspect_XRHapticActionData_swigregister(Aspect_XRHapticActionData) +class Aspect_XRPoseActionData(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 + ----------- + Empty constructor. + + """ + _Aspect.Aspect_XRPoseActionData_swiginit(self, _Aspect.new_Aspect_XRPoseActionData(*args)) + + __repr__ = _dumps_object + + __swig_destroy__ = _Aspect.delete_Aspect_XRPoseActionData + +# Register Aspect_XRPoseActionData in _Aspect: +_Aspect.Aspect_XRPoseActionData_swigregister(Aspect_XRPoseActionData) +class Aspect_XRSession(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 + TrackingUniverseOrigin_Seated = _Aspect.Aspect_XRSession_TrackingUniverseOrigin_Seated + TrackingUniverseOrigin_Standing = _Aspect.Aspect_XRSession_TrackingUniverseOrigin_Standing + InfoString_Vendor = _Aspect.Aspect_XRSession_InfoString_Vendor + InfoString_Device = _Aspect.Aspect_XRSession_InfoString_Device + InfoString_Tracker = _Aspect.Aspect_XRSession_InfoString_Tracker + InfoString_SerialNumber = _Aspect.Aspect_XRSession_InfoString_SerialNumber + + + class TrackingUniverseOrigin(IntEnum): + TrackingUniverseOrigin_Seated = 0 + TrackingUniverseOrigin_Standing = 1 + TrackingUniverseOrigin_Seated = TrackingUniverseOrigin.TrackingUniverseOrigin_Seated + TrackingUniverseOrigin_Standing = TrackingUniverseOrigin.TrackingUniverseOrigin_Standing + + class InfoString(IntEnum): + InfoString_Vendor = 0 + InfoString_Device = 1 + InfoString_Tracker = 2 + InfoString_SerialNumber = 3 + InfoString_Vendor = InfoString.InfoString_Vendor + InfoString_Device = InfoString.InfoString_Device + InfoString_Tracker = InfoString.InfoString_Tracker + InfoString_SerialNumber = InfoString.InfoString_SerialNumber + + + def AbortHapticVibrationAction(self, *args): + r""" + + Parameters + ---------- + theAction: Aspect_XRAction + + Return + ------- + None + + Description + ----------- + Abort vibration. + + """ + return _Aspect.Aspect_XRSession_AbortHapticVibrationAction(self, *args) + + def Aspect(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Return aspect ratio. + + """ + return _Aspect.Aspect_XRSession_Aspect(self, *args) + + def Close(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Release session. + + """ + return _Aspect.Aspect_XRSession_Close(self, *args) + + def DisplayFrequency(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Return display frequency or 0 if unknown. + + """ + return _Aspect.Aspect_XRSession_DisplayFrequency(self, *args) + + def EyeToHeadTransform(self, *args): + r""" + + Parameters + ---------- + theEye: Aspect_Eye + + Return + ------- + NCollection_Mat4 + + Description + ----------- + Return transformation from eye to head. + + """ + return _Aspect.Aspect_XRSession_EyeToHeadTransform(self, *args) + + def FieldOfView(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Return field of view. + + """ + return _Aspect.Aspect_XRSession_FieldOfView(self, *args) + + def GenericAction(self, *args): + r""" + + Parameters + ---------- + theDevice: Aspect_XRTrackedDeviceRole + theAction: Aspect_XRGenericAction + + Return + ------- + opencascade::handle + + Description + ----------- + Return generic action for specific hand or NULL if undefined. + + """ + return _Aspect.Aspect_XRSession_GenericAction(self, *args) + + def GetAnalogActionData(self, *args): + r""" + + Parameters + ---------- + theAction: Aspect_XRAction + + Return + ------- + Aspect_XRAnalogActionData + + Description + ----------- + Fetch data for digital input action (like axis). + Input parameter: theAction action of Aspect_XRActionType_InputAnalog type. + + """ + return _Aspect.Aspect_XRSession_GetAnalogActionData(self, *args) + + def GetDigitalActionData(self, *args): + r""" + + Parameters + ---------- + theAction: Aspect_XRAction + + Return + ------- + Aspect_XRDigitalActionData + + Description + ----------- + Fetch data for digital input action (like button). + Input parameter: theAction action of Aspect_XRActionType_InputDigital type. + + """ + return _Aspect.Aspect_XRSession_GetDigitalActionData(self, *args) + + def GetPoseActionDataForNextFrame(self, *args): + r""" + + Parameters + ---------- + theAction: Aspect_XRAction + + Return + ------- + Aspect_XRPoseActionData + + Description + ----------- + Fetch data for pose input action (like fingertip position). The returned values will match the values returned by the last call to WaitPoses(). + Input parameter: theAction action of Aspect_XRActionType_InputPose type. + + """ + return _Aspect.Aspect_XRSession_GetPoseActionDataForNextFrame(self, *args) + + def GetString(self, *args): + r""" + + Parameters + ---------- + theInfo: InfoString + + Return + ------- + TCollection_AsciiString + + Description + ----------- + Query information. + + """ + return _Aspect.Aspect_XRSession_GetString(self, *args) + + def HasProjectionFrustums(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return False if projection frustums are unsupported and general 4x4 projection matrix should be fetched instead. + + """ + return _Aspect.Aspect_XRSession_HasProjectionFrustums(self, *args) + + def HasTrackedPose(self, *args): + r""" + + Parameters + ---------- + theDevice: int + + Return + ------- + bool + + Description + ----------- + Return True if device orientation is defined. + + """ + return _Aspect.Aspect_XRSession_HasTrackedPose(self, *args) + + def HeadPose(self, *args): + r""" + Return + ------- + gp_Trsf + + Description + ----------- + Return head orientation in right-handed system: +y is up +x is to the right -z is forward Distance unit is meters by default ( + See also: UnitFactor()). + + """ + return _Aspect.Aspect_XRSession_HeadPose(self, *args) + + def HeadToEyeTransform(self, *args): + r""" + + Parameters + ---------- + theEye: Aspect_Eye + + Return + ------- + NCollection_Mat4 + + Description + ----------- + Return transformation from head to eye. + + """ + return _Aspect.Aspect_XRSession_HeadToEyeTransform(self, *args) + + def IOD(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Return Intra-ocular Distance (IOD); also known as Interpupillary Distance (IPD). Defined in meters by default ( + See also: UnitFactor()). + + """ + return _Aspect.Aspect_XRSession_IOD(self, *args) + + def IsOpen(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return True if session is opened. + + """ + return _Aspect.Aspect_XRSession_IsOpen(self, *args) + + def LeftHandPose(self, *args): + r""" + Return + ------- + gp_Trsf + + Description + ----------- + Return left hand orientation. + + """ + return _Aspect.Aspect_XRSession_LeftHandPose(self, *args) + + def LoadRenderModel(self, *args): + r""" + + Parameters + ---------- + theDevice: int + theTexture: Image_Texture + + Return + ------- + opencascade::handle + + Description + ----------- + Load model for displaying device. + Input parameter: theDevice device index @param[out] theTexture texture source + Return: model triangulation or NULL if not found. + + Parameters + ---------- + theDevice: int + theToApplyUnitFactor: bool + theTexture: Image_Texture + + Return + ------- + opencascade::handle + + Description + ----------- + Load model for displaying device. + Input parameter: theDevice device index + Input parameter: theToApplyUnitFactor flag to apply unit scale factor @param[out] theTexture texture source + Return: model triangulation or NULL if not found. + + """ + return _Aspect.Aspect_XRSession_LoadRenderModel(self, *args) + + def NamedTrackedDevice(self, *args): + r""" + + Parameters + ---------- + theDevice: Aspect_XRTrackedDeviceRole + + Return + ------- + int + + Description + ----------- + Return index of tracked device of known role, or -1 if undefined. + + """ + return _Aspect.Aspect_XRSession_NamedTrackedDevice(self, *args) + + def Open(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Initialize session. + + """ + return _Aspect.Aspect_XRSession_Open(self, *args) + + def ProcessEvents(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Receive XR events. + + """ + return _Aspect.Aspect_XRSession_ProcessEvents(self, *args) + + def ProjectionFrustum(self, *args): + r""" + + Parameters + ---------- + theEye: Aspect_Eye + + Return + ------- + Aspect_FrustumLRBT + + Description + ----------- + Return projection frustum. + See also: HasProjectionFrustums(). + + """ + return _Aspect.Aspect_XRSession_ProjectionFrustum(self, *args) + + def ProjectionMatrix(self, *args): + r""" + + Parameters + ---------- + theEye: Aspect_Eye + theZNear: double + theZFar: double + + Return + ------- + NCollection_Mat4 + + Description + ----------- + Return projection matrix. + + """ + return _Aspect.Aspect_XRSession_ProjectionMatrix(self, *args) + + def RecommendedViewport(self, *args): + r""" + Return + ------- + NCollection_Vec2 + + Description + ----------- + Return recommended viewport Width x Height for rendering into VR. + + """ + return _Aspect.Aspect_XRSession_RecommendedViewport(self, *args) + + def RightHandPose(self, *args): + r""" + Return + ------- + gp_Trsf + + Description + ----------- + Return right hand orientation. + + """ + return _Aspect.Aspect_XRSession_RightHandPose(self, *args) + + def SetTrackingOrigin(self, *args): + r""" + + Parameters + ---------- + theOrigin: TrackingUniverseOrigin + + Return + ------- + None + + Description + ----------- + Set tracking origin. + + """ + return _Aspect.Aspect_XRSession_SetTrackingOrigin(self, *args) + + def SetUnitFactor(self, *args): + r""" + + Parameters + ---------- + theFactor: float + + Return + ------- + None + + Description + ----------- + Set unit scale factor. + + """ + return _Aspect.Aspect_XRSession_SetUnitFactor(self, *args) + + def SubmitEye(self, *args): + r""" + + Parameters + ---------- + theTexture: void * + theGraphicsLib: Aspect_GraphicsLibrary + theColorSpace: Aspect_ColorSpace + theEye: Aspect_Eye + + Return + ------- + bool + + Description + ----------- + Submit texture eye to XR Composer. + Input parameter: theTexture texture handle + Input parameter: theGraphicsLib graphics library in which texture handle is defined + Input parameter: theColorSpace texture color space; sRGB means no color conversion by composer; Linear means to sRGB color conversion by composer + Input parameter: theEye eye to display + Return: False on error. + + """ + return _Aspect.Aspect_XRSession_SubmitEye(self, *args) + + def TrackedPoses(self, *args): + r""" + Return + ------- + Aspect_TrackedDevicePoseArray + + Description + ----------- + Return number of tracked poses array. + + """ + return _Aspect.Aspect_XRSession_TrackedPoses(self, *args) + + def TrackingOrigin(self, *args): + r""" + Return + ------- + Aspect_XRSession::TrackingUniverseOrigin + + Description + ----------- + Return tracking origin. + + """ + return _Aspect.Aspect_XRSession_TrackingOrigin(self, *args) + + def TriggerHapticVibrationAction(self, *args): + r""" + + Parameters + ---------- + theAction: Aspect_XRAction + theParams: Aspect_XRHapticActionData + + Return + ------- + None + + Description + ----------- + Trigger vibration. + + """ + return _Aspect.Aspect_XRSession_TriggerHapticVibrationAction(self, *args) + + def UnitFactor(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Return unit scale factor defined as scale factor for m (meters); 1.0 by default. + + """ + return _Aspect.Aspect_XRSession_UnitFactor(self, *args) + + def WaitPoses(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Fetch actual poses of tracked devices. + + """ + return _Aspect.Aspect_XRSession_WaitPoses(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_Aspect_XRSession_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _Aspect.delete_Aspect_XRSession + +# Register Aspect_XRSession in _Aspect: +_Aspect.Aspect_XRSession_swigregister(Aspect_XRSession) +class Aspect_GradientBackground(Aspect_Background): + 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 a window gradient background. Default color is Quantity_NOC_BLACK. Default fill method is Aspect_GradientFillMethod_None. + + Parameters + ---------- + theColor1: Quantity_Color + theColor2: Quantity_Color + theMethod: Aspect_GradientFillMethod (optional, default to Aspect_GradientFillMethod_Horizontal) + + Return + ------- + None + + Description + ----------- + Creates a window gradient background with two colours. + + """ + _Aspect.Aspect_GradientBackground_swiginit(self, _Aspect.new_Aspect_GradientBackground(*args)) + + def BgGradientFillMethod(self, *args): + r""" + Return + ------- + Aspect_GradientFillMethod + + Description + ----------- + Returns the current gradient background fill mode. + + """ + return _Aspect.Aspect_GradientBackground_BgGradientFillMethod(self, *args) + + def Colors(self, *args): + r""" + + Parameters + ---------- + theColor1: Quantity_Color + theColor2: Quantity_Color + + Return + ------- + None + + Description + ----------- + Returns colours of the window gradient background. + + """ + return _Aspect.Aspect_GradientBackground_Colors(self, *args) + + def DumpJson(self, depth=-1): + r""" + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + """ + return _Aspect.Aspect_GradientBackground_DumpJson(self, depth) + + def SetColors(self, *args): + r""" + + Parameters + ---------- + theColor1: Quantity_Color + theColor2: Quantity_Color + theMethod: Aspect_GradientFillMethod (optional, default to Aspect_GradientFillMethod_Horizontal) + + Return + ------- + None + + Description + ----------- + Modifies the colours of the window gradient background. + + """ + return _Aspect.Aspect_GradientBackground_SetColors(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _Aspect.delete_Aspect_GradientBackground + +# Register Aspect_GradientBackground in _Aspect: +_Aspect.Aspect_GradientBackground_swigregister(Aspect_GradientBackground) +class Aspect_OpenVRSession(Aspect_XRSession): + 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 + ----------- + Empty constructor. + + """ + _Aspect.Aspect_OpenVRSession_swiginit(self, _Aspect.new_Aspect_OpenVRSession(*args)) + + @staticmethod + def IsHmdPresent(*args): + r""" + Return + ------- + bool + + Description + ----------- + Return True if an HMD may be presented on the system (e.g. to show VR checkbox in application GUI). This is fast check, and even if it returns True, opening session may fail. + + """ + return _Aspect.Aspect_OpenVRSession_IsHmdPresent(*args) + + + @staticmethod + def DownCast(t): + return Handle_Aspect_OpenVRSession_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _Aspect.delete_Aspect_OpenVRSession + +# Register Aspect_OpenVRSession in _Aspect: +_Aspect.Aspect_OpenVRSession_swigregister(Aspect_OpenVRSession) + +@classnotwrapped +class Aspect_CircularGrid: + pass + +@classnotwrapped +class Aspect_NeutralWindow: + pass + +@classnotwrapped +class Aspect_RectangularGrid: + pass + +@classnotwrapped +class Aspect_FrustumLRBT: + pass + + + + + +@deprecated +def Aspect_OpenVRSession_IsHmdPresent(*args): + return Aspect_OpenVRSession.IsHmdPresent(*args) + + + diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BRep.py b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BRep.py new file mode 100644 index 0000000000000000000000000000000000000000..8c4bf3afbb0d481d0ad4adfc93daf994f331d0e5 --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BRep.py @@ -0,0 +1,5947 @@ +# 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. + +""" +BRep module, see official documentation at +https://dev.opencascade.org/doc/occt-7.9.0/refman/html/package_brep.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 _BRep +else: + import _BRep + +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__ = _BRep.delete_SwigPyIterator + + def value(self): + return _BRep.SwigPyIterator_value(self) + + def incr(self, n=1): + return _BRep.SwigPyIterator_incr(self, n) + + def decr(self, n=1): + return _BRep.SwigPyIterator_decr(self, n) + + def distance(self, x): + return _BRep.SwigPyIterator_distance(self, x) + + def equal(self, x): + return _BRep.SwigPyIterator_equal(self, x) + + def copy(self): + return _BRep.SwigPyIterator_copy(self) + + def next(self): + return _BRep.SwigPyIterator_next(self) + + def __next__(self): + return _BRep.SwigPyIterator___next__(self) + + def previous(self): + return _BRep.SwigPyIterator_previous(self) + + def advance(self, n): + return _BRep.SwigPyIterator_advance(self, n) + + def __eq__(self, x): + return _BRep.SwigPyIterator___eq__(self, x) + + def __ne__(self, x): + return _BRep.SwigPyIterator___ne__(self, x) + + def __iadd__(self, n): + return _BRep.SwigPyIterator___iadd__(self, n) + + def __isub__(self, n): + return _BRep.SwigPyIterator___isub__(self, n) + + def __add__(self, n): + return _BRep.SwigPyIterator___add__(self, n) + + def __sub__(self, *args): + return _BRep.SwigPyIterator___sub__(self, *args) + def __iter__(self): + return self + +# Register SwigPyIterator in _BRep: +_BRep.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 = ". + + """ + return _BRep.BRep_Builder_Degenerated(self, *args) + + def MakeEdge(self, *args): + r""" + + Parameters + ---------- + E: TopoDS_Edge + + Return + ------- + None + + Description + ----------- + Makes an undefined Edge (no geometry). + + Parameters + ---------- + E: TopoDS_Edge + C: Geom_Curve + Tol: float + + Return + ------- + None + + Description + ----------- + Makes an Edge with a curve. + + Parameters + ---------- + E: TopoDS_Edge + C: Geom_Curve + L: TopLoc_Location + Tol: float + + Return + ------- + None + + Description + ----------- + Makes an Edge with a curve and a location. + + Parameters + ---------- + E: TopoDS_Edge + P: Poly_Polygon3D + + Return + ------- + None + + Description + ----------- + Makes an Edge with a polygon 3d. + + Parameters + ---------- + E: TopoDS_Edge + N: Poly_PolygonOnTriangulation + T: Poly_Triangulation + + Return + ------- + None + + Description + ----------- + makes an Edge polygon on Triangulation. + + Parameters + ---------- + E: TopoDS_Edge + N: Poly_PolygonOnTriangulation + T: Poly_Triangulation + L: TopLoc_Location + + Return + ------- + None + + Description + ----------- + makes an Edge polygon on Triangulation. + + """ + return _BRep.BRep_Builder_MakeEdge(self, *args) + + def MakeFace(self, *args): + r""" + + Parameters + ---------- + F: TopoDS_Face + + Return + ------- + None + + Description + ----------- + Makes an undefined Face. + + Parameters + ---------- + F: TopoDS_Face + S: Geom_Surface + Tol: float + + Return + ------- + None + + Description + ----------- + Makes a Face with a surface. + + Parameters + ---------- + F: TopoDS_Face + S: Geom_Surface + L: TopLoc_Location + Tol: float + + Return + ------- + None + + Description + ----------- + Makes a Face with a surface and a location. + + Parameters + ---------- + theFace: TopoDS_Face + theTriangulation: Poly_Triangulation + + Return + ------- + None + + Description + ----------- + Makes a theFace with a single triangulation. The triangulation is in the same reference system than the TFace. + + Parameters + ---------- + theFace: TopoDS_Face + theTriangulations: Poly_ListOfTriangulation + theActiveTriangulation: Poly_Triangulation (optional, default to opencascade::handle()) + + Return + ------- + None + + Description + ----------- + Makes a Face with a list of triangulations and active one. Use NULL active triangulation to set the first triangulation in list as active. The triangulations is in the same reference system than the TFace. + + """ + return _BRep.BRep_Builder_MakeFace(self, *args) + + def MakeVertex(self, *args): + r""" + + Parameters + ---------- + V: TopoDS_Vertex + + Return + ------- + None + + Description + ----------- + Makes an udefined vertex without geometry. + + Parameters + ---------- + V: TopoDS_Vertex + P: gp_Pnt + Tol: float + + Return + ------- + None + + Description + ----------- + Makes a vertex from a 3D point. + + """ + return _BRep.BRep_Builder_MakeVertex(self, *args) + + def NaturalRestriction(self, *args): + r""" + + Parameters + ---------- + F: TopoDS_Face + N: bool + + Return + ------- + None + + Description + ----------- + Sets the NaturalRestriction flag of the face. + + """ + return _BRep.BRep_Builder_NaturalRestriction(self, *args) + + def Range(self, *args): + r""" + + Parameters + ---------- + E: TopoDS_Edge + First: float + Last: float + Only3d: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + Sets the range of the 3d curve if Only3d=True, otherwise sets the range to all the representations. + + Parameters + ---------- + E: TopoDS_Edge + S: Geom_Surface + L: TopLoc_Location + First: float + Last: float + + Return + ------- + None + + Description + ----------- + Sets the range of the edge on the pcurve on the surface. + + Parameters + ---------- + E: TopoDS_Edge + F: TopoDS_Face + First: float + Last: float + + Return + ------- + None + + Description + ----------- + Sets the range of the edge on the pcurve on the face. + + """ + return _BRep.BRep_Builder_Range(self, *args) + + def SameParameter(self, *args): + r""" + + Parameters + ---------- + E: TopoDS_Edge + S: bool + + Return + ------- + None + + Description + ----------- + Sets the same parameter flag for the edge . + + """ + return _BRep.BRep_Builder_SameParameter(self, *args) + + def SameRange(self, *args): + r""" + + Parameters + ---------- + E: TopoDS_Edge + S: bool + + Return + ------- + None + + Description + ----------- + Sets the same range flag for the edge . + + """ + return _BRep.BRep_Builder_SameRange(self, *args) + + def Transfert(self, *args): + r""" + + Parameters + ---------- + Ein: TopoDS_Edge + Eout: TopoDS_Edge + + Return + ------- + None + + Description + ----------- + Add to the geometric representations of . + + Parameters + ---------- + Ein: TopoDS_Edge + Eout: TopoDS_Edge + Vin: TopoDS_Vertex + Vout: TopoDS_Vertex + + Return + ------- + None + + Description + ----------- + Transfert the parameters of Vin on Ein as the parameter of Vout on Eout. + + """ + return _BRep.BRep_Builder_Transfert(self, *args) + + def UpdateEdge(self, *args): + r""" + + Parameters + ---------- + E: TopoDS_Edge + C: Geom_Curve + Tol: float + + Return + ------- + None + + Description + ----------- + Sets a 3D curve for the edge. If is a null handle, remove any existing 3d curve. + + Parameters + ---------- + E: TopoDS_Edge + C: Geom_Curve + L: TopLoc_Location + Tol: float + + Return + ------- + None + + Description + ----------- + Sets a 3D curve for the edge. If is a null handle, remove any existing 3d curve. + + Parameters + ---------- + E: TopoDS_Edge + C: Geom2d_Curve + F: TopoDS_Face + Tol: float + + Return + ------- + None + + Description + ----------- + Sets a pcurve for the edge on the face. If is a null handle, remove any existing pcurve. + + Parameters + ---------- + E: TopoDS_Edge + C1: Geom2d_Curve + C2: Geom2d_Curve + F: TopoDS_Face + Tol: float + + Return + ------- + None + + Description + ----------- + Sets pcurves for the edge on the closed face. If or is a null handle, remove any existing pcurve. + + Parameters + ---------- + E: TopoDS_Edge + C: Geom2d_Curve + S: Geom_Surface + L: TopLoc_Location + Tol: float + + Return + ------- + None + + Description + ----------- + Sets a pcurve for the edge on the face. If is a null handle, remove any existing pcurve. + + Parameters + ---------- + E: TopoDS_Edge + C: Geom2d_Curve + S: Geom_Surface + L: TopLoc_Location + Tol: float + Pf: gp_Pnt2d + Pl: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + Sets a pcurve for the edge on the face. If is a null handle, remove any existing pcurve. Sets UV bounds for curve repsentation. + + Parameters + ---------- + E: TopoDS_Edge + C1: Geom2d_Curve + C2: Geom2d_Curve + S: Geom_Surface + L: TopLoc_Location + Tol: float + + Return + ------- + None + + Description + ----------- + Sets pcurves for the edge on the closed surface. or is a null handle, remove any existing pcurve. + + Parameters + ---------- + E: TopoDS_Edge + C1: Geom2d_Curve + C2: Geom2d_Curve + S: Geom_Surface + L: TopLoc_Location + Tol: float + Pf: gp_Pnt2d + Pl: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + Sets pcurves for the edge on the closed surface. or is a null handle, remove any existing pcurve. Sets UV bounds for curve repsentation. + + Parameters + ---------- + E: TopoDS_Edge + P: Poly_Polygon3D + + Return + ------- + None + + Description + ----------- + Changes an Edge 3D polygon. A null Polygon removes the 3d Polygon. + + Parameters + ---------- + E: TopoDS_Edge + P: Poly_Polygon3D + L: TopLoc_Location + + Return + ------- + None + + Description + ----------- + Changes an Edge 3D polygon. A null Polygon removes the 3d Polygon. + + Parameters + ---------- + E: TopoDS_Edge + N: Poly_PolygonOnTriangulation + T: Poly_Triangulation + + Return + ------- + None + + Description + ----------- + Changes an Edge polygon on Triangulation. + + Parameters + ---------- + E: TopoDS_Edge + N: Poly_PolygonOnTriangulation + T: Poly_Triangulation + L: TopLoc_Location + + Return + ------- + None + + Description + ----------- + Changes an Edge polygon on Triangulation. + + Parameters + ---------- + E: TopoDS_Edge + N1: Poly_PolygonOnTriangulation + N2: Poly_PolygonOnTriangulation + T: Poly_Triangulation + + Return + ------- + None + + Description + ----------- + Changes an Edge polygon on Triangulation. + + Parameters + ---------- + E: TopoDS_Edge + N1: Poly_PolygonOnTriangulation + N2: Poly_PolygonOnTriangulation + T: Poly_Triangulation + L: TopLoc_Location + + Return + ------- + None + + Description + ----------- + Changes an Edge polygon on Triangulation. + + Parameters + ---------- + E: TopoDS_Edge + P: Poly_Polygon2D + S: TopoDS_Face + + Return + ------- + None + + Description + ----------- + Changes Edge polygon on a face. + + Parameters + ---------- + E: TopoDS_Edge + P: Poly_Polygon2D + S: Geom_Surface + T: TopLoc_Location + + Return + ------- + None + + Description + ----------- + Changes Edge polygon on a face. + + Parameters + ---------- + E: TopoDS_Edge + P1: Poly_Polygon2D + P2: Poly_Polygon2D + S: TopoDS_Face + + Return + ------- + None + + Description + ----------- + Changes Edge polygons on a face. //! A null Polygon removes the 2d Polygon. + + Parameters + ---------- + E: TopoDS_Edge + P1: Poly_Polygon2D + P2: Poly_Polygon2D + S: Geom_Surface + L: TopLoc_Location + + Return + ------- + None + + Description + ----------- + Changes Edge polygons on a face. //! A null Polygon removes the 2d Polygon. + + Parameters + ---------- + E: TopoDS_Edge + Tol: float + + Return + ------- + None + + Description + ----------- + Updates the edge tolerance. + + """ + return _BRep.BRep_Builder_UpdateEdge(self, *args) + + def UpdateFace(self, *args): + r""" + + Parameters + ---------- + F: TopoDS_Face + S: Geom_Surface + L: TopLoc_Location + Tol: float + + Return + ------- + None + + Description + ----------- + Updates the face F using the tolerance value Tol, surface S and location Location. + + Parameters + ---------- + theFace: TopoDS_Face + theTriangulation: Poly_Triangulation + theToReset: bool (optional, default to true) + + Return + ------- + None + + Description + ----------- + Changes a face triangulation. A NULL theTriangulation removes face triangulations. If theToReset is True face triangulations will be reset to new list with only one input triangulation that will be active. Else if theTriangulation is contained in internal triangulations list it will be made active, else the active triangulation will be replaced to theTriangulation one. + + Parameters + ---------- + F: TopoDS_Face + Tol: float + + Return + ------- + None + + Description + ----------- + Updates the face Tolerance. + + """ + return _BRep.BRep_Builder_UpdateFace(self, *args) + + def UpdateVertex(self, *args): + r""" + + Parameters + ---------- + V: TopoDS_Vertex + P: gp_Pnt + Tol: float + + Return + ------- + None + + Description + ----------- + Sets a 3D point on the vertex. + + Parameters + ---------- + V: TopoDS_Vertex + P: float + E: TopoDS_Edge + Tol: float + + Return + ------- + None + + Description + ----------- + Sets the parameter for the vertex on the edge curves. + + Parameters + ---------- + V: TopoDS_Vertex + P: float + E: TopoDS_Edge + F: TopoDS_Face + Tol: float + + Return + ------- + None + + Description + ----------- + Sets the parameter for the vertex on the edge pcurve on the face. + + Parameters + ---------- + V: TopoDS_Vertex + P: float + E: TopoDS_Edge + S: Geom_Surface + L: TopLoc_Location + Tol: float + + Return + ------- + None + + Description + ----------- + Sets the parameter for the vertex on the edge pcurve on the surface. + + Parameters + ---------- + Ve: TopoDS_Vertex + U: float + V: float + F: TopoDS_Face + Tol: float + + Return + ------- + None + + Description + ----------- + Sets the parameters for the vertex on the face. + + Parameters + ---------- + V: TopoDS_Vertex + Tol: float + + Return + ------- + None + + Description + ----------- + Updates the vertex tolerance. + + """ + return _BRep.BRep_Builder_UpdateVertex(self, *args) + + __repr__ = _dumps_object + + + def __init__(self): + _BRep.BRep_Builder_swiginit(self, _BRep.new_BRep_Builder()) + __swig_destroy__ = _BRep.delete_BRep_Builder + +# Register BRep_Builder in _BRep: +_BRep.BRep_Builder_swigregister(BRep_Builder) +class BRep_CurveRepresentation(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 Continuity(self, *args): + r""" + Return + ------- + GeomAbs_Shape + + Description + ----------- + No available documentation. + + Parameters + ---------- + C: GeomAbs_Shape + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRep.BRep_CurveRepresentation_Continuity(self, *args) + + def Copy(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Return a copy of this representation. + + """ + return _BRep.BRep_CurveRepresentation_Copy(self, *args) + + def Curve3D(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + Parameters + ---------- + C: Geom_Curve + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRep.BRep_CurveRepresentation_Curve3D(self, *args) + + def DumpJson(self, depth=-1): + r""" + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + """ + return _BRep.BRep_CurveRepresentation_DumpJson(self, depth) + + def IsCurve3D(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + A 3D curve representation. + + """ + return _BRep.BRep_CurveRepresentation_IsCurve3D(self, *args) + + def IsCurveOnClosedSurface(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + A curve with two parametric curves on the same surface. + + """ + return _BRep.BRep_CurveRepresentation_IsCurveOnClosedSurface(self, *args) + + def IsCurveOnSurface(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + A curve in the parametric space of a surface. + + Parameters + ---------- + S: Geom_Surface + L: TopLoc_Location + + Return + ------- + bool + + Description + ----------- + Is it a curve in the parametric space of with location . + + """ + return _BRep.BRep_CurveRepresentation_IsCurveOnSurface(self, *args) + + def IsPolygon3D(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + A 3D polygon representation. + + """ + return _BRep.BRep_CurveRepresentation_IsPolygon3D(self, *args) + + def IsPolygonOnClosedSurface(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Two 2D polygon representations in the parametric space of a surface. + + """ + return _BRep.BRep_CurveRepresentation_IsPolygonOnClosedSurface(self, *args) + + def IsPolygonOnClosedTriangulation(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + A representation by two arrays of nodes on a triangulation. + + """ + return _BRep.BRep_CurveRepresentation_IsPolygonOnClosedTriangulation(self, *args) + + def IsPolygonOnSurface(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + A polygon in the parametric space of a surface. + + Parameters + ---------- + S: Geom_Surface + L: TopLoc_Location + + Return + ------- + bool + + Description + ----------- + Is it a polygon in the parametric space of with location . + + """ + return _BRep.BRep_CurveRepresentation_IsPolygonOnSurface(self, *args) + + def IsPolygonOnTriangulation(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + A representation by an array of nodes on a triangulation. + + Parameters + ---------- + T: Poly_Triangulation + L: TopLoc_Location + + Return + ------- + bool + + Description + ----------- + Is it a polygon in the definition of with location . + + """ + return _BRep.BRep_CurveRepresentation_IsPolygonOnTriangulation(self, *args) + + def IsRegularity(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + A continuity between two surfaces. + + Parameters + ---------- + S1: Geom_Surface + S2: Geom_Surface + L1: TopLoc_Location + L2: TopLoc_Location + + Return + ------- + bool + + Description + ----------- + Is it a regularity between and with location and . + + """ + return _BRep.BRep_CurveRepresentation_IsRegularity(self, *args) + + def Location(self, *args): + r""" + Return + ------- + TopLoc_Location + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: TopLoc_Location + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRep.BRep_CurveRepresentation_Location(self, *args) + + def Location2(self, *args): + r""" + Return + ------- + TopLoc_Location + + Description + ----------- + No available documentation. + + """ + return _BRep.BRep_CurveRepresentation_Location2(self, *args) + + def PCurve(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + Parameters + ---------- + C: Geom2d_Curve + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRep.BRep_CurveRepresentation_PCurve(self, *args) + + def PCurve2(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + Parameters + ---------- + C: Geom2d_Curve + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRep.BRep_CurveRepresentation_PCurve2(self, *args) + + def Polygon(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + Parameters + ---------- + P: Poly_Polygon2D + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRep.BRep_CurveRepresentation_Polygon(self, *args) + + def Polygon2(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + Parameters + ---------- + P: Poly_Polygon2D + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRep.BRep_CurveRepresentation_Polygon2(self, *args) + + def Polygon3D(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + Parameters + ---------- + P: Poly_Polygon3D + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRep.BRep_CurveRepresentation_Polygon3D(self, *args) + + def PolygonOnTriangulation(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + Parameters + ---------- + P: Poly_PolygonOnTriangulation + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRep.BRep_CurveRepresentation_PolygonOnTriangulation(self, *args) + + def PolygonOnTriangulation2(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + Parameters + ---------- + P2: Poly_PolygonOnTriangulation + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRep.BRep_CurveRepresentation_PolygonOnTriangulation2(self, *args) + + def Surface(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _BRep.BRep_CurveRepresentation_Surface(self, *args) + + def Surface2(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _BRep.BRep_CurveRepresentation_Surface2(self, *args) + + def Triangulation(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _BRep.BRep_CurveRepresentation_Triangulation(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_BRep_CurveRepresentation_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _BRep.delete_BRep_CurveRepresentation + +# Register BRep_CurveRepresentation in _BRep: +_BRep.BRep_CurveRepresentation_swigregister(BRep_CurveRepresentation) +class BRep_PointRepresentation(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 Curve(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + Parameters + ---------- + C: Geom_Curve + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRep.BRep_PointRepresentation_Curve(self, *args) + + def DumpJson(self, depth=-1): + r""" + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + """ + return _BRep.BRep_PointRepresentation_DumpJson(self, depth) + + def IsPointOnCurve(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + A point on a 3d curve. + + Parameters + ---------- + C: Geom_Curve + L: TopLoc_Location + + Return + ------- + bool + + Description + ----------- + A point on the curve . + + """ + return _BRep.BRep_PointRepresentation_IsPointOnCurve(self, *args) + + def IsPointOnCurveOnSurface(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + A point on a 2d curve on a surface. + + Parameters + ---------- + PC: Geom2d_Curve + S: Geom_Surface + L: TopLoc_Location + + Return + ------- + bool + + Description + ----------- + A point on the 2d curve on the surface . + + """ + return _BRep.BRep_PointRepresentation_IsPointOnCurveOnSurface(self, *args) + + def IsPointOnSurface(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + A point on a surface. + + Parameters + ---------- + S: Geom_Surface + L: TopLoc_Location + + Return + ------- + bool + + Description + ----------- + A point on the surface . + + """ + return _BRep.BRep_PointRepresentation_IsPointOnSurface(self, *args) + + def Location(self, *args): + r""" + Return + ------- + TopLoc_Location + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: TopLoc_Location + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRep.BRep_PointRepresentation_Location(self, *args) + + def PCurve(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + Parameters + ---------- + C: Geom2d_Curve + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRep.BRep_PointRepresentation_PCurve(self, *args) + + def Parameter(self, *args): + r""" + Return + ------- + float + + Description + ----------- + No available documentation. + + Parameters + ---------- + P: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRep.BRep_PointRepresentation_Parameter(self, *args) + + def Parameter2(self, *args): + r""" + Return + ------- + float + + Description + ----------- + No available documentation. + + Parameters + ---------- + P: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRep.BRep_PointRepresentation_Parameter2(self, *args) + + def Surface(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + Parameters + ---------- + S: Geom_Surface + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRep.BRep_PointRepresentation_Surface(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_BRep_PointRepresentation_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _BRep.delete_BRep_PointRepresentation + +# Register BRep_PointRepresentation in _BRep: +_BRep.BRep_PointRepresentation_swigregister(BRep_PointRepresentation) +class BRep_TEdge(OCC.Core.TopoDS.TopoDS_TEdge): + 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 TEdge. + + """ + _BRep.BRep_TEdge_swiginit(self, _BRep.new_BRep_TEdge(*args)) + + def ChangeCurves(self, *args): + r""" + Return + ------- + BRep_ListOfCurveRepresentation + + Description + ----------- + No available documentation. + + """ + return _BRep.BRep_TEdge_ChangeCurves(self, *args) + + def Curves(self, *args): + r""" + Return + ------- + BRep_ListOfCurveRepresentation + + Description + ----------- + No available documentation. + + """ + return _BRep.BRep_TEdge_Curves(self, *args) + + def Degenerated(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + Parameters + ---------- + S: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRep.BRep_TEdge_Degenerated(self, *args) + + def DumpJson(self, depth=-1): + r""" + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + """ + return _BRep.BRep_TEdge_DumpJson(self, depth) + + def SameParameter(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + Parameters + ---------- + S: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRep.BRep_TEdge_SameParameter(self, *args) + + def SameRange(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + Parameters + ---------- + S: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRep.BRep_TEdge_SameRange(self, *args) + + def Tolerance(self, *args): + r""" + Return + ------- + float + + Description + ----------- + No available documentation. + + Parameters + ---------- + T: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRep.BRep_TEdge_Tolerance(self, *args) + + def UpdateTolerance(self, *args): + r""" + + Parameters + ---------- + T: float + + Return + ------- + None + + Description + ----------- + Sets the tolerance to the max of and the current tolerance. + + """ + return _BRep.BRep_TEdge_UpdateTolerance(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_BRep_TEdge_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _BRep.delete_BRep_TEdge + +# Register BRep_TEdge in _BRep: +_BRep.BRep_TEdge_swigregister(BRep_TEdge) +class BRep_TFace(OCC.Core.TopoDS.TopoDS_TFace): + 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 TFace. + + """ + _BRep.BRep_TFace_swiginit(self, _BRep.new_BRep_TFace(*args)) + + def ActiveTriangulation(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns current active triangulation. + + """ + return _BRep.BRep_TFace_ActiveTriangulation(self, *args) + + def DumpJson(self, depth=-1): + r""" + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + """ + return _BRep.BRep_TFace_DumpJson(self, depth) + + def Location(self, *args): + r""" + Return + ------- + TopLoc_Location + + Description + ----------- + Returns the face location. + + Parameters + ---------- + theLocation: TopLoc_Location + + Return + ------- + None + + Description + ----------- + Sets the location for this face. + + """ + return _BRep.BRep_TFace_Location(self, *args) + + def NaturalRestriction(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True if the boundary of this face is known to be the parametric space (Umin, UMax, VMin, VMax). + + Parameters + ---------- + theRestriction: bool + + Return + ------- + None + + Description + ----------- + Sets the flag that is True if the boundary of this face is known to be the parametric space. + + """ + return _BRep.BRep_TFace_NaturalRestriction(self, *args) + + def NbTriangulations(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Returns number of available face triangulations. + + """ + return _BRep.BRep_TFace_NbTriangulations(self, *args) + + def Surface(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns face surface. + + Parameters + ---------- + theSurface: Geom_Surface + + Return + ------- + None + + Description + ----------- + Sets surface for this face. + + """ + return _BRep.BRep_TFace_Surface(self, *args) + + def Tolerance(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns the face tolerance. + + Parameters + ---------- + theTolerance: float + + Return + ------- + None + + Description + ----------- + Sets the tolerance for this face. + + """ + return _BRep.BRep_TFace_Tolerance(self, *args) + + def Triangulation(self, *args): + r""" + + Parameters + ---------- + thePurpose: Poly_MeshPurpose (optional, default to Poly_MeshPurpose_NONE) + + Return + ------- + opencascade::handle + + Description + ----------- + Returns the triangulation of this face according to the mesh purpose. + Input parameter: thePurpose a mesh purpose to find appropriate triangulation (NONE by default). + Return: an active triangulation in case of NONE purpose, the first triangulation appropriate for the input purpose, just the first triangulation if none matching other criteria and input purpose is AnyFallback or null handle if there is no any suitable triangulation. + + Parameters + ---------- + theTriangulation: Poly_Triangulation + theToReset: bool (optional, default to true) + + Return + ------- + None + + Description + ----------- + Sets input triangulation for this face. + Input parameter: theTriangulation triangulation to be set + Input parameter: theToReset flag to reset triangulations list to new list with only one input triangulation. If theTriangulation is NULL internal list of triangulations will be cleared and active triangulation will be nullified. If theToReset is True internal list of triangulations will be reset to new list with only one input triangulation that will be active. Else if input triangulation is contained in internal triangulations list it will be made active, else the active triangulation will be replaced to input one. + + """ + return _BRep.BRep_TFace_Triangulation(self, *args) + + def Triangulations(self, *args): + r""" + Return + ------- + Poly_ListOfTriangulation + + Description + ----------- + Returns the list of available face triangulations. + + Parameters + ---------- + theTriangulations: Poly_ListOfTriangulation + theActiveTriangulation: Poly_Triangulation + + Return + ------- + None + + Description + ----------- + Sets input list of triangulations and currently active triangulation for this face. If list is empty internal list of triangulations will be cleared and active triangulation will be nullified. Else this list will be saved and the input active triangulation be saved as active. Use NULL active triangulation to set the first triangulation in list as active. Note: the method throws exception if there is any NULL triangulation in input list or if this list doesn't contain input active triangulation. + + """ + return _BRep.BRep_TFace_Triangulations(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_BRep_TFace_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _BRep.delete_BRep_TFace + +# Register BRep_TFace in _BRep: +_BRep.BRep_TFace_swigregister(BRep_TFace) +class BRep_TVertex(OCC.Core.TopoDS.TopoDS_TVertex): + 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. + + """ + _BRep.BRep_TVertex_swiginit(self, _BRep.new_BRep_TVertex(*args)) + + def ChangePoints(self, *args): + r""" + Return + ------- + BRep_ListOfPointRepresentation + + Description + ----------- + No available documentation. + + """ + return _BRep.BRep_TVertex_ChangePoints(self, *args) + + def DumpJson(self, depth=-1): + r""" + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + """ + return _BRep.BRep_TVertex_DumpJson(self, depth) + + def Pnt(self, *args): + r""" + Return + ------- + gp_Pnt + + Description + ----------- + No available documentation. + + Parameters + ---------- + P: gp_Pnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRep.BRep_TVertex_Pnt(self, *args) + + def Points(self, *args): + r""" + Return + ------- + BRep_ListOfPointRepresentation + + Description + ----------- + No available documentation. + + """ + return _BRep.BRep_TVertex_Points(self, *args) + + def Tolerance(self, *args): + r""" + Return + ------- + float + + Description + ----------- + No available documentation. + + Parameters + ---------- + T: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRep.BRep_TVertex_Tolerance(self, *args) + + def UpdateTolerance(self, *args): + r""" + + Parameters + ---------- + T: float + + Return + ------- + None + + Description + ----------- + Sets the tolerance to the max of and the current tolerance. + + """ + return _BRep.BRep_TVertex_UpdateTolerance(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_BRep_TVertex_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _BRep.delete_BRep_TVertex + +# Register BRep_TVertex in _BRep: +_BRep.BRep_TVertex_swigregister(BRep_TVertex) +class BRep_Tool(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 + ---------- + E: TopoDS_Edge + F1: TopoDS_Face + F2: TopoDS_Face + + Return + ------- + GeomAbs_Shape + + Description + ----------- + Returns the continuity. + + Parameters + ---------- + E: TopoDS_Edge + S1: Geom_Surface + S2: Geom_Surface + L1: TopLoc_Location + L2: TopLoc_Location + + Return + ------- + GeomAbs_Shape + + Description + ----------- + Returns the continuity. + + """ + return _BRep.BRep_Tool_Continuity(*args) + + @staticmethod + def Curve(*args): + r""" + + Parameters + ---------- + E: TopoDS_Edge + L: TopLoc_Location + + Return + ------- + First: float + Last: float + + Description + ----------- + Returns the 3D curve of the edge. May be a Null handle. Returns in the location for the curve. In and the parameter range. + + Parameters + ---------- + E: TopoDS_Edge + + Return + ------- + First: float + Last: float + + Description + ----------- + Returns the 3D curve of the edge. May be a Null handle. In and the parameter range. It can be a copy if there is a Location. + + """ + return _BRep.BRep_Tool_Curve(*args) + + @staticmethod + def CurveOnPlane(*args): + r""" + + Parameters + ---------- + E: TopoDS_Edge + S: Geom_Surface + L: TopLoc_Location + + Return + ------- + First: float + Last: float + + Description + ----------- + For the planar surface builds the 2d curve for the edge by projection of the edge on plane. Returns a NULL handle if the surface is not planar or the projection failed. + + """ + return _BRep.BRep_Tool_CurveOnPlane(*args) + + @staticmethod + def CurveOnSurface(*args): + r""" + + Parameters + ---------- + E: TopoDS_Edge + F: TopoDS_Face + theIsStored: bool * (optional, default to NULL) + + Return + ------- + First: float + Last: float + + Description + ----------- + Returns the curve associated to the edge in the parametric space of the face. Returns a NULL handle if this curve does not exist. Returns in and the parameter range. If the surface is a plane the curve can be not stored but created a new each time. The flag pointed by serves to indicate storage status. It is valued if the pointer is non-null. + + Parameters + ---------- + E: TopoDS_Edge + S: Geom_Surface + L: TopLoc_Location + theIsStored: bool * (optional, default to NULL) + + Return + ------- + First: float + Last: float + + Description + ----------- + Returns the curve associated to the edge in the parametric space of the surface. Returns a NULL handle if this curve does not exist. Returns in and the parameter range. If the surface is a plane the curve can be not stored but created a new each time. The flag pointed by serves to indicate storage status. It is valued if the pointer is non-null. + + Parameters + ---------- + E: TopoDS_Edge + C: Geom2d_Curve + S: Geom_Surface + L: TopLoc_Location + + Return + ------- + First: float + Last: float + + Description + ----------- + Returns in , , a 2d curve, a surface and a location for the edge . and are null if the edge has no curve on surface. Returns in and the parameter range. + + Parameters + ---------- + E: TopoDS_Edge + C: Geom2d_Curve + S: Geom_Surface + L: TopLoc_Location + Index: int + + Return + ------- + First: float + Last: float + + Description + ----------- + Returns in , , the 2d curve, the surface and the location for the edge of rank . and are null if the index is out of range. Returns in and the parameter range. + + """ + return _BRep.BRep_Tool_CurveOnSurface(*args) + + @staticmethod + def Degenerated(*args): + r""" + + Parameters + ---------- + E: TopoDS_Edge + + Return + ------- + bool + + Description + ----------- + Returns True if the edge is degenerated. + + """ + return _BRep.BRep_Tool_Degenerated(*args) + + @staticmethod + def HasContinuity(*args): + r""" + + Parameters + ---------- + E: TopoDS_Edge + F1: TopoDS_Face + F2: TopoDS_Face + + Return + ------- + bool + + Description + ----------- + Returns True if the edge is on the surfaces of the two faces. + + Parameters + ---------- + E: TopoDS_Edge + S1: Geom_Surface + S2: Geom_Surface + L1: TopLoc_Location + L2: TopLoc_Location + + Return + ------- + bool + + Description + ----------- + Returns True if the edge is on the surfaces. + + Parameters + ---------- + E: TopoDS_Edge + + Return + ------- + bool + + Description + ----------- + Returns True if the edge has regularity on some two surfaces. + + """ + return _BRep.BRep_Tool_HasContinuity(*args) + + @staticmethod + def IsClosed(*args): + r""" + + Parameters + ---------- + S: TopoDS_Shape + + Return + ------- + bool + + Description + ----------- + If S is Shell, returns True if it has no free boundaries (edges). If S is Wire, returns True if it has no free ends (vertices). (Internal and External sub-shepes are ignored in these checks) If S is Edge, returns True if its vertices are the same. For other shape types returns S.Closed(). + + Parameters + ---------- + E: TopoDS_Edge + F: TopoDS_Face + + Return + ------- + bool + + Description + ----------- + Returns True if has two PCurves in the parametric space of . i.e. is on a closed surface and is on the closing curve. + + Parameters + ---------- + E: TopoDS_Edge + S: Geom_Surface + L: TopLoc_Location + + Return + ------- + bool + + Description + ----------- + Returns True if has two PCurves in the parametric space of . i.e. is a closed surface and is on the closing curve. + + Parameters + ---------- + E: TopoDS_Edge + T: Poly_Triangulation + L: TopLoc_Location + + Return + ------- + bool + + Description + ----------- + Returns True if has two arrays of indices in the triangulation . + + """ + return _BRep.BRep_Tool_IsClosed(*args) + + @staticmethod + def IsGeometric(*args): + r""" + + Parameters + ---------- + F: TopoDS_Face + + Return + ------- + bool + + Description + ----------- + Returns True if has a surface, false otherwise. + + Parameters + ---------- + E: TopoDS_Edge + + Return + ------- + bool + + Description + ----------- + Returns True if is a 3d curve or a curve on surface. + + """ + return _BRep.BRep_Tool_IsGeometric(*args) + + @staticmethod + def MaxContinuity(*args): + r""" + + Parameters + ---------- + theEdge: TopoDS_Edge + + Return + ------- + GeomAbs_Shape + + Description + ----------- + Returns the max continuity of edge between some surfaces or GeomAbs_C0 if there no such surfaces. + + """ + return _BRep.BRep_Tool_MaxContinuity(*args) + + @staticmethod + def MaxTolerance(*args): + r""" + + Parameters + ---------- + theShape: TopoDS_Shape + theSubShape: TopAbs_ShapeEnum + + Return + ------- + float + + Description + ----------- + Returns the maximum tolerance of input shape subshapes. + + """ + return _BRep.BRep_Tool_MaxTolerance(*args) + + @staticmethod + def NaturalRestriction(*args): + r""" + + Parameters + ---------- + F: TopoDS_Face + + Return + ------- + bool + + Description + ----------- + Returns the NaturalRestriction flag of the face. + + """ + return _BRep.BRep_Tool_NaturalRestriction(*args) + + @staticmethod + def Parameter(*args): + r""" + + Parameters + ---------- + theV: TopoDS_Vertex + theE: TopoDS_Edge + + Return + ------- + theParam: float + + Description + ----------- + Finds the parameter of on . + Input parameter: theV input vertex + Input parameter: theE input edge @param[out] theParam calculated parameter on the curve + Return: True if done. + + Parameters + ---------- + V: TopoDS_Vertex + E: TopoDS_Edge + + Return + ------- + float + + Description + ----------- + Returns the parameter of on . Throws Standard_NoSuchObject if no parameter on edge. + + Parameters + ---------- + V: TopoDS_Vertex + E: TopoDS_Edge + F: TopoDS_Face + + Return + ------- + float + + Description + ----------- + Returns the parameters of the vertex on the pcurve of the edge on the face. + + Parameters + ---------- + V: TopoDS_Vertex + E: TopoDS_Edge + S: Geom_Surface + L: TopLoc_Location + + Return + ------- + float + + Description + ----------- + Returns the parameters of the vertex on the pcurve of the edge on the surface. + + """ + return _BRep.BRep_Tool_Parameter(*args) + + @staticmethod + def Parameters(*args): + r""" + + Parameters + ---------- + V: TopoDS_Vertex + F: TopoDS_Face + + Return + ------- + gp_Pnt2d + + Description + ----------- + Returns the parameters of the vertex on the face. + + """ + return _BRep.BRep_Tool_Parameters(*args) + + @staticmethod + def Pnt(*args): + r""" + + Parameters + ---------- + V: TopoDS_Vertex + + Return + ------- + gp_Pnt + + Description + ----------- + Returns the 3d point. + + """ + return _BRep.BRep_Tool_Pnt(*args) + + @staticmethod + def Polygon3D(*args): + r""" + + Parameters + ---------- + E: TopoDS_Edge + L: TopLoc_Location + + Return + ------- + opencascade::handle + + Description + ----------- + Returns the 3D polygon of the edge. May be a Null handle. Returns in the location for the polygon. + + """ + return _BRep.BRep_Tool_Polygon3D(*args) + + @staticmethod + def PolygonOnSurface(*args): + r""" + + Parameters + ---------- + E: TopoDS_Edge + F: TopoDS_Face + + Return + ------- + opencascade::handle + + Description + ----------- + Returns the polygon associated to the edge in the parametric space of the face. Returns a NULL handle if this polygon does not exist. + + Parameters + ---------- + E: TopoDS_Edge + S: Geom_Surface + L: TopLoc_Location + + Return + ------- + opencascade::handle + + Description + ----------- + Returns the polygon associated to the edge in the parametric space of the surface. Returns a NULL handle if this polygon does not exist. + + Parameters + ---------- + E: TopoDS_Edge + C: Poly_Polygon2D + S: Geom_Surface + L: TopLoc_Location + + Return + ------- + None + + Description + ----------- + Returns in , , a 2d curve, a surface and a location for the edge . and are null if the edge has no polygon on surface. + + Parameters + ---------- + E: TopoDS_Edge + C: Poly_Polygon2D + S: Geom_Surface + L: TopLoc_Location + Index: int + + Return + ------- + None + + Description + ----------- + Returns in , , the 2d curve, the surface and the location for the edge of rank . and are null if the index is out of range. + + """ + return _BRep.BRep_Tool_PolygonOnSurface(*args) + + @staticmethod + def PolygonOnTriangulation(*args): + r""" + + Parameters + ---------- + E: TopoDS_Edge + T: Poly_Triangulation + L: TopLoc_Location + + Return + ------- + opencascade::handle + + Description + ----------- + Returns the polygon associated to the edge in the parametric space of the face. Returns a NULL handle if this polygon does not exist. + + Parameters + ---------- + E: TopoDS_Edge + P: Poly_PolygonOnTriangulation + T: Poly_Triangulation + L: TopLoc_Location + + Return + ------- + None + + Description + ----------- + Returns in

, , a polygon on triangulation, a triangulation and a location for the edge .

and are null if the edge has no polygon on triangulation. + + Parameters + ---------- + E: TopoDS_Edge + P: Poly_PolygonOnTriangulation + T: Poly_Triangulation + L: TopLoc_Location + Index: int + + Return + ------- + None + + Description + ----------- + Returns in

, , a polygon on triangulation, a triangulation and a location for the edge for the range index. and are null if the edge has no polygon on triangulation. + + """ + return _BRep.BRep_Tool_PolygonOnTriangulation(*args) + + @staticmethod + def Range(*args): + r""" + + Parameters + ---------- + E: TopoDS_Edge + + Return + ------- + First: float + Last: float + + Description + ----------- + Gets the range of the 3d curve. + + Parameters + ---------- + E: TopoDS_Edge + S: Geom_Surface + L: TopLoc_Location + + Return + ------- + First: float + Last: float + + Description + ----------- + Gets the range of the edge on the pcurve on the surface. + + Parameters + ---------- + E: TopoDS_Edge + F: TopoDS_Face + + Return + ------- + First: float + Last: float + + Description + ----------- + Gets the range of the edge on the pcurve on the face. + + """ + return _BRep.BRep_Tool_Range(*args) + + @staticmethod + def SameParameter(*args): + r""" + + Parameters + ---------- + E: TopoDS_Edge + + Return + ------- + bool + + Description + ----------- + Returns the SameParameter flag for the edge. + + """ + return _BRep.BRep_Tool_SameParameter(*args) + + @staticmethod + def SameRange(*args): + r""" + + Parameters + ---------- + E: TopoDS_Edge + + Return + ------- + bool + + Description + ----------- + Returns the SameRange flag for the edge. + + """ + return _BRep.BRep_Tool_SameRange(*args) + + @staticmethod + def SetUVPoints(*args): + r""" + + Parameters + ---------- + E: TopoDS_Edge + S: Geom_Surface + L: TopLoc_Location + PFirst: gp_Pnt2d + PLast: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + Sets the UV locations of the extremities of the edge. + + Parameters + ---------- + E: TopoDS_Edge + F: TopoDS_Face + PFirst: gp_Pnt2d + PLast: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + Sets the UV locations of the extremities of the edge. + + """ + return _BRep.BRep_Tool_SetUVPoints(*args) + + @staticmethod + def Surface(*args): + r""" + + Parameters + ---------- + F: TopoDS_Face + L: TopLoc_Location + + Return + ------- + opencascade::handle + + Description + ----------- + Returns the geometric surface of the face. Returns in the location for the surface. + + Parameters + ---------- + F: TopoDS_Face + + Return + ------- + opencascade::handle + + Description + ----------- + Returns the geometric surface of the face. It can be a copy if there is a Location. + + """ + return _BRep.BRep_Tool_Surface(*args) + + @staticmethod + def Tolerance(*args): + r""" + + Parameters + ---------- + F: TopoDS_Face + + Return + ------- + float + + Description + ----------- + Returns the tolerance of the face. + + Parameters + ---------- + E: TopoDS_Edge + + Return + ------- + float + + Description + ----------- + Returns the tolerance for . + + Parameters + ---------- + V: TopoDS_Vertex + + Return + ------- + float + + Description + ----------- + Returns the tolerance. + + """ + return _BRep.BRep_Tool_Tolerance(*args) + + @staticmethod + def Triangulation(*args): + r""" + + Parameters + ---------- + theFace: TopoDS_Face + theLocation: TopLoc_Location + theMeshPurpose: Poly_MeshPurpose (optional, default to Poly_MeshPurpose_NONE) + + Return + ------- + opencascade::handle + + Description + ----------- + Returns the triangulation of the face according to the mesh purpose. + Input parameter: theFace the input face to find triangulation. @param[out] theLocation the face location. + Input parameter: theMeshPurpose a mesh purpose to find appropriate triangulation (NONE by default). + Return: an active triangulation in case of NONE purpose, the first triangulation appropriate for the input purpose, just the first triangulation if none matching other criteria and input purpose is AnyFallback or null handle if there is no any suitable triangulation. + + """ + return _BRep.BRep_Tool_Triangulation(*args) + + @staticmethod + def Triangulations(*args): + r""" + + Parameters + ---------- + theFace: TopoDS_Face + theLocation: TopLoc_Location + + Return + ------- + Poly_ListOfTriangulation + + Description + ----------- + Returns all triangulations of the face. + Input parameter: theFace the input face. @param[out] theLocation the face location. + Return: list of all available face triangulations. + + """ + return _BRep.BRep_Tool_Triangulations(*args) + + @staticmethod + def UVPoints(*args): + r""" + + Parameters + ---------- + E: TopoDS_Edge + S: Geom_Surface + L: TopLoc_Location + PFirst: gp_Pnt2d + PLast: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + Gets the UV locations of the extremities of the edge. + + Parameters + ---------- + E: TopoDS_Edge + F: TopoDS_Face + PFirst: gp_Pnt2d + PLast: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + Gets the UV locations of the extremities of the edge. + + """ + return _BRep.BRep_Tool_UVPoints(*args) + + __repr__ = _dumps_object + + + def __init__(self): + _BRep.BRep_Tool_swiginit(self, _BRep.new_BRep_Tool()) + __swig_destroy__ = _BRep.delete_BRep_Tool + +# Register BRep_Tool in _BRep: +_BRep.BRep_Tool_swigregister(BRep_Tool) +class BRep_CurveOn2Surfaces(BRep_CurveRepresentation): + 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 + ---------- + S1: Geom_Surface + S2: Geom_Surface + L1: TopLoc_Location + L2: TopLoc_Location + C: GeomAbs_Shape + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _BRep.BRep_CurveOn2Surfaces_swiginit(self, _BRep.new_BRep_CurveOn2Surfaces(*args)) + + def Continuity(self, *args): + r""" + Return + ------- + GeomAbs_Shape + + Description + ----------- + No available documentation. + + Parameters + ---------- + C: GeomAbs_Shape + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRep.BRep_CurveOn2Surfaces_Continuity(self, *args) + + def D0(self, *args): + r""" + + Parameters + ---------- + U: float + P: gp_Pnt + + Return + ------- + None + + Description + ----------- + Raises an error. + + """ + return _BRep.BRep_CurveOn2Surfaces_D0(self, *args) + + def DumpJson(self, depth=-1): + r""" + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + """ + return _BRep.BRep_CurveOn2Surfaces_DumpJson(self, depth) + + def IsRegularity(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True. + + Parameters + ---------- + S1: Geom_Surface + S2: Geom_Surface + L1: TopLoc_Location + L2: TopLoc_Location + + Return + ------- + bool + + Description + ----------- + A curve on two surfaces (continuity). + + """ + return _BRep.BRep_CurveOn2Surfaces_IsRegularity(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_BRep_CurveOn2Surfaces_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _BRep.delete_BRep_CurveOn2Surfaces + +# Register BRep_CurveOn2Surfaces in _BRep: +_BRep.BRep_CurveOn2Surfaces_swigregister(BRep_CurveOn2Surfaces) +class BRep_GCurve(BRep_CurveRepresentation): + 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 D0(self, *args): + r""" + + Parameters + ---------- + U: float + P: gp_Pnt + + Return + ------- + None + + Description + ----------- + Computes the point at parameter U. + + """ + return _BRep.BRep_GCurve_D0(self, *args) + + def DumpJson(self, depth=-1): + r""" + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + """ + return _BRep.BRep_GCurve_DumpJson(self, depth) + + def First(self, *args): + r""" + Return + ------- + float + + Description + ----------- + No available documentation. + + Parameters + ---------- + F: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRep.BRep_GCurve_First(self, *args) + + def Last(self, *args): + r""" + Return + ------- + float + + Description + ----------- + No available documentation. + + Parameters + ---------- + L: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRep.BRep_GCurve_Last(self, *args) + + def Range(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + First: float + Last: float + + Description + ----------- + No available documentation. + + """ + return _BRep.BRep_GCurve_Range(self, *args) + + def SetRange(self, *args): + r""" + + Parameters + ---------- + First: float + Last: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRep.BRep_GCurve_SetRange(self, *args) + + def Update(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Recomputes any derived data after a modification. This is called when the range is modified. + + """ + return _BRep.BRep_GCurve_Update(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_BRep_GCurve_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _BRep.delete_BRep_GCurve + +# Register BRep_GCurve in _BRep: +_BRep.BRep_GCurve_swigregister(BRep_GCurve) +class BRep_PointOnCurve(BRep_PointRepresentation): + 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: float + C: Geom_Curve + L: TopLoc_Location + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _BRep.BRep_PointOnCurve_swiginit(self, _BRep.new_BRep_PointOnCurve(*args)) + + def Curve(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + Parameters + ---------- + C: Geom_Curve + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRep.BRep_PointOnCurve_Curve(self, *args) + + def DumpJson(self, depth=-1): + r""" + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + """ + return _BRep.BRep_PointOnCurve_DumpJson(self, depth) + + def IsPointOnCurve(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True. + + Parameters + ---------- + C: Geom_Curve + L: TopLoc_Location + + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _BRep.BRep_PointOnCurve_IsPointOnCurve(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_BRep_PointOnCurve_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _BRep.delete_BRep_PointOnCurve + +# Register BRep_PointOnCurve in _BRep: +_BRep.BRep_PointOnCurve_swigregister(BRep_PointOnCurve) +class BRep_PointsOnSurface(BRep_PointRepresentation): + 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 DumpJson(self, depth=-1): + r""" + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + """ + return _BRep.BRep_PointsOnSurface_DumpJson(self, depth) + + def Surface(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + Parameters + ---------- + S: Geom_Surface + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRep.BRep_PointsOnSurface_Surface(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_BRep_PointsOnSurface_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _BRep.delete_BRep_PointsOnSurface + +# Register BRep_PointsOnSurface in _BRep: +_BRep.BRep_PointsOnSurface_swigregister(BRep_PointsOnSurface) +class BRep_Polygon3D(BRep_CurveRepresentation): + 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: Poly_Polygon3D + L: TopLoc_Location + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _BRep.BRep_Polygon3D_swiginit(self, _BRep.new_BRep_Polygon3D(*args)) + + def DumpJson(self, depth=-1): + r""" + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + """ + return _BRep.BRep_Polygon3D_DumpJson(self, depth) + + def Polygon3D(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + Parameters + ---------- + P: Poly_Polygon3D + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRep.BRep_Polygon3D_Polygon3D(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_BRep_Polygon3D_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _BRep.delete_BRep_Polygon3D + +# Register BRep_Polygon3D in _BRep: +_BRep.BRep_Polygon3D_swigregister(BRep_Polygon3D) +class BRep_PolygonOnSurface(BRep_CurveRepresentation): + 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: Poly_Polygon2D + S: Geom_Surface + L: TopLoc_Location + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _BRep.BRep_PolygonOnSurface_swiginit(self, _BRep.new_BRep_PolygonOnSurface(*args)) + + def DumpJson(self, depth=-1): + r""" + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + """ + return _BRep.BRep_PolygonOnSurface_DumpJson(self, depth) + + def IsPolygonOnSurface(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + A 2D polygon representation in the parametric space of a surface. + + Parameters + ---------- + S: Geom_Surface + L: TopLoc_Location + + Return + ------- + bool + + Description + ----------- + A 2D polygon representation in the parametric space of a surface. + + """ + return _BRep.BRep_PolygonOnSurface_IsPolygonOnSurface(self, *args) + + def Polygon(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + Parameters + ---------- + P: Poly_Polygon2D + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRep.BRep_PolygonOnSurface_Polygon(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_BRep_PolygonOnSurface_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _BRep.delete_BRep_PolygonOnSurface + +# Register BRep_PolygonOnSurface in _BRep: +_BRep.BRep_PolygonOnSurface_swigregister(BRep_PolygonOnSurface) +class BRep_PolygonOnTriangulation(BRep_CurveRepresentation): + 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: Poly_PolygonOnTriangulation + T: Poly_Triangulation + L: TopLoc_Location + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _BRep.BRep_PolygonOnTriangulation_swiginit(self, _BRep.new_BRep_PolygonOnTriangulation(*args)) + + def DumpJson(self, depth=-1): + r""" + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + """ + return _BRep.BRep_PolygonOnTriangulation_DumpJson(self, depth) + + def IsPolygonOnTriangulation(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + returns True. + + Parameters + ---------- + T: Poly_Triangulation + L: TopLoc_Location + + Return + ------- + bool + + Description + ----------- + Is it a polygon in the definition of with location . + + """ + return _BRep.BRep_PolygonOnTriangulation_IsPolygonOnTriangulation(self, *args) + + def PolygonOnTriangulation(self, *args): + r""" + + Parameters + ---------- + P: Poly_PolygonOnTriangulation + + Return + ------- + None + + Description + ----------- + returns True. + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _BRep.BRep_PolygonOnTriangulation_PolygonOnTriangulation(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_BRep_PolygonOnTriangulation_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _BRep.delete_BRep_PolygonOnTriangulation + +# Register BRep_PolygonOnTriangulation in _BRep: +_BRep.BRep_PolygonOnTriangulation_swigregister(BRep_PolygonOnTriangulation) +class BRep_Curve3D(BRep_GCurve): + 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: Geom_Curve + L: TopLoc_Location + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _BRep.BRep_Curve3D_swiginit(self, _BRep.new_BRep_Curve3D(*args)) + + def Curve3D(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + Parameters + ---------- + C: Geom_Curve + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRep.BRep_Curve3D_Curve3D(self, *args) + + def DumpJson(self, depth=-1): + r""" + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + """ + return _BRep.BRep_Curve3D_DumpJson(self, depth) + + + @staticmethod + def DownCast(t): + return Handle_BRep_Curve3D_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _BRep.delete_BRep_Curve3D + +# Register BRep_Curve3D in _BRep: +_BRep.BRep_Curve3D_swigregister(BRep_Curve3D) +class BRep_CurveOnSurface(BRep_GCurve): + 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 + ---------- + PC: Geom2d_Curve + S: Geom_Surface + L: TopLoc_Location + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _BRep.BRep_CurveOnSurface_swiginit(self, _BRep.new_BRep_CurveOnSurface(*args)) + + def DumpJson(self, depth=-1): + r""" + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + """ + return _BRep.BRep_CurveOnSurface_DumpJson(self, depth) + + def IsCurveOnSurface(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True. + + Parameters + ---------- + S: Geom_Surface + L: TopLoc_Location + + Return + ------- + bool + + Description + ----------- + A curve in the parametric space of a surface. + + """ + return _BRep.BRep_CurveOnSurface_IsCurveOnSurface(self, *args) + + def PCurve(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + Parameters + ---------- + C: Geom2d_Curve + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRep.BRep_CurveOnSurface_PCurve(self, *args) + + def SetUVPoints(self, *args): + r""" + + Parameters + ---------- + P1: gp_Pnt2d + P2: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRep.BRep_CurveOnSurface_SetUVPoints(self, *args) + + def UVPoints(self, *args): + r""" + + Parameters + ---------- + P1: gp_Pnt2d + P2: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRep.BRep_CurveOnSurface_UVPoints(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_BRep_CurveOnSurface_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _BRep.delete_BRep_CurveOnSurface + +# Register BRep_CurveOnSurface in _BRep: +_BRep.BRep_CurveOnSurface_swigregister(BRep_CurveOnSurface) +class BRep_PointOnCurveOnSurface(BRep_PointsOnSurface): + 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: float + C: Geom2d_Curve + S: Geom_Surface + L: TopLoc_Location + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _BRep.BRep_PointOnCurveOnSurface_swiginit(self, _BRep.new_BRep_PointOnCurveOnSurface(*args)) + + def DumpJson(self, depth=-1): + r""" + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + """ + return _BRep.BRep_PointOnCurveOnSurface_DumpJson(self, depth) + + def IsPointOnCurveOnSurface(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True. + + Parameters + ---------- + PC: Geom2d_Curve + S: Geom_Surface + L: TopLoc_Location + + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _BRep.BRep_PointOnCurveOnSurface_IsPointOnCurveOnSurface(self, *args) + + def PCurve(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + Parameters + ---------- + C: Geom2d_Curve + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRep.BRep_PointOnCurveOnSurface_PCurve(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_BRep_PointOnCurveOnSurface_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _BRep.delete_BRep_PointOnCurveOnSurface + +# Register BRep_PointOnCurveOnSurface in _BRep: +_BRep.BRep_PointOnCurveOnSurface_swigregister(BRep_PointOnCurveOnSurface) +class BRep_PointOnSurface(BRep_PointsOnSurface): + 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 + ---------- + P1: float + P2: float + S: Geom_Surface + L: TopLoc_Location + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _BRep.BRep_PointOnSurface_swiginit(self, _BRep.new_BRep_PointOnSurface(*args)) + + def IsPointOnSurface(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + Parameters + ---------- + S: Geom_Surface + L: TopLoc_Location + + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _BRep.BRep_PointOnSurface_IsPointOnSurface(self, *args) + + def Parameter2(self, *args): + r""" + Return + ------- + float + + Description + ----------- + No available documentation. + + Parameters + ---------- + P: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRep.BRep_PointOnSurface_Parameter2(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_BRep_PointOnSurface_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _BRep.delete_BRep_PointOnSurface + +# Register BRep_PointOnSurface in _BRep: +_BRep.BRep_PointOnSurface_swigregister(BRep_PointOnSurface) +class BRep_PolygonOnClosedSurface(BRep_PolygonOnSurface): + 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 + ---------- + P1: Poly_Polygon2D + P2: Poly_Polygon2D + S: Geom_Surface + L: TopLoc_Location + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _BRep.BRep_PolygonOnClosedSurface_swiginit(self, _BRep.new_BRep_PolygonOnClosedSurface(*args)) + + def DumpJson(self, depth=-1): + r""" + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + """ + return _BRep.BRep_PolygonOnClosedSurface_DumpJson(self, depth) + + def Polygon2(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + Parameters + ---------- + P: Poly_Polygon2D + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRep.BRep_PolygonOnClosedSurface_Polygon2(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_BRep_PolygonOnClosedSurface_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _BRep.delete_BRep_PolygonOnClosedSurface + +# Register BRep_PolygonOnClosedSurface in _BRep: +_BRep.BRep_PolygonOnClosedSurface_swigregister(BRep_PolygonOnClosedSurface) +class BRep_PolygonOnClosedTriangulation(BRep_PolygonOnTriangulation): + 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 + ---------- + P1: Poly_PolygonOnTriangulation + P2: Poly_PolygonOnTriangulation + Tr: Poly_Triangulation + L: TopLoc_Location + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _BRep.BRep_PolygonOnClosedTriangulation_swiginit(self, _BRep.new_BRep_PolygonOnClosedTriangulation(*args)) + + def DumpJson(self, depth=-1): + r""" + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + """ + return _BRep.BRep_PolygonOnClosedTriangulation_DumpJson(self, depth) + + def PolygonOnTriangulation2(self, *args): + r""" + + Parameters + ---------- + P2: Poly_PolygonOnTriangulation + + Return + ------- + None + + Description + ----------- + No available documentation. + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _BRep.BRep_PolygonOnClosedTriangulation_PolygonOnTriangulation2(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_BRep_PolygonOnClosedTriangulation_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _BRep.delete_BRep_PolygonOnClosedTriangulation + +# Register BRep_PolygonOnClosedTriangulation in _BRep: +_BRep.BRep_PolygonOnClosedTriangulation_swigregister(BRep_PolygonOnClosedTriangulation) +class BRep_CurveOnClosedSurface(BRep_CurveOnSurface): + 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 + ---------- + PC1: Geom2d_Curve + PC2: Geom2d_Curve + S: Geom_Surface + L: TopLoc_Location + C: GeomAbs_Shape + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _BRep.BRep_CurveOnClosedSurface_swiginit(self, _BRep.new_BRep_CurveOnClosedSurface(*args)) + + def Continuity(self, *args): + r""" + Return + ------- + GeomAbs_Shape + + Description + ----------- + No available documentation. + + Parameters + ---------- + C: GeomAbs_Shape + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRep.BRep_CurveOnClosedSurface_Continuity(self, *args) + + def DumpJson(self, depth=-1): + r""" + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + """ + return _BRep.BRep_CurveOnClosedSurface_DumpJson(self, depth) + + def IsRegularity(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True. + + Parameters + ---------- + S1: Geom_Surface + S2: Geom_Surface + L1: TopLoc_Location + L2: TopLoc_Location + + Return + ------- + bool + + Description + ----------- + A curve on two surfaces (continuity). + + """ + return _BRep.BRep_CurveOnClosedSurface_IsRegularity(self, *args) + + def PCurve2(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + Parameters + ---------- + C: Geom2d_Curve + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRep.BRep_CurveOnClosedSurface_PCurve2(self, *args) + + def SetUVPoints2(self, *args): + r""" + + Parameters + ---------- + P1: gp_Pnt2d + P2: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRep.BRep_CurveOnClosedSurface_SetUVPoints2(self, *args) + + def UVPoints2(self, *args): + r""" + + Parameters + ---------- + P1: gp_Pnt2d + P2: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRep.BRep_CurveOnClosedSurface_UVPoints2(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_BRep_CurveOnClosedSurface_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _BRep.delete_BRep_CurveOnClosedSurface + +# Register BRep_CurveOnClosedSurface in _BRep: +_BRep.BRep_CurveOnClosedSurface_swigregister(BRep_CurveOnClosedSurface) + + + +@deprecated +def BRep_Tool_Continuity(*args): + return BRep_Tool.Continuity(*args) + +@deprecated +def BRep_Tool_Continuity(*args): + return BRep_Tool.Continuity(*args) + +@deprecated +def BRep_Tool_Curve(*args): + return BRep_Tool.Curve(*args) + +@deprecated +def BRep_Tool_Curve(*args): + return BRep_Tool.Curve(*args) + +@deprecated +def BRep_Tool_CurveOnPlane(*args): + return BRep_Tool.CurveOnPlane(*args) + +@deprecated +def BRep_Tool_CurveOnSurface(*args): + return BRep_Tool.CurveOnSurface(*args) + +@deprecated +def BRep_Tool_CurveOnSurface(*args): + return BRep_Tool.CurveOnSurface(*args) + +@deprecated +def BRep_Tool_CurveOnSurface(*args): + return BRep_Tool.CurveOnSurface(*args) + +@deprecated +def BRep_Tool_CurveOnSurface(*args): + return BRep_Tool.CurveOnSurface(*args) + +@deprecated +def BRep_Tool_Degenerated(*args): + return BRep_Tool.Degenerated(*args) + +@deprecated +def BRep_Tool_HasContinuity(*args): + return BRep_Tool.HasContinuity(*args) + +@deprecated +def BRep_Tool_HasContinuity(*args): + return BRep_Tool.HasContinuity(*args) + +@deprecated +def BRep_Tool_HasContinuity(*args): + return BRep_Tool.HasContinuity(*args) + +@deprecated +def BRep_Tool_IsClosed(*args): + return BRep_Tool.IsClosed(*args) + +@deprecated +def BRep_Tool_IsClosed(*args): + return BRep_Tool.IsClosed(*args) + +@deprecated +def BRep_Tool_IsClosed(*args): + return BRep_Tool.IsClosed(*args) + +@deprecated +def BRep_Tool_IsClosed(*args): + return BRep_Tool.IsClosed(*args) + +@deprecated +def BRep_Tool_IsGeometric(*args): + return BRep_Tool.IsGeometric(*args) + +@deprecated +def BRep_Tool_IsGeometric(*args): + return BRep_Tool.IsGeometric(*args) + +@deprecated +def BRep_Tool_MaxContinuity(*args): + return BRep_Tool.MaxContinuity(*args) + +@deprecated +def BRep_Tool_MaxTolerance(*args): + return BRep_Tool.MaxTolerance(*args) + +@deprecated +def BRep_Tool_NaturalRestriction(*args): + return BRep_Tool.NaturalRestriction(*args) + +@deprecated +def BRep_Tool_Parameter(*args): + return BRep_Tool.Parameter(*args) + +@deprecated +def BRep_Tool_Parameter(*args): + return BRep_Tool.Parameter(*args) + +@deprecated +def BRep_Tool_Parameter(*args): + return BRep_Tool.Parameter(*args) + +@deprecated +def BRep_Tool_Parameter(*args): + return BRep_Tool.Parameter(*args) + +@deprecated +def BRep_Tool_Parameters(*args): + return BRep_Tool.Parameters(*args) + +@deprecated +def BRep_Tool_Pnt(*args): + return BRep_Tool.Pnt(*args) + +@deprecated +def BRep_Tool_Polygon3D(*args): + return BRep_Tool.Polygon3D(*args) + +@deprecated +def BRep_Tool_PolygonOnSurface(*args): + return BRep_Tool.PolygonOnSurface(*args) + +@deprecated +def BRep_Tool_PolygonOnSurface(*args): + return BRep_Tool.PolygonOnSurface(*args) + +@deprecated +def BRep_Tool_PolygonOnSurface(*args): + return BRep_Tool.PolygonOnSurface(*args) + +@deprecated +def BRep_Tool_PolygonOnSurface(*args): + return BRep_Tool.PolygonOnSurface(*args) + +@deprecated +def BRep_Tool_PolygonOnTriangulation(*args): + return BRep_Tool.PolygonOnTriangulation(*args) + +@deprecated +def BRep_Tool_PolygonOnTriangulation(*args): + return BRep_Tool.PolygonOnTriangulation(*args) + +@deprecated +def BRep_Tool_PolygonOnTriangulation(*args): + return BRep_Tool.PolygonOnTriangulation(*args) + +@deprecated +def BRep_Tool_Range(*args): + return BRep_Tool.Range(*args) + +@deprecated +def BRep_Tool_Range(*args): + return BRep_Tool.Range(*args) + +@deprecated +def BRep_Tool_Range(*args): + return BRep_Tool.Range(*args) + +@deprecated +def BRep_Tool_SameParameter(*args): + return BRep_Tool.SameParameter(*args) + +@deprecated +def BRep_Tool_SameRange(*args): + return BRep_Tool.SameRange(*args) + +@deprecated +def BRep_Tool_SetUVPoints(*args): + return BRep_Tool.SetUVPoints(*args) + +@deprecated +def BRep_Tool_SetUVPoints(*args): + return BRep_Tool.SetUVPoints(*args) + +@deprecated +def BRep_Tool_Surface(*args): + return BRep_Tool.Surface(*args) + +@deprecated +def BRep_Tool_Surface(*args): + return BRep_Tool.Surface(*args) + +@deprecated +def BRep_Tool_Tolerance(*args): + return BRep_Tool.Tolerance(*args) + +@deprecated +def BRep_Tool_Tolerance(*args): + return BRep_Tool.Tolerance(*args) + +@deprecated +def BRep_Tool_Tolerance(*args): + return BRep_Tool.Tolerance(*args) + +@deprecated +def BRep_Tool_Triangulation(*args): + return BRep_Tool.Triangulation(*args) + +@deprecated +def BRep_Tool_Triangulations(*args): + return BRep_Tool.Triangulations(*args) + +@deprecated +def BRep_Tool_UVPoints(*args): + return BRep_Tool.UVPoints(*args) + +@deprecated +def BRep_Tool_UVPoints(*args): + return BRep_Tool.UVPoints(*args) + + + diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BRepBlend.pyi b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BRepBlend.pyi new file mode 100644 index 0000000000000000000000000000000000000000..2dc334f76c7569360cd155a86d7cf3c5bd426334 --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BRepBlend.pyi @@ -0,0 +1,1250 @@ +from enum import IntEnum +from typing import overload, NewType, Optional, Tuple + +from OCC.Core.Standard import * +from OCC.Core.NCollection import * +from OCC.Core.BlendFunc import * +from OCC.Core.Approx import * +from OCC.Core.gp import * +from OCC.Core.TColgp import * +from OCC.Core.TColStd import * +from OCC.Core.GeomAbs import * +from OCC.Core.Blend import * +from OCC.Core.math import * +from OCC.Core.AppBlend import * +from OCC.Core.Adaptor2d import * +from OCC.Core.Adaptor3d import * +from OCC.Core.IntSurf import * +from OCC.Core.Geom2d import * +from OCC.Core.Geom import * +from OCC.Core.Law import * +from OCC.Core.ChFiDS import * +from OCC.Core.TopAbs import * + +BRepBlend_CSCircular = NewType("BRepBlend_CSCircular", BlendFunc_CSCircular) +BRepBlend_CSConstRad = NewType("BRepBlend_CSConstRad", BlendFunc_CSConstRad) +BRepBlend_ChAsym = NewType("BRepBlend_ChAsym", BlendFunc_ChAsym) +BRepBlend_ChAsymInv = NewType("BRepBlend_ChAsymInv", BlendFunc_ChAsymInv) +BRepBlend_ChamfInv = NewType("BRepBlend_ChamfInv", BlendFunc_ChamfInv) +BRepBlend_Chamfer = NewType("BRepBlend_Chamfer", BlendFunc_Chamfer) +BRepBlend_ConstRad = NewType("BRepBlend_ConstRad", BlendFunc_ConstRad) +BRepBlend_ConstRadInv = NewType("BRepBlend_ConstRadInv", BlendFunc_ConstRadInv) +BRepBlend_ConstThroat = NewType("BRepBlend_ConstThroat", BlendFunc_ConstThroat) +BRepBlend_ConstThroatInv = NewType("BRepBlend_ConstThroatInv", BlendFunc_ConstThroatInv) +BRepBlend_ConstThroatWithPenetration = NewType( + "BRepBlend_ConstThroatWithPenetration", BlendFunc_ConstThroatWithPenetration +) +BRepBlend_ConstThroatWithPenetrationInv = NewType( + "BRepBlend_ConstThroatWithPenetrationInv", BlendFunc_ConstThroatWithPenetrationInv +) +BRepBlend_EvolRad = NewType("BRepBlend_EvolRad", BlendFunc_EvolRad) +BRepBlend_EvolRadInv = NewType("BRepBlend_EvolRadInv", BlendFunc_EvolRadInv) +BRepBlend_Ruled = NewType("BRepBlend_Ruled", BlendFunc_Ruled) +BRepBlend_RuledInv = NewType("BRepBlend_RuledInv", BlendFunc_RuledInv) + +class BRepBlend_SequenceOfLine: + def Assign(self, theItem: False) -> False: ... + def Clear(self) -> None: ... + def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... + def Last(self) -> False: ... + def Length(self) -> int: ... + def Lower(self) -> int: ... + def Prepend(self, theItem: False) -> False: ... + def RemoveFirst(self) -> None: ... + def Reverse(self) -> None: ... + def SetValue(self, theIndex: int, theValue: False) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... + +class BRepBlend_SequenceOfPointOnRst: + def Assign(self, theItem: BRepBlend_PointOnRst) -> BRepBlend_PointOnRst: ... + def Clear(self) -> None: ... + def First(self) -> BRepBlend_PointOnRst: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... + def Last(self) -> BRepBlend_PointOnRst: ... + def Length(self) -> int: ... + def Lower(self) -> int: ... + def Prepend(self, theItem: BRepBlend_PointOnRst) -> BRepBlend_PointOnRst: ... + def RemoveFirst(self) -> None: ... + def Reverse(self) -> None: ... + def SetValue(self, theIndex: int, theValue: BRepBlend_PointOnRst) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> BRepBlend_PointOnRst: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... + +class BRepBlend_AppFuncRoot(Approx_SweepFunction): + def BarycentreOfSurf(self) -> gp_Pnt: ... + def D0( + self, + Param: float, + First: float, + Last: float, + Poles: TColgp_Array1OfPnt, + Poles2d: TColgp_Array1OfPnt2d, + Weigths: TColStd_Array1OfReal, + ) -> bool: ... + def D1( + self, + Param: float, + First: float, + Last: float, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + Poles2d: TColgp_Array1OfPnt2d, + DPoles2d: TColgp_Array1OfVec2d, + Weigths: TColStd_Array1OfReal, + DWeigths: TColStd_Array1OfReal, + ) -> bool: ... + def D2( + self, + 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, + ) -> bool: ... + def GetMinimalWeight(self, Weigths: TColStd_Array1OfReal) -> None: ... + def GetTolerance( + self, + BoundTol: float, + SurfTol: float, + AngleTol: float, + Tol3d: TColStd_Array1OfReal, + ) -> None: ... + def Intervals(self, T: TColStd_Array1OfReal, S: GeomAbs_Shape) -> None: ... + def IsRational(self) -> bool: ... + def Knots(self, TKnots: TColStd_Array1OfReal) -> None: ... + def MaximalSection(self) -> float: ... + def Mults(self, TMults: TColStd_Array1OfInteger) -> None: ... + def Nb2dCurves(self) -> int: ... + def NbIntervals(self, S: GeomAbs_Shape) -> int: ... + def Point( + self, Func: Blend_AppFunction, Param: float, Sol: math_Vector, Pnt: Blend_Point + ) -> None: ... + def Resolution(self, Index: int, Tol: float) -> Tuple[float, float]: ... + def SectionShape(self) -> Tuple[int, int, int]: ... + def SetInterval(self, First: float, Last: float) -> None: ... + def SetTolerance(self, Tol3d: float, Tol2d: float) -> None: ... + def Vec(self, Sol: math_Vector, Pnt: Blend_Point) -> None: ... + +class BRepBlend_AppSurf(AppBlend_Approx): + @overload + def __init__(self) -> None: ... + @overload + def __init__( + self, + Degmin: int, + Degmax: int, + Tol3d: float, + Tol2d: float, + NbIt: int, + KnownParameters: Optional[bool] = False, + ) -> None: ... + def Continuity(self) -> GeomAbs_Shape: ... + def CriteriumWeight(self) -> Tuple[float, float, float]: ... + def Curve2d( + self, + Index: int, + TPoles: TColgp_Array1OfPnt2d, + TKnots: TColStd_Array1OfReal, + TMults: TColStd_Array1OfInteger, + ) -> None: ... + def Curve2dPoles(self, Index: int) -> TColgp_Array1OfPnt2d: ... + def Curves2dDegree(self) -> int: ... + def Curves2dKnots(self) -> TColStd_Array1OfReal: ... + def Curves2dMults(self) -> TColStd_Array1OfInteger: ... + def Curves2dShape(self) -> Tuple[int, int, int]: ... + def Init( + self, + Degmin: int, + Degmax: int, + Tol3d: float, + Tol2d: float, + NbIt: int, + KnownParameters: Optional[bool] = False, + ) -> None: ... + def IsDone(self) -> bool: ... + def NbCurves2d(self) -> int: ... + def ParType(self) -> Approx_ParametrizationType: ... + @overload + def Perform( + self, + Lin: BRepBlend_Line, + SecGen: Blend_AppFunction, + SpApprox: Optional[bool] = False, + ) -> None: ... + @overload + def Perform( + self, Lin: BRepBlend_Line, SecGen: Blend_AppFunction, NbMaxP: int + ) -> None: ... + def PerformSmoothing( + self, Lin: BRepBlend_Line, SecGen: Blend_AppFunction + ) -> None: ... + def SetContinuity(self, C: GeomAbs_Shape) -> None: ... + def SetCriteriumWeight(self, W1: float, W2: float, W3: float) -> None: ... + def SetParType(self, ParType: Approx_ParametrizationType) -> None: ... + def SurfPoles(self) -> TColgp_Array2OfPnt: ... + def SurfShape(self) -> Tuple[int, int, int, int, int, int]: ... + def SurfUKnots(self) -> TColStd_Array1OfReal: ... + def SurfUMults(self) -> TColStd_Array1OfInteger: ... + def SurfVKnots(self) -> TColStd_Array1OfReal: ... + def SurfVMults(self) -> TColStd_Array1OfInteger: ... + def SurfWeights(self) -> TColStd_Array2OfReal: ... + def Surface( + self, + TPoles: TColgp_Array2OfPnt, + TWeights: TColStd_Array2OfReal, + TUKnots: TColStd_Array1OfReal, + TVKnots: TColStd_Array1OfReal, + TUMults: TColStd_Array1OfInteger, + TVMults: TColStd_Array1OfInteger, + ) -> None: ... + def TolCurveOnSurf(self, Index: int) -> float: ... + def TolReached(self) -> Tuple[float, float]: ... + def UDegree(self) -> int: ... + def VDegree(self) -> int: ... + +class BRepBlend_AppSurface(AppBlend_Approx): + def __init__( + self, + Funct: Approx_SweepFunction, + First: float, + Last: float, + Tol3d: float, + Tol2d: float, + TolAngular: float, + Continuity: Optional[GeomAbs_Shape] = GeomAbs_C0, + Degmax: Optional[int] = 11, + Segmax: Optional[int] = 50, + ) -> None: ... + def Curve2d( + self, + Index: int, + TPoles: TColgp_Array1OfPnt2d, + TKnots: TColStd_Array1OfReal, + TMults: TColStd_Array1OfInteger, + ) -> None: ... + def Curve2dPoles(self, Index: int) -> TColgp_Array1OfPnt2d: ... + def Curves2dDegree(self) -> int: ... + def Curves2dKnots(self) -> TColStd_Array1OfReal: ... + def Curves2dMults(self) -> TColStd_Array1OfInteger: ... + def Curves2dShape(self) -> Tuple[int, int, int]: ... + def Dump(self) -> str: ... + def IsDone(self) -> bool: ... + def Max2dError(self, Index: int) -> float: ... + def MaxErrorOnSurf(self) -> float: ... + def NbCurves2d(self) -> int: ... + def SurfPoles(self) -> TColgp_Array2OfPnt: ... + def SurfShape(self) -> Tuple[int, int, int, int, int, int]: ... + def SurfUKnots(self) -> TColStd_Array1OfReal: ... + def SurfUMults(self) -> TColStd_Array1OfInteger: ... + def SurfVKnots(self) -> TColStd_Array1OfReal: ... + def SurfVMults(self) -> TColStd_Array1OfInteger: ... + def SurfWeights(self) -> TColStd_Array2OfReal: ... + def Surface( + self, + TPoles: TColgp_Array2OfPnt, + TWeights: TColStd_Array2OfReal, + TUKnots: TColStd_Array1OfReal, + TVKnots: TColStd_Array1OfReal, + TUMults: TColStd_Array1OfInteger, + TVMults: TColStd_Array1OfInteger, + ) -> None: ... + def TolCurveOnSurf(self, Index: int) -> float: ... + def UDegree(self) -> int: ... + def VDegree(self) -> int: ... + +class BRepBlend_BlendTool: + @staticmethod + def Bounds(C: Adaptor2d_Curve2d) -> Tuple[float, float]: ... + @staticmethod + def CurveOnSurf( + C: Adaptor2d_Curve2d, S: Adaptor3d_Surface + ) -> Adaptor2d_Curve2d: ... + @staticmethod + def Inters( + P1: gp_Pnt2d, P2: gp_Pnt2d, S: Adaptor3d_Surface, C: Adaptor2d_Curve2d + ) -> Tuple[bool, float, float]: ... + @staticmethod + def NbSamplesU(S: Adaptor3d_Surface, u1: float, u2: float) -> int: ... + @staticmethod + def NbSamplesV(S: Adaptor3d_Surface, v1: float, v2: float) -> int: ... + @staticmethod + def Parameter(V: Adaptor3d_HVertex, A: Adaptor2d_Curve2d) -> float: ... + @staticmethod + def Project( + P: gp_Pnt2d, S: Adaptor3d_Surface, C: Adaptor2d_Curve2d + ) -> Tuple[bool, float, float]: ... + @staticmethod + def SingularOnUMax(S: Adaptor3d_Surface) -> bool: ... + @staticmethod + def SingularOnUMin(S: Adaptor3d_Surface) -> bool: ... + @staticmethod + def SingularOnVMax(S: Adaptor3d_Surface) -> bool: ... + @staticmethod + def SingularOnVMin(S: Adaptor3d_Surface) -> bool: ... + @staticmethod + def Tolerance(V: Adaptor3d_HVertex, A: Adaptor2d_Curve2d) -> float: ... + +class BRepBlend_CurvPointRadInv(Blend_CurvPointFuncInv): + def __init__(self, C1: Adaptor3d_Curve, C2: Adaptor3d_Curve) -> None: ... + def Derivatives(self, X: math_Vector, D: math_Matrix) -> bool: ... + def GetBounds(self, InfBound: math_Vector, SupBound: math_Vector) -> None: ... + def GetTolerance(self, Tolerance: math_Vector, Tol: float) -> None: ... + def IsSolution(self, Sol: math_Vector, Tol: float) -> bool: ... + def NbEquations(self) -> int: ... + @overload + def Set(self, Choix: int) -> None: ... + @overload + def Set(self, P: gp_Pnt) -> None: ... + def Value(self, X: math_Vector, F: math_Vector) -> bool: ... + def Values(self, X: math_Vector, F: math_Vector, D: math_Matrix) -> bool: ... + +class BRepBlend_Extremity: + @overload + def __init__(self) -> None: ... + @overload + def __init__( + self, P: gp_Pnt, U: float, V: float, Param: float, Tol: float + ) -> None: ... + @overload + def __init__( + self, + P: gp_Pnt, + U: float, + V: float, + Param: float, + Tol: float, + Vtx: Adaptor3d_HVertex, + ) -> None: ... + @overload + def __init__(self, P: gp_Pnt, W: float, Param: float, Tol: float) -> None: ... + def AddArc( + self, + A: Adaptor2d_Curve2d, + Param: float, + TLine: IntSurf_Transition, + TArc: IntSurf_Transition, + ) -> None: ... + def HasTangent(self) -> bool: ... + def IsVertex(self) -> bool: ... + def NbPointOnRst(self) -> int: ... + def Parameter(self) -> float: ... + def ParameterOnGuide(self) -> float: ... + def Parameters(self) -> Tuple[float, float]: ... + def PointOnRst(self, Index: int) -> BRepBlend_PointOnRst: ... + def SetTangent(self, Tangent: gp_Vec) -> None: ... + @overload + def SetValue( + self, P: gp_Pnt, U: float, V: float, Param: float, Tol: float + ) -> None: ... + @overload + def SetValue( + self, + P: gp_Pnt, + U: float, + V: float, + Param: float, + Tol: float, + Vtx: Adaptor3d_HVertex, + ) -> None: ... + @overload + def SetValue(self, P: gp_Pnt, W: float, Param: float, Tol: float) -> None: ... + def SetVertex(self, V: Adaptor3d_HVertex) -> None: ... + def Tangent(self) -> gp_Vec: ... + def Tolerance(self) -> float: ... + def Value(self) -> gp_Pnt: ... + def Vertex(self) -> Adaptor3d_HVertex: ... + +class BRepBlend_HCurve2dTool: + @staticmethod + def BSpline(C: Adaptor2d_Curve2d) -> Geom2d_BSplineCurve: ... + @staticmethod + def Bezier(C: Adaptor2d_Curve2d) -> Geom2d_BezierCurve: ... + @staticmethod + def Circle(C: Adaptor2d_Curve2d) -> gp_Circ2d: ... + @staticmethod + def Continuity(C: Adaptor2d_Curve2d) -> GeomAbs_Shape: ... + @staticmethod + def D0(C: Adaptor2d_Curve2d, U: float, P: gp_Pnt2d) -> None: ... + @staticmethod + def D1(C: Adaptor2d_Curve2d, U: float, P: gp_Pnt2d, V: gp_Vec2d) -> None: ... + @staticmethod + def D2( + C: Adaptor2d_Curve2d, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d + ) -> None: ... + @staticmethod + def D3( + C: Adaptor2d_Curve2d, + U: float, + P: gp_Pnt2d, + V1: gp_Vec2d, + V2: gp_Vec2d, + V3: gp_Vec2d, + ) -> None: ... + @staticmethod + def DN(C: Adaptor2d_Curve2d, U: float, N: int) -> gp_Vec2d: ... + @staticmethod + def Ellipse(C: Adaptor2d_Curve2d) -> gp_Elips2d: ... + @staticmethod + def FirstParameter(C: Adaptor2d_Curve2d) -> float: ... + @staticmethod + def GetType(C: Adaptor2d_Curve2d) -> GeomAbs_CurveType: ... + @staticmethod + def Hyperbola(C: Adaptor2d_Curve2d) -> gp_Hypr2d: ... + @staticmethod + def Intervals( + C: Adaptor2d_Curve2d, T: TColStd_Array1OfReal, S: GeomAbs_Shape + ) -> None: ... + @staticmethod + def IsClosed(C: Adaptor2d_Curve2d) -> bool: ... + @staticmethod + def IsPeriodic(C: Adaptor2d_Curve2d) -> bool: ... + @staticmethod + def LastParameter(C: Adaptor2d_Curve2d) -> float: ... + @staticmethod + def Line(C: Adaptor2d_Curve2d) -> gp_Lin2d: ... + @staticmethod + def NbIntervals(C: Adaptor2d_Curve2d, S: GeomAbs_Shape) -> int: ... + @staticmethod + def NbSamples(C: Adaptor2d_Curve2d, U0: float, U1: float) -> int: ... + @staticmethod + def Parabola(C: Adaptor2d_Curve2d) -> gp_Parab2d: ... + @staticmethod + def Period(C: Adaptor2d_Curve2d) -> float: ... + @staticmethod + def Resolution(C: Adaptor2d_Curve2d, R3d: float) -> float: ... + @staticmethod + def Value(C: Adaptor2d_Curve2d, U: float) -> gp_Pnt2d: ... + +class BRepBlend_HCurveTool: + @staticmethod + def BSpline(C: Adaptor3d_Curve) -> Geom_BSplineCurve: ... + @staticmethod + def Bezier(C: Adaptor3d_Curve) -> Geom_BezierCurve: ... + @staticmethod + def Circle(C: Adaptor3d_Curve) -> gp_Circ: ... + @staticmethod + def Continuity(C: Adaptor3d_Curve) -> GeomAbs_Shape: ... + @staticmethod + def D0(C: Adaptor3d_Curve, U: float, P: gp_Pnt) -> None: ... + @staticmethod + def D1(C: Adaptor3d_Curve, U: float, P: gp_Pnt, V: gp_Vec) -> None: ... + @staticmethod + def D2(C: Adaptor3d_Curve, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec) -> None: ... + @staticmethod + def D3( + C: Adaptor3d_Curve, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec + ) -> None: ... + @staticmethod + def DN(C: Adaptor3d_Curve, U: float, N: int) -> gp_Vec: ... + @staticmethod + def Ellipse(C: Adaptor3d_Curve) -> gp_Elips: ... + @staticmethod + def FirstParameter(C: Adaptor3d_Curve) -> float: ... + @staticmethod + def GetType(C: Adaptor3d_Curve) -> GeomAbs_CurveType: ... + @staticmethod + def Hyperbola(C: Adaptor3d_Curve) -> gp_Hypr: ... + @staticmethod + def Intervals( + C: Adaptor3d_Curve, T: TColStd_Array1OfReal, S: GeomAbs_Shape + ) -> None: ... + @staticmethod + def IsClosed(C: Adaptor3d_Curve) -> bool: ... + @staticmethod + def IsPeriodic(C: Adaptor3d_Curve) -> bool: ... + @staticmethod + def LastParameter(C: Adaptor3d_Curve) -> float: ... + @staticmethod + def Line(C: Adaptor3d_Curve) -> gp_Lin: ... + @staticmethod + def NbIntervals(C: Adaptor3d_Curve, S: GeomAbs_Shape) -> int: ... + @staticmethod + def NbSamples(C: Adaptor3d_Curve, U0: float, U1: float) -> int: ... + @staticmethod + def Parabola(C: Adaptor3d_Curve) -> gp_Parab: ... + @staticmethod + def Period(C: Adaptor3d_Curve) -> float: ... + @staticmethod + def Resolution(C: Adaptor3d_Curve, R3d: float) -> float: ... + @staticmethod + def Value(C: Adaptor3d_Curve, U: float) -> gp_Pnt: ... + +class BRepBlend_Line(Standard_Transient): + def __init__(self) -> None: ... + def Append(self, P: Blend_Point) -> None: ... + def Clear(self) -> None: ... + def EndPointOnFirst(self) -> BRepBlend_Extremity: ... + def EndPointOnSecond(self) -> BRepBlend_Extremity: ... + def InsertBefore(self, Index: int, P: Blend_Point) -> None: ... + def NbPoints(self) -> int: ... + def Point(self, Index: int) -> Blend_Point: ... + def Prepend(self, P: Blend_Point) -> None: ... + def Remove(self, FromIndex: int, ToIndex: int) -> None: ... + @overload + def Set(self, TranS1: IntSurf_TypeTrans, TranS2: IntSurf_TypeTrans) -> None: ... + @overload + def Set(self, Trans: IntSurf_TypeTrans) -> None: ... + def SetEndPoints( + self, EndPt1: BRepBlend_Extremity, EndPt2: BRepBlend_Extremity + ) -> None: ... + def SetStartPoints( + self, StartPt1: BRepBlend_Extremity, StartPt2: BRepBlend_Extremity + ) -> None: ... + def StartPointOnFirst(self) -> BRepBlend_Extremity: ... + def StartPointOnSecond(self) -> BRepBlend_Extremity: ... + def TransitionOnS(self) -> IntSurf_TypeTrans: ... + def TransitionOnS1(self) -> IntSurf_TypeTrans: ... + def TransitionOnS2(self) -> IntSurf_TypeTrans: ... + +class BRepBlend_PointOnRst: + @overload + def __init__(self) -> None: ... + @overload + def __init__( + self, + A: Adaptor2d_Curve2d, + Param: float, + TLine: IntSurf_Transition, + TArc: IntSurf_Transition, + ) -> None: ... + def Arc(self) -> Adaptor2d_Curve2d: ... + def ParameterOnArc(self) -> float: ... + def SetArc( + self, + A: Adaptor2d_Curve2d, + Param: float, + TLine: IntSurf_Transition, + TArc: IntSurf_Transition, + ) -> None: ... + def TransitionOnArc(self) -> IntSurf_Transition: ... + def TransitionOnLine(self) -> IntSurf_Transition: ... + +class BRepBlend_RstRstConstRad(Blend_RstRstFunction): + def __init__( + self, + Surf1: Adaptor3d_Surface, + Rst1: Adaptor2d_Curve2d, + Surf2: Adaptor3d_Surface, + Rst2: Adaptor2d_Curve2d, + CGuide: Adaptor3d_Curve, + ) -> None: ... + def CenterCircleRst1Rst2( + self, PtRst1: gp_Pnt, PtRst2: gp_Pnt, np: gp_Vec, Center: gp_Pnt, VdMed: gp_Vec + ) -> bool: ... + def Decroch( + self, + Sol: math_Vector, + NRst1: gp_Vec, + TgRst1: gp_Vec, + NRst2: gp_Vec, + TgRst2: gp_Vec, + ) -> Blend_DecrochStatus: ... + def Derivatives(self, X: math_Vector, D: math_Matrix) -> bool: ... + def GetBounds(self, InfBound: math_Vector, SupBound: math_Vector) -> None: ... + def GetMinimalDistance(self) -> float: ... + def GetMinimalWeight(self, Weigths: TColStd_Array1OfReal) -> None: ... + def GetSectionSize(self) -> float: ... + def GetShape(self) -> Tuple[int, int, int, int]: ... + @overload + def GetTolerance(self, Tolerance: math_Vector, Tol: float) -> None: ... + @overload + def GetTolerance( + self, + BoundTol: float, + SurfTol: float, + AngleTol: float, + Tol3d: math_Vector, + Tol1D: math_Vector, + ) -> None: ... + def Intervals(self, T: TColStd_Array1OfReal, S: GeomAbs_Shape) -> None: ... + def IsRational(self) -> bool: ... + def IsSolution(self, Sol: math_Vector, Tol: float) -> bool: ... + def IsTangencyPoint(self) -> bool: ... + def Knots(self, TKnots: TColStd_Array1OfReal) -> None: ... + def Mults(self, TMults: TColStd_Array1OfInteger) -> None: ... + def NbEquations(self) -> int: ... + def NbIntervals(self, S: GeomAbs_Shape) -> int: ... + def NbVariables(self) -> int: ... + def ParameterOnRst1(self) -> float: ... + def ParameterOnRst2(self) -> float: ... + def Pnt2dOnRst1(self) -> gp_Pnt2d: ... + def Pnt2dOnRst2(self) -> gp_Pnt2d: ... + def PointOnRst1(self) -> gp_Pnt: ... + def PointOnRst2(self) -> gp_Pnt: ... + def Resolution(self, IC2d: int, Tol: float) -> Tuple[float, float]: ... + @overload + def Section( + self, Param: float, U: float, V: float, C: gp_Circ + ) -> Tuple[float, float]: ... + @overload + def Section( + self, + P: Blend_Point, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + Poles2d: TColgp_Array1OfPnt2d, + DPoles2d: TColgp_Array1OfVec2d, + Weigths: TColStd_Array1OfReal, + DWeigths: TColStd_Array1OfReal, + ) -> bool: ... + @overload + def Section( + self, + P: Blend_Point, + Poles: TColgp_Array1OfPnt, + Poles2d: TColgp_Array1OfPnt2d, + Weigths: TColStd_Array1OfReal, + ) -> None: ... + @overload + def Section( + self, + P: Blend_Point, + 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, + ) -> bool: ... + @overload + def Set( + self, + SurfRef1: Adaptor3d_Surface, + RstRef1: Adaptor2d_Curve2d, + SurfRef2: Adaptor3d_Surface, + RstRef2: Adaptor2d_Curve2d, + ) -> None: ... + @overload + def Set(self, Param: float) -> None: ... + @overload + def Set(self, First: float, Last: float) -> None: ... + @overload + def Set(self, Radius: float, Choix: int) -> None: ... + @overload + def Set(self, TypeSection: BlendFunc_SectionShape) -> None: ... + def Tangent2dOnRst1(self) -> gp_Vec2d: ... + def Tangent2dOnRst2(self) -> gp_Vec2d: ... + def TangentOnRst1(self) -> gp_Vec: ... + def TangentOnRst2(self) -> gp_Vec: ... + def Value(self, X: math_Vector, F: math_Vector) -> bool: ... + def Values(self, X: math_Vector, F: math_Vector, D: math_Matrix) -> bool: ... + +class BRepBlend_RstRstEvolRad(Blend_RstRstFunction): + def __init__( + self, + Surf1: Adaptor3d_Surface, + Rst1: Adaptor2d_Curve2d, + Surf2: Adaptor3d_Surface, + Rst2: Adaptor2d_Curve2d, + CGuide: Adaptor3d_Curve, + Evol: Law_Function, + ) -> None: ... + def CenterCircleRst1Rst2( + self, PtRst1: gp_Pnt, PtRst2: gp_Pnt, np: gp_Vec, Center: gp_Pnt, VdMed: gp_Vec + ) -> bool: ... + def Decroch( + self, + Sol: math_Vector, + NRst1: gp_Vec, + TgRst1: gp_Vec, + NRst2: gp_Vec, + TgRst2: gp_Vec, + ) -> Blend_DecrochStatus: ... + def Derivatives(self, X: math_Vector, D: math_Matrix) -> bool: ... + def GetBounds(self, InfBound: math_Vector, SupBound: math_Vector) -> None: ... + def GetMinimalDistance(self) -> float: ... + def GetMinimalWeight(self, Weigths: TColStd_Array1OfReal) -> None: ... + def GetSectionSize(self) -> float: ... + def GetShape(self) -> Tuple[int, int, int, int]: ... + @overload + def GetTolerance(self, Tolerance: math_Vector, Tol: float) -> None: ... + @overload + def GetTolerance( + self, + BoundTol: float, + SurfTol: float, + AngleTol: float, + Tol3d: math_Vector, + Tol1D: math_Vector, + ) -> None: ... + def Intervals(self, T: TColStd_Array1OfReal, S: GeomAbs_Shape) -> None: ... + def IsRational(self) -> bool: ... + def IsSolution(self, Sol: math_Vector, Tol: float) -> bool: ... + def IsTangencyPoint(self) -> bool: ... + def Knots(self, TKnots: TColStd_Array1OfReal) -> None: ... + def Mults(self, TMults: TColStd_Array1OfInteger) -> None: ... + def NbEquations(self) -> int: ... + def NbIntervals(self, S: GeomAbs_Shape) -> int: ... + def NbVariables(self) -> int: ... + def ParameterOnRst1(self) -> float: ... + def ParameterOnRst2(self) -> float: ... + def Pnt2dOnRst1(self) -> gp_Pnt2d: ... + def Pnt2dOnRst2(self) -> gp_Pnt2d: ... + def PointOnRst1(self) -> gp_Pnt: ... + def PointOnRst2(self) -> gp_Pnt: ... + def Resolution(self, IC2d: int, Tol: float) -> Tuple[float, float]: ... + @overload + def Section( + self, Param: float, U: float, V: float, C: gp_Circ + ) -> Tuple[float, float]: ... + @overload + def Section( + self, + P: Blend_Point, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + Poles2d: TColgp_Array1OfPnt2d, + DPoles2d: TColgp_Array1OfVec2d, + Weigths: TColStd_Array1OfReal, + DWeigths: TColStd_Array1OfReal, + ) -> bool: ... + @overload + def Section( + self, + P: Blend_Point, + Poles: TColgp_Array1OfPnt, + Poles2d: TColgp_Array1OfPnt2d, + Weigths: TColStd_Array1OfReal, + ) -> None: ... + @overload + def Section( + self, + P: Blend_Point, + 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, + ) -> bool: ... + @overload + def Set( + self, + SurfRef1: Adaptor3d_Surface, + RstRef1: Adaptor2d_Curve2d, + SurfRef2: Adaptor3d_Surface, + RstRef2: Adaptor2d_Curve2d, + ) -> None: ... + @overload + def Set(self, Param: float) -> None: ... + @overload + def Set(self, First: float, Last: float) -> None: ... + @overload + def Set(self, Choix: int) -> None: ... + @overload + def Set(self, TypeSection: BlendFunc_SectionShape) -> None: ... + def Tangent2dOnRst1(self) -> gp_Vec2d: ... + def Tangent2dOnRst2(self) -> gp_Vec2d: ... + def TangentOnRst1(self) -> gp_Vec: ... + def TangentOnRst2(self) -> gp_Vec: ... + def Value(self, X: math_Vector, F: math_Vector) -> bool: ... + def Values(self, X: math_Vector, F: math_Vector, D: math_Matrix) -> bool: ... + +class BRepBlend_RstRstLineBuilder: + def __init__( + self, + Surf1: Adaptor3d_Surface, + Rst1: Adaptor2d_Curve2d, + Domain1: Adaptor3d_TopolTool, + Surf2: Adaptor3d_Surface, + Rst2: Adaptor2d_Curve2d, + Domain2: Adaptor3d_TopolTool, + ) -> None: ... + def Complete( + self, + Func: Blend_RstRstFunction, + Finv1: Blend_SurfCurvFuncInv, + FinvP1: Blend_CurvPointFuncInv, + Finv2: Blend_SurfCurvFuncInv, + FinvP2: Blend_CurvPointFuncInv, + Pmin: float, + ) -> bool: ... + def Decroch1End(self) -> bool: ... + def Decroch1Start(self) -> bool: ... + def Decroch2End(self) -> bool: ... + def Decroch2Start(self) -> bool: ... + def IsDone(self) -> bool: ... + def Line(self) -> BRepBlend_Line: ... + def Perform( + self, + Func: Blend_RstRstFunction, + Finv1: Blend_SurfCurvFuncInv, + FinvP1: Blend_CurvPointFuncInv, + Finv2: Blend_SurfCurvFuncInv, + FinvP2: Blend_CurvPointFuncInv, + Pdep: float, + Pmax: float, + MaxStep: float, + Tol3d: float, + TolGuide: float, + Soldep: math_Vector, + Fleche: float, + Appro: Optional[bool] = False, + ) -> None: ... + def PerformFirstSection( + self, + Func: Blend_RstRstFunction, + Finv1: Blend_SurfCurvFuncInv, + FinvP1: Blend_CurvPointFuncInv, + Finv2: Blend_SurfCurvFuncInv, + FinvP2: Blend_CurvPointFuncInv, + Pdep: float, + Pmax: float, + Soldep: math_Vector, + Tol3d: float, + TolGuide: float, + RecRst1: bool, + RecP1: bool, + RecRst2: bool, + RecP2: bool, + ParSol: math_Vector, + ) -> Tuple[bool, float]: ... + +class BRepBlend_SurfCurvConstRadInv(Blend_SurfCurvFuncInv): + def __init__( + self, S: Adaptor3d_Surface, C: Adaptor3d_Curve, Cg: Adaptor3d_Curve + ) -> None: ... + def Derivatives(self, X: math_Vector, D: math_Matrix) -> bool: ... + def GetBounds(self, InfBound: math_Vector, SupBound: math_Vector) -> None: ... + def GetTolerance(self, Tolerance: math_Vector, Tol: float) -> None: ... + def IsSolution(self, Sol: math_Vector, Tol: float) -> bool: ... + def NbEquations(self) -> int: ... + @overload + def Set(self, R: float, Choix: int) -> None: ... + @overload + def Set(self, Rst: Adaptor2d_Curve2d) -> None: ... + def Value(self, X: math_Vector, F: math_Vector) -> bool: ... + def Values(self, X: math_Vector, F: math_Vector, D: math_Matrix) -> bool: ... + +class BRepBlend_SurfCurvEvolRadInv(Blend_SurfCurvFuncInv): + def __init__( + self, + S: Adaptor3d_Surface, + C: Adaptor3d_Curve, + Cg: Adaptor3d_Curve, + Evol: Law_Function, + ) -> None: ... + def Derivatives(self, X: math_Vector, D: math_Matrix) -> bool: ... + def GetBounds(self, InfBound: math_Vector, SupBound: math_Vector) -> None: ... + def GetTolerance(self, Tolerance: math_Vector, Tol: float) -> None: ... + def IsSolution(self, Sol: math_Vector, Tol: float) -> bool: ... + def NbEquations(self) -> int: ... + @overload + def Set(self, Choix: int) -> None: ... + @overload + def Set(self, Rst: Adaptor2d_Curve2d) -> None: ... + def Value(self, X: math_Vector, F: math_Vector) -> bool: ... + def Values(self, X: math_Vector, F: math_Vector, D: math_Matrix) -> bool: ... + +class BRepBlend_SurfPointConstRadInv(Blend_SurfPointFuncInv): + def __init__(self, S: Adaptor3d_Surface, C: Adaptor3d_Curve) -> None: ... + def Derivatives(self, X: math_Vector, D: math_Matrix) -> bool: ... + def GetBounds(self, InfBound: math_Vector, SupBound: math_Vector) -> None: ... + def GetTolerance(self, Tolerance: math_Vector, Tol: float) -> None: ... + def IsSolution(self, Sol: math_Vector, Tol: float) -> bool: ... + def NbEquations(self) -> int: ... + @overload + def Set(self, R: float, Choix: int) -> None: ... + @overload + def Set(self, P: gp_Pnt) -> None: ... + def Value(self, X: math_Vector, F: math_Vector) -> bool: ... + def Values(self, X: math_Vector, F: math_Vector, D: math_Matrix) -> bool: ... + +class BRepBlend_SurfPointEvolRadInv(Blend_SurfPointFuncInv): + def __init__( + self, S: Adaptor3d_Surface, C: Adaptor3d_Curve, Evol: Law_Function + ) -> None: ... + def Derivatives(self, X: math_Vector, D: math_Matrix) -> bool: ... + def GetBounds(self, InfBound: math_Vector, SupBound: math_Vector) -> None: ... + def GetTolerance(self, Tolerance: math_Vector, Tol: float) -> None: ... + def IsSolution(self, Sol: math_Vector, Tol: float) -> bool: ... + def NbEquations(self) -> int: ... + @overload + def Set(self, Choix: int) -> None: ... + @overload + def Set(self, P: gp_Pnt) -> None: ... + def Value(self, X: math_Vector, F: math_Vector) -> bool: ... + def Values(self, X: math_Vector, F: math_Vector, D: math_Matrix) -> bool: ... + +class BRepBlend_SurfRstConstRad(Blend_SurfRstFunction): + def __init__( + self, + Surf: Adaptor3d_Surface, + SurfRst: Adaptor3d_Surface, + Rst: Adaptor2d_Curve2d, + CGuide: Adaptor3d_Curve, + ) -> None: ... + def Decroch(self, Sol: math_Vector, NS: gp_Vec, TgS: gp_Vec) -> bool: ... + def Derivatives(self, X: math_Vector, D: math_Matrix) -> bool: ... + def GetBounds(self, InfBound: math_Vector, SupBound: math_Vector) -> None: ... + def GetMinimalDistance(self) -> float: ... + def GetMinimalWeight(self, Weigths: TColStd_Array1OfReal) -> None: ... + def GetSectionSize(self) -> float: ... + def GetShape(self) -> Tuple[int, int, int, int]: ... + @overload + def GetTolerance(self, Tolerance: math_Vector, Tol: float) -> None: ... + @overload + def GetTolerance( + self, + BoundTol: float, + SurfTol: float, + AngleTol: float, + Tol3d: math_Vector, + Tol1D: math_Vector, + ) -> None: ... + def Intervals(self, T: TColStd_Array1OfReal, S: GeomAbs_Shape) -> None: ... + def IsRational(self) -> bool: ... + def IsSolution(self, Sol: math_Vector, Tol: float) -> bool: ... + def IsTangencyPoint(self) -> bool: ... + def Knots(self, TKnots: TColStd_Array1OfReal) -> None: ... + def Mults(self, TMults: TColStd_Array1OfInteger) -> None: ... + def NbEquations(self) -> int: ... + def NbIntervals(self, S: GeomAbs_Shape) -> int: ... + def NbVariables(self) -> int: ... + def ParameterOnRst(self) -> float: ... + def Pnt2dOnRst(self) -> gp_Pnt2d: ... + def Pnt2dOnS(self) -> gp_Pnt2d: ... + def PointOnRst(self) -> gp_Pnt: ... + def PointOnS(self) -> gp_Pnt: ... + def Resolution(self, IC2d: int, Tol: float) -> Tuple[float, float]: ... + @overload + def Section( + self, Param: float, U: float, V: float, W: float, C: gp_Circ + ) -> Tuple[float, float]: ... + @overload + def Section( + self, + P: Blend_Point, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + Poles2d: TColgp_Array1OfPnt2d, + DPoles2d: TColgp_Array1OfVec2d, + Weigths: TColStd_Array1OfReal, + DWeigths: TColStd_Array1OfReal, + ) -> bool: ... + @overload + def Section( + self, + P: Blend_Point, + 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, + ) -> bool: ... + @overload + def Section( + self, + P: Blend_Point, + Poles: TColgp_Array1OfPnt, + Poles2d: TColgp_Array1OfPnt2d, + Weigths: TColStd_Array1OfReal, + ) -> None: ... + @overload + def Set(self, SurfRef: Adaptor3d_Surface, RstRef: Adaptor2d_Curve2d) -> None: ... + @overload + def Set(self, Param: float) -> None: ... + @overload + def Set(self, First: float, Last: float) -> None: ... + @overload + def Set(self, Radius: float, Choix: int) -> None: ... + @overload + def Set(self, TypeSection: BlendFunc_SectionShape) -> None: ... + def Tangent2dOnRst(self) -> gp_Vec2d: ... + def Tangent2dOnS(self) -> gp_Vec2d: ... + def TangentOnRst(self) -> gp_Vec: ... + def TangentOnS(self) -> gp_Vec: ... + def Value(self, X: math_Vector, F: math_Vector) -> bool: ... + def Values(self, X: math_Vector, F: math_Vector, D: math_Matrix) -> bool: ... + +class BRepBlend_SurfRstEvolRad(Blend_SurfRstFunction): + def __init__( + self, + Surf: Adaptor3d_Surface, + SurfRst: Adaptor3d_Surface, + Rst: Adaptor2d_Curve2d, + CGuide: Adaptor3d_Curve, + Evol: Law_Function, + ) -> None: ... + def Decroch(self, Sol: math_Vector, NS: gp_Vec, TgS: gp_Vec) -> bool: ... + def Derivatives(self, X: math_Vector, D: math_Matrix) -> bool: ... + def GetBounds(self, InfBound: math_Vector, SupBound: math_Vector) -> None: ... + def GetMinimalDistance(self) -> float: ... + def GetMinimalWeight(self, Weigths: TColStd_Array1OfReal) -> None: ... + def GetSectionSize(self) -> float: ... + def GetShape(self) -> Tuple[int, int, int, int]: ... + @overload + def GetTolerance(self, Tolerance: math_Vector, Tol: float) -> None: ... + @overload + def GetTolerance( + self, + BoundTol: float, + SurfTol: float, + AngleTol: float, + Tol3d: math_Vector, + Tol1D: math_Vector, + ) -> None: ... + def Intervals(self, T: TColStd_Array1OfReal, S: GeomAbs_Shape) -> None: ... + def IsRational(self) -> bool: ... + def IsSolution(self, Sol: math_Vector, Tol: float) -> bool: ... + def IsTangencyPoint(self) -> bool: ... + def Knots(self, TKnots: TColStd_Array1OfReal) -> None: ... + def Mults(self, TMults: TColStd_Array1OfInteger) -> None: ... + def NbEquations(self) -> int: ... + def NbIntervals(self, S: GeomAbs_Shape) -> int: ... + def NbVariables(self) -> int: ... + def ParameterOnRst(self) -> float: ... + def Pnt2dOnRst(self) -> gp_Pnt2d: ... + def Pnt2dOnS(self) -> gp_Pnt2d: ... + def PointOnRst(self) -> gp_Pnt: ... + def PointOnS(self) -> gp_Pnt: ... + def Resolution(self, IC2d: int, Tol: float) -> Tuple[float, float]: ... + @overload + def Section( + self, Param: float, U: float, V: float, W: float, C: gp_Circ + ) -> Tuple[float, float]: ... + @overload + def Section( + self, + P: Blend_Point, + Poles: TColgp_Array1OfPnt, + DPoles: TColgp_Array1OfVec, + Poles2d: TColgp_Array1OfPnt2d, + DPoles2d: TColgp_Array1OfVec2d, + Weigths: TColStd_Array1OfReal, + DWeigths: TColStd_Array1OfReal, + ) -> bool: ... + @overload + def Section( + self, + P: Blend_Point, + 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, + ) -> bool: ... + @overload + def Section( + self, + P: Blend_Point, + Poles: TColgp_Array1OfPnt, + Poles2d: TColgp_Array1OfPnt2d, + Weigths: TColStd_Array1OfReal, + ) -> None: ... + @overload + def Set(self, SurfRef: Adaptor3d_Surface, RstRef: Adaptor2d_Curve2d) -> None: ... + @overload + def Set(self, Param: float) -> None: ... + @overload + def Set(self, First: float, Last: float) -> None: ... + @overload + def Set(self, Choix: int) -> None: ... + @overload + def Set(self, TypeSection: BlendFunc_SectionShape) -> None: ... + def Tangent2dOnRst(self) -> gp_Vec2d: ... + def Tangent2dOnS(self) -> gp_Vec2d: ... + def TangentOnRst(self) -> gp_Vec: ... + def TangentOnS(self) -> gp_Vec: ... + def Value(self, X: math_Vector, F: math_Vector) -> bool: ... + def Values(self, X: math_Vector, F: math_Vector, D: math_Matrix) -> bool: ... + +class BRepBlend_SurfRstLineBuilder: + def __init__( + self, + Surf1: Adaptor3d_Surface, + Domain1: Adaptor3d_TopolTool, + Surf2: Adaptor3d_Surface, + Rst: Adaptor2d_Curve2d, + Domain2: Adaptor3d_TopolTool, + ) -> None: ... + def ArcToRecadre( + self, Sol: math_Vector, PrevIndex: int, pt2d: gp_Pnt2d, lastpt2d: gp_Pnt2d + ) -> Tuple[int, float]: ... + def Complete( + self, + Func: Blend_SurfRstFunction, + Finv: Blend_FuncInv, + FinvP: Blend_SurfPointFuncInv, + FinvC: Blend_SurfCurvFuncInv, + Pmin: float, + ) -> bool: ... + def DecrochEnd(self) -> bool: ... + def DecrochStart(self) -> bool: ... + def IsDone(self) -> bool: ... + def Line(self) -> BRepBlend_Line: ... + def Perform( + self, + Func: Blend_SurfRstFunction, + Finv: Blend_FuncInv, + FinvP: Blend_SurfPointFuncInv, + FinvC: Blend_SurfCurvFuncInv, + Pdep: float, + Pmax: float, + MaxStep: float, + Tol3d: float, + Tol2d: float, + TolGuide: float, + Soldep: math_Vector, + Fleche: float, + Appro: Optional[bool] = False, + ) -> None: ... + def PerformFirstSection( + self, + Func: Blend_SurfRstFunction, + Finv: Blend_FuncInv, + FinvP: Blend_SurfPointFuncInv, + FinvC: Blend_SurfCurvFuncInv, + Pdep: float, + Pmax: float, + Soldep: math_Vector, + Tol3d: float, + Tol2d: float, + TolGuide: float, + RecRst: bool, + RecP: bool, + RecS: bool, + ParSol: math_Vector, + ) -> Tuple[bool, float]: ... + +class BRepBlend_Walking: + def __init__( + self, + Surf1: Adaptor3d_Surface, + Surf2: Adaptor3d_Surface, + Domain1: Adaptor3d_TopolTool, + Domain2: Adaptor3d_TopolTool, + HGuide: ChFiDS_ElSpine, + ) -> None: ... + def AddSingularPoint(self, P: Blend_Point) -> None: ... + def Check(self, C: bool) -> None: ... + def Check2d(self, C: bool) -> None: ... + def ClassificationOnS1(self, C: bool) -> None: ... + def ClassificationOnS2(self, C: bool) -> None: ... + def Complete(self, F: Blend_Function, FInv: Blend_FuncInv, Pmin: float) -> bool: ... + @overload + def Continu(self, F: Blend_Function, FInv: Blend_FuncInv, P: float) -> bool: ... + @overload + def Continu( + self, F: Blend_Function, FInv: Blend_FuncInv, P: float, OnS1: bool + ) -> bool: ... + def IsDone(self) -> bool: ... + def Line(self) -> BRepBlend_Line: ... + def Perform( + self, + F: Blend_Function, + FInv: Blend_FuncInv, + Pdep: float, + Pmax: float, + MaxStep: float, + Tol3d: float, + TolGuide: float, + Soldep: math_Vector, + Fleche: float, + Appro: Optional[bool] = False, + ) -> None: ... + @overload + def PerformFirstSection( + self, + F: Blend_Function, + Pdep: float, + ParDep: math_Vector, + Tol3d: float, + TolGuide: float, + ) -> Tuple[bool, TopAbs_State, TopAbs_State]: ... + @overload + def PerformFirstSection( + self, + F: Blend_Function, + FInv: Blend_FuncInv, + Pdep: float, + Pmax: float, + ParDep: math_Vector, + Tol3d: float, + TolGuide: float, + RecOnS1: bool, + RecOnS2: bool, + ParSol: math_Vector, + ) -> Tuple[bool, float]: ... + def SetDomainsToRecadre( + self, RecDomain1: Adaptor3d_TopolTool, RecDomain2: Adaptor3d_TopolTool + ) -> None: ... + def TwistOnS1(self) -> bool: ... + def TwistOnS2(self) -> bool: ... + +class BRepBlend_AppFunc(BRepBlend_AppFuncRoot): + def __init__( + self, Line: BRepBlend_Line, Func: Blend_Function, Tol3d: float, Tol2d: float + ) -> None: ... + def Point( + self, Func: Blend_AppFunction, Param: float, Sol: math_Vector, Pnt: Blend_Point + ) -> None: ... + def Vec(self, Sol: math_Vector, Pnt: Blend_Point) -> None: ... + +class BRepBlend_AppFuncRst(BRepBlend_AppFuncRoot): + def __init__( + self, + Line: BRepBlend_Line, + Func: Blend_SurfRstFunction, + Tol3d: float, + Tol2d: float, + ) -> None: ... + def Point( + self, Func: Blend_AppFunction, Param: float, Sol: math_Vector, Pnt: Blend_Point + ) -> None: ... + def Vec(self, Sol: math_Vector, Pnt: Blend_Point) -> None: ... + +class BRepBlend_AppFuncRstRst(BRepBlend_AppFuncRoot): + def __init__( + self, + Line: BRepBlend_Line, + Func: Blend_RstRstFunction, + Tol3d: float, + Tol2d: float, + ) -> None: ... + def Point( + self, Func: Blend_AppFunction, Param: float, Sol: math_Vector, Pnt: Blend_Point + ) -> None: ... + def Vec(self, Sol: math_Vector, Pnt: Blend_Point) -> None: ... + +# classnotwrapped +class BRepBlend_CSWalking: ... + +# harray1 classes +# harray2 classes +# hsequence classes diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BRepCheck.py b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BRepCheck.py new file mode 100644 index 0000000000000000000000000000000000000000..a9e424573be8d16d9f43c00ac9458e14afe5f14d --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BRepCheck.py @@ -0,0 +1,2024 @@ +# 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. + +""" +BRepCheck module, see official documentation at +https://dev.opencascade.org/doc/occt-7.9.0/refman/html/package_brepcheck.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 _BRepCheck +else: + import _BRepCheck + +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__ = _BRepCheck.delete_SwigPyIterator + + def value(self): + return _BRepCheck.SwigPyIterator_value(self) + + def incr(self, n=1): + return _BRepCheck.SwigPyIterator_incr(self, n) + + def decr(self, n=1): + return _BRepCheck.SwigPyIterator_decr(self, n) + + def distance(self, x): + return _BRepCheck.SwigPyIterator_distance(self, x) + + def equal(self, x): + return _BRepCheck.SwigPyIterator_equal(self, x) + + def copy(self): + return _BRepCheck.SwigPyIterator_copy(self) + + def next(self): + return _BRepCheck.SwigPyIterator_next(self) + + def __next__(self): + return _BRepCheck.SwigPyIterator___next__(self) + + def previous(self): + return _BRepCheck.SwigPyIterator_previous(self) + + def advance(self, n): + return _BRepCheck.SwigPyIterator_advance(self, n) + + def __eq__(self, x): + return _BRepCheck.SwigPyIterator___eq__(self, x) + + def __ne__(self, x): + return _BRepCheck.SwigPyIterator___ne__(self, x) + + def __iadd__(self, n): + return _BRepCheck.SwigPyIterator___iadd__(self, n) + + def __isub__(self, n): + return _BRepCheck.SwigPyIterator___isub__(self, n) + + def __add__(self, n): + return _BRepCheck.SwigPyIterator___add__(self, n) + + def __sub__(self, *args): + return _BRepCheck.SwigPyIterator___sub__(self, *args) + def __iter__(self): + return self + +# Register SwigPyIterator in _BRepCheck: +_BRepCheck.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 = " is the shape to control. If False only topological informaions are checked. The geometricals controls are For a Vertex: BRepCheck_InvalidToleranceValue NYI For an Edge: BRepCheck_InvalidCurveOnClosedSurface, BRepCheck_InvalidCurveOnSurface, BRepCheck_InvalidSameParameterFlag, BRepCheck_InvalidToleranceValue NYI For a face: BRepCheck_UnorientableShape, BRepCheck_IntersectingWires, BRepCheck_InvalidToleranceValue NYI For a wire: BRepCheck_SelfIntersectingWire. + + """ + _BRepCheck.BRepCheck_Analyzer_swiginit(self, _BRepCheck.new_BRepCheck_Analyzer(*args)) + + def Init(self, *args): + r""" + + Parameters + ---------- + S: TopoDS_Shape + GeomControls: bool (optional, default to Standard_True) + + Return + ------- + None + + Description + ----------- + is the shape to control. If False only topological informaions are checked. The geometricals controls are For a Vertex: BRepCheck_InvalidTolerance NYI For an Edge: BRepCheck_InvalidCurveOnClosedSurface, BRepCheck_InvalidCurveOnSurface, BRepCheck_InvalidSameParameterFlag, BRepCheck_InvalidTolerance NYI For a face: BRepCheck_UnorientableShape, BRepCheck_IntersectingWires, BRepCheck_InvalidTolerance NYI For a wire: BRepCheck_SelfIntersectingWire. + + """ + return _BRepCheck.BRepCheck_Analyzer_Init(self, *args) + + def IsExactMethod(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns true if exact method selected. + + """ + return _BRepCheck.BRepCheck_Analyzer_IsExactMethod(self, *args) + + def IsParallel(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns true if parallel flag is set. + + """ + return _BRepCheck.BRepCheck_Analyzer_IsParallel(self, *args) + + def IsValid(self, *args): + r""" + + Parameters + ---------- + S: TopoDS_Shape + + Return + ------- + bool + + Description + ----------- + is a subshape of the original shape. Returns if no default has been detected on and any of its subshape. + Return + ------- + bool + + Description + ----------- + Returns true if no defect is detected on the shape S or any of its subshapes. Returns true if the shape S is valid. This function checks whether a given shape is valid by checking that: - the topology is correct - parameterization of edges in particular is correct. For the topology to be correct, the following conditions must be satisfied: - edges should have at least two vertices if they are not degenerate edges. The vertices should be within the range of the bounding edges at the tolerance specified in the vertex, - edges should share at least one face. The representation of the edges should be within the tolerance criterion assigned to them. - wires defining a face should not self-intersect and should be closed, - there should be one wire which contains all other wires inside a face, - wires should be correctly oriented with respect to each of the edges, - faces should be correctly oriented, in particular with respect to adjacent faces if these faces define a solid, - shells defining a solid should be closed. There should be one enclosing shell if the shape is a solid; To check parameterization of edge, there are 2 approaches depending on the edge?s contextual situation. - if the edge is either single, or it is in the context of a wire or a compound, its parameterization is defined by the parameterization of its 3D curve and is considered as valid. - If the edge is in the context of a face, it should have SameParameter and SameRange flags set to Standard_True. To check these flags, you should call the function BRep_Tool::SameParameter and BRep_Tool::SameRange for an edge. If at least one of these flags is set to Standard_False, the edge is considered as invalid without any additional check. If the edge is contained by a face, and it has SameParameter and SameRange flags set to Standard_True, IsValid checks whether representation of the edge on face, in context of which the edge is considered, has the same parameterization up to the tolerance value coded on the edge. For a given parameter t on the edge having C as a 3D curve and one PCurve P on a surface S (base surface of the reference face), this checks that |C(t) - S(P(t))| is less than or equal to tolerance, where tolerance is the tolerance value coded on the edge. + + """ + return _BRepCheck.BRepCheck_Analyzer_IsValid(self, *args) + + def Result(self, *args): + r""" + + Parameters + ---------- + theSubS: TopoDS_Shape + + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _BRepCheck.BRepCheck_Analyzer_Result(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 _BRepCheck.BRepCheck_Analyzer_SetExactMethod(self, *args) + + def SetParallel(self, *args): + r""" + + Parameters + ---------- + theIsParallel: bool + + Return + ------- + None + + Description + ----------- + Sets parallel flag. + + """ + return _BRepCheck.BRepCheck_Analyzer_SetParallel(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepCheck.delete_BRepCheck_Analyzer + +# Register BRepCheck_Analyzer in _BRepCheck: +_BRepCheck.BRepCheck_Analyzer_swigregister(BRepCheck_Analyzer) +class BRepCheck_Result(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 Blind(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRepCheck.BRepCheck_Result_Blind(self, *args) + + def ContextualShape(self, *args): + r""" + Return + ------- + TopoDS_Shape + + Description + ----------- + No available documentation. + + """ + return _BRepCheck.BRepCheck_Result_ContextualShape(self, *args) + + def InContext(self, *args): + r""" + + Parameters + ---------- + ContextShape: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRepCheck.BRepCheck_Result_InContext(self, *args) + + def Init(self, *args): + r""" + + Parameters + ---------- + S: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRepCheck.BRepCheck_Result_Init(self, *args) + + def InitContextIterator(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRepCheck.BRepCheck_Result_InitContextIterator(self, *args) + + def IsBlind(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _BRepCheck.BRepCheck_Result_IsBlind(self, *args) + + def IsMinimum(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _BRepCheck.BRepCheck_Result_IsMinimum(self, *args) + + def IsStatusOnShape(self, *args): + r""" + + Parameters + ---------- + theShape: TopoDS_Shape + + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _BRepCheck.BRepCheck_Result_IsStatusOnShape(self, *args) + + def Minimum(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRepCheck.BRepCheck_Result_Minimum(self, *args) + + def MoreShapeInContext(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _BRepCheck.BRepCheck_Result_MoreShapeInContext(self, *args) + + def NextShapeInContext(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRepCheck.BRepCheck_Result_NextShapeInContext(self, *args) + + def SetFailStatus(self, *args): + r""" + + Parameters + ---------- + S: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRepCheck.BRepCheck_Result_SetFailStatus(self, *args) + + def SetParallel(self, *args): + r""" + + Parameters + ---------- + theIsParallel: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRepCheck.BRepCheck_Result_SetParallel(self, *args) + + def Status(self, *args): + r""" + Return + ------- + BRepCheck_ListOfStatus + + Description + ----------- + No available documentation. + + """ + return _BRepCheck.BRepCheck_Result_Status(self, *args) + + def StatusOnShape(self, *args): + r""" + Return + ------- + BRepCheck_ListOfStatus + + Description + ----------- + No available documentation. + + Parameters + ---------- + theShape: TopoDS_Shape + + Return + ------- + BRepCheck_ListOfStatus + + Description + ----------- + No available documentation. + + """ + return _BRepCheck.BRepCheck_Result_StatusOnShape(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_BRepCheck_Result_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepCheck.delete_BRepCheck_Result + +# Register BRepCheck_Result in _BRepCheck: +_BRepCheck.BRepCheck_Result_swigregister(BRepCheck_Result) +class BRepCheck_Edge(BRepCheck_Result): + 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 + ---------- + E: TopoDS_Edge + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _BRepCheck.BRepCheck_Edge_swiginit(self, _BRepCheck.new_BRepCheck_Edge(*args)) + + def CheckPolygonOnTriangulation(self, *args): + r""" + + Parameters + ---------- + theEdge: TopoDS_Edge + + Return + ------- + BRepCheck_Status + + Description + ----------- + Checks, if polygon on triangulation of heEdge is out of 3D-curve of this edge. + + """ + return _BRepCheck.BRepCheck_Edge_CheckPolygonOnTriangulation(self, *args) + + def GeometricControls(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + Parameters + ---------- + B: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRepCheck.BRepCheck_Edge_GeometricControls(self, *args) + + def IsExactMethod(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns true if exact method selected. + + """ + return _BRepCheck.BRepCheck_Edge_IsExactMethod(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 _BRepCheck.BRepCheck_Edge_SetExactMethod(self, *args) + + def SetStatus(self, *args): + r""" + + Parameters + ---------- + theStatus: BRepCheck_Status + + Return + ------- + None + + Description + ----------- + Sets status of Edge;. + + """ + return _BRepCheck.BRepCheck_Edge_SetStatus(self, *args) + + def Tolerance(self, *args): + r""" + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _BRepCheck.BRepCheck_Edge_Tolerance(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_BRepCheck_Edge_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepCheck.delete_BRepCheck_Edge + +# Register BRepCheck_Edge in _BRepCheck: +_BRepCheck.BRepCheck_Edge_swigregister(BRepCheck_Edge) +class BRepCheck_Face(BRepCheck_Result): + 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 + ---------- + F: TopoDS_Face + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _BRepCheck.BRepCheck_Face_swiginit(self, _BRepCheck.new_BRepCheck_Face(*args)) + + def ClassifyWires(self, *args): + r""" + + Parameters + ---------- + Update: bool (optional, default to Standard_False) + + Return + ------- + BRepCheck_Status + + Description + ----------- + No available documentation. + + """ + return _BRepCheck.BRepCheck_Face_ClassifyWires(self, *args) + + def GeometricControls(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + Parameters + ---------- + B: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRepCheck.BRepCheck_Face_GeometricControls(self, *args) + + def IntersectWires(self, *args): + r""" + + Parameters + ---------- + Update: bool (optional, default to Standard_False) + + Return + ------- + BRepCheck_Status + + Description + ----------- + No available documentation. + + """ + return _BRepCheck.BRepCheck_Face_IntersectWires(self, *args) + + def IsUnorientable(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _BRepCheck.BRepCheck_Face_IsUnorientable(self, *args) + + def OrientationOfWires(self, *args): + r""" + + Parameters + ---------- + Update: bool (optional, default to Standard_False) + + Return + ------- + BRepCheck_Status + + Description + ----------- + No available documentation. + + """ + return _BRepCheck.BRepCheck_Face_OrientationOfWires(self, *args) + + def SetStatus(self, *args): + r""" + + Parameters + ---------- + theStatus: BRepCheck_Status + + Return + ------- + None + + Description + ----------- + Sets status of Face;. + + """ + return _BRepCheck.BRepCheck_Face_SetStatus(self, *args) + + def SetUnorientable(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRepCheck.BRepCheck_Face_SetUnorientable(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_BRepCheck_Face_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepCheck.delete_BRepCheck_Face + +# Register BRepCheck_Face in _BRepCheck: +_BRepCheck.BRepCheck_Face_swigregister(BRepCheck_Face) +class BRepCheck_Shell(BRepCheck_Result): + 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: TopoDS_Shell + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _BRepCheck.BRepCheck_Shell_swiginit(self, _BRepCheck.new_BRepCheck_Shell(*args)) + + def Closed(self, *args): + r""" + + Parameters + ---------- + Update: bool (optional, default to Standard_False) + + Return + ------- + BRepCheck_Status + + Description + ----------- + Checks if the oriented faces of the shell give a closed shell. If the wire is closed, returns BRepCheck_NoError.If is set to Standard_True, registers the status in the list. + + """ + return _BRepCheck.BRepCheck_Shell_Closed(self, *args) + + def IsUnorientable(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _BRepCheck.BRepCheck_Shell_IsUnorientable(self, *args) + + def NbConnectedSet(self, *args): + r""" + + Parameters + ---------- + theSets: TopTools_ListOfShape + + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _BRepCheck.BRepCheck_Shell_NbConnectedSet(self, *args) + + def Orientation(self, *args): + r""" + + Parameters + ---------- + Update: bool (optional, default to Standard_False) + + Return + ------- + BRepCheck_Status + + Description + ----------- + Checks if the oriented faces of the shell are correctly oriented. An internal call is made to the method Closed. If is set to Standard_True, registers the status in the list. + + """ + return _BRepCheck.BRepCheck_Shell_Orientation(self, *args) + + def SetUnorientable(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRepCheck.BRepCheck_Shell_SetUnorientable(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_BRepCheck_Shell_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepCheck.delete_BRepCheck_Shell + +# Register BRepCheck_Shell in _BRepCheck: +_BRepCheck.BRepCheck_Shell_swigregister(BRepCheck_Shell) +class BRepCheck_Solid(BRepCheck_Result): + 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 + ---------- + theS: TopoDS_Solid + + Return + ------- + None + + Description + ----------- + Constructor is the solid to check. + + """ + _BRepCheck.BRepCheck_Solid_swiginit(self, _BRepCheck.new_BRepCheck_Solid(*args)) + + + @staticmethod + def DownCast(t): + return Handle_BRepCheck_Solid_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepCheck.delete_BRepCheck_Solid + +# Register BRepCheck_Solid in _BRepCheck: +_BRepCheck.BRepCheck_Solid_swigregister(BRepCheck_Solid) +class BRepCheck_Vertex(BRepCheck_Result): + 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 + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _BRepCheck.BRepCheck_Vertex_swiginit(self, _BRepCheck.new_BRepCheck_Vertex(*args)) + + def Tolerance(self, *args): + r""" + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _BRepCheck.BRepCheck_Vertex_Tolerance(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_BRepCheck_Vertex_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepCheck.delete_BRepCheck_Vertex + +# Register BRepCheck_Vertex in _BRepCheck: +_BRepCheck.BRepCheck_Vertex_swigregister(BRepCheck_Vertex) +class BRepCheck_Wire(BRepCheck_Result): + 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 + ---------- + W: TopoDS_Wire + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _BRepCheck.BRepCheck_Wire_swiginit(self, _BRepCheck.new_BRepCheck_Wire(*args)) + + def Closed(self, *args): + r""" + + Parameters + ---------- + Update: bool (optional, default to Standard_False) + + Return + ------- + BRepCheck_Status + + Description + ----------- + Checks if the oriented edges of the wire give a closed wire. If the wire is closed, returns BRepCheck_NoError. Warning: if the first and last edge are infinite, the wire will be considered as a closed one. If is set to Standard_True, registers the status in the list. May return (and registers): **BRepCheck_NotConnected, if wire is not topologically closed **BRepCheck_RedundantEdge, if an edge is in wire more than 3 times or in case of 2 occurrences if not with FORWARD and REVERSED orientation. **BRepCheck_NoError. + + """ + return _BRepCheck.BRepCheck_Wire_Closed(self, *args) + + def Closed2d(self, *args): + r""" + + Parameters + ---------- + F: TopoDS_Face + Update: bool (optional, default to Standard_False) + + Return + ------- + BRepCheck_Status + + Description + ----------- + Checks if edges of the wire give a wire closed in 2d space. Returns BRepCheck_NoError, or BRepCheck_NotClosed If is set to Standard_True, registers the status in the list. + + """ + return _BRepCheck.BRepCheck_Wire_Closed2d(self, *args) + + def GeometricControls(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + report SelfIntersect() check would be (is) done. + + Parameters + ---------- + B: bool + + Return + ------- + None + + Description + ----------- + set SelfIntersect() to be checked. + + """ + return _BRepCheck.BRepCheck_Wire_GeometricControls(self, *args) + + def Orientation(self, *args): + r""" + + Parameters + ---------- + F: TopoDS_Face + Update: bool (optional, default to Standard_False) + + Return + ------- + BRepCheck_Status + + Description + ----------- + Checks if the oriented edges of the wire are correctly oriented. An internal call is made to the method Closed. If no face exists, call the method with a null face (TopoDS_face()). If is set to Standard_True, registers the status in the list. May return (and registers): BRepCheck_InvalidDegeneratedFlag, BRepCheck_BadOrientationOfSubshape, BRepCheck_NotClosed, BRepCheck_NoError. + + """ + return _BRepCheck.BRepCheck_Wire_Orientation(self, *args) + + def SelfIntersect(self, *args): + r""" + + Parameters + ---------- + F: TopoDS_Face + E1: TopoDS_Edge + E2: TopoDS_Edge + Update: bool (optional, default to Standard_False) + + Return + ------- + BRepCheck_Status + + Description + ----------- + Checks if the wire intersect itself on the face . and are the first intersecting edges found. may be a null edge when a self-intersecting edge is found.If is set to Standard_True, registers the status in the list. May return (and register): BRepCheck_EmptyWire, BRepCheck_SelfIntersectingWire, BRepCheck_NoCurveOnSurface, BRepCheck_NoError. + + """ + return _BRepCheck.BRepCheck_Wire_SelfIntersect(self, *args) + + def SetStatus(self, *args): + r""" + + Parameters + ---------- + theStatus: BRepCheck_Status + + Return + ------- + None + + Description + ----------- + Sets status of Wire;. + + """ + return _BRepCheck.BRepCheck_Wire_SetStatus(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_BRepCheck_Wire_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepCheck.delete_BRepCheck_Wire + +# Register BRepCheck_Wire in _BRepCheck: +_BRepCheck.BRepCheck_Wire_swigregister(BRepCheck_Wire) + + + +@deprecated +def brepcheck_Add(*args): + return brepcheck.Add(*args) + +@deprecated +def brepcheck_PrecCurve(*args): + return brepcheck.PrecCurve(*args) + +@deprecated +def brepcheck_PrecSurface(*args): + return brepcheck.PrecSurface(*args) + +@deprecated +def brepcheck_Print(*args): + return brepcheck.Print(*args) + +@deprecated +def brepcheck_SelfIntersection(*args): + return brepcheck.SelfIntersection(*args) + + + diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BRepFeat.py b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BRepFeat.py new file mode 100644 index 0000000000000000000000000000000000000000..94c4925ec5efbf5f5c004332e5e499040b6c7925 --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BRepFeat.py @@ -0,0 +1,2792 @@ +# 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. + +""" +BRepFeat module, see official documentation at +https://dev.opencascade.org/doc/occt-7.9.0/refman/html/package_brepfeat.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 _BRepFeat +else: + import _BRepFeat + +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__ = _BRepFeat.delete_SwigPyIterator + + def value(self): + return _BRepFeat.SwigPyIterator_value(self) + + def incr(self, n=1): + return _BRepFeat.SwigPyIterator_incr(self, n) + + def decr(self, n=1): + return _BRepFeat.SwigPyIterator_decr(self, n) + + def distance(self, x): + return _BRepFeat.SwigPyIterator_distance(self, x) + + def equal(self, x): + return _BRepFeat.SwigPyIterator_equal(self, x) + + def copy(self): + return _BRepFeat.SwigPyIterator_copy(self) + + def next(self): + return _BRepFeat.SwigPyIterator_next(self) + + def __next__(self): + return _BRepFeat.SwigPyIterator___next__(self) + + def previous(self): + return _BRepFeat.SwigPyIterator_previous(self) + + def advance(self, n): + return _BRepFeat.SwigPyIterator_advance(self, n) + + def __eq__(self, x): + return _BRepFeat.SwigPyIterator___eq__(self, x) + + def __ne__(self, x): + return _BRepFeat.SwigPyIterator___ne__(self, x) + + def __iadd__(self, n): + return _BRepFeat.SwigPyIterator___iadd__(self, n) + + def __isub__(self, n): + return _BRepFeat.SwigPyIterator___isub__(self, n) + + def __add__(self, n): + return _BRepFeat.SwigPyIterator___add__(self, n) + + def __sub__(self, *args): + return _BRepFeat.SwigPyIterator___sub__(self, *args) + def __iter__(self): + return self + +# Register SwigPyIterator in _BRepFeat: +_BRepFeat.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 a String on the Stream and returns . + + """ + return _BRepFeat.brepfeat_Print(*args) + + @staticmethod + def SampleEdges(*args): + r""" + + Parameters + ---------- + S: TopoDS_Shape + Pt: TColgp_SequenceOfPnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRepFeat.brepfeat_SampleEdges(*args) + + @staticmethod + def Tool(*args): + r""" + + Parameters + ---------- + SRef: TopoDS_Shape + Fac: TopoDS_Face + Orf: TopAbs_Orientation + + Return + ------- + TopoDS_Solid + + Description + ----------- + No available documentation. + + """ + return _BRepFeat.brepfeat_Tool(*args) + + __repr__ = _dumps_object + + @methodnotwrapped + def IsInOut(self): + pass + + + def __init__(self): + _BRepFeat.brepfeat_swiginit(self, _BRepFeat.new_brepfeat()) + __swig_destroy__ = _BRepFeat.delete_brepfeat + +# Register brepfeat in _BRepFeat: +_BRepFeat.brepfeat_swigregister(brepfeat) +class BRepFeat_Builder(OCC.Core.BOPAlgo.BOPAlgo_BOP): + 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. + + """ + _BRepFeat.BRepFeat_Builder_swiginit(self, _BRepFeat.new_BRepFeat_Builder(*args)) + + def CheckSolidImages(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Collects the images of the object, that contains in the images of the tool. + + """ + return _BRepFeat.BRepFeat_Builder_CheckSolidImages(self, *args) + + def FillRemoved(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Collects the removed parts of the tool into myRemoved map. + + Parameters + ---------- + theS: TopoDS_Shape + theM: TopTools_MapOfShape + + Return + ------- + None + + Description + ----------- + Adds the shape S and its sub-shapes into myRemoved map. + + """ + return _BRepFeat.BRepFeat_Builder_FillRemoved(self, *args) + + def Init(self, *args): + r""" + + Parameters + ---------- + theShape: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + Initializes the object of local boolean operation. + + Parameters + ---------- + theShape: TopoDS_Shape + theTool: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + Initializes the arguments of local boolean operation. + + """ + return _BRepFeat.BRepFeat_Builder_Init(self, *args) + + def KeepPart(self, *args): + r""" + + Parameters + ---------- + theS: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + Adds shape theS and all its sub-shapes into myShapes map. + + """ + return _BRepFeat.BRepFeat_Builder_KeepPart(self, *args) + + def KeepParts(self, *args): + r""" + + Parameters + ---------- + theIm: TopTools_ListOfShape + + Return + ------- + None + + Description + ----------- + Initializes parts of the tool for second step of algorithm. Collects shapes and all sub-shapes into myShapes map. + + """ + return _BRepFeat.BRepFeat_Builder_KeepParts(self, *args) + + def PartsOfTool(self, *args): + r""" + + Parameters + ---------- + theLT: TopTools_ListOfShape + + Return + ------- + None + + Description + ----------- + Collects parts of the tool. + + """ + return _BRepFeat.BRepFeat_Builder_PartsOfTool(self, *args) + + def PerformResult(self, *args): + r""" + + Parameters + ---------- + theRange: Message_ProgressRange (optional, default to Message_ProgressRange()) + + Return + ------- + None + + Description + ----------- + Main function to build the result of the local operation required. + + """ + return _BRepFeat.BRepFeat_Builder_PerformResult(self, *args) + + def RebuildEdge(self, *args): + r""" + + Parameters + ---------- + theE: TopoDS_Shape + theF: TopoDS_Face + theME: TopTools_MapOfShape + aLEIm: TopTools_ListOfShape + + Return + ------- + None + + Description + ----------- + Rebuilds edges in accordance with the kept parts of the tool. + + """ + return _BRepFeat.BRepFeat_Builder_RebuildEdge(self, *args) + + def RebuildFaces(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Rebuilds faces in accordance with the kept parts of the tool. + + """ + return _BRepFeat.BRepFeat_Builder_RebuildFaces(self, *args) + + def SetOperation(self, *args): + r""" + + Parameters + ---------- + theFuse: int + + Return + ------- + None + + Description + ----------- + Sets the operation of local boolean operation. If theFuse = 0 than the operation is CUT, otherwise FUSE. + + Parameters + ---------- + theFuse: int + theFlag: bool + + Return + ------- + None + + Description + ----------- + Sets the operation of local boolean operation. If theFlag = True it means that no selection of parts of the tool is needed, t.e. no second part. In that case if theFuse = 0 than operation is COMMON, otherwise CUT21. If theFlag = False SetOperation(theFuse) function is called. + + """ + return _BRepFeat.BRepFeat_Builder_SetOperation(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepFeat.delete_BRepFeat_Builder + +# Register BRepFeat_Builder in _BRepFeat: +_BRepFeat.BRepFeat_Builder_swigregister(BRepFeat_Builder) +class BRepFeat_Form(OCC.Core.BRepBuilderAPI.BRepBuilderAPI_MakeShape): + 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 BarycCurve(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _BRepFeat.BRepFeat_Form_BarycCurve(self, *args) + + def BasisShapeValid(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Initializes the topological construction if the basis shape is present. + + """ + return _BRepFeat.BRepFeat_Form_BasisShapeValid(self, *args) + + def CurrentStatusError(self, *args): + r""" + Return + ------- + BRepFeat_StatusError + + Description + ----------- + No available documentation. + + """ + return _BRepFeat.BRepFeat_Form_CurrentStatusError(self, *args) + + def Curves(self, *args): + r""" + + Parameters + ---------- + S: TColGeom_SequenceOfCurve + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRepFeat.BRepFeat_Form_Curves(self, *args) + + def FirstShape(self, *args): + r""" + Return + ------- + TopTools_ListOfShape + + Description + ----------- + Returns the list of shapes created at the bottom of the created form. It may be an empty list. + + """ + return _BRepFeat.BRepFeat_Form_FirstShape(self, *args) + + def GeneratedShapeValid(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Initializes the topological construction if the generated shape S is present. + + """ + return _BRepFeat.BRepFeat_Form_GeneratedShapeValid(self, *args) + + def GluedFacesValid(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Initializes the topological construction if the glued face is present. + + """ + return _BRepFeat.BRepFeat_Form_GluedFacesValid(self, *args) + + def LastShape(self, *args): + r""" + Return + ------- + TopTools_ListOfShape + + Description + ----------- + Returns the list of shapes created at the top of the created form. It may be an empty list. + + """ + return _BRepFeat.BRepFeat_Form_LastShape(self, *args) + + def NewEdges(self, *args): + r""" + Return + ------- + TopTools_ListOfShape + + Description + ----------- + Returns a list of the limiting and glueing edges generated by the feature. These edges did not originally exist in the basis shape. The list provides the information necessary for subsequent addition of fillets. It may be an empty list. + + """ + return _BRepFeat.BRepFeat_Form_NewEdges(self, *args) + + def PerfSelectionValid(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Initializes the topological construction if the selected face is present. + + """ + return _BRepFeat.BRepFeat_Form_PerfSelectionValid(self, *args) + + def ShapeFromValid(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Initializes the topological construction if the shape is present from the specified integer on. + + """ + return _BRepFeat.BRepFeat_Form_ShapeFromValid(self, *args) + + def ShapeUntilValid(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Initializes the topological construction if the shape is present until the specified integer. + + """ + return _BRepFeat.BRepFeat_Form_ShapeUntilValid(self, *args) + + def SketchFaceValid(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Initializes the topological construction if the sketch face is present. If the sketch face is inside the basis shape, local operations such as glueing can be performed. + + """ + return _BRepFeat.BRepFeat_Form_SketchFaceValid(self, *args) + + def TgtEdges(self, *args): + r""" + Return + ------- + TopTools_ListOfShape + + Description + ----------- + Returns a list of the tangent edges among the limiting and glueing edges generated by the feature. These edges did not originally exist in the basis shape and are tangent to the face against which the feature is built. The list provides the information necessary for subsequent addition of fillets. It may be an empty list. If an edge is tangent, no fillet is possible, and the edge must subsequently be removed if you want to add a fillet. + + """ + return _BRepFeat.BRepFeat_Form_TgtEdges(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepFeat.delete_BRepFeat_Form + +# Register BRepFeat_Form in _BRepFeat: +_BRepFeat.BRepFeat_Form_swigregister(BRepFeat_Form) +class BRepFeat_Gluer(OCC.Core.BRepBuilderAPI.BRepBuilderAPI_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 + ----------- + Initializes an empty constructor. + + Parameters + ---------- + Snew: TopoDS_Shape + Sbase: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + Initializes the shapes to be glued, the new shape Snew and the basis shape Sbase. + + """ + _BRepFeat.BRepFeat_Gluer_swiginit(self, _BRepFeat.new_BRepFeat_Gluer(*args)) + + def BasisShape(self, *args): + r""" + Return + ------- + TopoDS_Shape + + Description + ----------- + Returns the basis shape of the compound shape. + + """ + return _BRepFeat.BRepFeat_Gluer_BasisShape(self, *args) + + def Bind(self, *args): + r""" + + Parameters + ---------- + Fnew: TopoDS_Face + Fbase: TopoDS_Face + + Return + ------- + None + + Description + ----------- + Defines a contact between Fnew on the new shape Snew and Fbase on the basis shape Sbase. Informs other methods that Fnew in the new shape Snew is connected to the face Fbase in the basis shape Sbase. The contact faces of the glued shape must not have parts outside the contact faces of the basis shape. This indicates that glueing is possible. + + Parameters + ---------- + Enew: TopoDS_Edge + Ebase: TopoDS_Edge + + Return + ------- + None + + Description + ----------- + nforms other methods that the edge Enew in the new shape is the same as the edge Ebase in the basis shape and is therefore attached to the basis shape. This indicates that glueing is possible. + + """ + return _BRepFeat.BRepFeat_Gluer_Bind(self, *args) + + def GluedShape(self, *args): + r""" + Return + ------- + TopoDS_Shape + + Description + ----------- + Returns the resulting compound shape. + + """ + return _BRepFeat.BRepFeat_Gluer_GluedShape(self, *args) + + def Init(self, *args): + r""" + + Parameters + ---------- + Snew: TopoDS_Shape + Sbase: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + Initializes the new shape Snew and the basis shape Sbase for the local glueing operation. + + """ + return _BRepFeat.BRepFeat_Gluer_Init(self, *args) + + def OpeType(self, *args): + r""" + Return + ------- + LocOpe_Operation + + Description + ----------- + Determine which operation type to use glueing or sliding. + + """ + return _BRepFeat.BRepFeat_Gluer_OpeType(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepFeat.delete_BRepFeat_Gluer + +# Register BRepFeat_Gluer in _BRepFeat: +_BRepFeat.BRepFeat_Gluer_swigregister(BRepFeat_Gluer) +class BRepFeat_RibSlot(OCC.Core.BRepBuilderAPI.BRepBuilderAPI_MakeShape): + 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 + + @staticmethod + def ChoiceOfFaces(*args): + r""" + + Parameters + ---------- + faces: TopTools_ListOfShape + cc: Geom_Curve + par: float + bnd: float + Pln: Geom_Plane + + Return + ------- + TopoDS_Face + + Description + ----------- + No available documentation. + + """ + return _BRepFeat.BRepFeat_RibSlot_ChoiceOfFaces(*args) + + def CurrentStatusError(self, *args): + r""" + Return + ------- + BRepFeat_StatusError + + Description + ----------- + No available documentation. + + """ + return _BRepFeat.BRepFeat_RibSlot_CurrentStatusError(self, *args) + + def FacesForDraft(self, *args): + r""" + Return + ------- + TopTools_ListOfShape + + Description + ----------- + Returns a list of the limiting and glueing faces generated by the feature. These faces did not originally exist in the basis shape. The list provides the information necessary for subsequent addition of a draft to a face. It may be an empty list. If a face has tangent edges, no draft is possible, and the tangent edges must subsequently be removed if you want to add a draft to the face. + + """ + return _BRepFeat.BRepFeat_RibSlot_FacesForDraft(self, *args) + + def FirstShape(self, *args): + r""" + Return + ------- + TopTools_ListOfShape + + Description + ----------- + Returns the list of shapes created at the bottom of the created form. It may be an empty list. + + """ + return _BRepFeat.BRepFeat_RibSlot_FirstShape(self, *args) + + @staticmethod + def IntPar(*args): + r""" + + Parameters + ---------- + C: Geom_Curve + P: gp_Pnt + + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _BRepFeat.BRepFeat_RibSlot_IntPar(*args) + + def LastShape(self, *args): + r""" + Return + ------- + TopTools_ListOfShape + + Description + ----------- + Returns the list of shapes created at the top of the created form. It may be an empty list. + + """ + return _BRepFeat.BRepFeat_RibSlot_LastShape(self, *args) + + def NewEdges(self, *args): + r""" + Return + ------- + TopTools_ListOfShape + + Description + ----------- + Returns a list of the limiting and glueing edges generated by the feature. These edges did not originally exist in the basis shape. The list provides the information necessary for subsequent addition of fillets. It may be an empty list. + + """ + return _BRepFeat.BRepFeat_RibSlot_NewEdges(self, *args) + + def TgtEdges(self, *args): + r""" + Return + ------- + TopTools_ListOfShape + + Description + ----------- + Returns a list of the tangent edges among the limiting and glueing edges generated by the feature. These edges did not originally exist in the basis shape and are tangent to the face against which the feature is built. The list provides the information necessary for subsequent addition of fillets. It may be an empty list. If an edge is tangent, no fillet is possible, and the edge must subsequently be removed if you want to add a fillet. + + """ + return _BRepFeat.BRepFeat_RibSlot_TgtEdges(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepFeat.delete_BRepFeat_RibSlot + +# Register BRepFeat_RibSlot in _BRepFeat: +_BRepFeat.BRepFeat_RibSlot_swigregister(BRepFeat_RibSlot) +class BRepFeat_SplitShape(OCC.Core.BRepBuilderAPI.BRepBuilderAPI_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 + ----------- + Empty constructor. + + Parameters + ---------- + S: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + Creates the process with the shape . + + """ + _BRepFeat.BRepFeat_SplitShape_swiginit(self, _BRepFeat.new_BRepFeat_SplitShape(*args)) + + def Add(self, *args): + r""" + + Parameters + ---------- + theEdges: TopTools_SequenceOfShape + + Return + ------- + bool + + Description + ----------- + Add splitting edges or wires for whole initial shape without additional specification edge->face, edge->edge This method puts edge on the corresponding faces from initial shape. + + Parameters + ---------- + W: TopoDS_Wire + F: TopoDS_Face + + Return + ------- + None + + Description + ----------- + Adds the wire on the face . Raises NoSuchObject if does not belong to the original shape. + + Parameters + ---------- + E: TopoDS_Edge + F: TopoDS_Face + + Return + ------- + None + + Description + ----------- + Adds the edge on the face . + + Parameters + ---------- + Comp: TopoDS_Compound + F: TopoDS_Face + + Return + ------- + None + + Description + ----------- + Adds the compound on the face . The compound must consist of edges lying on the face . If edges are geometrically connected, they must be connected topologically, i.e. they must share common vertices. //! Raises NoSuchObject if does not belong to the original shape. + + Parameters + ---------- + E: TopoDS_Edge + EOn: TopoDS_Edge + + Return + ------- + None + + Description + ----------- + Adds the edge on the existing edge . + + """ + return _BRepFeat.BRepFeat_SplitShape_Add(self, *args) + + def DirectLeft(self, *args): + r""" + Return + ------- + TopTools_ListOfShape + + Description + ----------- + Returns the faces which are the left of the projected wires. + + """ + return _BRepFeat.BRepFeat_SplitShape_DirectLeft(self, *args) + + def Init(self, *args): + r""" + + Parameters + ---------- + S: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + Initializes the process on the shape . + + """ + return _BRepFeat.BRepFeat_SplitShape_Init(self, *args) + + def Left(self, *args): + r""" + Return + ------- + TopTools_ListOfShape + + Description + ----------- + Returns the faces of the 'left' part on the shape. (It is build from DirectLeft, with the faces connected to this set, and so on...). Raises NotDone if IsDone returns . + + """ + return _BRepFeat.BRepFeat_SplitShape_Left(self, *args) + + def Right(self, *args): + r""" + Return + ------- + TopTools_ListOfShape + + Description + ----------- + Returns the faces of the 'right' part on the shape. + + """ + return _BRepFeat.BRepFeat_SplitShape_Right(self, *args) + + def SetCheckInterior(self, *args): + r""" + + Parameters + ---------- + ToCheckInterior: bool + + Return + ------- + None + + Description + ----------- + Set the flag of check internal intersections default value is True (to check). + + """ + return _BRepFeat.BRepFeat_SplitShape_SetCheckInterior(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepFeat.delete_BRepFeat_SplitShape + +# Register BRepFeat_SplitShape in _BRepFeat: +_BRepFeat.BRepFeat_SplitShape_swigregister(BRepFeat_SplitShape) +class BRepFeat_MakeCylindricalHole(BRepFeat_Builder): + 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 + ----------- + Empty constructor. + + """ + _BRepFeat.BRepFeat_MakeCylindricalHole_swiginit(self, _BRepFeat.new_BRepFeat_MakeCylindricalHole(*args)) + + def Build(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Builds the resulting shape (redefined from MakeShape). Invalidates the given parts of tools if any, and performs the result of the local operation. + + """ + return _BRepFeat.BRepFeat_MakeCylindricalHole_Build(self, *args) + + def Init(self, *args): + r""" + + Parameters + ---------- + Axis: gp_Ax1 + + Return + ------- + None + + Description + ----------- + Sets the axis of the hole(s). + + Parameters + ---------- + S: TopoDS_Shape + Axis: gp_Ax1 + + Return + ------- + None + + Description + ----------- + Sets the shape and axis on which hole(s) will be performed. + + """ + return _BRepFeat.BRepFeat_MakeCylindricalHole_Init(self, *args) + + def Perform(self, *args): + r""" + + Parameters + ---------- + Radius: float + + Return + ------- + None + + Description + ----------- + Performs every hole of radius . This command has the same effect as a cut operation with an infinite cylinder defined by the given axis and . + + Parameters + ---------- + Radius: float + PFrom: float + PTo: float + WithControl: bool (optional, default to Standard_True) + + Return + ------- + None + + Description + ----------- + Performs every hole of radius located between PFrom and PTo on the given axis. If is set to Standard_False no control are done on the resulting shape after the operation is performed. + + """ + return _BRepFeat.BRepFeat_MakeCylindricalHole_Perform(self, *args) + + def PerformBlind(self, *args): + r""" + + Parameters + ---------- + Radius: float + Length: float + WithControl: bool (optional, default to Standard_True) + + Return + ------- + None + + Description + ----------- + Performs a blind hole of radius and length . The length is measured from the origin of the given axis. If is set to Standard_False no control are done after the operation is performed. + + """ + return _BRepFeat.BRepFeat_MakeCylindricalHole_PerformBlind(self, *args) + + def PerformThruNext(self, *args): + r""" + + Parameters + ---------- + Radius: float + WithControl: bool (optional, default to Standard_True) + + Return + ------- + None + + Description + ----------- + Performs the first hole of radius , in the direction of the defined axis. First hole signify first encountered after the origin of the axis. If is set to Standard_False no control are done on the resulting shape after the operation is performed. + + """ + return _BRepFeat.BRepFeat_MakeCylindricalHole_PerformThruNext(self, *args) + + def PerformUntilEnd(self, *args): + r""" + + Parameters + ---------- + Radius: float + WithControl: bool (optional, default to Standard_True) + + Return + ------- + None + + Description + ----------- + Performs every hole of radius located after the origin of the given axis. If is set to Standard_False no control are done on the resulting shape after the operation is performed. + + """ + return _BRepFeat.BRepFeat_MakeCylindricalHole_PerformUntilEnd(self, *args) + + def Status(self, *args): + r""" + Return + ------- + BRepFeat_Status + + Description + ----------- + Returns the status after a hole is performed. + + """ + return _BRepFeat.BRepFeat_MakeCylindricalHole_Status(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepFeat.delete_BRepFeat_MakeCylindricalHole + +# Register BRepFeat_MakeCylindricalHole in _BRepFeat: +_BRepFeat.BRepFeat_MakeCylindricalHole_swigregister(BRepFeat_MakeCylindricalHole) +class BRepFeat_MakeDPrism(BRepFeat_Form): + 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 + ---------- + Sbase: TopoDS_Shape + Pbase: TopoDS_Face + Skface: TopoDS_Face + Angle: float + Fuse: int + Modify: bool + + Return + ------- + None + + Description + ----------- + A face Pbase is selected in the shape Sbase to serve as the basis for the draft prism. The draft will be defined by the angle Angle and Fuse offers a choice between: - removing matter with a Boolean cut using the setting 0 - adding matter with Boolean fusion using the setting 1. The sketch face Skface serves to determine the type of operation. If it is inside the basis shape, a local operation such as glueing can be performed. Initializes the draft prism class. + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _BRepFeat.BRepFeat_MakeDPrism_swiginit(self, _BRepFeat.new_BRepFeat_MakeDPrism(*args)) + + def Add(self, *args): + r""" + + Parameters + ---------- + E: TopoDS_Edge + OnFace: TopoDS_Face + + Return + ------- + None + + Description + ----------- + Indicates that the edge will slide on the face . Raises ConstructionError if the face does not belong to the basis shape, or the edge to the prismed shape. + + """ + return _BRepFeat.BRepFeat_MakeDPrism_Add(self, *args) + + def BossEdges(self, *args): + r""" + + Parameters + ---------- + sig: int + + Return + ------- + None + + Description + ----------- + Determination of TopEdges and LatEdges. sig = 1 -> TopEdges = FirstShape of the DPrism sig = 2 -> TOpEdges = LastShape of the DPrism. + + """ + return _BRepFeat.BRepFeat_MakeDPrism_BossEdges(self, *args) + + def Init(self, *args): + r""" + + Parameters + ---------- + Sbase: TopoDS_Shape + Pbase: TopoDS_Face + Skface: TopoDS_Face + Angle: float + Fuse: int + Modify: bool + + Return + ------- + None + + Description + ----------- + Initializes this algorithm for building draft prisms along surfaces. A face Pbase is selected in the basis shape Sbase to serve as the basis from the draft prism. The draft will be defined by the angle Angle and Fuse offers a choice between: - removing matter with a Boolean cut using the setting 0 - adding matter with Boolean fusion using the setting 1. The sketch face Skface serves to determine the type of operation. If it is inside the basis shape, a local operation such as glueing can be performed. + + """ + return _BRepFeat.BRepFeat_MakeDPrism_Init(self, *args) + + def LatEdges(self, *args): + r""" + Return + ------- + TopTools_ListOfShape + + Description + ----------- + Returns the list of TopoDS Edges of the bottom of the boss. + + """ + return _BRepFeat.BRepFeat_MakeDPrism_LatEdges(self, *args) + + def Perform(self, *args): + r""" + + Parameters + ---------- + Height: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + Until: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + From: TopoDS_Shape + Until: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + Assigns one of the following semantics - to a height Height - to a face Until - from a face From to a height Until. Reconstructs the feature topologically according to the semantic option chosen. + + """ + return _BRepFeat.BRepFeat_MakeDPrism_Perform(self, *args) + + def PerformFromEnd(self, *args): + r""" + + Parameters + ---------- + FUntil: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + Realizes a semi-infinite prism, limited by the face Funtil. + + """ + return _BRepFeat.BRepFeat_MakeDPrism_PerformFromEnd(self, *args) + + def PerformThruAll(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Builds an infinite prism. The infinite descendants will not be kept in the result. + + """ + return _BRepFeat.BRepFeat_MakeDPrism_PerformThruAll(self, *args) + + def PerformUntilEnd(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Realizes a semi-infinite prism, limited by the position of the prism base. + + """ + return _BRepFeat.BRepFeat_MakeDPrism_PerformUntilEnd(self, *args) + + def PerformUntilHeight(self, *args): + r""" + + Parameters + ---------- + Until: TopoDS_Shape + Height: float + + Return + ------- + None + + Description + ----------- + Assigns both a limiting shape, Until from TopoDS_Shape, and a height, Height at which to stop generation of the prism feature. + + """ + return _BRepFeat.BRepFeat_MakeDPrism_PerformUntilHeight(self, *args) + + def TopEdges(self, *args): + r""" + Return + ------- + TopTools_ListOfShape + + Description + ----------- + Returns the list of TopoDS Edges of the top of the boss. + + """ + return _BRepFeat.BRepFeat_MakeDPrism_TopEdges(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepFeat.delete_BRepFeat_MakeDPrism + +# Register BRepFeat_MakeDPrism in _BRepFeat: +_BRepFeat.BRepFeat_MakeDPrism_swigregister(BRepFeat_MakeDPrism) +class BRepFeat_MakeLinearForm(BRepFeat_RibSlot): + 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 + ----------- + initializes the linear form class. + + Parameters + ---------- + Sbase: TopoDS_Shape + W: TopoDS_Wire + P: Geom_Plane + Direction: gp_Vec + Direction1: gp_Vec + Fuse: int + Modify: bool + + Return + ------- + None + + Description + ----------- + contour W, a shape Sbase and a plane P are initialized to serve as the basic elements in the construction of the rib or groove. Direction and Direction1 give The vectors for defining the direction(s) in which thickness will be built up. Fuse offers a choice between: - removing matter with a Boolean cut using the setting 0 in case of the groove - adding matter with Boolean fusion using the setting 1 in case of the rib. + + """ + _BRepFeat.BRepFeat_MakeLinearForm_swiginit(self, _BRepFeat.new_BRepFeat_MakeLinearForm(*args)) + + def Add(self, *args): + r""" + + Parameters + ---------- + E: TopoDS_Edge + OnFace: TopoDS_Face + + Return + ------- + None + + Description + ----------- + Indicates that the edge will slide on the face . Raises ConstructionError if the face does not belong to the basis shape, or the edge to the prismed shape. + + """ + return _BRepFeat.BRepFeat_MakeLinearForm_Add(self, *args) + + def Init(self, *args): + r""" + + Parameters + ---------- + Sbase: TopoDS_Shape + W: TopoDS_Wire + P: Geom_Plane + Direction: gp_Vec + Direction1: gp_Vec + Fuse: int + Modify: bool + + Return + ------- + None + + Description + ----------- + Initializes this construction algorithm. A contour W, a shape Sbase and a plane P are initialized to serve as the basic elements in the construction of the rib or groove. The vectors for defining the direction(s) in which thickness will be built up are given by Direction and Direction1. Fuse offers a choice between: - removing matter with a Boolean cut using the setting 0 in case of the groove - adding matter with Boolean fusion using the setting 1 in case of the rib. + + """ + return _BRepFeat.BRepFeat_MakeLinearForm_Init(self, *args) + + def Perform(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Performs a prism from the wire to the plane along the basis shape Sbase. Reconstructs the feature topologically. + + """ + return _BRepFeat.BRepFeat_MakeLinearForm_Perform(self, *args) + + def Propagate(self, *args): + r""" + + Parameters + ---------- + L: TopTools_ListOfShape + F: TopoDS_Face + FPoint: gp_Pnt + LPoint: gp_Pnt + + Return + ------- + falseside: bool + + Description + ----------- + No available documentation. + + """ + return _BRepFeat.BRepFeat_MakeLinearForm_Propagate(self, *args) + + __repr__ = _dumps_object + + @methodnotwrapped + def TransformShapeFU(self): + pass + + __swig_destroy__ = _BRepFeat.delete_BRepFeat_MakeLinearForm + +# Register BRepFeat_MakeLinearForm in _BRepFeat: +_BRepFeat.BRepFeat_MakeLinearForm_swigregister(BRepFeat_MakeLinearForm) +class BRepFeat_MakePipe(BRepFeat_Form): + 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 + ----------- + initializes the pipe class. + + Parameters + ---------- + Sbase: TopoDS_Shape + Pbase: TopoDS_Shape + Skface: TopoDS_Face + Spine: TopoDS_Wire + Fuse: int + Modify: bool + + Return + ------- + None + + Description + ----------- + A face Pbase is selected in the shape Sbase to serve as the basis for the pipe. It will be defined by the wire Spine. Fuse offers a choice between: - removing matter with a Boolean cut using the setting 0 - adding matter with Boolean fusion using the setting 1. The sketch face Skface serves to determine the type of operation. If it is inside the basis shape, a local operation such as glueing can be performed. + + """ + _BRepFeat.BRepFeat_MakePipe_swiginit(self, _BRepFeat.new_BRepFeat_MakePipe(*args)) + + def Add(self, *args): + r""" + + Parameters + ---------- + E: TopoDS_Edge + OnFace: TopoDS_Face + + Return + ------- + None + + Description + ----------- + Indicates that the edge will slide on the face . Raises ConstructionError if the face does not belong to the basis shape, or the edge to the prismed shape. + + """ + return _BRepFeat.BRepFeat_MakePipe_Add(self, *args) + + def Init(self, *args): + r""" + + Parameters + ---------- + Sbase: TopoDS_Shape + Pbase: TopoDS_Shape + Skface: TopoDS_Face + Spine: TopoDS_Wire + Fuse: int + Modify: bool + + Return + ------- + None + + Description + ----------- + Initializes this algorithm for adding pipes to shapes. A face Pbase is selected in the shape Sbase to serve as the basis for the pipe. It will be defined by the wire Spine. Fuse offers a choice between: - removing matter with a Boolean cut using the setting 0 - adding matter with Boolean fusion using the setting 1. The sketch face Skface serves to determine the type of operation. If it is inside the basis shape, a local operation such as glueing can be performed. + + """ + return _BRepFeat.BRepFeat_MakePipe_Init(self, *args) + + def Perform(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + Until: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + From: TopoDS_Shape + Until: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + Assigns one of the following semantics - to a face Until - from a face From to a height Until. Reconstructs the feature topologically according to the semantic option chosen. + + """ + return _BRepFeat.BRepFeat_MakePipe_Perform(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepFeat.delete_BRepFeat_MakePipe + +# Register BRepFeat_MakePipe in _BRepFeat: +_BRepFeat.BRepFeat_MakePipe_swigregister(BRepFeat_MakePipe) +class BRepFeat_MakePrism(BRepFeat_Form): + 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 + ----------- + Builds a prism by projecting a wire along the face of a shape. Initializes the prism class. + + Parameters + ---------- + Sbase: TopoDS_Shape + Pbase: TopoDS_Shape + Skface: TopoDS_Face + Direction: gp_Dir + Fuse: int + Modify: bool + + Return + ------- + None + + Description + ----------- + Builds a prism by projecting a wire along the face of a shape. a face Pbase is selected in the shape Sbase to serve as the basis for the prism. The orientation of the prism will be defined by the vector Direction. Fuse offers a choice between: - removing matter with a Boolean cut using the setting 0 - adding matter with Boolean fusion using the setting 1. The sketch face Skface serves to determine the type of operation. If it is inside the basis shape, a local operation such as glueing can be performed. Exceptions Standard_ConstructionError if the face does not belong to the basis or the prism shape. + + """ + _BRepFeat.BRepFeat_MakePrism_swiginit(self, _BRepFeat.new_BRepFeat_MakePrism(*args)) + + def Add(self, *args): + r""" + + Parameters + ---------- + E: TopoDS_Edge + OnFace: TopoDS_Face + + Return + ------- + None + + Description + ----------- + Indicates that the edge will slide on the face . Raises ConstructionError if the face does not belong to the basis shape, or the edge to the prismed shape. + + """ + return _BRepFeat.BRepFeat_MakePrism_Add(self, *args) + + def Init(self, *args): + r""" + + Parameters + ---------- + Sbase: TopoDS_Shape + Pbase: TopoDS_Shape + Skface: TopoDS_Face + Direction: gp_Dir + Fuse: int + Modify: bool + + Return + ------- + None + + Description + ----------- + Initializes this algorithm for building prisms along surfaces. A face Pbase is selected in the shape Sbase to serve as the basis for the prism. The orientation of the prism will be defined by the vector Direction. Fuse offers a choice between: - removing matter with a Boolean cut using the setting 0 - adding matter with Boolean fusion using the setting 1. The sketch face Skface serves to determine the type of operation. If it is inside the basis shape, a local operation such as glueing can be performed. + + """ + return _BRepFeat.BRepFeat_MakePrism_Init(self, *args) + + def Perform(self, *args): + r""" + + Parameters + ---------- + Length: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + Until: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + From: TopoDS_Shape + Until: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + Assigns one of the following semantics - to a height Length - to a face Until - from a face From to a height Until. Reconstructs the feature topologically according to the semantic option chosen. + + """ + return _BRepFeat.BRepFeat_MakePrism_Perform(self, *args) + + def PerformFromEnd(self, *args): + r""" + + Parameters + ---------- + FUntil: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + Realizes a semi-infinite prism, limited by the face Funtil. + + """ + return _BRepFeat.BRepFeat_MakePrism_PerformFromEnd(self, *args) + + def PerformThruAll(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Builds an infinite prism. The infinite descendants will not be kept in the result. + + """ + return _BRepFeat.BRepFeat_MakePrism_PerformThruAll(self, *args) + + def PerformUntilEnd(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Realizes a semi-infinite prism, limited by the position of the prism base. All other faces extend infinitely. + + """ + return _BRepFeat.BRepFeat_MakePrism_PerformUntilEnd(self, *args) + + def PerformUntilHeight(self, *args): + r""" + + Parameters + ---------- + Until: TopoDS_Shape + Length: float + + Return + ------- + None + + Description + ----------- + Assigns both a limiting shape, Until from TopoDS_Shape, and a height, Length at which to stop generation of the prism feature. + + """ + return _BRepFeat.BRepFeat_MakePrism_PerformUntilHeight(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepFeat.delete_BRepFeat_MakePrism + +# Register BRepFeat_MakePrism in _BRepFeat: +_BRepFeat.BRepFeat_MakePrism_swigregister(BRepFeat_MakePrism) +class BRepFeat_MakeRevol(BRepFeat_Form): + 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 + ----------- + initializes the revolved shell class. + + Parameters + ---------- + Sbase: TopoDS_Shape + Pbase: TopoDS_Shape + Skface: TopoDS_Face + Axis: gp_Ax1 + Fuse: int + Modify: bool + + Return + ------- + None + + Description + ----------- + a face Pbase is selected in the shape Sbase to serve as the basis for the revolved shell. The revolution will be defined by the axis Axis and Fuse offers a choice between: - removing matter with a Boolean cut using the setting 0 - adding matter with Boolean fusion using the setting 1. The sketch face Skface serves to determine the type of operation. If it is inside the basis shape, a local operation such as glueing can be performed. + + """ + _BRepFeat.BRepFeat_MakeRevol_swiginit(self, _BRepFeat.new_BRepFeat_MakeRevol(*args)) + + def Add(self, *args): + r""" + + Parameters + ---------- + E: TopoDS_Edge + OnFace: TopoDS_Face + + Return + ------- + None + + Description + ----------- + Indicates that the edge will slide on the face . Raises ConstructionError if the face does not belong to the basis shape, or the edge to the prismed shape. + + """ + return _BRepFeat.BRepFeat_MakeRevol_Add(self, *args) + + def Init(self, *args): + r""" + + Parameters + ---------- + Sbase: TopoDS_Shape + Pbase: TopoDS_Shape + Skface: TopoDS_Face + Axis: gp_Ax1 + Fuse: int + Modify: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BRepFeat.BRepFeat_MakeRevol_Init(self, *args) + + def Perform(self, *args): + r""" + + Parameters + ---------- + Angle: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + Until: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + From: TopoDS_Shape + Until: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + Reconstructs the feature topologically. + + """ + return _BRepFeat.BRepFeat_MakeRevol_Perform(self, *args) + + def PerformThruAll(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Builds an infinite shell. The infinite descendants will not be kept in the result. + + """ + return _BRepFeat.BRepFeat_MakeRevol_PerformThruAll(self, *args) + + def PerformUntilAngle(self, *args): + r""" + + Parameters + ---------- + Until: TopoDS_Shape + Angle: float + + Return + ------- + None + + Description + ----------- + Assigns both a limiting shape, Until from TopoDS_Shape, and an angle, Angle at which to stop generation of the revolved shell feature. + + """ + return _BRepFeat.BRepFeat_MakeRevol_PerformUntilAngle(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepFeat.delete_BRepFeat_MakeRevol + +# Register BRepFeat_MakeRevol in _BRepFeat: +_BRepFeat.BRepFeat_MakeRevol_swigregister(BRepFeat_MakeRevol) +class BRepFeat_MakeRevolutionForm(BRepFeat_RibSlot): + 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 + ----------- + initializes the linear form class. + + Parameters + ---------- + Sbase: TopoDS_Shape + W: TopoDS_Wire + Plane: Geom_Plane + Axis: gp_Ax1 + Height1: float + Height2: float + Fuse: int + + Return + ------- + Sliding: bool + + Description + ----------- + a contour W, a shape Sbase and a plane P are initialized to serve as the basic elements in the construction of the rib or groove. The axis Axis of the revolved surface in the basis shape defines the feature's axis of revolution. Height1 and Height2 may be used as limits to the construction of the feature. Fuse offers a choice between: - removing matter with a Boolean cut using the setting 0 in case of the groove - adding matter with Boolean fusion using the setting 1 in case of the rib. + + """ + _BRepFeat.BRepFeat_MakeRevolutionForm_swiginit(self, _BRepFeat.new_BRepFeat_MakeRevolutionForm(*args)) + + def Add(self, *args): + r""" + + Parameters + ---------- + E: TopoDS_Edge + OnFace: TopoDS_Face + + Return + ------- + None + + Description + ----------- + Indicates that the edge will slide on the face . Raises ConstructionError if the face does not belong to the basis shape, or the edge to the prismed shape. + + """ + return _BRepFeat.BRepFeat_MakeRevolutionForm_Add(self, *args) + + def Init(self, *args): + r""" + + Parameters + ---------- + Sbase: TopoDS_Shape + W: TopoDS_Wire + Plane: Geom_Plane + Axis: gp_Ax1 + Height1: float + Height2: float + Fuse: int + + Return + ------- + Sliding: bool + + Description + ----------- + Initializes this construction algorithm A contour W, a shape Sbase and a plane P are initialized to serve as the basic elements in the construction of the rib or groove. The axis Axis of the revolved surface in the basis shape defines the feature's axis of revolution. Height1 and Height2 may be used as limits to the construction of the feature. Fuse offers a choice between: - removing matter with a Boolean cut using the setting 0 in case of the groove - adding matter with Boolean fusion using the setting 1 in case of the rib. + + """ + return _BRepFeat.BRepFeat_MakeRevolutionForm_Init(self, *args) + + def Perform(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Performs a prism from the wire to the plane along the basis shape S. Reconstructs the feature topologically. + + """ + return _BRepFeat.BRepFeat_MakeRevolutionForm_Perform(self, *args) + + def Propagate(self, *args): + r""" + + Parameters + ---------- + L: TopTools_ListOfShape + F: TopoDS_Face + FPoint: gp_Pnt + LPoint: gp_Pnt + + Return + ------- + falseside: bool + + Description + ----------- + No available documentation. + + """ + return _BRepFeat.BRepFeat_MakeRevolutionForm_Propagate(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepFeat.delete_BRepFeat_MakeRevolutionForm + +# Register BRepFeat_MakeRevolutionForm in _BRepFeat: +_BRepFeat.BRepFeat_MakeRevolutionForm_swigregister(BRepFeat_MakeRevolutionForm) + + + +@deprecated +def brepfeat_Barycenter(*args): + return brepfeat.Barycenter(*args) + +@deprecated +def brepfeat_FaceUntil(*args): + return brepfeat.FaceUntil(*args) + +@deprecated +def brepfeat_IsInside(*args): + return brepfeat.IsInside(*args) + +@deprecated +def brepfeat_ParametricBarycenter(*args): + return brepfeat.ParametricBarycenter(*args) + +@deprecated +def brepfeat_ParametricMinMax(*args): + return brepfeat.ParametricMinMax(*args) + +@deprecated +def brepfeat_Print(*args): + return brepfeat.Print(*args) + +@deprecated +def brepfeat_SampleEdges(*args): + return brepfeat.SampleEdges(*args) + +@deprecated +def brepfeat_Tool(*args): + return brepfeat.Tool(*args) + +@deprecated +def BRepFeat_RibSlot_ChoiceOfFaces(*args): + return BRepFeat_RibSlot.ChoiceOfFaces(*args) + +@deprecated +def BRepFeat_RibSlot_IntPar(*args): + return BRepFeat_RibSlot.IntPar(*args) + + + diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BRepFill.pyi b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BRepFill.pyi new file mode 100644 index 0000000000000000000000000000000000000000..0712321289c1b0d3c4e38bd5f9b916b2927c202d --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BRepFill.pyi @@ -0,0 +1,886 @@ +from enum import IntEnum +from typing import overload, NewType, Optional, Tuple + +from OCC.Core.Standard import * +from OCC.Core.NCollection import * +from OCC.Core.MAT import * +from OCC.Core.TopTools import * +from OCC.Core.TopoDS import * +from OCC.Core.gp import * +from OCC.Core.TColStd import * +from OCC.Core.Geom import * +from OCC.Core.Geom2d import * +from OCC.Core.AppParCurves import * +from OCC.Core.GeomPlate import * +from OCC.Core.Adaptor3d import * +from OCC.Core.GeomAbs import * +from OCC.Core.GeomFill import * +from OCC.Core.AppCont import * +from OCC.Core.BRepMAT2d import * +from OCC.Core.Law import * +from OCC.Core.Bisector import * +from OCC.Core.TColgp import * + +# the following typedef cannot be wrapped as is +BRepFill_IndexedDataMapOfOrientedShapeListOfShape = NewType( + "BRepFill_IndexedDataMapOfOrientedShapeListOfShape", Any +) + +class BRepFill_ListOfOffsetWire: + def Append(self, theItem: BRepFill_OffsetWire) -> BRepFill_OffsetWire: ... + def Assign( + self, theItem: BRepFill_ListOfOffsetWire + ) -> BRepFill_ListOfOffsetWire: ... + def Clear(self) -> None: ... + def First(self) -> BRepFill_OffsetWire: ... + def Last(self) -> BRepFill_OffsetWire: ... + def Prepend(self, theItem: BRepFill_OffsetWire) -> BRepFill_OffsetWire: ... + def RemoveFirst(self) -> None: ... + def Reverse(self) -> None: ... + def Size(self) -> int: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... + def __iter__(self) -> BRepFill_OffsetWire: ... + +class BRepFill_SequenceOfEdgeFaceAndOrder: + def Assign( + self, theItem: BRepFill_EdgeFaceAndOrder + ) -> BRepFill_EdgeFaceAndOrder: ... + def Clear(self) -> None: ... + def First(self) -> BRepFill_EdgeFaceAndOrder: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... + def Last(self) -> BRepFill_EdgeFaceAndOrder: ... + def Length(self) -> int: ... + def Lower(self) -> int: ... + def Prepend( + self, theItem: BRepFill_EdgeFaceAndOrder + ) -> BRepFill_EdgeFaceAndOrder: ... + def RemoveFirst(self) -> None: ... + def Reverse(self) -> None: ... + def SetValue(self, theIndex: int, theValue: BRepFill_EdgeFaceAndOrder) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> BRepFill_EdgeFaceAndOrder: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... + +class BRepFill_SequenceOfFaceAndOrder: + def Assign(self, theItem: BRepFill_FaceAndOrder) -> BRepFill_FaceAndOrder: ... + def Clear(self) -> None: ... + def First(self) -> BRepFill_FaceAndOrder: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... + def Last(self) -> BRepFill_FaceAndOrder: ... + def Length(self) -> int: ... + def Lower(self) -> int: ... + def Prepend(self, theItem: BRepFill_FaceAndOrder) -> BRepFill_FaceAndOrder: ... + def RemoveFirst(self) -> None: ... + def Reverse(self) -> None: ... + def SetValue(self, theIndex: int, theValue: BRepFill_FaceAndOrder) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> BRepFill_FaceAndOrder: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... + +class BRepFill_SequenceOfSection: + def Assign(self, theItem: BRepFill_Section) -> BRepFill_Section: ... + def Clear(self) -> None: ... + def First(self) -> BRepFill_Section: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... + def Last(self) -> BRepFill_Section: ... + def Length(self) -> int: ... + def Lower(self) -> int: ... + def Prepend(self, theItem: BRepFill_Section) -> BRepFill_Section: ... + def RemoveFirst(self) -> None: ... + def Reverse(self) -> None: ... + def SetValue(self, theIndex: int, theValue: BRepFill_Section) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> BRepFill_Section: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... + +class BRepFill_ThruSectionErrorStatus(IntEnum): + BRepFill_ThruSectionErrorStatus_Done: int = ... + BRepFill_ThruSectionErrorStatus_NotDone: int = ... + BRepFill_ThruSectionErrorStatus_NotSameTopology: int = ... + BRepFill_ThruSectionErrorStatus_ProfilesInconsistent: int = ... + BRepFill_ThruSectionErrorStatus_WrongUsage: int = ... + BRepFill_ThruSectionErrorStatus_Null3DCurve: int = ... + BRepFill_ThruSectionErrorStatus_Failed: int = ... + +BRepFill_ThruSectionErrorStatus_Done = ( + BRepFill_ThruSectionErrorStatus.BRepFill_ThruSectionErrorStatus_Done +) +BRepFill_ThruSectionErrorStatus_NotDone = ( + BRepFill_ThruSectionErrorStatus.BRepFill_ThruSectionErrorStatus_NotDone +) +BRepFill_ThruSectionErrorStatus_NotSameTopology = ( + BRepFill_ThruSectionErrorStatus.BRepFill_ThruSectionErrorStatus_NotSameTopology +) +BRepFill_ThruSectionErrorStatus_ProfilesInconsistent = ( + BRepFill_ThruSectionErrorStatus.BRepFill_ThruSectionErrorStatus_ProfilesInconsistent +) +BRepFill_ThruSectionErrorStatus_WrongUsage = ( + BRepFill_ThruSectionErrorStatus.BRepFill_ThruSectionErrorStatus_WrongUsage +) +BRepFill_ThruSectionErrorStatus_Null3DCurve = ( + BRepFill_ThruSectionErrorStatus.BRepFill_ThruSectionErrorStatus_Null3DCurve +) +BRepFill_ThruSectionErrorStatus_Failed = ( + BRepFill_ThruSectionErrorStatus.BRepFill_ThruSectionErrorStatus_Failed +) + +class BRepFill_TransitionStyle(IntEnum): + BRepFill_Modified: int = ... + BRepFill_Right: int = ... + BRepFill_Round: int = ... + +BRepFill_Modified = BRepFill_TransitionStyle.BRepFill_Modified +BRepFill_Right = BRepFill_TransitionStyle.BRepFill_Right +BRepFill_Round = BRepFill_TransitionStyle.BRepFill_Round + +class BRepFill_TypeOfContact(IntEnum): + BRepFill_NoContact: int = ... + BRepFill_Contact: int = ... + BRepFill_ContactOnBorder: int = ... + +BRepFill_NoContact = BRepFill_TypeOfContact.BRepFill_NoContact +BRepFill_Contact = BRepFill_TypeOfContact.BRepFill_Contact +BRepFill_ContactOnBorder = BRepFill_TypeOfContact.BRepFill_ContactOnBorder + +class brepfill: + @staticmethod + def Axe( + Spine: TopoDS_Shape, Profile: TopoDS_Wire, AxeProf: gp_Ax3, Tol: float + ) -> bool: ... + @staticmethod + def ComputeACR(wire: TopoDS_Wire, ACR: TColStd_Array1OfReal) -> None: ... + @staticmethod + def Face(Edge1: TopoDS_Edge, Edge2: TopoDS_Edge) -> TopoDS_Face: ... + @staticmethod + def InsertACR( + wire: TopoDS_Wire, ACRcuts: TColStd_Array1OfReal, prec: float + ) -> TopoDS_Wire: ... + @staticmethod + def Shell(Wire1: TopoDS_Wire, Wire2: TopoDS_Wire) -> TopoDS_Shell: ... + +class BRepFill_AdvancedEvolved: + def __init__(self) -> None: ... + def IsDone(self, theErrorCode: Optional[int] = 0) -> bool: ... + def Perform( + self, + theSpine: TopoDS_Wire, + theProfile: TopoDS_Wire, + theTolerance: float, + theSolidReq: Optional[bool] = True, + ) -> None: ... + def SetParallelMode(self, theVal: bool) -> None: ... + def SetTemporaryDirectory(self, thePath: str) -> None: ... + def Shape(self) -> TopoDS_Shape: ... + +class BRepFill_ApproxSeewing: + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, ML: BRepFill_MultiLine) -> None: ... + def Curve(self) -> Geom_Curve: ... + def CurveOnF1(self) -> Geom2d_Curve: ... + def CurveOnF2(self) -> Geom2d_Curve: ... + def IsDone(self) -> bool: ... + def Perform(self, ML: BRepFill_MultiLine) -> None: ... + +class BRepFill_CompatibleWires: + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, Sections: TopTools_SequenceOfShape) -> None: ... + def Generated(self) -> TopTools_DataMapOfShapeListOfShape: ... + def GeneratedShapes(self, SubSection: TopoDS_Edge) -> TopTools_ListOfShape: ... + def GetStatus(self) -> BRepFill_ThruSectionErrorStatus: ... + def Init(self, Sections: TopTools_SequenceOfShape) -> None: ... + def IsDegeneratedFirstSection(self) -> bool: ... + def IsDegeneratedLastSection(self) -> bool: ... + def IsDone(self) -> bool: ... + def Perform(self, WithRotation: Optional[bool] = True) -> None: ... + def SetPercent(self, percent: Optional[float] = 0.01) -> None: ... + def Shape(self) -> TopTools_SequenceOfShape: ... + +class BRepFill_ComputeCLine: + @overload + def __init__( + self, + Line: BRepFill_MultiLine, + degreemin: Optional[int] = 3, + degreemax: Optional[int] = 8, + Tolerance3d: Optional[float] = 1.0e-5, + Tolerance2d: Optional[float] = 1.0e-5, + cutting: Optional[bool] = False, + FirstC: Optional[AppParCurves_Constraint] = AppParCurves_TangencyPoint, + LastC: Optional[AppParCurves_Constraint] = AppParCurves_TangencyPoint, + ) -> None: ... + @overload + def __init__( + self, + degreemin: Optional[int] = 3, + degreemax: Optional[int] = 8, + Tolerance3d: Optional[float] = 1.0e-05, + Tolerance2d: Optional[float] = 1.0e-05, + cutting: Optional[bool] = False, + FirstC: Optional[AppParCurves_Constraint] = AppParCurves_TangencyPoint, + LastC: Optional[AppParCurves_Constraint] = AppParCurves_TangencyPoint, + ) -> None: ... + def Error(self, Index: int) -> Tuple[float, float]: ... + def IsAllApproximated(self) -> bool: ... + def IsToleranceReached(self) -> bool: ... + def NbMultiCurves(self) -> int: ... + def Parameters(self, Index: int) -> Tuple[float, float]: ... + def Perform(self, Line: BRepFill_MultiLine) -> None: ... + def SetConstraints( + self, FirstC: AppParCurves_Constraint, LastC: AppParCurves_Constraint + ) -> None: ... + def SetDegrees(self, degreemin: int, degreemax: int) -> None: ... + def SetHangChecking(self, theHangChecking: bool) -> None: ... + def SetInvOrder(self, theInvOrder: bool) -> None: ... + def SetMaxSegments(self, theMaxSegments: int) -> None: ... + def SetTolerances(self, Tolerance3d: float, Tolerance2d: float) -> None: ... + def Value(self, Index: Optional[int] = 1) -> AppParCurves_MultiCurve: ... + +class BRepFill_CurveConstraint(GeomPlate_CurveConstraint): + @overload + def __init__( + self, + Boundary: Adaptor3d_CurveOnSurface, + Order: int, + NPt: Optional[int] = 10, + TolDist: Optional[float] = 0.0001, + TolAng: Optional[float] = 0.01, + TolCurv: Optional[float] = 0.1, + ) -> None: ... + @overload + def __init__( + self, + Boundary: Adaptor3d_Curve, + Tang: int, + NPt: Optional[int] = 10, + TolDist: Optional[float] = 0.0001, + ) -> None: ... + +class BRepFill_Draft: + def __init__(self, Shape: TopoDS_Shape, Dir: gp_Dir, Angle: float) -> None: ... + def Generated(self, S: TopoDS_Shape) -> TopTools_ListOfShape: ... + def IsDone(self) -> bool: ... + @overload + def Perform(self, LengthMax: float) -> None: ... + @overload + def Perform( + self, Surface: Geom_Surface, KeepInsideSurface: Optional[bool] = True + ) -> None: ... + @overload + def Perform( + self, StopShape: TopoDS_Shape, KeepOutSide: Optional[bool] = True + ) -> None: ... + def SetDraft(self, IsInternal: Optional[bool] = False) -> None: ... + def SetOptions( + self, + Style: Optional[BRepFill_TransitionStyle] = BRepFill_Right, + AngleMin: Optional[float] = 0.01, + AngleMax: Optional[float] = 3.0, + ) -> None: ... + def Shape(self) -> TopoDS_Shape: ... + def Shell(self) -> TopoDS_Shell: ... + +class BRepFill_EdgeFaceAndOrder: + @overload + def __init__(self) -> None: ... + @overload + def __init__( + self, anEdge: TopoDS_Edge, aFace: TopoDS_Face, anOrder: GeomAbs_Shape + ) -> None: ... + +class BRepFill_Evolved: + @overload + def __init__(self) -> None: ... + @overload + def __init__( + self, + Spine: TopoDS_Wire, + Profile: TopoDS_Wire, + AxeProf: gp_Ax3, + Join: Optional[GeomAbs_JoinType] = GeomAbs_Arc, + Solid: Optional[bool] = False, + ) -> None: ... + @overload + def __init__( + self, + Spine: TopoDS_Face, + Profile: TopoDS_Wire, + AxeProf: gp_Ax3, + Join: Optional[GeomAbs_JoinType] = GeomAbs_Arc, + Solid: Optional[bool] = False, + ) -> None: ... + def Bottom(self) -> TopoDS_Shape: ... + def GeneratedShapes( + self, SpineShape: TopoDS_Shape, ProfShape: TopoDS_Shape + ) -> TopTools_ListOfShape: ... + def IsDone(self) -> bool: ... + def JoinType(self) -> GeomAbs_JoinType: ... + @overload + def Perform( + self, + Spine: TopoDS_Wire, + Profile: TopoDS_Wire, + AxeProf: gp_Ax3, + Join: Optional[GeomAbs_JoinType] = GeomAbs_Arc, + Solid: Optional[bool] = False, + ) -> None: ... + @overload + def Perform( + self, + Spine: TopoDS_Face, + Profile: TopoDS_Wire, + AxeProf: gp_Ax3, + Join: Optional[GeomAbs_JoinType] = GeomAbs_Arc, + Solid: Optional[bool] = False, + ) -> None: ... + def Shape(self) -> TopoDS_Shape: ... + def Top(self) -> TopoDS_Shape: ... + +class BRepFill_FaceAndOrder: + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, aFace: TopoDS_Face, anOrder: GeomAbs_Shape) -> None: ... + +class BRepFill_Filling: + def __init__( + self, + Degree: Optional[int] = 3, + NbPtsOnCur: Optional[int] = 15, + NbIter: Optional[int] = 2, + Anisotropie: Optional[bool] = False, + Tol2d: Optional[float] = 0.00001, + Tol3d: Optional[float] = 0.0001, + TolAng: Optional[float] = 0.01, + TolCurv: Optional[float] = 0.1, + MaxDeg: Optional[int] = 8, + MaxSegments: Optional[int] = 9, + ) -> None: ... + @overload + def Add( + self, anEdge: TopoDS_Edge, Order: GeomAbs_Shape, IsBound: Optional[bool] = True + ) -> int: ... + @overload + def Add( + self, + anEdge: TopoDS_Edge, + Support: TopoDS_Face, + Order: GeomAbs_Shape, + IsBound: Optional[bool] = True, + ) -> int: ... + @overload + def Add(self, Support: TopoDS_Face, Order: GeomAbs_Shape) -> int: ... + @overload + def Add(self, Point: gp_Pnt) -> int: ... + @overload + def Add( + self, U: float, V: float, Support: TopoDS_Face, Order: GeomAbs_Shape + ) -> int: ... + def Build(self) -> None: ... + def Face(self) -> TopoDS_Face: ... + @overload + def G0Error(self) -> float: ... + @overload + def G0Error(self, Index: int) -> float: ... + @overload + def G1Error(self) -> float: ... + @overload + def G1Error(self, Index: int) -> float: ... + @overload + def G2Error(self) -> float: ... + @overload + def G2Error(self, Index: int) -> float: ... + def Generated(self, S: TopoDS_Shape) -> TopTools_ListOfShape: ... + def IsDone(self) -> bool: ... + def LoadInitSurface(self, aFace: TopoDS_Face) -> None: ... + def SetApproxParam( + self, MaxDeg: Optional[int] = 8, MaxSegments: Optional[int] = 9 + ) -> None: ... + def SetConstrParam( + self, + Tol2d: Optional[float] = 0.00001, + Tol3d: Optional[float] = 0.0001, + TolAng: Optional[float] = 0.01, + TolCurv: Optional[float] = 0.1, + ) -> None: ... + def SetResolParam( + self, + Degree: Optional[int] = 3, + NbPtsOnCur: Optional[int] = 15, + NbIter: Optional[int] = 2, + Anisotropie: Optional[bool] = False, + ) -> None: ... + +class BRepFill_Generator: + def __init__(self) -> None: ... + def AddWire(self, Wire: TopoDS_Wire) -> None: ... + def Generated(self) -> TopTools_DataMapOfShapeListOfShape: ... + def GeneratedShapes(self, SSection: TopoDS_Shape) -> TopTools_ListOfShape: ... + def GetStatus(self) -> BRepFill_ThruSectionErrorStatus: ... + def IsMutableInput(self) -> bool: ... + def Perform(self) -> None: ... + def ResultShape(self, theShape: TopoDS_Shape) -> TopoDS_Shape: ... + def SetMutableInput(self, theIsMutableInput: bool) -> None: ... + def Shell(self) -> TopoDS_Shell: ... + +class BRepFill_LocationLaw(Standard_Transient): + def Abscissa(self, Index: int, Param: float) -> float: ... + def CurvilinearBounds(self, Index: int) -> Tuple[float, float]: ... + def D0(self, Abscissa: float, Section: TopoDS_Shape) -> None: ... + def DeleteTransform(self) -> None: ... + def Edge(self, Index: int) -> TopoDS_Edge: ... + def GetStatus(self) -> GeomFill_PipeError: ... + def Holes(self, Interval: TColStd_Array1OfInteger) -> None: ... + def IsClosed(self) -> bool: ... + def IsG1( + self, + Index: int, + SpatialTolerance: Optional[float] = 1.0e-7, + AngularTolerance: Optional[float] = 1.0e-4, + ) -> int: ... + def Law(self, Index: int) -> GeomFill_LocationLaw: ... + def NbHoles(self, Tol: Optional[float] = 1.0e-7) -> int: ... + def NbLaw(self) -> int: ... + def Parameter(self, Abscissa: float) -> Tuple[int, float]: ... + def PerformVertex( + self, + Index: int, + InputVertex: TopoDS_Vertex, + TolMin: float, + OutputVertex: TopoDS_Vertex, + Location: Optional[int] = 0, + ) -> None: ... + def TransformInCompatibleLaw(self, AngularTolerance: float) -> None: ... + def TransformInG0Law(self) -> None: ... + def Vertex(self, Index: int) -> TopoDS_Vertex: ... + def Wire(self) -> TopoDS_Wire: ... + +class BRepFill_MultiLine(AppCont_Function): + @overload + def __init__(self) -> None: ... + @overload + def __init__( + self, + Face1: TopoDS_Face, + Face2: TopoDS_Face, + Edge1: TopoDS_Edge, + Edge2: TopoDS_Edge, + Inv1: bool, + Inv2: bool, + Bissec: Geom2d_Curve, + ) -> None: ... + def Continuity(self) -> GeomAbs_Shape: ... + def Curves( + self, Curve: Geom_Curve, PCurve1: Geom2d_Curve, PCurve2: Geom2d_Curve + ) -> None: ... + def FirstParameter(self) -> float: ... + def IsParticularCase(self) -> bool: ... + def LastParameter(self) -> float: ... + @overload + def Value(self, U: float) -> gp_Pnt: ... + def Value3dOnF1OnF2( + self, U: float, P3d: gp_Pnt, PF1: gp_Pnt2d, PF2: gp_Pnt2d + ) -> None: ... + def ValueOnF1(self, U: float) -> gp_Pnt2d: ... + def ValueOnF2(self, U: float) -> gp_Pnt2d: ... + +class BRepFill_OffsetAncestors: + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, Paral: BRepFill_OffsetWire) -> None: ... + def Ancestor(self, S1: TopoDS_Edge) -> TopoDS_Shape: ... + def HasAncestor(self, S1: TopoDS_Edge) -> bool: ... + def IsDone(self) -> bool: ... + def Perform(self, Paral: BRepFill_OffsetWire) -> None: ... + +class BRepFill_OffsetWire: + @overload + def __init__(self) -> None: ... + @overload + def __init__( + self, + Spine: TopoDS_Face, + Join: Optional[GeomAbs_JoinType] = GeomAbs_Arc, + IsOpenResult: Optional[bool] = False, + ) -> None: ... + def GeneratedShapes(self, SpineShape: TopoDS_Shape) -> TopTools_ListOfShape: ... + def Init( + self, + Spine: TopoDS_Face, + Join: Optional[GeomAbs_JoinType] = GeomAbs_Arc, + IsOpenResult: Optional[bool] = False, + ) -> None: ... + def IsDone(self) -> bool: ... + def JoinType(self) -> GeomAbs_JoinType: ... + def Perform(self, Offset: float, Alt: Optional[float] = 0.0) -> None: ... + def PerformWithBiLo( + self, + WSP: TopoDS_Face, + Offset: float, + Locus: BRepMAT2d_BisectingLocus, + Link: BRepMAT2d_LinkTopoBilo, + Join: Optional[GeomAbs_JoinType] = GeomAbs_Arc, + Alt: Optional[float] = 0.0, + ) -> None: ... + def Shape(self) -> TopoDS_Shape: ... + def Spine(self) -> TopoDS_Face: ... + +class BRepFill_Pipe: + @overload + def __init__(self) -> None: ... + @overload + def __init__( + self, + Spine: TopoDS_Wire, + Profile: TopoDS_Shape, + aMode: Optional[GeomFill_Trihedron] = GeomFill_IsCorrectedFrenet, + ForceApproxC1: Optional[bool] = False, + GeneratePartCase: Optional[bool] = False, + ) -> None: ... + def Edge(self, ESpine: TopoDS_Edge, VProfile: TopoDS_Vertex) -> TopoDS_Edge: ... + def ErrorOnSurface(self) -> float: ... + def Face(self, ESpine: TopoDS_Edge, EProfile: TopoDS_Edge) -> TopoDS_Face: ... + def FirstShape(self) -> TopoDS_Shape: ... + def Generated(self, S: TopoDS_Shape, L: TopTools_ListOfShape) -> None: ... + def LastShape(self) -> TopoDS_Shape: ... + def Perform( + self, + Spine: TopoDS_Wire, + Profile: TopoDS_Shape, + GeneratePartCase: Optional[bool] = False, + ) -> None: ... + def PipeLine(self, Point: gp_Pnt) -> TopoDS_Wire: ... + def Profile(self) -> TopoDS_Shape: ... + def Section(self, VSpine: TopoDS_Vertex) -> TopoDS_Shape: ... + def Shape(self) -> TopoDS_Shape: ... + def Spine(self) -> TopoDS_Shape: ... + +class BRepFill_PipeShell(Standard_Transient): + def __init__(self, Spine: TopoDS_Wire) -> None: ... + @overload + def Add( + self, + Profile: TopoDS_Shape, + WithContact: Optional[bool] = False, + WithCorrection: Optional[bool] = False, + ) -> None: ... + @overload + def Add( + self, + Profile: TopoDS_Shape, + Location: TopoDS_Vertex, + WithContact: Optional[bool] = False, + WithCorrection: Optional[bool] = False, + ) -> None: ... + def Build(self) -> bool: ... + def DeleteProfile(self, Profile: TopoDS_Shape) -> None: ... + def ErrorOnSurface(self) -> float: ... + def FirstShape(self) -> TopoDS_Shape: ... + def Generated(self, S: TopoDS_Shape, L: TopTools_ListOfShape) -> None: ... + def GetStatus(self) -> GeomFill_PipeError: ... + def IsReady(self) -> bool: ... + def LastShape(self) -> TopoDS_Shape: ... + def MakeSolid(self) -> bool: ... + def Profiles(self, theProfiles: TopTools_ListOfShape) -> None: ... + @overload + def Set(self, Frenet: Optional[bool] = False) -> None: ... + @overload + def Set(self, Axe: gp_Ax2) -> None: ... + @overload + def Set(self, BiNormal: gp_Dir) -> None: ... + @overload + def Set(self, SpineSupport: TopoDS_Shape) -> bool: ... + @overload + def Set( + self, + AuxiliarySpine: TopoDS_Wire, + CurvilinearEquivalence: Optional[bool] = True, + KeepContact: Optional[BRepFill_TypeOfContact] = BRepFill_NoContact, + ) -> None: ... + def SetDiscrete(self) -> None: ... + def SetForceApproxC1(self, ForceApproxC1: bool) -> None: ... + @overload + def SetLaw( + self, + Profile: TopoDS_Shape, + L: Law_Function, + WithContact: Optional[bool] = False, + WithCorrection: Optional[bool] = False, + ) -> None: ... + @overload + def SetLaw( + self, + Profile: TopoDS_Shape, + L: Law_Function, + Location: TopoDS_Vertex, + WithContact: Optional[bool] = False, + WithCorrection: Optional[bool] = False, + ) -> None: ... + def SetMaxDegree(self, NewMaxDegree: int) -> None: ... + def SetMaxSegments(self, NewMaxSegments: int) -> None: ... + def SetTolerance( + self, + Tol3d: Optional[float] = 1.0e-4, + BoundTol: Optional[float] = 1.0e-4, + TolAngular: Optional[float] = 1.0e-2, + ) -> None: ... + def SetTransition( + self, + Mode: Optional[BRepFill_TransitionStyle] = BRepFill_Modified, + Angmin: Optional[float] = 1.0e-2, + Angmax: Optional[float] = 6.0, + ) -> None: ... + def Shape(self) -> TopoDS_Shape: ... + def Simulate( + self, NumberOfSection: int, Sections: TopTools_ListOfShape + ) -> None: ... + def Spine(self) -> TopoDS_Wire: ... + +class BRepFill_Section: + @overload + def __init__(self) -> None: ... + @overload + def __init__( + self, + Profile: TopoDS_Shape, + V: TopoDS_Vertex, + WithContact: bool, + WithCorrection: bool, + ) -> None: ... + def IsLaw(self) -> bool: ... + def IsPunctual(self) -> bool: ... + def ModifiedShape(self, theShape: TopoDS_Shape) -> TopoDS_Shape: ... + def OriginalShape(self) -> TopoDS_Shape: ... + def Set(self, IsLaw: bool) -> None: ... + def Vertex(self) -> TopoDS_Vertex: ... + def Wire(self) -> TopoDS_Wire: ... + def WithContact(self) -> bool: ... + def WithCorrection(self) -> bool: ... + +class BRepFill_SectionLaw(Standard_Transient): + def ConcatenedLaw(self) -> GeomFill_SectionLaw: ... + def Continuity(self, Index: int, TolAngular: float) -> GeomAbs_Shape: ... + def CurrentEdge(self) -> TopoDS_Edge: ... + def D0(self, U: float, S: TopoDS_Shape) -> None: ... + def IndexOfEdge(self, anEdge: TopoDS_Shape) -> int: ... + def Init(self, W: TopoDS_Wire) -> None: ... + def IsConstant(self) -> bool: ... + def IsDone(self) -> bool: ... + def IsUClosed(self) -> bool: ... + def IsVClosed(self) -> bool: ... + def IsVertex(self) -> bool: ... + def Law(self, Index: int) -> GeomFill_SectionLaw: ... + def NbLaw(self) -> int: ... + def Vertex(self, Index: int, Param: float) -> TopoDS_Vertex: ... + def VertexTol(self, Index: int, Param: float) -> float: ... + +class BRepFill_SectionPlacement: + @overload + def __init__( + self, + Law: BRepFill_LocationLaw, + Section: TopoDS_Shape, + WithContact: Optional[bool] = False, + WithCorrection: Optional[bool] = False, + ) -> None: ... + @overload + def __init__( + self, + Law: BRepFill_LocationLaw, + Section: TopoDS_Shape, + Vertex: TopoDS_Shape, + WithContact: Optional[bool] = False, + WithCorrection: Optional[bool] = False, + ) -> None: ... + def AbscissaOnPath(self) -> float: ... + def Transformation(self) -> gp_Trsf: ... + +class BRepFill_Sweep: + def __init__( + self, + Section: BRepFill_SectionLaw, + Location: BRepFill_LocationLaw, + WithKPart: bool, + ) -> None: ... + def Build( + self, + ReversedEdges: TopTools_MapOfShape, + Tapes: BRepFill_DataMapOfShapeHArray2OfShape, + Rails: BRepFill_DataMapOfShapeHArray2OfShape, + Transition: Optional[BRepFill_TransitionStyle] = BRepFill_Modified, + Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, + Approx: Optional[GeomFill_ApproxStyle] = GeomFill_Location, + Degmax: Optional[int] = 11, + Segmax: Optional[int] = 30, + ) -> None: ... + def ErrorOnSurface(self) -> float: ... + def InterFaces(self) -> TopTools_HArray2OfShape: ... + def IsDone(self) -> bool: ... + def Sections(self) -> TopTools_HArray2OfShape: ... + def SetAngularControl( + self, AngleMin: Optional[float] = 0.01, AngleMax: Optional[float] = 6.0 + ) -> None: ... + def SetBounds(self, FirstShape: TopoDS_Wire, LastShape: TopoDS_Wire) -> None: ... + def SetForceApproxC1(self, ForceApproxC1: bool) -> None: ... + def SetTolerance( + self, + Tol3d: float, + BoundTol: Optional[float] = 1.0, + Tol2d: Optional[float] = 1.0e-5, + TolAngular: Optional[float] = 1.0e-2, + ) -> None: ... + def Shape(self) -> TopoDS_Shape: ... + def SubShape(self) -> TopTools_HArray2OfShape: ... + def Tape(self, Index: int) -> TopoDS_Shape: ... + +class BRepFill_TrimEdgeTool: + @overload + def __init__(self) -> None: ... + @overload + def __init__( + self, + Bisec: Bisector_Bisec, + S1: Geom2d_Geometry, + S2: Geom2d_Geometry, + Offset: float, + ) -> None: ... + def AddOrConfuse( + self, + Start: bool, + Edge1: TopoDS_Edge, + Edge2: TopoDS_Edge, + Params: TColgp_SequenceOfPnt, + ) -> None: ... + def IntersectWith( + self, + 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, + ) -> None: ... + def IsInside(self, P: gp_Pnt2d) -> bool: ... + +class BRepFill_TrimShellCorner: + def __init__( + self, + theFaces: TopTools_HArray2OfShape, + theTransition: BRepFill_TransitionStyle, + theAxeOfBisPlane: gp_Ax2, + theIntPointCrossDir: gp_Vec, + ) -> None: ... + def AddBounds(self, Bounds: TopTools_HArray2OfShape) -> None: ... + def AddUEdges(self, theUEdges: TopTools_HArray2OfShape) -> None: ... + def AddVEdges(self, theVEdges: TopTools_HArray2OfShape, theIndex: int) -> None: ... + def HasSection(self) -> bool: ... + def IsDone(self) -> bool: ... + def Modified(self, S: TopoDS_Shape, theModified: TopTools_ListOfShape) -> None: ... + def Perform(self) -> None: ... + +class BRepFill_TrimSurfaceTool: + def __init__( + self, + Bis: Geom2d_Curve, + Face1: TopoDS_Face, + Face2: TopoDS_Face, + Edge1: TopoDS_Edge, + Edge2: TopoDS_Edge, + Inv1: bool, + Inv2: bool, + ) -> None: ... + def IntersectWith( + self, EdgeOnF1: TopoDS_Edge, EdgeOnF2: TopoDS_Edge, Points: TColgp_SequenceOfPnt + ) -> None: ... + def IsOnFace(self, Point: gp_Pnt2d) -> bool: ... + def ProjOn(self, Point: gp_Pnt2d, Edge: TopoDS_Edge) -> float: ... + def Project( + self, + U1: float, + U2: float, + Curve: Geom_Curve, + PCurve1: Geom2d_Curve, + PCurve2: Geom2d_Curve, + ) -> GeomAbs_Shape: ... + +class BRepFill_ACRLaw(BRepFill_LocationLaw): + def __init__(self, Path: TopoDS_Wire, Law: GeomFill_LocationGuide) -> None: ... + +class BRepFill_Edge3DLaw(BRepFill_LocationLaw): + def __init__(self, Path: TopoDS_Wire, Law: GeomFill_LocationLaw) -> None: ... + +class BRepFill_EdgeOnSurfLaw(BRepFill_LocationLaw): + def __init__(self, Path: TopoDS_Wire, Surf: TopoDS_Shape) -> None: ... + def HasResult(self) -> bool: ... + +class BRepFill_NSections(BRepFill_SectionLaw): + @overload + def __init__( + self, S: TopTools_SequenceOfShape, Build: Optional[bool] = True + ) -> None: ... + @overload + def __init__( + self, + S: TopTools_SequenceOfShape, + Trsfs: GeomFill_SequenceOfTrsf, + P: TColStd_SequenceOfReal, + VF: float, + VL: float, + Build: Optional[bool] = True, + ) -> None: ... + def ConcatenedLaw(self) -> GeomFill_SectionLaw: ... + def Continuity(self, Index: int, TolAngular: float) -> GeomAbs_Shape: ... + def D0(self, Param: float, S: TopoDS_Shape) -> None: ... + def IsConstant(self) -> bool: ... + def IsVertex(self) -> bool: ... + def Vertex(self, Index: int, Param: float) -> TopoDS_Vertex: ... + def VertexTol(self, Index: int, Param: float) -> float: ... + +class BRepFill_ShapeLaw(BRepFill_SectionLaw): + @overload + def __init__(self, V: TopoDS_Vertex, Build: Optional[bool] = True) -> None: ... + @overload + def __init__(self, W: TopoDS_Wire, Build: Optional[bool] = True) -> None: ... + @overload + def __init__( + self, W: TopoDS_Wire, L: Law_Function, Build: Optional[bool] = True + ) -> None: ... + def ConcatenedLaw(self) -> GeomFill_SectionLaw: ... + def Continuity(self, Index: int, TolAngular: float) -> GeomAbs_Shape: ... + def D0(self, Param: float, S: TopoDS_Shape) -> None: ... + def Edge(self, Index: int) -> TopoDS_Edge: ... + def IsConstant(self) -> bool: ... + def IsVertex(self) -> bool: ... + def Vertex(self, Index: int, Param: float) -> TopoDS_Vertex: ... + def VertexTol(self, Index: int, Param: float) -> float: ... + +class BRepFill_DraftLaw(BRepFill_Edge3DLaw): + def __init__(self, Path: TopoDS_Wire, Law: GeomFill_LocationDraft) -> None: ... + def CleanLaw(self, TolAngular: float) -> None: ... + +# harray1 classes +# harray2 classes +# hsequence classes diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BRepMeshData.py b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BRepMeshData.py new file mode 100644 index 0000000000000000000000000000000000000000..572027a61b3f13c44f7cf8d17e48cf98c36fe554 --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BRepMeshData.py @@ -0,0 +1,937 @@ +# 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. + +""" +BRepMeshData module, see official documentation at +https://dev.opencascade.org/doc/occt-7.9.0/refman/html/package_brepmeshdata.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 _BRepMeshData +else: + import _BRepMeshData + +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__ = _BRepMeshData.delete_SwigPyIterator + + def value(self): + return _BRepMeshData.SwigPyIterator_value(self) + + def incr(self, n=1): + return _BRepMeshData.SwigPyIterator_incr(self, n) + + def decr(self, n=1): + return _BRepMeshData.SwigPyIterator_decr(self, n) + + def distance(self, x): + return _BRepMeshData.SwigPyIterator_distance(self, x) + + def equal(self, x): + return _BRepMeshData.SwigPyIterator_equal(self, x) + + def copy(self): + return _BRepMeshData.SwigPyIterator_copy(self) + + def next(self): + return _BRepMeshData.SwigPyIterator_next(self) + + def __next__(self): + return _BRepMeshData.SwigPyIterator___next__(self) + + def previous(self): + return _BRepMeshData.SwigPyIterator_previous(self) + + def advance(self, n): + return _BRepMeshData.SwigPyIterator_advance(self, n) + + def __eq__(self, x): + return _BRepMeshData.SwigPyIterator___eq__(self, x) + + def __ne__(self, x): + return _BRepMeshData.SwigPyIterator___ne__(self, x) + + def __iadd__(self, n): + return _BRepMeshData.SwigPyIterator___iadd__(self, n) + + def __isub__(self, n): + return _BRepMeshData.SwigPyIterator___isub__(self, n) + + def __add__(self, n): + return _BRepMeshData.SwigPyIterator___add__(self, n) + + def __sub__(self, *args): + return _BRepMeshData.SwigPyIterator___sub__(self, *args) + def __iter__(self): + return self + +# Register SwigPyIterator in _BRepMeshData: +_BRepMeshData.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__ = _BRepTools.delete_SwigPyIterator + + def value(self): + return _BRepTools.SwigPyIterator_value(self) + + def incr(self, n=1): + return _BRepTools.SwigPyIterator_incr(self, n) + + def decr(self, n=1): + return _BRepTools.SwigPyIterator_decr(self, n) + + def distance(self, x): + return _BRepTools.SwigPyIterator_distance(self, x) + + def equal(self, x): + return _BRepTools.SwigPyIterator_equal(self, x) + + def copy(self): + return _BRepTools.SwigPyIterator_copy(self) + + def next(self): + return _BRepTools.SwigPyIterator_next(self) + + def __next__(self): + return _BRepTools.SwigPyIterator___next__(self) + + def previous(self): + return _BRepTools.SwigPyIterator_previous(self) + + def advance(self, n): + return _BRepTools.SwigPyIterator_advance(self, n) + + def __eq__(self, x): + return _BRepTools.SwigPyIterator___eq__(self, x) + + def __ne__(self, x): + return _BRepTools.SwigPyIterator___ne__(self, x) + + def __iadd__(self, n): + return _BRepTools.SwigPyIterator___iadd__(self, n) + + def __isub__(self, n): + return _BRepTools.SwigPyIterator___isub__(self, n) + + def __add__(self, n): + return _BRepTools.SwigPyIterator___add__(self, n) + + def __sub__(self, *args): + return _BRepTools.SwigPyIterator___sub__(self, *args) + def __iter__(self): + return self + +# Register SwigPyIterator in _BRepTools: +_BRepTools.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 bounding values in the parametric space of F. + + Parameters + ---------- + F: TopoDS_Face + W: TopoDS_Wire + B: Bnd_Box2d + + Return + ------- + None + + Description + ----------- + Adds to the box the bounding values of the wire in the parametric space of F. + + Parameters + ---------- + F: TopoDS_Face + E: TopoDS_Edge + B: Bnd_Box2d + + Return + ------- + None + + Description + ----------- + Adds to the box the bounding values of the edge in the parametric space of F. + + """ + return _BRepTools.breptools_AddUVBounds(*args) + + @staticmethod + def CheckLocations(*args): + r""" + + Parameters + ---------- + theS: TopoDS_Shape + theProblemShapes: TopTools_ListOfShape + + Return + ------- + None + + Description + ----------- + Check all locations of shape according criterium: aTrsf.IsNegative() || (Abs(Abs(aTrsf.ScaleFactor()) - 1.) > TopLoc_Location::ScalePrec()) All sub-shapes having such locations are put in list theProblemShapes. + + """ + return _BRepTools.breptools_CheckLocations(*args) + + @staticmethod + def Clean(*args): + r""" + + Parameters + ---------- + theShape: TopoDS_Shape + theForce: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + Removes all cached polygonal representation of the shape, i.e. the triangulations of the faces of and polygons on triangulations and polygons 3d of the edges. In case polygonal representation is the only available representation for the shape (shape does not have geometry) it is not removed. + Input parameter: theShape the shape to clean + Input parameter: theForce allows removing all polygonal representations from the shape, including polygons on triangulations irrelevant for the faces of the given shape. + + """ + return _BRepTools.breptools_Clean(*args) + + @staticmethod + def CleanGeometry(*args): + r""" + + Parameters + ---------- + theShape: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + Removes geometry (curves and surfaces) from all edges and faces of the shape. + + """ + return _BRepTools.breptools_CleanGeometry(*args) + + @staticmethod + def Compare(*args): + r""" + + Parameters + ---------- + V1: TopoDS_Vertex + V2: TopoDS_Vertex + + Return + ------- + bool + + Description + ----------- + Returns True if the distance between the two vertices is lower than their tolerance. + + Parameters + ---------- + E1: TopoDS_Edge + E2: TopoDS_Edge + + Return + ------- + bool + + Description + ----------- + Returns True if the distance between the two edges is lower than their tolerance. + + """ + return _BRepTools.breptools_Compare(*args) + + @staticmethod + def DetectClosedness(*args): + r""" + + Parameters + ---------- + theFace: TopoDS_Face + + Return + ------- + theUclosed: bool + theVclosed: bool + + Description + ----------- + Detect closedness of face in U and V directions. + + """ + return _BRepTools.breptools_DetectClosedness(*args) + + @staticmethod + def Dump(*args): + r""" + + Parameters + ---------- + Sh: TopoDS_Shape + + Return + ------- + S: Standard_OStream + + Description + ----------- + Dumps the topological structure and the geometry of on the stream . + + """ + return _BRepTools.breptools_Dump(*args) + + @staticmethod + def EvalAndUpdateTol(*args): + r""" + + Parameters + ---------- + theE: TopoDS_Edge + theC3d: Geom_Curve + theC2d: Geom2d_Curve + theS: Geom_Surface + theF: float + theL: float + + Return + ------- + float + + Description + ----------- + Evals real tolerance of edge . , , , , are correspondently 3d curve of edge, 2d curve on surface and rang of edge If calculated tolerance is more then current edge tolerance, edge is updated. Method returns actual tolerance of edge. + + """ + return _BRepTools.breptools_EvalAndUpdateTol(*args) + + @staticmethod + def IsReallyClosed(*args): + r""" + + Parameters + ---------- + E: TopoDS_Edge + F: TopoDS_Face + + Return + ------- + bool + + Description + ----------- + Verifies that the edge is found two times on the face before calling BRep_Tool::IsClosed. + + """ + return _BRepTools.breptools_IsReallyClosed(*args) + + @staticmethod + def LoadAllTriangulations(*args): + r""" + + Parameters + ---------- + theShape: TopoDS_Shape + theFileSystem: OSD_FileSystem (optional, default to opencascade::handle()) + + Return + ------- + bool + + Description + ----------- + Loads all available triangulations for each face of the shape from some deferred storage using specified shared input file system + Input parameter: theShape shape to load triangulations + Input parameter: theFileSystem shared file system + Return: True if at least one triangulation is loaded. + + """ + return _BRepTools.breptools_LoadAllTriangulations(*args) + + @staticmethod + def LoadTriangulation(*args): + r""" + + Parameters + ---------- + theShape: TopoDS_Shape + theTriangulationIdx: int (optional, default to -1) + theToSetAsActive: bool (optional, default to Standard_False) + theFileSystem: OSD_FileSystem (optional, default to opencascade::handle()) + + Return + ------- + bool + + Description + ----------- + Loads triangulation data for each face of the shape from some deferred storage using specified shared input file system + Input parameter: theShape shape to load triangulations + Input parameter: theTriangulationIdx index defining what triangulation should be loaded. Starts from 0. -1 is used in specific case to load currently already active triangulation. If some face doesn't contain triangulation with this index, nothing will be loaded for it. Exception will be thrown in case of invalid negative index + Input parameter: theToSetAsActive flag to activate triangulation after its loading + Input parameter: theFileSystem shared file system + Return: True if at least one triangulation is loaded. + + """ + return _BRepTools.breptools_LoadTriangulation(*args) + + @staticmethod + def Map3DEdges(*args): + r""" + + Parameters + ---------- + S: TopoDS_Shape + M: TopTools_IndexedMapOfShape + + Return + ------- + None + + Description + ----------- + Stores in the map all the 3D topology edges of . + + """ + return _BRepTools.breptools_Map3DEdges(*args) + + @staticmethod + def OriEdgeInFace(*args): + r""" + + Parameters + ---------- + theEdge: TopoDS_Edge + theFace: TopoDS_Face + + Return + ------- + TopAbs_Orientation + + Description + ----------- + returns the cumul of the orientation of and thc containing wire in . + + """ + return _BRepTools.breptools_OriEdgeInFace(*args) + + @staticmethod + def OuterWire(*args): + r""" + + Parameters + ---------- + F: TopoDS_Face + + Return + ------- + TopoDS_Wire + + Description + ----------- + Returns the outer most wire of . Returns a Null wire if has no wires. + + """ + return _BRepTools.breptools_OuterWire(*args) + + @staticmethod + def Read(*args): + r""" + + Parameters + ---------- + Sh: TopoDS_Shape + S: str + B: BRep_Builder + theProgress: Message_ProgressRange (optional, default to Message_ProgressRange()) + + Return + ------- + None + + Description + ----------- + Reads a Shape from in returns it in . is used to build the shape. + + Parameters + ---------- + Sh: TopoDS_Shape + File: str + B: BRep_Builder + theProgress: Message_ProgressRange (optional, default to Message_ProgressRange()) + + Return + ------- + bool + + Description + ----------- + Reads a Shape from , returns it in . is used to build the shape. + + """ + return _BRepTools.breptools_Read(*args) + + @staticmethod + def RemoveInternals(*args): + r""" + + Parameters + ---------- + theS: TopoDS_Shape + theForce: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + Removes internal sub-shapes from the shape. The check on internal status is based on orientation of sub-shapes, classification is not performed. Before removal of internal sub-shapes the algorithm checks if such removal is not going to break topological connectivity between sub-shapes. The flag if set to true disables the connectivity check and clears the given shape from all sub-shapes with internal orientation. + + """ + return _BRepTools.breptools_RemoveInternals(*args) + + @staticmethod + def RemoveUnusedPCurves(*args): + r""" + + Parameters + ---------- + S: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + Removes all the pcurves of the edges of that refer to surfaces not belonging to any face of . + + """ + return _BRepTools.breptools_RemoveUnusedPCurves(*args) + + @staticmethod + def Triangulation(*args): + r""" + + Parameters + ---------- + theShape: TopoDS_Shape + theLinDefl: float + theToCheckFreeEdges: bool (optional, default to Standard_False) + + Return + ------- + bool + + Description + ----------- + Verifies that each Face from the shape has got a triangulation with a deflection smaller or equal to specified one and the Edges a discretization on this triangulation. + Input parameter: theShape shape to verify + Input parameter: theLinDefl maximum allowed linear deflection + Input parameter: theToCheckFreeEdges if True, then free Edges are required to have 3D polygon + Return: False if input Shape contains Faces without triangulation, or that triangulation has worse (greater) deflection than specified one, or Edges in Shape lack polygons on triangulation or free Edges in Shape lack 3D polygons. + + """ + return _BRepTools.breptools_Triangulation(*args) + + @staticmethod + def UVBounds(*args): + r""" + + Parameters + ---------- + F: TopoDS_Face + + Return + ------- + UMin: float + UMax: float + VMin: float + VMax: float + + Description + ----------- + Returns in UMin, UMax, VMin, VMax the bounding values in the parametric space of F. + + Parameters + ---------- + F: TopoDS_Face + W: TopoDS_Wire + + Return + ------- + UMin: float + UMax: float + VMin: float + VMax: float + + Description + ----------- + Returns in UMin, UMax, VMin, VMax the bounding values of the wire in the parametric space of F. + + Parameters + ---------- + F: TopoDS_Face + E: TopoDS_Edge + + Return + ------- + UMin: float + UMax: float + VMin: float + VMax: float + + Description + ----------- + Returns in UMin, UMax, VMin, VMax the bounding values of the edge in the parametric space of F. + + """ + return _BRepTools.breptools_UVBounds(*args) + + @staticmethod + def UnloadAllTriangulations(*args): + r""" + + Parameters + ---------- + theShape: TopoDS_Shape + + Return + ------- + bool + + Description + ----------- + Releases all available triangulations for each face of the shape if there is deferred storage to load them later + Input parameter: theShape shape to unload triangulations + Return: True if at least one triangulation is unloaded. + + """ + return _BRepTools.breptools_UnloadAllTriangulations(*args) + + @staticmethod + def UnloadTriangulation(*args): + r""" + + Parameters + ---------- + theShape: TopoDS_Shape + theTriangulationIdx: int (optional, default to -1) + + Return + ------- + bool + + Description + ----------- + Releases triangulation data for each face of the shape if there is deferred storage to load it later + Input parameter: theShape shape to unload triangulations + Input parameter: theTriangulationIdx index defining what triangulation should be unloaded. Starts from 0. -1 is used in specific case to unload currently already active triangulation. If some face doesn't contain triangulation with this index, nothing will be unloaded for it. Exception will be thrown in case of invalid negative index + Return: True if at least one triangulation is unloaded. + + """ + return _BRepTools.breptools_UnloadTriangulation(*args) + + @staticmethod + def Update(*args): + r""" + + Parameters + ---------- + V: TopoDS_Vertex + + Return + ------- + None + + Description + ----------- + Update a vertex (nothing is done). + + Parameters + ---------- + E: TopoDS_Edge + + Return + ------- + None + + Description + ----------- + Update an edge, compute 2d bounding boxes. + + Parameters + ---------- + W: TopoDS_Wire + + Return + ------- + None + + Description + ----------- + Update a wire (nothing is done). + + Parameters + ---------- + F: TopoDS_Face + + Return + ------- + None + + Description + ----------- + Update a Face, update UV points. + + Parameters + ---------- + S: TopoDS_Shell + + Return + ------- + None + + Description + ----------- + Update a shell (nothing is done). + + Parameters + ---------- + S: TopoDS_Solid + + Return + ------- + None + + Description + ----------- + Update a solid (nothing is done). + + Parameters + ---------- + C: TopoDS_CompSolid + + Return + ------- + None + + Description + ----------- + Update a composite solid (nothing is done). + + Parameters + ---------- + C: TopoDS_Compound + + Return + ------- + None + + Description + ----------- + Update a compound (nothing is done). + + Parameters + ---------- + S: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + Update a shape, call the correct update. + + """ + return _BRepTools.breptools_Update(*args) + + @staticmethod + def UpdateFaceUVPoints(*args): + r""" + + Parameters + ---------- + theF: TopoDS_Face + + Return + ------- + None + + Description + ----------- + For each edge of the face reset the UV points to the bounding points of the parametric curve of the edge on the face. + + """ + return _BRepTools.breptools_UpdateFaceUVPoints(*args) + + @staticmethod + def Write(*args): + r""" + + Parameters + ---------- + theShape: TopoDS_Shape + theProgress: Message_ProgressRange (optional, default to Message_ProgressRange()) + + Return + ------- + theStream: Standard_OStream + + Description + ----------- + Writes the shape to the stream in an ASCII format TopTools_FormatVersion_VERSION_1. This alias writes shape with triangulation data. + Input parameter: theShape the shape to write + Input parameter:[out] theStream the stream to output shape into + Parameter theRange the range of progress indicator to fill in. + + Parameters + ---------- + theShape: TopoDS_Shape + theWithTriangles: bool + theWithNormals: bool + theVersion: TopTools_FormatVersion + theProgress: Message_ProgressRange (optional, default to Message_ProgressRange()) + + Return + ------- + theStream: Standard_OStream + + Description + ----------- + Writes the shape to the stream in an ASCII format of specified version. + Input parameter: theShape the shape to write + Input parameter:[out] theStream the stream to output shape into + Input parameter: theWithTriangles flag which specifies whether to save shape with (True) or without (False) triangles; has no effect on triangulation-only geometry + Input parameter: theWithNormals flag which specifies whether to save triangulation with (True) or without (False) normals; has no effect on triangulation-only geometry + Input parameter: theVersion the TopTools format version + Parameter theProgress the range of progress indicator to fill in. + + Parameters + ---------- + theShape: TopoDS_Shape + theFile: str + theProgress: Message_ProgressRange (optional, default to Message_ProgressRange()) + + Return + ------- + bool + + Description + ----------- + Writes the shape to the file in an ASCII format TopTools_FormatVersion_VERSION_1. This alias writes shape with triangulation data. + Input parameter: theShape the shape to write + Input parameter: theFile the path to file to output shape into + Parameter theProgress the range of progress indicator to fill in. + + Parameters + ---------- + theShape: TopoDS_Shape + theFile: str + theWithTriangles: bool + theWithNormals: bool + theVersion: TopTools_FormatVersion + theProgress: Message_ProgressRange (optional, default to Message_ProgressRange()) + + Return + ------- + bool + + Description + ----------- + Writes the shape to the file in an ASCII format of specified version. + Input parameter: theShape the shape to write + Input parameter: theFile the path to file to output shape into + Input parameter: theWithTriangles flag which specifies whether to save shape with (True) or without (False) triangles; has no effect on triangulation-only geometry + Input parameter: theWithNormals flag which specifies whether to save triangulation with (True) or without (False) normals; has no effect on triangulation-only geometry + Input parameter: theVersion the TopTools format version + Parameter theProgress the range of progress indicator to fill in. + + """ + return _BRepTools.breptools_Write(*args) + + @staticmethod + def WriteToString(shape, full_precision=True): + r"""Serializes TopoDS_Shape to string. If full_precision is False, the default precision of std::stringstream is used which regularly causes rounding.Serializes TopoDS_Shape to string. If full_precision is False, the default precision of std::stringstream is used which regularly causes rounding.""" + return _BRepTools.breptools_WriteToString(shape, full_precision) + + @staticmethod + def ReadFromString(*args): + r"""Deserializes TopoDS_Shape from string. Create and return a new TopoDS_Shape each time the method is called.Deserializes TopoDS_Shape from string. Take a TopoDS_Shape instance by reference to prevent memory increase.""" + return _BRepTools.breptools_ReadFromString(*args) + + __repr__ = _dumps_object + + + def __init__(self): + _BRepTools.breptools_swiginit(self, _BRepTools.new_breptools()) + __swig_destroy__ = _BRepTools.delete_breptools + +# Register breptools in _BRepTools: +_BRepTools.breptools_swigregister(breptools) +class BRepTools_History(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 + TRelationType_Removed = _BRepTools.BRepTools_History_TRelationType_Removed + TRelationType_Generated = _BRepTools.BRepTools_History_TRelationType_Generated + TRelationType_Modified = _BRepTools.BRepTools_History_TRelationType_Modified + + + class TRelationType(IntEnum): + TRelationType_Removed = 0 + TRelationType_Generated = 1 + TRelationType_Modified = 2 + TRelationType_Removed = TRelationType.TRelationType_Removed + TRelationType_Generated = TRelationType.TRelationType_Generated + TRelationType_Modified = TRelationType.TRelationType_Modified + + + def __init__(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Empty constructor. + + """ + _BRepTools.BRepTools_History_swiginit(self, _BRepTools.new_BRepTools_History(*args)) + + def AddGenerated(self, *args): + r""" + + Parameters + ---------- + theInitial: TopoDS_Shape + theGenerated: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + Methods to set the history. Set the second shape as generated one from the first shape. + + """ + return _BRepTools.BRepTools_History_AddGenerated(self, *args) + + def AddModified(self, *args): + r""" + + Parameters + ---------- + theInitial: TopoDS_Shape + theModified: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + Set the second shape as modified one from the first shape. + + """ + return _BRepTools.BRepTools_History_AddModified(self, *args) + + def Clear(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Clears the history. + + """ + return _BRepTools.BRepTools_History_Clear(self, *args) + + def Dump(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + theS: Standard_OStream + + Description + ----------- + A method to dump a history Prints the brief description of the history into a stream. + + """ + return _BRepTools.BRepTools_History_Dump(self, *args) + + def Generated(self, *args): + r""" + + Parameters + ---------- + theInitial: TopoDS_Shape + + Return + ------- + TopTools_ListOfShape + + Description + ----------- + Methods to read the history. Returns all shapes generated from the shape. + + """ + return _BRepTools.BRepTools_History_Generated(self, *args) + + def HasGenerated(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns 'true' if there any shapes with Generated elements present. + + """ + return _BRepTools.BRepTools_History_HasGenerated(self, *args) + + def HasModified(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns 'true' if there any Modified shapes present. + + """ + return _BRepTools.BRepTools_History_HasModified(self, *args) + + def HasRemoved(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns 'true' if there any removed shapes present. + + """ + return _BRepTools.BRepTools_History_HasRemoved(self, *args) + + def IsRemoved(self, *args): + r""" + + Parameters + ---------- + theInitial: TopoDS_Shape + + Return + ------- + bool + + Description + ----------- + Returns 'true' if the shape is removed. + + """ + return _BRepTools.BRepTools_History_IsRemoved(self, *args) + + @staticmethod + def IsSupportedType(*args): + r""" + + Parameters + ---------- + theShape: TopoDS_Shape + + Return + ------- + bool + + Description + ----------- + Returns 'true' if the type of the shape is supported by the history. + + """ + return _BRepTools.BRepTools_History_IsSupportedType(*args) + + def Merge(self, *args): + r""" + + Parameters + ---------- + theHistory23: BRepTools_History + + Return + ------- + None + + Description + ----------- + A method to merge a next history to this history. Merges the next history to this history. + + Parameters + ---------- + theHistory23: BRepTools_History + + Return + ------- + None + + Description + ----------- + Merges the next history to this history. + + """ + return _BRepTools.BRepTools_History_Merge(self, *args) + + def Modified(self, *args): + r""" + + Parameters + ---------- + theInitial: TopoDS_Shape + + Return + ------- + TopTools_ListOfShape + + Description + ----------- + Returns all shapes modified from the shape. + + """ + return _BRepTools.BRepTools_History_Modified(self, *args) + + def Remove(self, *args): + r""" + + Parameters + ---------- + theRemoved: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + Set the shape as removed one. + + """ + return _BRepTools.BRepTools_History_Remove(self, *args) + + def ReplaceGenerated(self, *args): + r""" + + Parameters + ---------- + theInitial: TopoDS_Shape + theGenerated: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + Set the second shape as the only generated one from the first one. + + """ + return _BRepTools.BRepTools_History_ReplaceGenerated(self, *args) + + def ReplaceModified(self, *args): + r""" + + Parameters + ---------- + theInitial: TopoDS_Shape + theModified: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + Set the second shape as the only modified one from the first one. + + """ + return _BRepTools.BRepTools_History_ReplaceModified(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_BRepTools_History_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepTools.delete_BRepTools_History + +# Register BRepTools_History in _BRepTools: +_BRepTools.BRepTools_History_swigregister(BRepTools_History) +class BRepTools_Modification(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 Continuity(self, *args): + r""" + + Parameters + ---------- + E: TopoDS_Edge + F1: TopoDS_Face + F2: TopoDS_Face + NewE: TopoDS_Edge + NewF1: TopoDS_Face + NewF2: TopoDS_Face + + Return + ------- + GeomAbs_Shape + + Description + ----------- + Returns the continuity of between and . is the new edge created from . (resp. ) is the new face created from (resp. ). + + """ + return _BRepTools.BRepTools_Modification_Continuity(self, *args) + + def NewCurve(self, *args): + r""" + + Parameters + ---------- + E: TopoDS_Edge + C: Geom_Curve + L: TopLoc_Location + + Return + ------- + Tol: float + + Description + ----------- + Returns true if the edge, E, has been modified. If the edge has been modified: - C is the new geometry associated with the edge, - L is its new location, and - Tol is the new tolerance. If the edge has not been modified, this function returns false, and the values of C, L and Tol are not significant. + + """ + return _BRepTools.BRepTools_Modification_NewCurve(self, *args) + + def NewCurve2d(self, *args): + r""" + + Parameters + ---------- + E: TopoDS_Edge + F: TopoDS_Face + NewE: TopoDS_Edge + NewF: TopoDS_Face + C: Geom2d_Curve + + Return + ------- + Tol: float + + Description + ----------- + Returns true if the edge, E, has a new curve on surface on the face, F. If a new curve exists: - C is the new geometry of the edge, - L is the new location, and - Tol is the new tolerance. NewE is the new edge created from E, and NewF is the new face created from F. If there is no new curve on the face, this function returns false, and the values of C, L and Tol are not significant. + + """ + return _BRepTools.BRepTools_Modification_NewCurve2d(self, *args) + + def NewParameter(self, *args): + r""" + + Parameters + ---------- + V: TopoDS_Vertex + E: TopoDS_Edge + + Return + ------- + P: float + Tol: float + + Description + ----------- + Returns true if the vertex V has a new parameter on the edge E. If a new parameter exists: - P is the parameter, and - Tol is the new tolerance. If there is no new parameter this function returns false, and the values of P and Tol are not significant. + + """ + return _BRepTools.BRepTools_Modification_NewParameter(self, *args) + + def NewPoint(self, *args): + r""" + + Parameters + ---------- + V: TopoDS_Vertex + P: gp_Pnt + + Return + ------- + Tol: float + + Description + ----------- + Returns true if the vertex V has been modified. If V has been modified: - P is the new geometry of the vertex, and - Tol is the new tolerance. If the vertex has not been modified this function returns false, and the values of P and Tol are not significant. + + """ + return _BRepTools.BRepTools_Modification_NewPoint(self, *args) + + def NewPolygon(self, *args): + r""" + + Parameters + ---------- + E: TopoDS_Edge + P: Poly_Polygon3D + + Return + ------- + bool + + Description + ----------- + Returns true if the edge has been modified according to changed polygon. If the edge has been modified: - P is a new polygon. + + """ + return _BRepTools.BRepTools_Modification_NewPolygon(self, *args) + + def NewPolygonOnTriangulation(self, *args): + r""" + + Parameters + ---------- + E: TopoDS_Edge + F: TopoDS_Face + P: Poly_PolygonOnTriangulation + + Return + ------- + bool + + Description + ----------- + Returns true if the edge has been modified according to changed polygon on triangulation. If the edge has been modified: - P is a new polygon on triangulation. + + """ + return _BRepTools.BRepTools_Modification_NewPolygonOnTriangulation(self, *args) + + def NewSurface(self, *args): + r""" + + Parameters + ---------- + F: TopoDS_Face + S: Geom_Surface + L: TopLoc_Location + + Return + ------- + Tol: float + RevWires: bool + RevFace: bool + + Description + ----------- + Returns true if the face, F, has been modified. If the face has been modified: - S is the new geometry of the face, - L is its new location, and - Tol is the new tolerance. The flag, RevWires, is set to true when the modification reverses the normal of the surface, (i.e. the wires have to be reversed). The flag, RevFace, is set to true if the orientation of the modified face changes in the shells which contain it. If the face has not been modified this function returns false, and the values of S, L, Tol, RevWires and RevFace are not significant. + + """ + return _BRepTools.BRepTools_Modification_NewSurface(self, *args) + + def NewTriangulation(self, *args): + r""" + + Parameters + ---------- + F: TopoDS_Face + T: Poly_Triangulation + + Return + ------- + bool + + Description + ----------- + Returns true if the face has been modified according to changed triangulation. If the face has been modified: - T is a new triangulation on the face. + + """ + return _BRepTools.BRepTools_Modification_NewTriangulation(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_BRepTools_Modification_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepTools.delete_BRepTools_Modification + +# Register BRepTools_Modification in _BRepTools: +_BRepTools.BRepTools_Modification_swigregister(BRepTools_Modification) +class BRepTools_Modifier(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 + ---------- + theMutableInput: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + Creates an empty Modifier. + + Parameters + ---------- + S: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + Creates a modifier on the shape . + + Parameters + ---------- + S: TopoDS_Shape + M: BRepTools_Modification + + Return + ------- + None + + Description + ----------- + Creates a modifier on the shape , and performs the modifications described by . + + """ + _BRepTools.BRepTools_Modifier_swiginit(self, _BRepTools.new_BRepTools_Modifier(*args)) + + def Init(self, *args): + r""" + + Parameters + ---------- + S: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + Initializes the modifier with the shape . + + """ + return _BRepTools.BRepTools_Modifier_Init(self, *args) + + def IsDone(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns Standard_True if the modification has been computed successfully. + + """ + return _BRepTools.BRepTools_Modifier_IsDone(self, *args) + + def IsMutableInput(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns the current mutable input state. + + """ + return _BRepTools.BRepTools_Modifier_IsMutableInput(self, *args) + + def ModifiedShape(self, *args): + r""" + + Parameters + ---------- + S: TopoDS_Shape + + Return + ------- + TopoDS_Shape + + Description + ----------- + Returns the modified shape corresponding to . + + """ + return _BRepTools.BRepTools_Modifier_ModifiedShape(self, *args) + + def Perform(self, *args): + r""" + + Parameters + ---------- + M: BRepTools_Modification + theProgress: Message_ProgressRange (optional, default to Message_ProgressRange()) + + Return + ------- + None + + Description + ----------- + Performs the modifications described by . + + """ + return _BRepTools.BRepTools_Modifier_Perform(self, *args) + + def SetMutableInput(self, *args): + r""" + + Parameters + ---------- + theMutableInput: bool + + Return + ------- + None + + Description + ----------- + Sets the mutable input state If true then the input (original) shape can be modified during modification process. + + """ + return _BRepTools.BRepTools_Modifier_SetMutableInput(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepTools.delete_BRepTools_Modifier + +# Register BRepTools_Modifier in _BRepTools: +_BRepTools.BRepTools_Modifier_swigregister(BRepTools_Modifier) +class BRepTools_PurgeLocations(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. + + """ + _BRepTools.BRepTools_PurgeLocations_swiginit(self, _BRepTools.new_BRepTools_PurgeLocations(*args)) + + def GetResult(self, *args): + r""" + Return + ------- + TopoDS_Shape + + Description + ----------- + Returns shape with removed locations. + + """ + return _BRepTools.BRepTools_PurgeLocations_GetResult(self, *args) + + def IsDone(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _BRepTools.BRepTools_PurgeLocations_IsDone(self, *args) + + def Perform(self, *args): + r""" + + Parameters + ---------- + theShape: TopoDS_Shape + + Return + ------- + bool + + Description + ----------- + Removes all locations correspondingly to criterium from theShape. + + """ + return _BRepTools.BRepTools_PurgeLocations_Perform(self, *args) + + __repr__ = _dumps_object + + @methodnotwrapped + def ModifiedShape(self): + pass + + __swig_destroy__ = _BRepTools.delete_BRepTools_PurgeLocations + +# Register BRepTools_PurgeLocations in _BRepTools: +_BRepTools.BRepTools_PurgeLocations_swigregister(BRepTools_PurgeLocations) +class BRepTools_Quilt(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. + + """ + _BRepTools.BRepTools_Quilt_swiginit(self, _BRepTools.new_BRepTools_Quilt(*args)) + + def Add(self, *args): + r""" + + Parameters + ---------- + S: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + Add the faces of to the Quilt, the faces containing bounded edges are copied. + + """ + return _BRepTools.BRepTools_Quilt_Add(self, *args) + + def Bind(self, *args): + r""" + + Parameters + ---------- + Eold: TopoDS_Edge + Enew: TopoDS_Edge + + Return + ------- + None + + Description + ----------- + Binds to be the new edge instead of . //! The faces of the added shape containing will be copied to substitute by . //! The vertices of will be bound to the vertices of with the same orientation. //! If and have different orientations the curves are considered to be opposite and the pcurves of will be copied and reversed in the new faces. //! must belong to the next added shape, must belong to a Shape added before. + + Parameters + ---------- + Vold: TopoDS_Vertex + Vnew: TopoDS_Vertex + + Return + ------- + None + + Description + ----------- + Binds to be a new vertex instead of . //! The faces of the added shape containing will be copied to substitute by . + + """ + return _BRepTools.BRepTools_Quilt_Bind(self, *args) + + def Copy(self, *args): + r""" + + Parameters + ---------- + S: TopoDS_Shape + + Return + ------- + TopoDS_Shape + + Description + ----------- + Returns the shape substituted to in the Quilt. + + """ + return _BRepTools.BRepTools_Quilt_Copy(self, *args) + + def IsCopied(self, *args): + r""" + + Parameters + ---------- + S: TopoDS_Shape + + Return + ------- + bool + + Description + ----------- + Returns True if has been copied ( is a vertex, an edge or a face). + + """ + return _BRepTools.BRepTools_Quilt_IsCopied(self, *args) + + def Shells(self, *args): + r""" + Return + ------- + TopoDS_Shape + + Description + ----------- + Returns a Compound of shells made from the current set of faces. The shells will be flagged as closed or not closed. + + """ + return _BRepTools.BRepTools_Quilt_Shells(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepTools.delete_BRepTools_Quilt + +# Register BRepTools_Quilt in _BRepTools: +_BRepTools.BRepTools_Quilt_swigregister(BRepTools_Quilt) +class BRepTools_ReShape(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 + ----------- + Returns an empty Reshape. + + """ + _BRepTools.BRepTools_ReShape_swiginit(self, _BRepTools.new_BRepTools_ReShape(*args)) + + def Apply(self, *args): + r""" + + Parameters + ---------- + theShape: TopoDS_Shape + theUntil: TopAbs_ShapeEnum (optional, default to TopAbs_SHAPE) + + Return + ------- + TopoDS_Shape + + Description + ----------- + Applies the substitutions requests to a shape. //! theUntil gives the level of type until which requests are taken into account. For subshapes of the type no rebuild and further exploring are done. //! NOTE: each subshape can be replaced by shape of the same type or by shape containing only shapes of that type (for example, TopoDS_Edge can be replaced by TopoDS_Edge, TopoDS_Wire or TopoDS_Compound containing TopoDS_Edges). If incompatible shape type is encountered, it is ignored and flag FAIL1 is set in Status. + + """ + return _BRepTools.BRepTools_ReShape_Apply(self, *args) + + def Clear(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Clears all substitutions requests. + + """ + return _BRepTools.BRepTools_ReShape_Clear(self, *args) + + def CopyVertex(self, *args): + r""" + + Parameters + ---------- + theV: TopoDS_Vertex + theTol: float (optional, default to -1.0) + + Return + ------- + TopoDS_Vertex + + Description + ----------- + Returns modified copy of vertex if original one is not recorded or returns modified original vertex otherwise. + + Parameters + ---------- + theV: TopoDS_Vertex + theNewPos: gp_Pnt + aTol: float + + Return + ------- + TopoDS_Vertex + + Description + ----------- + Returns modified copy of vertex if original one is not recorded or returns modified original vertex otherwise. + + """ + return _BRepTools.BRepTools_ReShape_CopyVertex(self, *args) + + def History(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the history of the substituted shapes. + + """ + return _BRepTools.BRepTools_ReShape_History(self, *args) + + def IsNewShape(self, *args): + r""" + + Parameters + ---------- + theShape: TopoDS_Shape + + Return + ------- + bool + + Description + ----------- + Checks if shape has been recorded by reshaper as a value. + + """ + return _BRepTools.BRepTools_ReShape_IsNewShape(self, *args) + + def IsRecorded(self, *args): + r""" + + Parameters + ---------- + shape: TopoDS_Shape + + Return + ------- + bool + + Description + ----------- + Tells if a shape is recorded for Replace/Remove. + + """ + return _BRepTools.BRepTools_ReShape_IsRecorded(self, *args) + + def ModeConsiderLocation(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns (modifiable) the flag which defines whether Location of shape take into account during replacing shapes. + + """ + return _BRepTools.BRepTools_ReShape_ModeConsiderLocation(self, *args) + + def Remove(self, *args): + r""" + + Parameters + ---------- + shape: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + Sets a request to Remove a Shape whatever the orientation. + + """ + return _BRepTools.BRepTools_ReShape_Remove(self, *args) + + def Replace(self, *args): + r""" + + Parameters + ---------- + shape: TopoDS_Shape + newshape: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + Sets a request to Replace a Shape by a new one. + + """ + return _BRepTools.BRepTools_ReShape_Replace(self, *args) + + def Status(self, *args): + r""" + + Parameters + ---------- + shape: TopoDS_Shape + newsh: TopoDS_Shape + last: bool (optional, default to Standard_False) + + Return + ------- + int + + Description + ----------- + Returns a complete substitution status for a shape 0: not recorded, = original < 0: to be removed, is NULL > 0: to be replaced, is a new item If is False, returns status and new shape recorded in the map directly for the shape, if True and status > 0 then recursively searches for the last status and new shape. + + """ + return _BRepTools.BRepTools_ReShape_Status(self, *args) + + def Value(self, *args): + r""" + + Parameters + ---------- + shape: TopoDS_Shape + + Return + ------- + TopoDS_Shape + + Description + ----------- + Returns the new value for an individual shape If not recorded, returns the original shape itself If to be Removed, returns a Null Shape Else, returns the replacing item. + + """ + return _BRepTools.BRepTools_ReShape_Value(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_BRepTools_ReShape_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepTools.delete_BRepTools_ReShape + +# Register BRepTools_ReShape in _BRepTools: +_BRepTools.BRepTools_ReShape_swigregister(BRepTools_ReShape) +class BRepTools_ShapeSet(OCC.Core.TopTools.TopTools_ShapeSet): + 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 + ---------- + theWithTriangles: bool (optional, default to Standard_True) + theWithNormals: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + Builds an empty ShapeSet. + Parameter theWithTriangles flag to write triangulation data. + + Parameters + ---------- + theBuilder: BRep_Builder + theWithTriangles: bool (optional, default to Standard_True) + theWithNormals: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + Builds an empty ShapeSet. + Parameter theWithTriangles flag to write triangulation data. + + """ + _BRepTools.BRepTools_ShapeSet_swiginit(self, _BRepTools.new_BRepTools_ShapeSet(*args)) + + def DumpGeometry(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + OS: Standard_OStream + + Description + ----------- + Dumps the geometry of me on the stream . + + Parameters + ---------- + S: TopoDS_Shape + + Return + ------- + OS: Standard_OStream + + Description + ----------- + Dumps the geometry of on the stream . + + """ + return _BRepTools.BRepTools_ShapeSet_DumpGeometry(self, *args) + + def DumpPolygon3D(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + OS: Standard_OStream + + Description + ----------- + Dumps the 3d polygons on the stream . + + """ + return _BRepTools.BRepTools_ShapeSet_DumpPolygon3D(self, *args) + + def DumpPolygonOnTriangulation(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + OS: Standard_OStream + + Description + ----------- + Dumps the polygons on triangulation on the stream . + + """ + return _BRepTools.BRepTools_ShapeSet_DumpPolygonOnTriangulation(self, *args) + + def DumpTriangulation(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + OS: Standard_OStream + + Description + ----------- + Dumps the triangulation on the stream . + + """ + return _BRepTools.BRepTools_ShapeSet_DumpTriangulation(self, *args) + + def IsWithNormals(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return true if shape should be stored triangulation with normals. + + """ + return _BRepTools.BRepTools_ShapeSet_IsWithNormals(self, *args) + + def IsWithTriangles(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return true if shape should be stored with triangles. + + """ + return _BRepTools.BRepTools_ShapeSet_IsWithTriangles(self, *args) + + def ReadGeometry(self, *args): + r""" + + Parameters + ---------- + IS: str + theProgress: Message_ProgressRange (optional, default to Message_ProgressRange()) + + Return + ------- + None + + Description + ----------- + Reads the geometry of me from the stream . + + Parameters + ---------- + T: TopAbs_ShapeEnum + IS: str + S: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + Reads the geometry of a shape of type from the stream and returns it in . + + """ + return _BRepTools.BRepTools_ShapeSet_ReadGeometry(self, *args) + + def ReadPolygon3D(self, *args): + r""" + + Parameters + ---------- + IS: str + theProgress: Message_ProgressRange (optional, default to Message_ProgressRange()) + + Return + ------- + None + + Description + ----------- + Reads the 3d polygons of me from the stream . + + """ + return _BRepTools.BRepTools_ShapeSet_ReadPolygon3D(self, *args) + + def ReadPolygonOnTriangulation(self, *args): + r""" + + Parameters + ---------- + IS: str + theProgress: Message_ProgressRange (optional, default to Message_ProgressRange()) + + Return + ------- + None + + Description + ----------- + Reads the polygons on triangulation of me from the stream . + + """ + return _BRepTools.BRepTools_ShapeSet_ReadPolygonOnTriangulation(self, *args) + + def ReadTriangulation(self, *args): + r""" + + Parameters + ---------- + IS: str + theProgress: Message_ProgressRange (optional, default to Message_ProgressRange()) + + Return + ------- + None + + Description + ----------- + Reads the triangulation of me from the stream . + + """ + return _BRepTools.BRepTools_ShapeSet_ReadTriangulation(self, *args) + + def SetWithNormals(self, *args): + r""" + + Parameters + ---------- + theWithNormals: bool + + Return + ------- + None + + Description + ----------- + Define if shape will be stored triangulation with normals. Ignored (always written) if face defines only triangulation (no surface). + + """ + return _BRepTools.BRepTools_ShapeSet_SetWithNormals(self, *args) + + def SetWithTriangles(self, *args): + r""" + + Parameters + ---------- + theWithTriangles: bool + + Return + ------- + None + + Description + ----------- + Define if shape will be stored with triangles. Ignored (always written) if face defines only triangulation (no surface). + + """ + return _BRepTools.BRepTools_ShapeSet_SetWithTriangles(self, *args) + + def WriteGeometry(self, *args): + r""" + + Parameters + ---------- + theProgress: Message_ProgressRange (optional, default to Message_ProgressRange()) + + Return + ------- + OS: Standard_OStream + + Description + ----------- + Writes the geometry of me on the stream in a format that can be read back by Read. + + Parameters + ---------- + S: TopoDS_Shape + + Return + ------- + OS: Standard_OStream + + Description + ----------- + Writes the geometry of on the stream in a format that can be read back by Read. + + """ + return _BRepTools.BRepTools_ShapeSet_WriteGeometry(self, *args) + + def WritePolygon3D(self, *args): + r""" + + Parameters + ---------- + Compact: bool (optional, default to Standard_True) + theProgress: Message_ProgressRange (optional, default to Message_ProgressRange()) + + Return + ------- + OS: Standard_OStream + + Description + ----------- + Writes the 3d polygons on the stream in a format that can be read back by Read. + + """ + return _BRepTools.BRepTools_ShapeSet_WritePolygon3D(self, *args) + + def WritePolygonOnTriangulation(self, *args): + r""" + + Parameters + ---------- + Compact: bool (optional, default to Standard_True) + theProgress: Message_ProgressRange (optional, default to Message_ProgressRange()) + + Return + ------- + OS: Standard_OStream + + Description + ----------- + Writes the polygons on triangulation on the stream in a format that can be read back by Read. + + """ + return _BRepTools.BRepTools_ShapeSet_WritePolygonOnTriangulation(self, *args) + + def WriteTriangulation(self, *args): + r""" + + Parameters + ---------- + Compact: bool (optional, default to Standard_True) + theProgress: Message_ProgressRange (optional, default to Message_ProgressRange()) + + Return + ------- + OS: Standard_OStream + + Description + ----------- + Writes the triangulation on the stream in a format that can be read back by Read. + + """ + return _BRepTools.BRepTools_ShapeSet_WriteTriangulation(self, *args) + + @staticmethod + def WriteToString(shape, full_precision=True): + r"""Serializes TopoDS_Shape to string. If full_precision is False, the default precision of std::stringstream is used which regularly causes rounding.Serializes TopoDS_Shape to string. If full_precision is False, the default precision of std::stringstream is used which regularly causes rounding.""" + return _BRepTools.BRepTools_ShapeSet_WriteToString(shape, full_precision) + + @staticmethod + def ReadFromString(*args): + r"""Deserializes TopoDS_Shape from string. Create and return a new TopoDS_Shape each time the method is called.Deserializes TopoDS_Shape from string. Take a TopoDS_Shape instance by reference to prevent memory increase.""" + return _BRepTools.BRepTools_ShapeSet_ReadFromString(*args) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepTools.delete_BRepTools_ShapeSet + +# Register BRepTools_ShapeSet in _BRepTools: +_BRepTools.BRepTools_ShapeSet_swigregister(BRepTools_ShapeSet) +class BRepTools_Substitution(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. + + """ + _BRepTools.BRepTools_Substitution_swiginit(self, _BRepTools.new_BRepTools_Substitution(*args)) + + def Build(self, *args): + r""" + + Parameters + ---------- + S: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + Build NewShape from if its subshapes has modified. //! The methods and allows you to keep the resul of . + + """ + return _BRepTools.BRepTools_Substitution_Build(self, *args) + + def Clear(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Reset all the fields. + + """ + return _BRepTools.BRepTools_Substitution_Clear(self, *args) + + def Copy(self, *args): + r""" + + Parameters + ---------- + S: TopoDS_Shape + + Return + ------- + TopTools_ListOfShape + + Description + ----------- + Returns the set of shapes substituted to . + + """ + return _BRepTools.BRepTools_Substitution_Copy(self, *args) + + def IsCopied(self, *args): + r""" + + Parameters + ---------- + S: TopoDS_Shape + + Return + ------- + bool + + Description + ----------- + Returns True if has been replaced . + + """ + return _BRepTools.BRepTools_Substitution_IsCopied(self, *args) + + def Substitute(self, *args): + r""" + + Parameters + ---------- + OldShape: TopoDS_Shape + NewShapes: TopTools_ListOfShape + + Return + ------- + None + + Description + ----------- + will be replaced by . //! can be empty , in this case will disparate from its ancestors. //! if an item of is oriented FORWARD. it will be oriented as in its ancestors. else it will be reversed. + + """ + return _BRepTools.BRepTools_Substitution_Substitute(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepTools.delete_BRepTools_Substitution + +# Register BRepTools_Substitution in _BRepTools: +_BRepTools.BRepTools_Substitution_swigregister(BRepTools_Substitution) +class BRepTools_WireExplorer(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 + ----------- + Constructs an empty explorer (which can be initialized using Init). + + Parameters + ---------- + W: TopoDS_Wire + + Return + ------- + None + + Description + ----------- + IInitializes an exploration of the wire . + + Parameters + ---------- + W: TopoDS_Wire + F: TopoDS_Face + + Return + ------- + None + + Description + ----------- + Initializes an exploration of the wire . F is used to select the edge connected to the previous in the parametric representation of . + + """ + _BRepTools.BRepTools_WireExplorer_swiginit(self, _BRepTools.new_BRepTools_WireExplorer(*args)) + + def Clear(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Clears the content of the explorer. + + """ + return _BRepTools.BRepTools_WireExplorer_Clear(self, *args) + + def Current(self, *args): + r""" + Return + ------- + TopoDS_Edge + + Description + ----------- + Returns the current edge. + + """ + return _BRepTools.BRepTools_WireExplorer_Current(self, *args) + + def CurrentVertex(self, *args): + r""" + Return + ------- + TopoDS_Vertex + + Description + ----------- + Returns the vertex connecting the current edge to the previous one. + + """ + return _BRepTools.BRepTools_WireExplorer_CurrentVertex(self, *args) + + def Init(self, *args): + r""" + + Parameters + ---------- + W: TopoDS_Wire + + Return + ------- + None + + Description + ----------- + Initializes an exploration of the wire . + + Parameters + ---------- + W: TopoDS_Wire + F: TopoDS_Face + + Return + ------- + None + + Description + ----------- + Initializes an exploration of the wire . F is used to select the edge connected to the previous in the parametric representation of . + + Parameters + ---------- + W: TopoDS_Wire + F: TopoDS_Face + UMin: float + UMax: float + VMin: float + VMax: float + + Return + ------- + None + + Description + ----------- + Initializes an exploration of the wire . F is used to select the edge connected to the previous in the parametric representation of . , , , - the UV bounds of the face . + + """ + return _BRepTools.BRepTools_WireExplorer_Init(self, *args) + + def More(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True if there is a current edge. + + """ + return _BRepTools.BRepTools_WireExplorer_More(self, *args) + + def Next(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Proceeds to the next edge. + + """ + return _BRepTools.BRepTools_WireExplorer_Next(self, *args) + + def Orientation(self, *args): + r""" + Return + ------- + TopAbs_Orientation + + Description + ----------- + Returns an Orientation for the current edge. + + """ + return _BRepTools.BRepTools_WireExplorer_Orientation(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepTools.delete_BRepTools_WireExplorer + +# Register BRepTools_WireExplorer in _BRepTools: +_BRepTools.BRepTools_WireExplorer_swigregister(BRepTools_WireExplorer) +class BRepTools_CopyModification(BRepTools_Modification): + 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 + ---------- + theCopyGeom: bool (optional, default to Standard_True) + theCopyMesh: bool (optional, default to Standard_True) + + Return + ------- + None + + Description + ----------- + Constructor. \param[in] theCopyGeom indicates that the geometry (surfaces and curves) should be copied \param[in] theCopyMesh indicates that the triangulation should be copied. + + """ + _BRepTools.BRepTools_CopyModification_swiginit(self, _BRepTools.new_BRepTools_CopyModification(*args)) + + + @staticmethod + def DownCast(t): + return Handle_BRepTools_CopyModification_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepTools.delete_BRepTools_CopyModification + +# Register BRepTools_CopyModification in _BRepTools: +_BRepTools.BRepTools_CopyModification_swigregister(BRepTools_CopyModification) +class BRepTools_GTrsfModification(BRepTools_Modification): + 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 + ---------- + T: gp_GTrsf + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _BRepTools.BRepTools_GTrsfModification_swiginit(self, _BRepTools.new_BRepTools_GTrsfModification(*args)) + + def GTrsf(self, *args): + r""" + Return + ------- + gp_GTrsf + + Description + ----------- + Gives an access on the GTrsf. + + """ + return _BRepTools.BRepTools_GTrsfModification_GTrsf(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_BRepTools_GTrsfModification_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepTools.delete_BRepTools_GTrsfModification + +# Register BRepTools_GTrsfModification in _BRepTools: +_BRepTools.BRepTools_GTrsfModification_swigregister(BRepTools_GTrsfModification) +class BRepTools_TrsfModification(BRepTools_Modification): + 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 + ---------- + T: gp_Trsf + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _BRepTools.BRepTools_TrsfModification_swiginit(self, _BRepTools.new_BRepTools_TrsfModification(*args)) + + def GetIsCopyMesh(self): + r"""GetIsCopyMesh(BRepTools_TrsfModification self) -> Standard_Boolean""" + return _BRepTools.BRepTools_TrsfModification_GetIsCopyMesh(self) + + def SetIsCopyMesh(self, value): + r"""SetIsCopyMesh(BRepTools_TrsfModification self, Standard_Boolean value)""" + return _BRepTools.BRepTools_TrsfModification_SetIsCopyMesh(self, value) + + def Trsf(self, *args): + r""" + Return + ------- + gp_Trsf + + Description + ----------- + Provides access to the gp_Trsf associated with this modification. The transformation can be changed. + + """ + return _BRepTools.BRepTools_TrsfModification_Trsf(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_BRepTools_TrsfModification_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepTools.delete_BRepTools_TrsfModification + +# Register BRepTools_TrsfModification in _BRepTools: +_BRepTools.BRepTools_TrsfModification_swigregister(BRepTools_TrsfModification) +class BRepTools_NurbsConvertModification(BRepTools_CopyModification): + 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. + + """ + _BRepTools.BRepTools_NurbsConvertModification_swiginit(self, _BRepTools.new_BRepTools_NurbsConvertModification(*args)) + + def GetUpdatedEdges(self, *args): + r""" + Return + ------- + TopTools_ListOfShape + + Description + ----------- + No available documentation. + + """ + return _BRepTools.BRepTools_NurbsConvertModification_GetUpdatedEdges(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_BRepTools_NurbsConvertModification_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _BRepTools.delete_BRepTools_NurbsConvertModification + +# Register BRepTools_NurbsConvertModification in _BRepTools: +_BRepTools.BRepTools_NurbsConvertModification_swigregister(BRepTools_NurbsConvertModification) + + + +@deprecated +def breptools_ActivateTriangulation(*args): + return breptools.ActivateTriangulation(*args) + +@deprecated +def breptools_AddUVBounds(*args): + return breptools.AddUVBounds(*args) + +@deprecated +def breptools_AddUVBounds(*args): + return breptools.AddUVBounds(*args) + +@deprecated +def breptools_AddUVBounds(*args): + return breptools.AddUVBounds(*args) + +@deprecated +def breptools_CheckLocations(*args): + return breptools.CheckLocations(*args) + +@deprecated +def breptools_Clean(*args): + return breptools.Clean(*args) + +@deprecated +def breptools_CleanGeometry(*args): + return breptools.CleanGeometry(*args) + +@deprecated +def breptools_Compare(*args): + return breptools.Compare(*args) + +@deprecated +def breptools_Compare(*args): + return breptools.Compare(*args) + +@deprecated +def breptools_DetectClosedness(*args): + return breptools.DetectClosedness(*args) + +@deprecated +def breptools_Dump(*args): + return breptools.Dump(*args) + +@deprecated +def breptools_EvalAndUpdateTol(*args): + return breptools.EvalAndUpdateTol(*args) + +@deprecated +def breptools_IsReallyClosed(*args): + return breptools.IsReallyClosed(*args) + +@deprecated +def breptools_LoadAllTriangulations(*args): + return breptools.LoadAllTriangulations(*args) + +@deprecated +def breptools_LoadTriangulation(*args): + return breptools.LoadTriangulation(*args) + +@deprecated +def breptools_Map3DEdges(*args): + return breptools.Map3DEdges(*args) + +@deprecated +def breptools_OriEdgeInFace(*args): + return breptools.OriEdgeInFace(*args) + +@deprecated +def breptools_OuterWire(*args): + return breptools.OuterWire(*args) + +@deprecated +def breptools_Read(*args): + return breptools.Read(*args) + +@deprecated +def breptools_Read(*args): + return breptools.Read(*args) + +@deprecated +def breptools_RemoveInternals(*args): + return breptools.RemoveInternals(*args) + +@deprecated +def breptools_RemoveUnusedPCurves(*args): + return breptools.RemoveUnusedPCurves(*args) + +@deprecated +def breptools_Triangulation(*args): + return breptools.Triangulation(*args) + +@deprecated +def breptools_UVBounds(*args): + return breptools.UVBounds(*args) + +@deprecated +def breptools_UVBounds(*args): + return breptools.UVBounds(*args) + +@deprecated +def breptools_UVBounds(*args): + return breptools.UVBounds(*args) + +@deprecated +def breptools_UnloadAllTriangulations(*args): + return breptools.UnloadAllTriangulations(*args) + +@deprecated +def breptools_UnloadTriangulation(*args): + return breptools.UnloadTriangulation(*args) + +@deprecated +def breptools_Update(*args): + return breptools.Update(*args) + +@deprecated +def breptools_Update(*args): + return breptools.Update(*args) + +@deprecated +def breptools_Update(*args): + return breptools.Update(*args) + +@deprecated +def breptools_Update(*args): + return breptools.Update(*args) + +@deprecated +def breptools_Update(*args): + return breptools.Update(*args) + +@deprecated +def breptools_Update(*args): + return breptools.Update(*args) + +@deprecated +def breptools_Update(*args): + return breptools.Update(*args) + +@deprecated +def breptools_Update(*args): + return breptools.Update(*args) + +@deprecated +def breptools_Update(*args): + return breptools.Update(*args) + +@deprecated +def breptools_UpdateFaceUVPoints(*args): + return breptools.UpdateFaceUVPoints(*args) + +@deprecated +def breptools_Write(*args): + return breptools.Write(*args) + +@deprecated +def breptools_Write(*args): + return breptools.Write(*args) + +@deprecated +def breptools_Write(*args): + return breptools.Write(*args) + +@deprecated +def breptools_Write(*args): + return breptools.Write(*args) + +@deprecated +def BRepTools_History_IsSupportedType(*args): + return BRepTools_History.IsSupportedType(*args) + + + diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BinDrivers.pyi b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BinDrivers.pyi new file mode 100644 index 0000000000000000000000000000000000000000..a8306ac8acd8c368fece3ded5836ba188e994636 --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BinDrivers.pyi @@ -0,0 +1,71 @@ +from enum import IntEnum +from typing import overload, NewType, Optional, Tuple + +from OCC.Core.Standard import * +from OCC.Core.NCollection import * +from OCC.Core.Message import * +from OCC.Core.BinMDF import * +from OCC.Core.TDocStd import * +from OCC.Core.BinLDrivers import * +from OCC.Core.Storage import * + +class BinDrivers_Marker(IntEnum): + BinDrivers_ENDATTRLIST: int = ... + BinDrivers_ENDLABEL: int = ... + +BinDrivers_ENDATTRLIST = BinDrivers_Marker.BinDrivers_ENDATTRLIST +BinDrivers_ENDLABEL = BinDrivers_Marker.BinDrivers_ENDLABEL + +class bindrivers: + @staticmethod + def AttributeDrivers(MsgDrv: Message_Messenger) -> BinMDF_ADriverTable: ... + @staticmethod + def DefineFormat(theApp: TDocStd_Application) -> None: ... + @staticmethod + def Factory(theGUID: Standard_GUID) -> Standard_Transient: ... + +class BinDrivers_DocumentRetrievalDriver(BinLDrivers_DocumentRetrievalDriver): + def __init__(self) -> None: ... + def AttributeDrivers( + self, theMsgDriver: Message_Messenger + ) -> BinMDF_ADriverTable: ... + def CheckShapeSection(self, thePos: Storage_Position, theIS: str) -> None: ... + def Clear(self) -> None: ... + def EnableQuickPartReading( + self, theMessageDriver: Message_Messenger, theValue: bool + ) -> None: ... + def ReadShapeSection( + self, + theSection: BinLDrivers_DocumentSection, + theIS: str, + isMess: Optional[bool] = False, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... + +class BinDrivers_DocumentStorageDriver(BinLDrivers_DocumentStorageDriver): + def __init__(self) -> None: ... + def AttributeDrivers( + self, theMsgDriver: Message_Messenger + ) -> BinMDF_ADriverTable: ... + def Clear(self) -> None: ... + def EnableQuickPartWriting( + self, theMessageDriver: Message_Messenger, theValue: bool + ) -> None: ... + def IsWithNormals(self) -> bool: ... + def IsWithTriangles(self) -> bool: ... + def SetWithNormals( + self, theMessageDriver: Message_Messenger, theWithTriangulation: bool + ) -> None: ... + def SetWithTriangles( + self, theMessageDriver: Message_Messenger, theWithTriangulation: bool + ) -> None: ... + def WriteShapeSection( + self, + theDocSection: BinLDrivers_DocumentSection, + theDocVer: TDocStd_FormatVersion, + theRange: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> str: ... + +# harray1 classes +# harray2 classes +# hsequence classes diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BinMFunction.py b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BinMFunction.py new file mode 100644 index 0000000000000000000000000000000000000000..d7c165301a53ba564c1e0974af17b29ac9544c6d --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BinMFunction.py @@ -0,0 +1,720 @@ +# 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. + +""" +BinMFunction module, see official documentation at +https://dev.opencascade.org/doc/occt-7.9.0/refman/html/package_binmfunction.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 _BinMFunction +else: + import _BinMFunction + +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__ = _BinMFunction.delete_SwigPyIterator + + def value(self): + return _BinMFunction.SwigPyIterator_value(self) + + def incr(self, n=1): + return _BinMFunction.SwigPyIterator_incr(self, n) + + def decr(self, n=1): + return _BinMFunction.SwigPyIterator_decr(self, n) + + def distance(self, x): + return _BinMFunction.SwigPyIterator_distance(self, x) + + def equal(self, x): + return _BinMFunction.SwigPyIterator_equal(self, x) + + def copy(self): + return _BinMFunction.SwigPyIterator_copy(self) + + def next(self): + return _BinMFunction.SwigPyIterator_next(self) + + def __next__(self): + return _BinMFunction.SwigPyIterator___next__(self) + + def previous(self): + return _BinMFunction.SwigPyIterator_previous(self) + + def advance(self, n): + return _BinMFunction.SwigPyIterator_advance(self, n) + + def __eq__(self, x): + return _BinMFunction.SwigPyIterator___eq__(self, x) + + def __ne__(self, x): + return _BinMFunction.SwigPyIterator___ne__(self, x) + + def __iadd__(self, n): + return _BinMFunction.SwigPyIterator___iadd__(self, n) + + def __isub__(self, n): + return _BinMFunction.SwigPyIterator___isub__(self, n) + + def __add__(self, n): + return _BinMFunction.SwigPyIterator___add__(self, n) + + def __sub__(self, *args): + return _BinMFunction.SwigPyIterator___sub__(self, *args) + def __iter__(self): + return self + +# Register SwigPyIterator in _BinMFunction: +_BinMFunction.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 = ". + + """ + return _BinMFunction.binmfunction_AddDrivers(*args) + + __repr__ = _dumps_object + + + def __init__(self): + _BinMFunction.binmfunction_swiginit(self, _BinMFunction.new_binmfunction()) + __swig_destroy__ = _BinMFunction.delete_binmfunction + +# Register binmfunction in _BinMFunction: +_BinMFunction.binmfunction_swigregister(binmfunction) +class BinMFunction_FunctionDriver(OCC.Core.BinMDF.BinMDF_ADriver): + 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 + ---------- + theMessageDriver: Message_Messenger + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _BinMFunction.BinMFunction_FunctionDriver_swiginit(self, _BinMFunction.new_BinMFunction_FunctionDriver(*args)) + + def Paste(self, *args): + r""" + + Parameters + ---------- + Source: BinObjMgt_Persistent + Target: TDF_Attribute + RelocTable: BinObjMgt_RRelocationTable + + Return + ------- + bool + + Description + ----------- + No available documentation. + + Parameters + ---------- + Source: TDF_Attribute + Target: BinObjMgt_Persistent + RelocTable: BinObjMgt_SRelocationTable + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BinMFunction.BinMFunction_FunctionDriver_Paste(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_BinMFunction_FunctionDriver_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _BinMFunction.delete_BinMFunction_FunctionDriver + +# Register BinMFunction_FunctionDriver in _BinMFunction: +_BinMFunction.BinMFunction_FunctionDriver_swigregister(BinMFunction_FunctionDriver) +class BinMFunction_GraphNodeDriver(OCC.Core.BinMDF.BinMDF_ADriver): + 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 + ---------- + theMessageDriver: Message_Messenger + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _BinMFunction.BinMFunction_GraphNodeDriver_swiginit(self, _BinMFunction.new_BinMFunction_GraphNodeDriver(*args)) + + def Paste(self, *args): + r""" + + Parameters + ---------- + Source: BinObjMgt_Persistent + Target: TDF_Attribute + RelocTable: BinObjMgt_RRelocationTable + + Return + ------- + bool + + Description + ----------- + No available documentation. + + Parameters + ---------- + Source: TDF_Attribute + Target: BinObjMgt_Persistent + RelocTable: BinObjMgt_SRelocationTable + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BinMFunction.BinMFunction_GraphNodeDriver_Paste(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_BinMFunction_GraphNodeDriver_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _BinMFunction.delete_BinMFunction_GraphNodeDriver + +# Register BinMFunction_GraphNodeDriver in _BinMFunction: +_BinMFunction.BinMFunction_GraphNodeDriver_swigregister(BinMFunction_GraphNodeDriver) +class BinMFunction_ScopeDriver(OCC.Core.BinMDF.BinMDF_ADriver): + 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 + ---------- + theMessageDriver: Message_Messenger + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _BinMFunction.BinMFunction_ScopeDriver_swiginit(self, _BinMFunction.new_BinMFunction_ScopeDriver(*args)) + + def Paste(self, *args): + r""" + + Parameters + ---------- + Source: BinObjMgt_Persistent + Target: TDF_Attribute + RelocTable: BinObjMgt_RRelocationTable + + Return + ------- + bool + + Description + ----------- + No available documentation. + + Parameters + ---------- + Source: TDF_Attribute + Target: BinObjMgt_Persistent + RelocTable: BinObjMgt_SRelocationTable + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _BinMFunction.BinMFunction_ScopeDriver_Paste(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_BinMFunction_ScopeDriver_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _BinMFunction.delete_BinMFunction_ScopeDriver + +# Register BinMFunction_ScopeDriver in _BinMFunction: +_BinMFunction.BinMFunction_ScopeDriver_swigregister(BinMFunction_ScopeDriver) + + + +@deprecated +def binmfunction_AddDrivers(*args): + return binmfunction.AddDrivers(*args) + + + diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BinMXCAFDoc.pyi b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BinMXCAFDoc.pyi new file mode 100644 index 0000000000000000000000000000000000000000..28bb1beed136d8da7866d090c3150d59be19f527 --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BinMXCAFDoc.pyi @@ -0,0 +1,286 @@ +from enum import IntEnum +from typing import overload, NewType, Optional, Tuple + +from OCC.Core.Standard import * +from OCC.Core.NCollection import * +from OCC.Core.BinMDF import * +from OCC.Core.Message import * +from OCC.Core.TDF import * +from OCC.Core.BinObjMgt import * +from OCC.Core.BinMNaming import * +from OCC.Core.TopLoc import * + +class binmxcafdoc: + @staticmethod + def AddDrivers( + theDriverTable: BinMDF_ADriverTable, theMsgDrv: Message_Messenger + ) -> None: ... + +class BinMXCAFDoc_AssemblyItemRefDriver(BinMDF_ADriver): + def __init__(self, theMsgDriver: Message_Messenger) -> None: ... + def NewEmpty(self) -> TDF_Attribute: ... + @overload + def Paste( + self, + theSource: BinObjMgt_Persistent, + theTarget: TDF_Attribute, + theRelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + theSource: TDF_Attribute, + theTarget: BinObjMgt_Persistent, + theRelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... + +class BinMXCAFDoc_CentroidDriver(BinMDF_ADriver): + def __init__(self, theMsgDriver: Message_Messenger) -> None: ... + def NewEmpty(self) -> TDF_Attribute: ... + @overload + def Paste( + self, + theSource: BinObjMgt_Persistent, + theTarget: TDF_Attribute, + theRelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + theSource: TDF_Attribute, + theTarget: BinObjMgt_Persistent, + theRelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... + +class BinMXCAFDoc_ColorDriver(BinMDF_ADriver): + def __init__(self, theMsgDriver: Message_Messenger) -> None: ... + def NewEmpty(self) -> TDF_Attribute: ... + @overload + def Paste( + self, + theSource: BinObjMgt_Persistent, + theTarget: TDF_Attribute, + theRelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + theSource: TDF_Attribute, + theTarget: BinObjMgt_Persistent, + theRelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... + +class BinMXCAFDoc_DatumDriver(BinMDF_ADriver): + def __init__(self, theMsgDriver: Message_Messenger) -> None: ... + def NewEmpty(self) -> TDF_Attribute: ... + @overload + def Paste( + self, + theSource: BinObjMgt_Persistent, + theTarget: TDF_Attribute, + theRelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + theSource: TDF_Attribute, + theTarget: BinObjMgt_Persistent, + theRelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... + +class BinMXCAFDoc_DimTolDriver(BinMDF_ADriver): + def __init__(self, theMsgDriver: Message_Messenger) -> None: ... + def NewEmpty(self) -> TDF_Attribute: ... + @overload + def Paste( + self, + theSource: BinObjMgt_Persistent, + theTarget: TDF_Attribute, + theRelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + theSource: TDF_Attribute, + theTarget: BinObjMgt_Persistent, + theRelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... + +class BinMXCAFDoc_GraphNodeDriver(BinMDF_ADriver): + def __init__(self, theMsgDriver: Message_Messenger) -> None: ... + def NewEmpty(self) -> TDF_Attribute: ... + @overload + def Paste( + self, + theSource: BinObjMgt_Persistent, + theTarget: TDF_Attribute, + theRelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + theSource: TDF_Attribute, + theTarget: BinObjMgt_Persistent, + theRelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... + +class BinMXCAFDoc_LengthUnitDriver(BinMDF_ADriver): + def __init__(self, theMsgDriver: Message_Messenger) -> None: ... + def NewEmpty(self) -> TDF_Attribute: ... + @overload + def Paste( + self, + theSource: BinObjMgt_Persistent, + theTarget: TDF_Attribute, + theRelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + theSource: TDF_Attribute, + theTarget: BinObjMgt_Persistent, + theRelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... + +class BinMXCAFDoc_LocationDriver(BinMDF_ADriver): + def __init__(self, theMsgDriver: Message_Messenger) -> None: ... + def NewEmpty(self) -> TDF_Attribute: ... + @overload + def Paste( + self, + theSource: BinObjMgt_Persistent, + theTarget: TDF_Attribute, + theRelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + theSource: TDF_Attribute, + theTarget: BinObjMgt_Persistent, + theRelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... + def SetNSDriver(self, theNSDriver: BinMNaming_NamedShapeDriver) -> None: ... + @overload + def Translate( + self, + theSource: BinObjMgt_Persistent, + theLoc: TopLoc_Location, + theMap: BinObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Translate( + self, + theLoc: TopLoc_Location, + theTarget: BinObjMgt_Persistent, + theMap: BinObjMgt_SRelocationTable, + ) -> None: ... + +class BinMXCAFDoc_MaterialDriver(BinMDF_ADriver): + def __init__(self, theMsgDriver: Message_Messenger) -> None: ... + def NewEmpty(self) -> TDF_Attribute: ... + @overload + def Paste( + self, + theSource: BinObjMgt_Persistent, + theTarget: TDF_Attribute, + theRelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + theSource: TDF_Attribute, + theTarget: BinObjMgt_Persistent, + theRelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... + +class BinMXCAFDoc_NoteDriver(BinMDF_ADriver): + @overload + def Paste( + self, + theSource: BinObjMgt_Persistent, + theTarget: TDF_Attribute, + theRelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + theSource: TDF_Attribute, + theTarget: BinObjMgt_Persistent, + theRelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... + +class BinMXCAFDoc_VisMaterialDriver(BinMDF_ADriver): + def __init__(self, theMsgDriver: Message_Messenger) -> None: ... + def NewEmpty(self) -> TDF_Attribute: ... + @overload + def Paste( + self, + theSource: BinObjMgt_Persistent, + theTarget: TDF_Attribute, + theRelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + theSource: TDF_Attribute, + theTarget: BinObjMgt_Persistent, + theRelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... + +class BinMXCAFDoc_VisMaterialToolDriver(BinMDF_ADriver): + def __init__(self, theMsgDriver: Message_Messenger) -> None: ... + def NewEmpty(self) -> TDF_Attribute: ... + @overload + def Paste( + self, + theSource: BinObjMgt_Persistent, + theTarget: TDF_Attribute, + theRelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + theSource: TDF_Attribute, + theTarget: BinObjMgt_Persistent, + theRelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... + +class BinMXCAFDoc_NoteBinDataDriver(BinMXCAFDoc_NoteDriver): + def __init__(self, theMsgDriver: Message_Messenger) -> None: ... + def NewEmpty(self) -> TDF_Attribute: ... + @overload + def Paste( + self, + theSource: BinObjMgt_Persistent, + theTarget: TDF_Attribute, + theRelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + theSource: TDF_Attribute, + theTarget: BinObjMgt_Persistent, + theRelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... + +class BinMXCAFDoc_NoteCommentDriver(BinMXCAFDoc_NoteDriver): + def __init__(self, theMsgDriver: Message_Messenger) -> None: ... + def NewEmpty(self) -> TDF_Attribute: ... + @overload + def Paste( + self, + theSource: BinObjMgt_Persistent, + theTarget: TDF_Attribute, + theRelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + theSource: TDF_Attribute, + theTarget: BinObjMgt_Persistent, + theRelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... + +# harray1 classes +# harray2 classes +# hsequence classes diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BinTObjDrivers.pyi b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BinTObjDrivers.pyi new file mode 100644 index 0000000000000000000000000000000000000000..5bb97cf988dcb83db33007b3e62a2925700609e0 --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/BinTObjDrivers.pyi @@ -0,0 +1,127 @@ +from enum import IntEnum +from typing import overload, NewType, Optional, Tuple + +from OCC.Core.Standard import * +from OCC.Core.NCollection import * +from OCC.Core.BinMDF import * +from OCC.Core.Message import * +from OCC.Core.TDocStd import * +from OCC.Core.BinLDrivers import * +from OCC.Core.TDF import * +from OCC.Core.BinObjMgt import * + +class bintobjdrivers: + @staticmethod + def AddDrivers( + aDriverTable: BinMDF_ADriverTable, aMsgDrv: Message_Messenger + ) -> None: ... + @staticmethod + def DefineFormat(theApp: TDocStd_Application) -> None: ... + @staticmethod + def Factory(aGUID: Standard_GUID) -> Standard_Transient: ... + +class BinTObjDrivers_DocumentRetrievalDriver(BinLDrivers_DocumentRetrievalDriver): + def __init__(self) -> None: ... + def AttributeDrivers( + self, theMsgDriver: Message_Messenger + ) -> BinMDF_ADriverTable: ... + +class BinTObjDrivers_DocumentStorageDriver(BinLDrivers_DocumentStorageDriver): + def __init__(self) -> None: ... + def AttributeDrivers( + self, theMsgDriver: Message_Messenger + ) -> BinMDF_ADriverTable: ... + +class BinTObjDrivers_IntSparseArrayDriver(BinMDF_ADriver): + def __init__(self, theMessageDriver: Message_Messenger) -> None: ... + def NewEmpty(self) -> TDF_Attribute: ... + @overload + def Paste( + self, + theSource: BinObjMgt_Persistent, + theTarget: TDF_Attribute, + theRelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + theSource: TDF_Attribute, + theTarget: BinObjMgt_Persistent, + theRelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... + +class BinTObjDrivers_ModelDriver(BinMDF_ADriver): + def __init__(self, theMessageDriver: Message_Messenger) -> None: ... + def NewEmpty(self) -> TDF_Attribute: ... + @overload + def Paste( + self, + Source: BinObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + Source: TDF_Attribute, + Target: BinObjMgt_Persistent, + RelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... + +class BinTObjDrivers_ObjectDriver(BinMDF_ADriver): + def __init__(self, theMessageDriver: Message_Messenger) -> None: ... + def NewEmpty(self) -> TDF_Attribute: ... + @overload + def Paste( + self, + Source: BinObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + Source: TDF_Attribute, + Target: BinObjMgt_Persistent, + RelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... + +class BinTObjDrivers_ReferenceDriver(BinMDF_ADriver): + def __init__(self, theMessageDriver: Message_Messenger) -> None: ... + def NewEmpty(self) -> TDF_Attribute: ... + @overload + def Paste( + self, + Source: BinObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + Source: TDF_Attribute, + Target: BinObjMgt_Persistent, + RelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... + +class BinTObjDrivers_XYZDriver(BinMDF_ADriver): + def __init__(self, theMessageDriver: Message_Messenger) -> None: ... + def NewEmpty(self) -> TDF_Attribute: ... + @overload + def Paste( + self, + theSource: BinObjMgt_Persistent, + theTarget: TDF_Attribute, + theRelocTable: BinObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + theSource: TDF_Attribute, + theTarget: BinObjMgt_Persistent, + theRelocTable: BinObjMgt_SRelocationTable, + ) -> None: ... + +# harray1 classes +# harray2 classes +# hsequence classes diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/CDF.py b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/CDF.py new file mode 100644 index 0000000000000000000000000000000000000000..0272da22ab7f8cf9c76061877991f1f22832d9b7 --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/CDF.py @@ -0,0 +1,1908 @@ +# 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. + +""" +CDF module, see official documentation at +https://dev.opencascade.org/doc/occt-7.9.0/refman/html/package_cdf.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 _CDF +else: + import _CDF + +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__ = _CDF.delete_SwigPyIterator + + def value(self): + return _CDF.SwigPyIterator_value(self) + + def incr(self, n=1): + return _CDF.SwigPyIterator_incr(self, n) + + def decr(self, n=1): + return _CDF.SwigPyIterator_decr(self, n) + + def distance(self, x): + return _CDF.SwigPyIterator_distance(self, x) + + def equal(self, x): + return _CDF.SwigPyIterator_equal(self, x) + + def copy(self): + return _CDF.SwigPyIterator_copy(self) + + def next(self): + return _CDF.SwigPyIterator_next(self) + + def __next__(self): + return _CDF.SwigPyIterator___next__(self) + + def previous(self): + return _CDF.SwigPyIterator_previous(self) + + def advance(self, n): + return _CDF.SwigPyIterator_advance(self, n) + + def __eq__(self, x): + return _CDF.SwigPyIterator___eq__(self, x) + + def __ne__(self, x): + return _CDF.SwigPyIterator___ne__(self, x) + + def __iadd__(self, n): + return _CDF.SwigPyIterator___iadd__(self, n) + + def __isub__(self, n): + return _CDF.SwigPyIterator___isub__(self, n) + + def __add__(self, n): + return _CDF.SwigPyIterator___add__(self, n) + + def __sub__(self, *args): + return _CDF.SwigPyIterator___sub__(self, *args) + def __iter__(self): + return self + +# Register SwigPyIterator in _CDF: +_CDF.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 + ----------- + plugs an application. //! Open is used - for opening a Document that has been created in an application - for opening a Document from the database - for opening a Document from a file. The Open methods always add the document in the session directory and calls the virtual Activate method. The document is considered to be opened until Close is used. To be storable, a document must be opened by an application since the application resources are needed to store it. + + """ + return _CDF.CDF_Application_Load(*args) + + def MetaDataDriver(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + returns MetaDatdDriver of this application. + + """ + return _CDF.CDF_Application_MetaDataDriver(self, *args) + + def NewDocument(self, *args): + r""" + + Parameters + ---------- + theFormat: str + theDoc: CDM_Document + + Return + ------- + None + + Description + ----------- + Constructs an new empty document. This document will have the specified format. If InitDocument() is redefined for a specific application, the new document is handled by the applicative session. + + """ + return _CDF.CDF_Application_NewDocument(self, *args) + + def Open(self, *args): + r""" + + Parameters + ---------- + aDocument: CDM_Document + + Return + ------- + None + + Description + ----------- + puts the document in the current session directory and calls the virtual method Activate on it. + + """ + return _CDF.CDF_Application_Open(self, *args) + + def Read(self, *args): + r""" + + Parameters + ---------- + theIStream: str + theDocument: CDM_Document + theFilter: PCDM_ReaderFilter (optional, default to opencascade::handle()) + theRange: Message_ProgressRange (optional, default to Message_ProgressRange()) + + Return + ------- + None + + Description + ----------- + Reads theDocument from standard SEEKABLE stream theIStream, the stream should support SEEK functionality. + + """ + return _CDF.CDF_Application_Read(self, *args) + + def ReaderFromFormat(self, *args): + r""" + + Parameters + ---------- + aFormat: str + + Return + ------- + opencascade::handle + + Description + ----------- + Returns instance of read driver for specified format. //! Default implementation uses plugin mechanism to load reader dynamically. For this to work, application resources should define GUID of the plugin as value of [Format].RetrievalPlugin, and 'Plugin' resource should define name of plugin library to be loaded as value of [GUID].Location. Plugin library should provide method PLUGINFACTORY returning instance of the reader for the same GUID (see Plugin_Macro.hxx). //! In case if reader is not available, will raise Standard_NoSuchObject or other exception if raised by plugin loader. + + """ + return _CDF.CDF_Application_ReaderFromFormat(self, *args) + + def Retrieve(self, *args): + r""" + + Parameters + ---------- + aFolder: str + aName: str + UseStorageConfiguration: bool (optional, default to Standard_True) + theFilter: PCDM_ReaderFilter (optional, default to opencascade::handle()) + theRange: Message_ProgressRange (optional, default to Message_ProgressRange()) + + Return + ------- + opencascade::handle + + Description + ----------- + This method retrieves a document from the database. If the Document references other documents which have been updated, the latest version of these documents will be used if {UseStorageConfiguration} is Standard_True. The content of {aFolder}, {aName} and {aVersion} depends on the Database Manager system. If the DBMS is only based on the OS, {aFolder} is a directory and {aName} is the name of a file. In this case the use of the syntax with {aVersion} has no sense. For example: //! opencascade::handle theDocument=myApplication->Retrieve('/home/cascade','box.dsg'); If the DBMS is EUCLID/Design Manager, {aFolder}, {aName} have the form they have in EUCLID/Design Manager. For example: //! opencascade::handle theDocument=myApplication->Retrieve('|user|cascade','box'); //! Since the version is not specified in this syntax, the latest will be used. A link is kept with the database through an instance of CDM_MetaData. + + Parameters + ---------- + aFolder: str + aName: str + aVersion: str + UseStorageConfiguration: bool (optional, default to Standard_True) + theFilter: PCDM_ReaderFilter (optional, default to opencascade::handle()) + theRange: Message_ProgressRange (optional, default to Message_ProgressRange()) + + Return + ------- + opencascade::handle + + Description + ----------- + This method retrieves a document from the database. If the Document references other documents which have been updated, the latest version of these documents will be used if {UseStorageConfiguration} is Standard_True. -- If the DBMS is only based on the OS, this syntax should not be used. //! If the DBMS is EUCLID/Design Manager, {aFolder}, {aName} and {aVersion} have the form they have in EUCLID/Design Manager. For example: //! opencascade::handle theDocument=myApplication->Retrieve('|user|cascade','box','2'); A link is kept with the database through an instance of CDM_MetaData. + + """ + return _CDF.CDF_Application_Retrieve(self, *args) + + def SetDefaultFolder(self, *args): + r""" + + Parameters + ---------- + aFolder: Standard_ExtString + + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _CDF.CDF_Application_SetDefaultFolder(self, *args) + + def WriterFromFormat(self, *args): + r""" + + Parameters + ---------- + aFormat: str + + Return + ------- + opencascade::handle + + Description + ----------- + Returns instance of storage driver for specified format. //! Default implementation uses plugin mechanism to load driver dynamically. For this to work, application resources should define GUID of the plugin as value of [Format].StoragePlugin, and 'Plugin' resource should define name of plugin library to be loaded as value of [GUID].Location. Plugin library should provide method PLUGINFACTORY returning instance of the reader for the same GUID (see Plugin_Macro.hxx). //! In case if driver is not available, will raise Standard_NoSuchObject or other exception if raised by plugin loader. + + """ + return _CDF.CDF_Application_WriterFromFormat(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_CDF_Application_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _CDF.delete_CDF_Application + +# Register CDF_Application in _CDF: +_CDF.CDF_Application_swigregister(CDF_Application) +class CDF_Directory(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 directory. + + """ + _CDF.CDF_Directory_swiginit(self, _CDF.new_CDF_Directory(*args)) + + def Add(self, *args): + r""" + + Parameters + ---------- + aDocument: CDM_Document + + Return + ------- + None + + Description + ----------- + adds a document into the directory. + + """ + return _CDF.CDF_Directory_Add(self, *args) + + def Contains(self, *args): + r""" + + Parameters + ---------- + aDocument: CDM_Document + + Return + ------- + bool + + Description + ----------- + Returns true if the document aDocument is in the directory. + + """ + return _CDF.CDF_Directory_Contains(self, *args) + + def IsEmpty(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + returns true if the directory is empty. + + """ + return _CDF.CDF_Directory_IsEmpty(self, *args) + + def Last(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + returns the last document (if any) which has been added in the directory. + + """ + return _CDF.CDF_Directory_Last(self, *args) + + def Length(self, *args): + r""" + Return + ------- + int + + Description + ----------- + returns the number of documents of the directory. + + """ + return _CDF.CDF_Directory_Length(self, *args) + + def Remove(self, *args): + r""" + + Parameters + ---------- + aDocument: CDM_Document + + Return + ------- + None + + Description + ----------- + removes the document. + + """ + return _CDF.CDF_Directory_Remove(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_CDF_Directory_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _CDF.delete_CDF_Directory + +# Register CDF_Directory in _CDF: +_CDF.CDF_Directory_swigregister(CDF_Directory) +class CDF_MetaDataDriver(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 BuildFileName(self, *args): + r""" + + Parameters + ---------- + aDocument: CDM_Document + + Return + ------- + TCollection_ExtendedString + + Description + ----------- + No available documentation. + + """ + return _CDF.CDF_MetaDataDriver_BuildFileName(self, *args) + + def CreateDependsOn(self, *args): + r""" + + Parameters + ---------- + aFirstData: CDM_MetaData + aSecondData: CDM_MetaData + + Return + ------- + None + + Description + ----------- + Creates a 'Depends On' relation between two Datas. By default does nothing. + + """ + return _CDF.CDF_MetaDataDriver_CreateDependsOn(self, *args) + + def CreateMetaData(self, *args): + r""" + + Parameters + ---------- + aDocument: CDM_Document + aFileName: str + + Return + ------- + opencascade::handle + + Description + ----------- + should create meta-data corresponding to aData and maintaining a meta-link between these meta-data and aFileName CreateMetaData is called by CreateData If the metadata-driver has version capabilities, version must be set in the returned Data. + + """ + return _CDF.CDF_MetaDataDriver_CreateMetaData(self, *args) + + def CreateReference(self, *args): + r""" + + Parameters + ---------- + aFrom: CDM_MetaData + aTo: CDM_MetaData + aReferenceIdentifier: int + aToDocumentVersion: int + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _CDF.CDF_MetaDataDriver_CreateReference(self, *args) + + def DefaultFolder(self, *args): + r""" + Return + ------- + TCollection_ExtendedString + + Description + ----------- + No available documentation. + + """ + return _CDF.CDF_MetaDataDriver_DefaultFolder(self, *args) + + def Find(self, *args): + r""" + + Parameters + ---------- + aFolder: str + aName: str + aVersion: str + + Return + ------- + bool + + Description + ----------- + should indicate whether meta-data exist in the DBMS corresponding to the Data. aVersion may be NULL;. + + Parameters + ---------- + aFolder: str + aName: str + + Return + ------- + bool + + Description + ----------- + calls Find with an empty version. + + """ + return _CDF.CDF_MetaDataDriver_Find(self, *args) + + def FindFolder(self, *args): + r""" + + Parameters + ---------- + aFolder: str + + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _CDF.CDF_MetaDataDriver_FindFolder(self, *args) + + def HasReadPermission(self, *args): + r""" + + Parameters + ---------- + aFolder: str + aName: str + aVersion: str + + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _CDF.CDF_MetaDataDriver_HasReadPermission(self, *args) + + def HasVersion(self, *args): + r""" + + Parameters + ---------- + aFolder: str + aName: str + + Return + ------- + bool + + Description + ----------- + by default return Standard_True. + + """ + return _CDF.CDF_MetaDataDriver_HasVersion(self, *args) + + def HasVersionCapability(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + returns true if the MetaDataDriver can manage different versions of a Data. By default, returns Standard_False. + + """ + return _CDF.CDF_MetaDataDriver_HasVersionCapability(self, *args) + + def LastVersion(self, *args): + r""" + + Parameters + ---------- + aMetaData: CDM_MetaData + + Return + ------- + opencascade::handle + + Description + ----------- + by default returns aMetaDATA should return the MetaData stored in the DBMS with the meta-data corresponding to the path. If the MetaDataDriver has version management capabilities the version has to be set in the returned MetaData. MetaData is called by GetMetaData If the version is not included in the path , MetaData should return the last version of the metadata is deferred;. + + """ + return _CDF.CDF_MetaDataDriver_LastVersion(self, *args) + + def MetaData(self, *args): + r""" + + Parameters + ---------- + aFolder: str + aName: str + aVersion: str + + Return + ------- + opencascade::handle + + Description + ----------- + should return the MetaData stored in the DBMS with the meta-data corresponding to the Data. If the MetaDataDriver has version management capabilities the version has to be set in the returned MetaData. aVersion may be NULL MetaData is called by GetMetaData If the version is set to NULL, MetaData should return the last version of the metadata. + + Parameters + ---------- + aFolder: str + aName: str + + Return + ------- + opencascade::handle + + Description + ----------- + calls MetaData with an empty version. + + """ + return _CDF.CDF_MetaDataDriver_MetaData(self, *args) + + def ReferenceIterator(self, *args): + r""" + + Parameters + ---------- + theMessageDriver: Message_Messenger + + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _CDF.CDF_MetaDataDriver_ReferenceIterator(self, *args) + + def SetName(self, *args): + r""" + + Parameters + ---------- + aDocument: CDM_Document + aName: str + + Return + ------- + TCollection_ExtendedString + + Description + ----------- + this method is useful if the name of an object -- depends on the metadatadriver. For example a Driver -- based on the operating system can choose to add the extension of file to create to the object. + + """ + return _CDF.CDF_MetaDataDriver_SetName(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_CDF_MetaDataDriver_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _CDF.delete_CDF_MetaDataDriver + +# Register CDF_MetaDataDriver in _CDF: +_CDF.CDF_MetaDataDriver_swigregister(CDF_MetaDataDriver) +class CDF_MetaDataDriverFactory(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 Build(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _CDF.CDF_MetaDataDriverFactory_Build(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_CDF_MetaDataDriverFactory_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _CDF.delete_CDF_MetaDataDriverFactory + +# Register CDF_MetaDataDriverFactory in _CDF: +_CDF.CDF_MetaDataDriverFactory_swigregister(CDF_MetaDataDriverFactory) +class CDF_Store(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 + ---------- + aDocument: CDM_Document + + Return + ------- + None + + Description + ----------- + creates a store list from the document of the current selection. + + """ + _CDF.CDF_Store_swiginit(self, _CDF.new_CDF_Store(*args)) + + def AssociatedStatusText(self, *args): + r""" + Return + ------- + Standard_ExtString + + Description + ----------- + No available documentation. + + """ + return _CDF.CDF_Store_AssociatedStatusText(self, *args) + + def Comment(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _CDF.CDF_Store_Comment(self, *args) + + def CurrentIsConsistent(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _CDF.CDF_Store_CurrentIsConsistent(self, *args) + + def Description(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + returns the description of the format of the main object. + + """ + return _CDF.CDF_Store_Description(self, *args) + + def Folder(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + returns the folder in which the current document will be stored. + + """ + return _CDF.CDF_Store_Folder(self, *args) + + def HasAPreviousVersion(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _CDF.CDF_Store_HasAPreviousVersion(self, *args) + + def IsConsistent(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _CDF.CDF_Store_IsConsistent(self, *args) + + def IsMainDocument(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + returns true if the currentdocument is the main one, ie the document of the current selection. + + """ + return _CDF.CDF_Store_IsMainDocument(self, *args) + + def IsModified(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _CDF.CDF_Store_IsModified(self, *args) + + def IsStored(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + returns true if the current document is already stored. + + """ + return _CDF.CDF_Store_IsStored(self, *args) + + def MetaDataPath(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + returns the path of the previous store is the object is already stored, otherwise an empty string;. + + """ + return _CDF.CDF_Store_MetaDataPath(self, *args) + + def Name(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + returns the name under which the current document will be stored. + + """ + return _CDF.CDF_Store_Name(self, *args) + + def Path(self, *args): + r""" + Return + ------- + Standard_ExtString + + Description + ----------- + returns the complete path of the created meta-data. + + """ + return _CDF.CDF_Store_Path(self, *args) + + def PreviousVersion(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _CDF.CDF_Store_PreviousVersion(self, *args) + + def Realize(self, *args): + r""" + + Parameters + ---------- + theRange: Message_ProgressRange (optional, default to Message_ProgressRange()) + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _CDF.CDF_Store_Realize(self, *args) + + def RecheckName(self, *args): + r""" + Return + ------- + CDF_StoreSetNameStatus + + Description + ----------- + defines the name under which the document should be stored. uses for example after modification of the folder. + + """ + return _CDF.CDF_Store_RecheckName(self, *args) + + def SetComment(self, *args): + r""" + + Parameters + ---------- + aComment: Standard_ExtString + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _CDF.CDF_Store_SetComment(self, *args) + + def SetCurrent(self, *args): + r""" + + Parameters + ---------- + aPresentation: Standard_ExtString + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _CDF.CDF_Store_SetCurrent(self, *args) + + def SetFolder(self, *args): + r""" + + Parameters + ---------- + aFolder: str + + Return + ------- + bool + + Description + ----------- + defines the folder in which the document should be stored. returns Standard_True if the Folder exists, Standard_False otherwise. + + Parameters + ---------- + aFolder: Standard_ExtString + + Return + ------- + bool + + Description + ----------- + defines the folder in which the document should be stored. returns Standard_True if the Folder exists, Standard_False otherwise. + + """ + return _CDF.CDF_Store_SetFolder(self, *args) + + def SetMain(self, *args): + r""" + Return + ------- + None + + Description + ----------- + the two following methods can be used just after Realize or Import -- method to know if thes methods worked correctly, and if not why. + + """ + return _CDF.CDF_Store_SetMain(self, *args) + + def SetName(self, *args): + r""" + + Parameters + ---------- + aName: Standard_ExtString + + Return + ------- + CDF_StoreSetNameStatus + + Description + ----------- + defines the name under which the document should be stored. + + Parameters + ---------- + aName: str + + Return + ------- + CDF_StoreSetNameStatus + + Description + ----------- + defines the name under which the document should be stored. + + """ + return _CDF.CDF_Store_SetName(self, *args) + + def SetPreviousVersion(self, *args): + r""" + + Parameters + ---------- + aPreviousVersion: Standard_ExtString + + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _CDF.CDF_Store_SetPreviousVersion(self, *args) + + def StoreStatus(self, *args): + r""" + Return + ------- + PCDM_StoreStatus + + Description + ----------- + No available documentation. + + """ + return _CDF.CDF_Store_StoreStatus(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _CDF.delete_CDF_Store + +# Register CDF_Store in _CDF: +_CDF.CDF_Store_swigregister(CDF_Store) +class CDF_StoreList(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 + ---------- + aDocument: CDM_Document + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _CDF.CDF_StoreList_swiginit(self, _CDF.new_CDF_StoreList(*args)) + + def Init(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _CDF.CDF_StoreList_Init(self, *args) + + def IsConsistent(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _CDF.CDF_StoreList_IsConsistent(self, *args) + + def More(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _CDF.CDF_StoreList_More(self, *args) + + def Next(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _CDF.CDF_StoreList_Next(self, *args) + + def Store(self, *args): + r""" + + Parameters + ---------- + aMetaData: CDM_MetaData + aStatusAssociatedText: str + theRange: Message_ProgressRange (optional, default to Message_ProgressRange()) + + Return + ------- + PCDM_StoreStatus + + Description + ----------- + stores each object of the storelist in the reverse order of which they had been added. + + """ + return _CDF.CDF_StoreList_Store(self, *args) + + def Value(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _CDF.CDF_StoreList_Value(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_CDF_StoreList_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _CDF.delete_CDF_StoreList + +# Register CDF_StoreList in _CDF: +_CDF.CDF_StoreList_swigregister(CDF_StoreList) +class CDF_FWOSDriver(CDF_MetaDataDriver): + 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 + ---------- + theLookUpTable: CDM_MetaDataLookUpTable + + Return + ------- + None + + Description + ----------- + Initializes the MetaDatadriver connected to specified look-up table. Note that the created driver will keep reference to the table, thus it must have life time longer than this object. + + """ + _CDF.CDF_FWOSDriver_swiginit(self, _CDF.new_CDF_FWOSDriver(*args)) + + + @staticmethod + def DownCast(t): + return Handle_CDF_FWOSDriver_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _CDF.delete_CDF_FWOSDriver + +# Register CDF_FWOSDriver in _CDF: +_CDF.CDF_FWOSDriver_swigregister(CDF_FWOSDriver) + +@classnotwrapped +class CDF_DirectoryIterator: + pass + + + + + +@deprecated +def CDF_Application_Load(*args): + return CDF_Application.Load(*args) + + + diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/CPnts.pyi b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/CPnts.pyi new file mode 100644 index 0000000000000000000000000000000000000000..8cce23578efc3eda785d69b3a3d8c4532a54e538 --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/CPnts.pyi @@ -0,0 +1,193 @@ +from enum import IntEnum +from typing import overload, NewType, Optional, Tuple + +from OCC.Core.Standard import * +from OCC.Core.NCollection import * +from OCC.Core.Adaptor3d import * +from OCC.Core.Adaptor2d import * +from OCC.Core.math import * +from OCC.Core.gp import * + +class CPnts_AbscissaPoint: + @overload + def __init__(self) -> None: ... + @overload + def __init__( + self, C: Adaptor3d_Curve, Abscissa: float, U0: float, Resolution: float + ) -> None: ... + @overload + def __init__( + self, C: Adaptor2d_Curve2d, Abscissa: float, U0: float, Resolution: float + ) -> None: ... + @overload + def __init__( + self, + C: Adaptor3d_Curve, + Abscissa: float, + U0: float, + Ui: float, + Resolution: float, + ) -> None: ... + @overload + def __init__( + self, + C: Adaptor2d_Curve2d, + Abscissa: float, + U0: float, + Ui: float, + Resolution: float, + ) -> None: ... + def AdvPerform( + self, Abscissa: float, U0: float, Ui: float, Resolution: float + ) -> None: ... + @overload + def Init(self, C: Adaptor3d_Curve) -> None: ... + @overload + def Init(self, C: Adaptor2d_Curve2d) -> None: ... + @overload + def Init(self, C: Adaptor3d_Curve, Tol: float) -> None: ... + @overload + def Init(self, C: Adaptor2d_Curve2d, Tol: float) -> None: ... + @overload + def Init(self, C: Adaptor3d_Curve, U1: float, U2: float) -> None: ... + @overload + def Init(self, C: Adaptor2d_Curve2d, U1: float, U2: float) -> None: ... + @overload + def Init(self, C: Adaptor3d_Curve, U1: float, U2: float, Tol: float) -> None: ... + @overload + def Init(self, C: Adaptor2d_Curve2d, U1: float, U2: float, Tol: float) -> None: ... + def IsDone(self) -> bool: ... + @overload + @staticmethod + def Length(C: Adaptor3d_Curve) -> float: ... + @overload + @staticmethod + def Length(C: Adaptor2d_Curve2d) -> float: ... + @overload + @staticmethod + def Length(C: Adaptor3d_Curve, Tol: float) -> float: ... + @overload + @staticmethod + def Length(C: Adaptor2d_Curve2d, Tol: float) -> float: ... + @overload + @staticmethod + def Length(C: Adaptor3d_Curve, U1: float, U2: float) -> float: ... + @overload + @staticmethod + def Length(C: Adaptor2d_Curve2d, U1: float, U2: float) -> float: ... + @overload + @staticmethod + def Length(C: Adaptor3d_Curve, U1: float, U2: float, Tol: float) -> float: ... + @overload + @staticmethod + def Length(C: Adaptor2d_Curve2d, U1: float, U2: float, Tol: float) -> float: ... + def Parameter(self) -> float: ... + @overload + def Perform(self, Abscissa: float, U0: float, Resolution: float) -> None: ... + @overload + def Perform( + self, Abscissa: float, U0: float, Ui: float, Resolution: float + ) -> None: ... + def SetParameter(self, P: float) -> None: ... + +class CPnts_MyGaussFunction(math_Function): + def __init__(self) -> None: ... + def Init(self, F: CPnts_RealFunction, D: None) -> None: ... + def Value(self, X: float) -> Tuple[bool, float]: ... + +class CPnts_MyRootFunction(math_FunctionWithDerivative): + def __init__(self) -> None: ... + def Derivative(self, X: float) -> Tuple[bool, float]: ... + @overload + def Init(self, F: CPnts_RealFunction, D: None, Order: int) -> None: ... + @overload + def Init(self, X0: float, L: float) -> None: ... + @overload + def Init(self, X0: float, L: float, Tol: float) -> None: ... + def Value(self, X: float) -> Tuple[bool, float]: ... + def Values(self, X: float) -> Tuple[bool, float, float]: ... + +class CPnts_UniformDeflection: + @overload + def __init__(self) -> None: ... + @overload + def __init__( + self, + C: Adaptor3d_Curve, + Deflection: float, + Resolution: float, + WithControl: bool, + ) -> None: ... + @overload + def __init__( + self, + C: Adaptor2d_Curve2d, + Deflection: float, + Resolution: float, + WithControl: bool, + ) -> None: ... + @overload + def __init__( + self, + C: Adaptor3d_Curve, + Deflection: float, + U1: float, + U2: float, + Resolution: float, + WithControl: bool, + ) -> None: ... + @overload + def __init__( + self, + C: Adaptor2d_Curve2d, + Deflection: float, + U1: float, + U2: float, + Resolution: float, + WithControl: bool, + ) -> None: ... + @overload + def Initialize( + self, + C: Adaptor3d_Curve, + Deflection: float, + Resolution: float, + WithControl: bool, + ) -> None: ... + @overload + def Initialize( + self, + C: Adaptor2d_Curve2d, + Deflection: float, + Resolution: float, + WithControl: bool, + ) -> None: ... + @overload + def Initialize( + self, + C: Adaptor3d_Curve, + Deflection: float, + U1: float, + U2: float, + Resolution: float, + WithControl: bool, + ) -> None: ... + @overload + def Initialize( + self, + C: Adaptor2d_Curve2d, + Deflection: float, + U1: float, + U2: float, + Resolution: float, + WithControl: bool, + ) -> None: ... + def IsAllDone(self) -> bool: ... + def More(self) -> bool: ... + def Next(self) -> None: ... + def Point(self) -> gp_Pnt: ... + def Value(self) -> float: ... + +# harray1 classes +# harray2 classes +# hsequence classes diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/Convert.py b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/Convert.py new file mode 100644 index 0000000000000000000000000000000000000000..24dea2e8b80862bd87f4f993943accbae248cca4 --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/Convert.py @@ -0,0 +1,2007 @@ +# 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. + +""" +Convert module, see official documentation at +https://dev.opencascade.org/doc/occt-7.9.0/refman/html/package_convert.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 _Convert +else: + import _Convert + +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__ = _Convert.delete_SwigPyIterator + + def value(self): + return _Convert.SwigPyIterator_value(self) + + def incr(self, n=1): + return _Convert.SwigPyIterator_incr(self, n) + + def decr(self, n=1): + return _Convert.SwigPyIterator_decr(self, n) + + def distance(self, x): + return _Convert.SwigPyIterator_distance(self, x) + + def equal(self, x): + return _Convert.SwigPyIterator_equal(self, x) + + def copy(self): + return _Convert.SwigPyIterator_copy(self) + + def next(self): + return _Convert.SwigPyIterator_next(self) + + def __next__(self): + return _Convert.SwigPyIterator___next__(self) + + def previous(self): + return _Convert.SwigPyIterator_previous(self) + + def advance(self, n): + return _Convert.SwigPyIterator_advance(self, n) + + def __eq__(self, x): + return _Convert.SwigPyIterator___eq__(self, x) + + def __ne__(self, x): + return _Convert.SwigPyIterator___ne__(self, x) + + def __iadd__(self, n): + return _Convert.SwigPyIterator___iadd__(self, n) + + def __isub__(self, n): + return _Convert.SwigPyIterator___isub__(self, n) + + def __add__(self, n): + return _Convert.SwigPyIterator___add__(self, n) + + def __sub__(self, *args): + return _Convert.SwigPyIterator___sub__(self, *args) + def __iter__(self): + return self + +# Register SwigPyIterator in _Convert: +_Convert.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 = " NbUKnots. + + """ + return _Convert.Convert_ElementarySurfaceToBSplineSurface_UKnot(self, *args) + + def UMultiplicity(self, *args): + r""" + + Parameters + ---------- + UIndex: int + + Return + ------- + int + + Description + ----------- + Returns the multiplicity of the U-knot of range UIndex. Raised if UIndex < 1 or UIndex > NbUKnots. + + """ + return _Convert.Convert_ElementarySurfaceToBSplineSurface_UMultiplicity(self, *args) + + def VDegree(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Returns the degree for the u or v parametric direction of the BSpline surface whose data is computed in this framework. + + """ + return _Convert.Convert_ElementarySurfaceToBSplineSurface_VDegree(self, *args) + + def VKnot(self, *args): + r""" + + Parameters + ---------- + UIndex: int + + Return + ------- + float + + Description + ----------- + Returns the V-knot of range VIndex. Raised if VIndex < 1 or VIndex > NbVKnots. + + """ + return _Convert.Convert_ElementarySurfaceToBSplineSurface_VKnot(self, *args) + + def VMultiplicity(self, *args): + r""" + + Parameters + ---------- + VIndex: int + + Return + ------- + int + + Description + ----------- + Returns the multiplicity of the V-knot of range VIndex. Raised if VIndex < 1 or VIndex > NbVKnots. + + """ + return _Convert.Convert_ElementarySurfaceToBSplineSurface_VMultiplicity(self, *args) + + def Weight(self, *args): + r""" + + Parameters + ---------- + UIndex: int + VIndex: int + + Return + ------- + float + + Description + ----------- + Returns the weight of the pole of index (UIndex,VIndex) to the poles table of the BSpline surface whose data is computed in this framework. Exceptions Standard_OutOfRange if, for the BSpline surface whose data is computed in this framework: - UIndex is outside the bounds of the poles table in the u parametric direction, or - VIndex is outside the bounds of the poles table in the v parametric direction. + + """ + return _Convert.Convert_ElementarySurfaceToBSplineSurface_Weight(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _Convert.delete_Convert_ElementarySurfaceToBSplineSurface + +# Register Convert_ElementarySurfaceToBSplineSurface in _Convert: +_Convert.Convert_ElementarySurfaceToBSplineSurface_swigregister(Convert_ElementarySurfaceToBSplineSurface) +class Convert_GridPolynomialToPoles(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 + ---------- + MaxUDegree: int + MaxVDegree: int + NumCoeff: TColStd_HArray1OfInteger + Coefficients: TColStd_HArray1OfReal + PolynomialUIntervals: TColStd_HArray1OfReal + PolynomialVIntervals: TColStd_HArray1OfReal + + Return + ------- + None + + Description + ----------- + To only one polynomial Surface. The Length of and have to be 2. This values defined the parametric domain of the Polynomial Equation. //! Coefficients: The have to be formatted than an 'C array' [MaxUDegree+1] [MaxVDegree+1] [3]. + + Parameters + ---------- + NbUSurfaces: int + NBVSurfaces: int + UContinuity: int + VContinuity: int + MaxUDegree: int + MaxVDegree: int + NumCoeffPerSurface: TColStd_HArray2OfInteger + Coefficients: TColStd_HArray1OfReal + PolynomialUIntervals: TColStd_HArray1OfReal + PolynomialVIntervals: TColStd_HArray1OfReal + TrueUIntervals: TColStd_HArray1OfReal + TrueVIntervals: TColStd_HArray1OfReal + + Return + ------- + None + + Description + ----------- + To one grid of polynomial Surface. Warning! Continuity in each parametric direction can be at MOST the maximum degree of the polynomial functions. //! , : this is the true parameterisation for the composite surface //! Coefficients: The Coefficients have to be formatted than an 'C array' [NbVSurfaces] [NBUSurfaces] [MaxUDegree+1] [MaxVDegree+1] [3] raises DomainError if is not a [1, NbVSurfaces*NbUSurfaces, 1,2] array. if is not a. + + """ + _Convert.Convert_GridPolynomialToPoles_swiginit(self, _Convert.new_Convert_GridPolynomialToPoles(*args)) + + def IsDone(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _Convert.Convert_GridPolynomialToPoles_IsDone(self, *args) + + def NbUKnots(self, *args): + r""" + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _Convert.Convert_GridPolynomialToPoles_NbUKnots(self, *args) + + def NbUPoles(self, *args): + r""" + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _Convert.Convert_GridPolynomialToPoles_NbUPoles(self, *args) + + def NbVKnots(self, *args): + r""" + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _Convert.Convert_GridPolynomialToPoles_NbVKnots(self, *args) + + def NbVPoles(self, *args): + r""" + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _Convert.Convert_GridPolynomialToPoles_NbVPoles(self, *args) + + def Perform(self, *args): + r""" + + Parameters + ---------- + UContinuity: int + VContinuity: int + MaxUDegree: int + MaxVDegree: int + NumCoeffPerSurface: TColStd_HArray2OfInteger + Coefficients: TColStd_HArray1OfReal + PolynomialUIntervals: TColStd_HArray1OfReal + PolynomialVIntervals: TColStd_HArray1OfReal + TrueUIntervals: TColStd_HArray1OfReal + TrueVIntervals: TColStd_HArray1OfReal + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _Convert.Convert_GridPolynomialToPoles_Perform(self, *args) + + def Poles(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + returns the poles of the BSpline Surface. + + """ + return _Convert.Convert_GridPolynomialToPoles_Poles(self, *args) + + def UDegree(self, *args): + r""" + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _Convert.Convert_GridPolynomialToPoles_UDegree(self, *args) + + def UKnots(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Knots in the U direction. + + """ + return _Convert.Convert_GridPolynomialToPoles_UKnots(self, *args) + + def UMultiplicities(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Multiplicities of the knots in the U direction. + + """ + return _Convert.Convert_GridPolynomialToPoles_UMultiplicities(self, *args) + + def VDegree(self, *args): + r""" + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _Convert.Convert_GridPolynomialToPoles_VDegree(self, *args) + + def VKnots(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Knots in the V direction. + + """ + return _Convert.Convert_GridPolynomialToPoles_VKnots(self, *args) + + def VMultiplicities(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Multiplicities of the knots in the V direction. + + """ + return _Convert.Convert_GridPolynomialToPoles_VMultiplicities(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _Convert.delete_Convert_GridPolynomialToPoles + +# Register Convert_GridPolynomialToPoles in _Convert: +_Convert.Convert_GridPolynomialToPoles_swigregister(Convert_GridPolynomialToPoles) +class Convert_CircleToBSplineCurve(Convert_ConicToBSplineCurve): + 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: gp_Circ2d + Parameterisation: Convert_ParameterisationType (optional, default to Convert_TgtThetaOver2) + + Return + ------- + None + + Description + ----------- + The equivalent B-spline curve has the same orientation as the circle C. + + Parameters + ---------- + C: gp_Circ2d + U1: float + U2: float + Parameterisation: Convert_ParameterisationType (optional, default to Convert_TgtThetaOver2) + + Return + ------- + None + + Description + ----------- + The circle C is limited between the parametric values U1, U2 in radians. U1 and U2 [0.0, 2*Pi] . The equivalent B-spline curve is oriented from U1 to U2 and has the same orientation as the circle C. //! Raised if U1 = U2 or U1 = U2 + 2.0 * Pi. + + """ + _Convert.Convert_CircleToBSplineCurve_swiginit(self, _Convert.new_Convert_CircleToBSplineCurve(*args)) + + __repr__ = _dumps_object + + __swig_destroy__ = _Convert.delete_Convert_CircleToBSplineCurve + +# Register Convert_CircleToBSplineCurve in _Convert: +_Convert.Convert_CircleToBSplineCurve_swigregister(Convert_CircleToBSplineCurve) +class Convert_ConeToBSplineSurface(Convert_ElementarySurfaceToBSplineSurface): + 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: gp_Cone + U1: float + U2: float + V1: float + V2: float + + Return + ------- + None + + Description + ----------- + The equivalent B-spline surface as the same orientation as the Cone in the U and V parametric directions. //! Raised if U1 = U2 or U1 = U2 + 2.0 * Pi Raised if V1 = V2. + + Parameters + ---------- + C: gp_Cone + V1: float + V2: float + + Return + ------- + None + + Description + ----------- + The equivalent B-spline surface as the same orientation as the Cone in the U and V parametric directions. //! Raised if V1 = V2. + + """ + _Convert.Convert_ConeToBSplineSurface_swiginit(self, _Convert.new_Convert_ConeToBSplineSurface(*args)) + + __repr__ = _dumps_object + + __swig_destroy__ = _Convert.delete_Convert_ConeToBSplineSurface + +# Register Convert_ConeToBSplineSurface in _Convert: +_Convert.Convert_ConeToBSplineSurface_swigregister(Convert_ConeToBSplineSurface) +class Convert_CylinderToBSplineSurface(Convert_ElementarySurfaceToBSplineSurface): + 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 + ---------- + Cyl: gp_Cylinder + U1: float + U2: float + V1: float + V2: float + + Return + ------- + None + + Description + ----------- + The equivalent B-splineSurface as the same orientation as the cylinder in the U and V parametric directions. //! Raised if U1 = U2 or U1 = U2 + 2.0 * Pi Raised if V1 = V2. + + Parameters + ---------- + Cyl: gp_Cylinder + V1: float + V2: float + + Return + ------- + None + + Description + ----------- + The equivalent B-splineSurface as the same orientation as the cylinder in the U and V parametric directions. //! Raised if V1 = V2. + + """ + _Convert.Convert_CylinderToBSplineSurface_swiginit(self, _Convert.new_Convert_CylinderToBSplineSurface(*args)) + + __repr__ = _dumps_object + + __swig_destroy__ = _Convert.delete_Convert_CylinderToBSplineSurface + +# Register Convert_CylinderToBSplineSurface in _Convert: +_Convert.Convert_CylinderToBSplineSurface_swigregister(Convert_CylinderToBSplineSurface) +class Convert_EllipseToBSplineCurve(Convert_ConicToBSplineCurve): + 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 + ---------- + E: gp_Elips2d + Parameterisation: Convert_ParameterisationType (optional, default to Convert_TgtThetaOver2) + + Return + ------- + None + + Description + ----------- + The equivalent B-spline curve has the same orientation as the ellipse E. + + Parameters + ---------- + E: gp_Elips2d + U1: float + U2: float + Parameterisation: Convert_ParameterisationType (optional, default to Convert_TgtThetaOver2) + + Return + ------- + None + + Description + ----------- + The ellipse E is limited between the parametric values U1, U2. The equivalent B-spline curve is oriented from U1 to U2 and has the same orientation as E. //! Raised if U1 = U2 or U1 = U2 + 2.0 * Pi. + + """ + _Convert.Convert_EllipseToBSplineCurve_swiginit(self, _Convert.new_Convert_EllipseToBSplineCurve(*args)) + + __repr__ = _dumps_object + + __swig_destroy__ = _Convert.delete_Convert_EllipseToBSplineCurve + +# Register Convert_EllipseToBSplineCurve in _Convert: +_Convert.Convert_EllipseToBSplineCurve_swigregister(Convert_EllipseToBSplineCurve) +class Convert_HyperbolaToBSplineCurve(Convert_ConicToBSplineCurve): + 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 + ---------- + H: gp_Hypr2d + U1: float + U2: float + + Return + ------- + None + + Description + ----------- + The hyperbola H is limited between the parametric values U1, U2 and the equivalent B-spline curve has the same orientation as the hyperbola. + + """ + _Convert.Convert_HyperbolaToBSplineCurve_swiginit(self, _Convert.new_Convert_HyperbolaToBSplineCurve(*args)) + + __repr__ = _dumps_object + + __swig_destroy__ = _Convert.delete_Convert_HyperbolaToBSplineCurve + +# Register Convert_HyperbolaToBSplineCurve in _Convert: +_Convert.Convert_HyperbolaToBSplineCurve_swigregister(Convert_HyperbolaToBSplineCurve) +class Convert_ParabolaToBSplineCurve(Convert_ConicToBSplineCurve): + 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 + ---------- + Prb: gp_Parab2d + U1: float + U2: float + + Return + ------- + None + + Description + ----------- + The parabola Prb is limited between the parametric values U1, U2 and the equivalent B-spline curve as the same orientation as the parabola Prb. + + """ + _Convert.Convert_ParabolaToBSplineCurve_swiginit(self, _Convert.new_Convert_ParabolaToBSplineCurve(*args)) + + __repr__ = _dumps_object + + __swig_destroy__ = _Convert.delete_Convert_ParabolaToBSplineCurve + +# Register Convert_ParabolaToBSplineCurve in _Convert: +_Convert.Convert_ParabolaToBSplineCurve_swigregister(Convert_ParabolaToBSplineCurve) +class Convert_SphereToBSplineSurface(Convert_ElementarySurfaceToBSplineSurface): + 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 + ---------- + Sph: gp_Sphere + U1: float + U2: float + V1: float + V2: float + + Return + ------- + None + + Description + ----------- + The equivalent B-spline surface as the same orientation as the sphere in the U and V parametric directions. //! Raised if U1 = U2 or U1 = U2 + 2.0 * Pi Raised if V1 = V2. + + Parameters + ---------- + Sph: gp_Sphere + Param1: float + Param2: float + UTrim: bool (optional, default to Standard_True) + + Return + ------- + None + + Description + ----------- + The equivalent B-spline surface as the same orientation as the sphere in the U and V parametric directions. //! Raised if UTrim = True and Param1 = Param2 or Param1 = Param2 + 2.0 * Pi Raised if UTrim = False and Param1 = Param2. + + Parameters + ---------- + Sph: gp_Sphere + + Return + ------- + None + + Description + ----------- + The equivalent B-spline surface as the same orientation as the sphere in the U and V parametric directions. + + """ + _Convert.Convert_SphereToBSplineSurface_swiginit(self, _Convert.new_Convert_SphereToBSplineSurface(*args)) + + __repr__ = _dumps_object + + __swig_destroy__ = _Convert.delete_Convert_SphereToBSplineSurface + +# Register Convert_SphereToBSplineSurface in _Convert: +_Convert.Convert_SphereToBSplineSurface_swigregister(Convert_SphereToBSplineSurface) +class Convert_TorusToBSplineSurface(Convert_ElementarySurfaceToBSplineSurface): + 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 + ---------- + T: gp_Torus + U1: float + U2: float + V1: float + V2: float + + Return + ------- + None + + Description + ----------- + The equivalent B-spline surface as the same orientation as the torus in the U and V parametric directions. //! Raised if U1 = U2 or U1 = U2 + 2.0 * Pi Raised if V1 = V2 or V1 = V2 + 2.0 * Pi. + + Parameters + ---------- + T: gp_Torus + Param1: float + Param2: float + UTrim: bool (optional, default to Standard_True) + + Return + ------- + None + + Description + ----------- + The equivalent B-spline surface as the same orientation as the torus in the U and V parametric directions. //! Raised if Param1 = Param2 or Param1 = Param2 + 2.0 * Pi. + + Parameters + ---------- + T: gp_Torus + + Return + ------- + None + + Description + ----------- + The equivalent B-spline surface as the same orientation as the torus in the U and V parametric directions. + + """ + _Convert.Convert_TorusToBSplineSurface_swiginit(self, _Convert.new_Convert_TorusToBSplineSurface(*args)) + + __repr__ = _dumps_object + + __swig_destroy__ = _Convert.delete_Convert_TorusToBSplineSurface + +# Register Convert_TorusToBSplineSurface in _Convert: +_Convert.Convert_TorusToBSplineSurface_swigregister(Convert_TorusToBSplineSurface) + +Convert_SequenceOfArray1OfPoles2d=OCC.Core.TColgp.TColgp_SequenceOfArray1OfPnt2d + + diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/Convert.pyi b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/Convert.pyi new file mode 100644 index 0000000000000000000000000000000000000000..2ea53cd05b9ea76f463c788f6edb9542aebda9b5 --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/Convert.pyi @@ -0,0 +1,310 @@ +from enum import IntEnum +from typing import overload, NewType, Optional, Tuple + +from OCC.Core.Standard import * +from OCC.Core.NCollection import * +from OCC.Core.TColgp import * +from OCC.Core.TColStd import * +from OCC.Core.gp import * + +Convert_SequenceOfArray1OfPoles2d = NewType( + "Convert_SequenceOfArray1OfPoles2d", TColgp_SequenceOfArray1OfPnt2d +) + +class Convert_SequenceOfArray1OfPoles: + def Assign(self, theItem: False) -> False: ... + def Clear(self) -> None: ... + def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... + def Last(self) -> False: ... + def Length(self) -> int: ... + def Lower(self) -> int: ... + def Prepend(self, theItem: False) -> False: ... + def RemoveFirst(self) -> None: ... + def Reverse(self) -> None: ... + def SetValue(self, theIndex: int, theValue: False) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... + +class Convert_ParameterisationType(IntEnum): + Convert_TgtThetaOver2: int = ... + Convert_TgtThetaOver2_1: int = ... + Convert_TgtThetaOver2_2: int = ... + Convert_TgtThetaOver2_3: int = ... + Convert_TgtThetaOver2_4: int = ... + Convert_QuasiAngular: int = ... + Convert_RationalC1: int = ... + Convert_Polynomial: int = ... + +Convert_TgtThetaOver2 = Convert_ParameterisationType.Convert_TgtThetaOver2 +Convert_TgtThetaOver2_1 = Convert_ParameterisationType.Convert_TgtThetaOver2_1 +Convert_TgtThetaOver2_2 = Convert_ParameterisationType.Convert_TgtThetaOver2_2 +Convert_TgtThetaOver2_3 = Convert_ParameterisationType.Convert_TgtThetaOver2_3 +Convert_TgtThetaOver2_4 = Convert_ParameterisationType.Convert_TgtThetaOver2_4 +Convert_QuasiAngular = Convert_ParameterisationType.Convert_QuasiAngular +Convert_RationalC1 = Convert_ParameterisationType.Convert_RationalC1 +Convert_Polynomial = Convert_ParameterisationType.Convert_Polynomial + +class Convert_CompBezierCurves2dToBSplineCurve2d: + def __init__(self, AngularTolerance: Optional[float] = 1.0e-4) -> None: ... + def AddCurve(self, Poles: TColgp_Array1OfPnt2d) -> None: ... + def Degree(self) -> int: ... + def KnotsAndMults( + self, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger + ) -> None: ... + def NbKnots(self) -> int: ... + def NbPoles(self) -> int: ... + def Perform(self) -> None: ... + def Poles(self, Poles: TColgp_Array1OfPnt2d) -> None: ... + +class Convert_CompBezierCurvesToBSplineCurve: + def __init__(self, AngularTolerance: Optional[float] = 1.0e-4) -> None: ... + def AddCurve(self, Poles: TColgp_Array1OfPnt) -> None: ... + def Degree(self) -> int: ... + def KnotsAndMults( + self, Knots: TColStd_Array1OfReal, Mults: TColStd_Array1OfInteger + ) -> None: ... + def NbKnots(self) -> int: ... + def NbPoles(self) -> int: ... + def Perform(self) -> None: ... + def Poles(self, Poles: TColgp_Array1OfPnt) -> None: ... + +class Convert_CompPolynomialToPoles: + @overload + def __init__( + self, + NumCurves: int, + Continuity: int, + Dimension: int, + MaxDegree: int, + NumCoeffPerCurve: TColStd_HArray1OfInteger, + Coefficients: TColStd_HArray1OfReal, + PolynomialIntervals: TColStd_HArray2OfReal, + TrueIntervals: TColStd_HArray1OfReal, + ) -> None: ... + @overload + def __init__( + self, + NumCurves: int, + Dimension: int, + MaxDegree: int, + Continuity: TColStd_Array1OfInteger, + NumCoeffPerCurve: TColStd_Array1OfInteger, + Coefficients: TColStd_Array1OfReal, + PolynomialIntervals: TColStd_Array2OfReal, + TrueIntervals: TColStd_Array1OfReal, + ) -> None: ... + @overload + def __init__( + self, + Dimension: int, + MaxDegree: int, + Degree: int, + Coefficients: TColStd_Array1OfReal, + PolynomialIntervals: TColStd_Array1OfReal, + TrueIntervals: TColStd_Array1OfReal, + ) -> None: ... + def Degree(self) -> int: ... + def IsDone(self) -> bool: ... + def Knots(self, K: TColStd_HArray1OfReal) -> None: ... + def Multiplicities(self, M: TColStd_HArray1OfInteger) -> None: ... + def NbKnots(self) -> int: ... + def NbPoles(self) -> int: ... + def Poles(self, Poles: TColStd_HArray2OfReal) -> None: ... + +class Convert_ConicToBSplineCurve: + @overload + def BuildCosAndSin( + self, + Parametrisation: Convert_ParameterisationType, + CosNumerator: TColStd_HArray1OfReal, + SinNumerator: TColStd_HArray1OfReal, + Denominator: TColStd_HArray1OfReal, + Knots: TColStd_HArray1OfReal, + Mults: TColStd_HArray1OfInteger, + ) -> int: ... + @overload + def BuildCosAndSin( + self, + Parametrisation: Convert_ParameterisationType, + UFirst: float, + ULast: float, + CosNumerator: TColStd_HArray1OfReal, + SinNumerator: TColStd_HArray1OfReal, + Denominator: TColStd_HArray1OfReal, + Knots: TColStd_HArray1OfReal, + Mults: TColStd_HArray1OfInteger, + ) -> int: ... + def Degree(self) -> int: ... + def IsPeriodic(self) -> bool: ... + def Knot(self, Index: int) -> float: ... + def Multiplicity(self, Index: int) -> int: ... + def NbKnots(self) -> int: ... + def NbPoles(self) -> int: ... + def Pole(self, Index: int) -> gp_Pnt2d: ... + def Weight(self, Index: int) -> float: ... + +class Convert_ElementarySurfaceToBSplineSurface: + def IsUPeriodic(self) -> bool: ... + def IsVPeriodic(self) -> bool: ... + def NbUKnots(self) -> int: ... + def NbUPoles(self) -> int: ... + def NbVKnots(self) -> int: ... + def NbVPoles(self) -> int: ... + def Pole(self, UIndex: int, VIndex: int) -> gp_Pnt: ... + def UDegree(self) -> int: ... + def UKnot(self, UIndex: int) -> float: ... + def UMultiplicity(self, UIndex: int) -> int: ... + def VDegree(self) -> int: ... + def VKnot(self, UIndex: int) -> float: ... + def VMultiplicity(self, VIndex: int) -> int: ... + def Weight(self, UIndex: int, VIndex: int) -> float: ... + +class Convert_GridPolynomialToPoles: + @overload + def __init__( + self, + MaxUDegree: int, + MaxVDegree: int, + NumCoeff: TColStd_HArray1OfInteger, + Coefficients: TColStd_HArray1OfReal, + PolynomialUIntervals: TColStd_HArray1OfReal, + PolynomialVIntervals: TColStd_HArray1OfReal, + ) -> None: ... + @overload + def __init__( + self, + NbUSurfaces: int, + NBVSurfaces: int, + UContinuity: int, + VContinuity: int, + MaxUDegree: int, + MaxVDegree: int, + NumCoeffPerSurface: TColStd_HArray2OfInteger, + Coefficients: TColStd_HArray1OfReal, + PolynomialUIntervals: TColStd_HArray1OfReal, + PolynomialVIntervals: TColStd_HArray1OfReal, + TrueUIntervals: TColStd_HArray1OfReal, + TrueVIntervals: TColStd_HArray1OfReal, + ) -> None: ... + def IsDone(self) -> bool: ... + def NbUKnots(self) -> int: ... + def NbUPoles(self) -> int: ... + def NbVKnots(self) -> int: ... + def NbVPoles(self) -> int: ... + def Perform( + self, + UContinuity: int, + VContinuity: int, + MaxUDegree: int, + MaxVDegree: int, + NumCoeffPerSurface: TColStd_HArray2OfInteger, + Coefficients: TColStd_HArray1OfReal, + PolynomialUIntervals: TColStd_HArray1OfReal, + PolynomialVIntervals: TColStd_HArray1OfReal, + TrueUIntervals: TColStd_HArray1OfReal, + TrueVIntervals: TColStd_HArray1OfReal, + ) -> None: ... + def Poles(self) -> TColgp_HArray2OfPnt: ... + def UDegree(self) -> int: ... + def UKnots(self) -> TColStd_HArray1OfReal: ... + def UMultiplicities(self) -> TColStd_HArray1OfInteger: ... + def VDegree(self) -> int: ... + def VKnots(self) -> TColStd_HArray1OfReal: ... + def VMultiplicities(self) -> TColStd_HArray1OfInteger: ... + +class Convert_CircleToBSplineCurve(Convert_ConicToBSplineCurve): + @overload + def __init__( + self, + C: gp_Circ2d, + Parameterisation: Optional[ + Convert_ParameterisationType + ] = Convert_TgtThetaOver2, + ) -> None: ... + @overload + def __init__( + self, + C: gp_Circ2d, + U1: float, + U2: float, + Parameterisation: Optional[ + Convert_ParameterisationType + ] = Convert_TgtThetaOver2, + ) -> None: ... + +class Convert_ConeToBSplineSurface(Convert_ElementarySurfaceToBSplineSurface): + @overload + def __init__( + self, C: gp_Cone, U1: float, U2: float, V1: float, V2: float + ) -> None: ... + @overload + def __init__(self, C: gp_Cone, V1: float, V2: float) -> None: ... + +class Convert_CylinderToBSplineSurface(Convert_ElementarySurfaceToBSplineSurface): + @overload + def __init__( + self, Cyl: gp_Cylinder, U1: float, U2: float, V1: float, V2: float + ) -> None: ... + @overload + def __init__(self, Cyl: gp_Cylinder, V1: float, V2: float) -> None: ... + +class Convert_EllipseToBSplineCurve(Convert_ConicToBSplineCurve): + @overload + def __init__( + self, + E: gp_Elips2d, + Parameterisation: Optional[ + Convert_ParameterisationType + ] = Convert_TgtThetaOver2, + ) -> None: ... + @overload + def __init__( + self, + E: gp_Elips2d, + U1: float, + U2: float, + Parameterisation: Optional[ + Convert_ParameterisationType + ] = Convert_TgtThetaOver2, + ) -> None: ... + +class Convert_HyperbolaToBSplineCurve(Convert_ConicToBSplineCurve): + def __init__(self, H: gp_Hypr2d, U1: float, U2: float) -> None: ... + +class Convert_ParabolaToBSplineCurve(Convert_ConicToBSplineCurve): + def __init__(self, Prb: gp_Parab2d, U1: float, U2: float) -> None: ... + +class Convert_SphereToBSplineSurface(Convert_ElementarySurfaceToBSplineSurface): + @overload + def __init__( + self, Sph: gp_Sphere, U1: float, U2: float, V1: float, V2: float + ) -> None: ... + @overload + def __init__( + self, Sph: gp_Sphere, Param1: float, Param2: float, UTrim: Optional[bool] = True + ) -> None: ... + @overload + def __init__(self, Sph: gp_Sphere) -> None: ... + +class Convert_TorusToBSplineSurface(Convert_ElementarySurfaceToBSplineSurface): + @overload + def __init__( + self, T: gp_Torus, U1: float, U2: float, V1: float, V2: float + ) -> None: ... + @overload + def __init__( + self, T: gp_Torus, Param1: float, Param2: float, UTrim: Optional[bool] = True + ) -> None: ... + @overload + def __init__(self, T: gp_Torus) -> None: ... + +# harray1 classes +# harray2 classes +# hsequence classes diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/DEBRepCascade.pyi b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/DEBRepCascade.pyi new file mode 100644 index 0000000000000000000000000000000000000000..3636bfa63895f36ff1d0a82c4d61290eb445dd5b --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/DEBRepCascade.pyi @@ -0,0 +1,9 @@ +from enum import IntEnum +from typing import overload, NewType, Optional, Tuple + +from OCC.Core.Standard import * +from OCC.Core.NCollection import * + +# harray1 classes +# harray2 classes +# hsequence classes diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/DEXCAFCascade.py b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/DEXCAFCascade.py new file mode 100644 index 0000000000000000000000000000000000000000..a773b22a149414606d60fe7e0c47cca97e0110e5 --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/DEXCAFCascade.py @@ -0,0 +1,424 @@ +# 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. + +""" +DEXCAFCascade module, see official documentation at +https://dev.opencascade.org/doc/occt-7.9.0/refman/html/package_dexcafcascade.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 _DEXCAFCascade +else: + import _DEXCAFCascade + +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__ = _DEXCAFCascade.delete_SwigPyIterator + + def value(self): + return _DEXCAFCascade.SwigPyIterator_value(self) + + def incr(self, n=1): + return _DEXCAFCascade.SwigPyIterator_incr(self, n) + + def decr(self, n=1): + return _DEXCAFCascade.SwigPyIterator_decr(self, n) + + def distance(self, x): + return _DEXCAFCascade.SwigPyIterator_distance(self, x) + + def equal(self, x): + return _DEXCAFCascade.SwigPyIterator_equal(self, x) + + def copy(self): + return _DEXCAFCascade.SwigPyIterator_copy(self) + + def next(self): + return _DEXCAFCascade.SwigPyIterator_next(self) + + def __next__(self): + return _DEXCAFCascade.SwigPyIterator___next__(self) + + def previous(self): + return _DEXCAFCascade.SwigPyIterator_previous(self) + + def advance(self, n): + return _DEXCAFCascade.SwigPyIterator_advance(self, n) + + def __eq__(self, x): + return _DEXCAFCascade.SwigPyIterator___eq__(self, x) + + def __ne__(self, x): + return _DEXCAFCascade.SwigPyIterator___ne__(self, x) + + def __iadd__(self, n): + return _DEXCAFCascade.SwigPyIterator___iadd__(self, n) + + def __isub__(self, n): + return _DEXCAFCascade.SwigPyIterator___isub__(self, n) + + def __add__(self, n): + return _DEXCAFCascade.SwigPyIterator___add__(self, n) + + def __sub__(self, *args): + return _DEXCAFCascade.SwigPyIterator___sub__(self, *args) + def __iter__(self): + return self + +# Register SwigPyIterator in _DEXCAFCascade: +_DEXCAFCascade.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__ = _Draft.delete_SwigPyIterator + + def value(self): + return _Draft.SwigPyIterator_value(self) + + def incr(self, n=1): + return _Draft.SwigPyIterator_incr(self, n) + + def decr(self, n=1): + return _Draft.SwigPyIterator_decr(self, n) + + def distance(self, x): + return _Draft.SwigPyIterator_distance(self, x) + + def equal(self, x): + return _Draft.SwigPyIterator_equal(self, x) + + def copy(self): + return _Draft.SwigPyIterator_copy(self) + + def next(self): + return _Draft.SwigPyIterator_next(self) + + def __next__(self): + return _Draft.SwigPyIterator___next__(self) + + def previous(self): + return _Draft.SwigPyIterator_previous(self) + + def advance(self, n): + return _Draft.SwigPyIterator_advance(self, n) + + def __eq__(self, x): + return _Draft.SwigPyIterator___eq__(self, x) + + def __ne__(self, x): + return _Draft.SwigPyIterator___ne__(self, x) + + def __iadd__(self, n): + return _Draft.SwigPyIterator___iadd__(self, n) + + def __isub__(self, n): + return _Draft.SwigPyIterator___isub__(self, n) + + def __add__(self, n): + return _Draft.SwigPyIterator___add__(self, n) + + def __sub__(self, *args): + return _Draft.SwigPyIterator___sub__(self, *args) + def __iter__(self): + return self + +# Register SwigPyIterator in _Draft: +_Draft.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 = " using the direction . The method is valid for: - Plane faces, - Cylindrical or conical faces, when the direction of the axis of the surface is colinear with the direction. Otherwise, the exception DomainError is raised. + + """ + return _Draft.draft_Angle(*args) + + __repr__ = _dumps_object + + + def __init__(self): + _Draft.draft_swiginit(self, _Draft.new_draft()) + __swig_destroy__ = _Draft.delete_draft + +# Register draft in _Draft: +_Draft.draft_swigregister(draft) +class Draft_EdgeInfo(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 + ---------- + HasNewGeometry: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _Draft.Draft_EdgeInfo_swiginit(self, _Draft.new_Draft_EdgeInfo(*args)) + + def Add(self, *args): + r""" + + Parameters + ---------- + F: TopoDS_Face + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _Draft.Draft_EdgeInfo_Add(self, *args) + + def ChangeFirstPC(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _Draft.Draft_EdgeInfo_ChangeFirstPC(self, *args) + + def ChangeGeometry(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _Draft.Draft_EdgeInfo_ChangeGeometry(self, *args) + + def ChangeSecondPC(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _Draft.Draft_EdgeInfo_ChangeSecondPC(self, *args) + + def FirstFace(self, *args): + r""" + Return + ------- + TopoDS_Face + + Description + ----------- + No available documentation. + + """ + return _Draft.Draft_EdgeInfo_FirstFace(self, *args) + + def FirstPC(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _Draft.Draft_EdgeInfo_FirstPC(self, *args) + + def Geometry(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _Draft.Draft_EdgeInfo_Geometry(self, *args) + + def IsTangent(self, *args): + r""" + + Parameters + ---------- + P: gp_Pnt + + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _Draft.Draft_EdgeInfo_IsTangent(self, *args) + + def NewGeometry(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _Draft.Draft_EdgeInfo_NewGeometry(self, *args) + + def RootFace(self, *args): + r""" + + Parameters + ---------- + F: TopoDS_Face + + Return + ------- + None + + Description + ----------- + No available documentation. + Return + ------- + TopoDS_Face + + Description + ----------- + No available documentation. + + """ + return _Draft.Draft_EdgeInfo_RootFace(self, *args) + + def SecondFace(self, *args): + r""" + Return + ------- + TopoDS_Face + + Description + ----------- + No available documentation. + + """ + return _Draft.Draft_EdgeInfo_SecondFace(self, *args) + + def SecondPC(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _Draft.Draft_EdgeInfo_SecondPC(self, *args) + + def SetNewGeometry(self, *args): + r""" + + Parameters + ---------- + NewGeom: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _Draft.Draft_EdgeInfo_SetNewGeometry(self, *args) + + def Tangent(self, *args): + r""" + + Parameters + ---------- + P: gp_Pnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _Draft.Draft_EdgeInfo_Tangent(self, *args) + + def Tolerance(self, *args): + r""" + + Parameters + ---------- + tol: float + + Return + ------- + None + + Description + ----------- + No available documentation. + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _Draft.Draft_EdgeInfo_Tolerance(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _Draft.delete_Draft_EdgeInfo + +# Register Draft_EdgeInfo in _Draft: +_Draft.Draft_EdgeInfo_swigregister(Draft_EdgeInfo) +class Draft_FaceInfo(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: Geom_Surface + HasNewGeometry: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _Draft.Draft_FaceInfo_swiginit(self, _Draft.new_Draft_FaceInfo(*args)) + + def Add(self, *args): + r""" + + Parameters + ---------- + F: TopoDS_Face + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _Draft.Draft_FaceInfo_Add(self, *args) + + def ChangeCurve(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _Draft.Draft_FaceInfo_ChangeCurve(self, *args) + + def ChangeGeometry(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _Draft.Draft_FaceInfo_ChangeGeometry(self, *args) + + def Curve(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _Draft.Draft_FaceInfo_Curve(self, *args) + + def FirstFace(self, *args): + r""" + Return + ------- + TopoDS_Face + + Description + ----------- + No available documentation. + + """ + return _Draft.Draft_FaceInfo_FirstFace(self, *args) + + def Geometry(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _Draft.Draft_FaceInfo_Geometry(self, *args) + + def NewGeometry(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _Draft.Draft_FaceInfo_NewGeometry(self, *args) + + def RootFace(self, *args): + r""" + + Parameters + ---------- + F: TopoDS_Face + + Return + ------- + None + + Description + ----------- + No available documentation. + Return + ------- + TopoDS_Face + + Description + ----------- + No available documentation. + + """ + return _Draft.Draft_FaceInfo_RootFace(self, *args) + + def SecondFace(self, *args): + r""" + Return + ------- + TopoDS_Face + + Description + ----------- + No available documentation. + + """ + return _Draft.Draft_FaceInfo_SecondFace(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _Draft.delete_Draft_FaceInfo + +# Register Draft_FaceInfo in _Draft: +_Draft.Draft_FaceInfo_swigregister(Draft_FaceInfo) +class Draft_Modification(OCC.Core.BRepTools.BRepTools_Modification): + 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: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _Draft.Draft_Modification_swiginit(self, _Draft.new_Draft_Modification(*args)) + + def Add(self, *args): + r""" + + Parameters + ---------- + F: TopoDS_Face + Direction: gp_Dir + Angle: float + NeutralPlane: gp_Pln + Flag: bool (optional, default to Standard_True) + + Return + ------- + bool + + Description + ----------- + Adds the face F and propagates the draft modification to its neighbour faces if they are tangent. If an error occurs, will return False and ProblematicShape will return the 'bad' face. + + """ + return _Draft.Draft_Modification_Add(self, *args) + + def Clear(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Resets on the same shape. + + """ + return _Draft.Draft_Modification_Clear(self, *args) + + def ConnectedFaces(self, *args): + r""" + + Parameters + ---------- + F: TopoDS_Face + + Return + ------- + TopTools_ListOfShape + + Description + ----------- + Returns all the faces which have been added together with the face . + + """ + return _Draft.Draft_Modification_ConnectedFaces(self, *args) + + def Error(self, *args): + r""" + Return + ------- + Draft_ErrorStatus + + Description + ----------- + No available documentation. + + """ + return _Draft.Draft_Modification_Error(self, *args) + + def Init(self, *args): + r""" + + Parameters + ---------- + S: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + Changes the basis shape and resets. + + """ + return _Draft.Draft_Modification_Init(self, *args) + + def IsDone(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True if Perform has been successfully called. Otherwise more information can be obtained using the methods Error() and ProblematicShape(). + + """ + return _Draft.Draft_Modification_IsDone(self, *args) + + def ModifiedFaces(self, *args): + r""" + Return + ------- + TopTools_ListOfShape + + Description + ----------- + Returns all the faces on which a modification has been given. + + """ + return _Draft.Draft_Modification_ModifiedFaces(self, *args) + + def Perform(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Performs the draft angle modification and sets the value returned by the method IsDone. If an error occurs, IsDone will return Standard_False, and an error status will be given by the method Error, and the shape on which the problem appeared will be given by ProblematicShape. + + """ + return _Draft.Draft_Modification_Perform(self, *args) + + def ProblematicShape(self, *args): + r""" + Return + ------- + TopoDS_Shape + + Description + ----------- + Returns the shape (Face, Edge or Vertex) on which an error occurred. + + """ + return _Draft.Draft_Modification_ProblematicShape(self, *args) + + def Remove(self, *args): + r""" + + Parameters + ---------- + F: TopoDS_Face + + Return + ------- + None + + Description + ----------- + Removes the face F and the neighbour faces if they are tangent. It will be necessary to call this method if the method Add returns Standard_False, to unset ProblematicFace. + + """ + return _Draft.Draft_Modification_Remove(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_Draft_Modification_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _Draft.delete_Draft_Modification + +# Register Draft_Modification in _Draft: +_Draft.Draft_Modification_swigregister(Draft_Modification) +class Draft_VertexInfo(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. + + """ + _Draft.Draft_VertexInfo_swiginit(self, _Draft.new_Draft_VertexInfo(*args)) + + def Add(self, *args): + r""" + + Parameters + ---------- + E: TopoDS_Edge + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _Draft.Draft_VertexInfo_Add(self, *args) + + def ChangeGeometry(self, *args): + r""" + Return + ------- + gp_Pnt + + Description + ----------- + No available documentation. + + """ + return _Draft.Draft_VertexInfo_ChangeGeometry(self, *args) + + def GetChangeParameter(self, E): + r"""GetChangeParameter(Draft_VertexInfo self, TopoDS_Edge E) -> Standard_Real""" + return _Draft.Draft_VertexInfo_GetChangeParameter(self, E) + + def SetChangeParameter(self, E, value): + r"""SetChangeParameter(Draft_VertexInfo self, TopoDS_Edge E, Standard_Real value)""" + return _Draft.Draft_VertexInfo_SetChangeParameter(self, E, value) + + def Edge(self, *args): + r""" + Return + ------- + TopoDS_Edge + + Description + ----------- + No available documentation. + + """ + return _Draft.Draft_VertexInfo_Edge(self, *args) + + def Geometry(self, *args): + r""" + Return + ------- + gp_Pnt + + Description + ----------- + No available documentation. + + """ + return _Draft.Draft_VertexInfo_Geometry(self, *args) + + def InitEdgeIterator(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _Draft.Draft_VertexInfo_InitEdgeIterator(self, *args) + + def MoreEdge(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _Draft.Draft_VertexInfo_MoreEdge(self, *args) + + def NextEdge(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _Draft.Draft_VertexInfo_NextEdge(self, *args) + + def Parameter(self, *args): + r""" + + Parameters + ---------- + E: TopoDS_Edge + + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _Draft.Draft_VertexInfo_Parameter(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _Draft.delete_Draft_VertexInfo + +# Register Draft_VertexInfo in _Draft: +_Draft.Draft_VertexInfo_swigregister(Draft_VertexInfo) + + + +@deprecated +def draft_Angle(*args): + return draft.Angle(*args) + + + diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/DsgPrs.pyi b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/DsgPrs.pyi new file mode 100644 index 0000000000000000000000000000000000000000..bba6077a790cfafef99806a3e0879a34ddc41ef9 --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/DsgPrs.pyi @@ -0,0 +1,105 @@ +from enum import IntEnum +from typing import overload, NewType, Optional, Tuple + +from OCC.Core.Standard import * +from OCC.Core.NCollection import * + +class DsgPrs_ArrowSide(IntEnum): + DsgPrs_AS_NONE: int = ... + DsgPrs_AS_FIRSTAR: int = ... + DsgPrs_AS_LASTAR: int = ... + DsgPrs_AS_BOTHAR: int = ... + DsgPrs_AS_FIRSTPT: int = ... + DsgPrs_AS_LASTPT: int = ... + DsgPrs_AS_BOTHPT: int = ... + DsgPrs_AS_FIRSTAR_LASTPT: int = ... + DsgPrs_AS_FIRSTPT_LASTAR: int = ... + +DsgPrs_AS_NONE = DsgPrs_ArrowSide.DsgPrs_AS_NONE +DsgPrs_AS_FIRSTAR = DsgPrs_ArrowSide.DsgPrs_AS_FIRSTAR +DsgPrs_AS_LASTAR = DsgPrs_ArrowSide.DsgPrs_AS_LASTAR +DsgPrs_AS_BOTHAR = DsgPrs_ArrowSide.DsgPrs_AS_BOTHAR +DsgPrs_AS_FIRSTPT = DsgPrs_ArrowSide.DsgPrs_AS_FIRSTPT +DsgPrs_AS_LASTPT = DsgPrs_ArrowSide.DsgPrs_AS_LASTPT +DsgPrs_AS_BOTHPT = DsgPrs_ArrowSide.DsgPrs_AS_BOTHPT +DsgPrs_AS_FIRSTAR_LASTPT = DsgPrs_ArrowSide.DsgPrs_AS_FIRSTAR_LASTPT +DsgPrs_AS_FIRSTPT_LASTAR = DsgPrs_ArrowSide.DsgPrs_AS_FIRSTPT_LASTAR + +# classnotwrapped +class DsgPrs: ... + +# classnotwrapped +class DsgPrs_AnglePresentation: ... + +# classnotwrapped +class DsgPrs_Chamf2dPresentation: ... + +# classnotwrapped +class DsgPrs_ConcentricPresentation: ... + +# classnotwrapped +class DsgPrs_DatumPrs: ... + +# classnotwrapped +class DsgPrs_DiameterPresentation: ... + +# classnotwrapped +class DsgPrs_EllipseRadiusPresentation: ... + +# classnotwrapped +class DsgPrs_EqualDistancePresentation: ... + +# classnotwrapped +class DsgPrs_EqualRadiusPresentation: ... + +# classnotwrapped +class DsgPrs_FilletRadiusPresentation: ... + +# classnotwrapped +class DsgPrs_FixPresentation: ... + +# classnotwrapped +class DsgPrs_IdenticPresentation: ... + +# classnotwrapped +class DsgPrs_LengthPresentation: ... + +# classnotwrapped +class DsgPrs_MidPointPresentation: ... + +# classnotwrapped +class DsgPrs_OffsetPresentation: ... + +# classnotwrapped +class DsgPrs_ParalPresentation: ... + +# classnotwrapped +class DsgPrs_PerpenPresentation: ... + +# classnotwrapped +class DsgPrs_RadiusPresentation: ... + +# classnotwrapped +class DsgPrs_ShadedPlanePresentation: ... + +# classnotwrapped +class DsgPrs_ShapeDirPresentation: ... + +# classnotwrapped +class DsgPrs_SymbPresentation: ... + +# classnotwrapped +class DsgPrs_SymmetricPresentation: ... + +# classnotwrapped +class DsgPrs_TangentPresentation: ... + +# classnotwrapped +class DsgPrs_XYZAxisPresentation: ... + +# classnotwrapped +class DsgPrs_XYZPlanePresentation: ... + +# harray1 classes +# harray2 classes +# hsequence classes diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/ExprIntrp.py b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/ExprIntrp.py new file mode 100644 index 0000000000000000000000000000000000000000..b4f2b6a3fbe215186cde17d296b9abc02a89ab92 --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/ExprIntrp.py @@ -0,0 +1,739 @@ +# 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. + +""" +ExprIntrp module, see official documentation at +https://dev.opencascade.org/doc/occt-7.9.0/refman/html/package_exprintrp.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 _ExprIntrp +else: + import _ExprIntrp + +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__ = _ExprIntrp.delete_SwigPyIterator + + def value(self): + return _ExprIntrp.SwigPyIterator_value(self) + + def incr(self, n=1): + return _ExprIntrp.SwigPyIterator_incr(self, n) + + def decr(self, n=1): + return _ExprIntrp.SwigPyIterator_decr(self, n) + + def distance(self, x): + return _ExprIntrp.SwigPyIterator_distance(self, x) + + def equal(self, x): + return _ExprIntrp.SwigPyIterator_equal(self, x) + + def copy(self): + return _ExprIntrp.SwigPyIterator_copy(self) + + def next(self): + return _ExprIntrp.SwigPyIterator_next(self) + + def __next__(self): + return _ExprIntrp.SwigPyIterator___next__(self) + + def previous(self): + return _ExprIntrp.SwigPyIterator_previous(self) + + def advance(self, n): + return _ExprIntrp.SwigPyIterator_advance(self, n) + + def __eq__(self, x): + return _ExprIntrp.SwigPyIterator___eq__(self, x) + + def __ne__(self, x): + return _ExprIntrp.SwigPyIterator___ne__(self, x) + + def __iadd__(self, n): + return _ExprIntrp.SwigPyIterator___iadd__(self, n) + + def __isub__(self, n): + return _ExprIntrp.SwigPyIterator___isub__(self, n) + + def __add__(self, n): + return _ExprIntrp.SwigPyIterator___add__(self, n) + + def __sub__(self, *args): + return _ExprIntrp.SwigPyIterator___sub__(self, *args) + def __iter__(self): + return self + +# Register SwigPyIterator in _ExprIntrp: +_ExprIntrp.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 = " False: ... + def Clear(self) -> None: ... + def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... + def Last(self) -> False: ... + def Length(self) -> int: ... + def Lower(self) -> int: ... + def Prepend(self, theItem: False) -> False: ... + def RemoveFirst(self) -> None: ... + def Reverse(self) -> None: ... + def SetValue(self, theIndex: int, theValue: False) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... + +class ExprIntrp_StackOfGeneralExpression: + def Append(self, theItem: False) -> False: ... + def Assign( + self, theItem: ExprIntrp_StackOfGeneralExpression + ) -> ExprIntrp_StackOfGeneralExpression: ... + 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 ExprIntrp_StackOfGeneralRelation: + def Append(self, theItem: False) -> False: ... + def Assign( + self, theItem: ExprIntrp_StackOfGeneralRelation + ) -> ExprIntrp_StackOfGeneralRelation: ... + 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: ... + +# classnotwrapped +class ExprIntrp: ... + +# classnotwrapped +class ExprIntrp_Analysis: ... + +# classnotwrapped +class ExprIntrp_GenExp: ... + +# classnotwrapped +class ExprIntrp_GenFct: ... + +# classnotwrapped +class ExprIntrp_GenRel: ... + +# classnotwrapped +class ExprIntrp_Generator: ... + +# harray1 classes +# harray2 classes +# hsequence classes diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/Extrema.pyi b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/Extrema.pyi new file mode 100644 index 0000000000000000000000000000000000000000..c8a47a313a4a84981cc356baf157ec2047b301c1 --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/Extrema.pyi @@ -0,0 +1,2073 @@ +from enum import IntEnum +from typing import overload, NewType, Optional, Tuple + +from OCC.Core.Standard import * +from OCC.Core.NCollection import * +from OCC.Core.math import * +from OCC.Core.Adaptor3d import * +from OCC.Core.Adaptor2d import * +from OCC.Core.Geom2d import * +from OCC.Core.gp import * +from OCC.Core.GeomAbs import * +from OCC.Core.TColStd import * +from OCC.Core.Geom import * +from OCC.Core.GeomAdaptor import * + +# the following typedef cannot be wrapped as is +Extrema_Array2OfPOnCurv = NewType("Extrema_Array2OfPOnCurv", Any) +# the following typedef cannot be wrapped as is +Extrema_Array2OfPOnCurv2d = NewType("Extrema_Array2OfPOnCurv2d", Any) +# the following typedef cannot be wrapped as is +Extrema_Array2OfPOnSurf = NewType("Extrema_Array2OfPOnSurf", Any) +# the following typedef cannot be wrapped as is +Extrema_Array2OfPOnSurfParams = NewType("Extrema_Array2OfPOnSurfParams", Any) +# the following typedef cannot be wrapped as is +Extrema_HUBTreeOfSphere = NewType("Extrema_HUBTreeOfSphere", Any) +# the following typedef cannot be wrapped as is +Extrema_UBTreeFillerOfSphere = NewType("Extrema_UBTreeFillerOfSphere", Any) +# the following typedef cannot be wrapped as is +Extrema_UBTreeOfSphere = NewType("Extrema_UBTreeOfSphere", Any) + +class Extrema_Array1OfPOnCurv: + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, theLower: int, theUpper: int) -> None: ... + def __getitem__(self, index: int) -> Extrema_POnCurv: ... + def __setitem__(self, index: int, value: Extrema_POnCurv) -> None: ... + def __len__(self) -> int: ... + def __iter__(self) -> Iterator[Extrema_POnCurv]: ... + def next(self) -> Extrema_POnCurv: ... + __next__ = next + def Init(self, theValue: Extrema_POnCurv) -> 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) -> Extrema_POnCurv: ... + def Last(self) -> Extrema_POnCurv: ... + def Value(self, theIndex: int) -> Extrema_POnCurv: ... + def SetValue(self, theIndex: int, theValue: Extrema_POnCurv) -> None: ... + +class Extrema_Array1OfPOnCurv2d: + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, theLower: int, theUpper: int) -> None: ... + def __getitem__(self, index: int) -> Extrema_POnCurv2d: ... + def __setitem__(self, index: int, value: Extrema_POnCurv2d) -> None: ... + def __len__(self) -> int: ... + def __iter__(self) -> Iterator[Extrema_POnCurv2d]: ... + def next(self) -> Extrema_POnCurv2d: ... + __next__ = next + def Init(self, theValue: Extrema_POnCurv2d) -> 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) -> Extrema_POnCurv2d: ... + def Last(self) -> Extrema_POnCurv2d: ... + def Value(self, theIndex: int) -> Extrema_POnCurv2d: ... + def SetValue(self, theIndex: int, theValue: Extrema_POnCurv2d) -> None: ... + +class Extrema_Array1OfPOnSurf: + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, theLower: int, theUpper: int) -> None: ... + def __getitem__(self, index: int) -> Extrema_POnSurf: ... + def __setitem__(self, index: int, value: Extrema_POnSurf) -> None: ... + def __len__(self) -> int: ... + def __iter__(self) -> Iterator[Extrema_POnSurf]: ... + def next(self) -> Extrema_POnSurf: ... + __next__ = next + def Init(self, theValue: Extrema_POnSurf) -> 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) -> Extrema_POnSurf: ... + def Last(self) -> Extrema_POnSurf: ... + def Value(self, theIndex: int) -> Extrema_POnSurf: ... + def SetValue(self, theIndex: int, theValue: Extrema_POnSurf) -> None: ... + +class Extrema_SequenceOfPOnCurv: + def Assign(self, theItem: Extrema_POnCurv) -> Extrema_POnCurv: ... + def Clear(self) -> None: ... + def First(self) -> Extrema_POnCurv: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... + def Last(self) -> Extrema_POnCurv: ... + def Length(self) -> int: ... + def Lower(self) -> int: ... + def Prepend(self, theItem: Extrema_POnCurv) -> Extrema_POnCurv: ... + def RemoveFirst(self) -> None: ... + def Reverse(self) -> None: ... + def SetValue(self, theIndex: int, theValue: Extrema_POnCurv) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> Extrema_POnCurv: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... + +class Extrema_SequenceOfPOnCurv2d: + def Assign(self, theItem: Extrema_POnCurv2d) -> Extrema_POnCurv2d: ... + def Clear(self) -> None: ... + def First(self) -> Extrema_POnCurv2d: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... + def Last(self) -> Extrema_POnCurv2d: ... + def Length(self) -> int: ... + def Lower(self) -> int: ... + def Prepend(self, theItem: Extrema_POnCurv2d) -> Extrema_POnCurv2d: ... + def RemoveFirst(self) -> None: ... + def Reverse(self) -> None: ... + def SetValue(self, theIndex: int, theValue: Extrema_POnCurv2d) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> Extrema_POnCurv2d: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... + +class Extrema_SequenceOfPOnSurf: + def Assign(self, theItem: Extrema_POnSurf) -> Extrema_POnSurf: ... + def Clear(self) -> None: ... + def First(self) -> Extrema_POnSurf: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... + def Last(self) -> Extrema_POnSurf: ... + def Length(self) -> int: ... + def Lower(self) -> int: ... + def Prepend(self, theItem: Extrema_POnSurf) -> Extrema_POnSurf: ... + def RemoveFirst(self) -> None: ... + def Reverse(self) -> None: ... + def SetValue(self, theIndex: int, theValue: Extrema_POnSurf) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> Extrema_POnSurf: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... + +class Extrema_ElementType(IntEnum): + Extrema_Node: int = ... + Extrema_UIsoEdge: int = ... + Extrema_VIsoEdge: int = ... + Extrema_Face: int = ... + +Extrema_Node = Extrema_ElementType.Extrema_Node +Extrema_UIsoEdge = Extrema_ElementType.Extrema_UIsoEdge +Extrema_VIsoEdge = Extrema_ElementType.Extrema_VIsoEdge +Extrema_Face = Extrema_ElementType.Extrema_Face + +class Extrema_ExtAlgo(IntEnum): + Extrema_ExtAlgo_Grad: int = ... + Extrema_ExtAlgo_Tree: int = ... + +Extrema_ExtAlgo_Grad = Extrema_ExtAlgo.Extrema_ExtAlgo_Grad +Extrema_ExtAlgo_Tree = Extrema_ExtAlgo.Extrema_ExtAlgo_Tree + +class Extrema_ExtFlag(IntEnum): + Extrema_ExtFlag_MIN: int = ... + Extrema_ExtFlag_MAX: int = ... + Extrema_ExtFlag_MINMAX: int = ... + +Extrema_ExtFlag_MIN = Extrema_ExtFlag.Extrema_ExtFlag_MIN +Extrema_ExtFlag_MAX = Extrema_ExtFlag.Extrema_ExtFlag_MAX +Extrema_ExtFlag_MINMAX = Extrema_ExtFlag.Extrema_ExtFlag_MINMAX + +class Extrema_CCLocFOfLocECC(math_FunctionSetWithDerivatives): + @overload + def __init__(self, thetol: Optional[float] = 1.0e-10) -> None: ... + @overload + def __init__( + self, + C1: Adaptor3d_Curve, + C2: Adaptor3d_Curve, + thetol: Optional[float] = 1.0e-10, + ) -> None: ... + def CurvePtr(self, theRank: int) -> None: ... + def Derivatives(self, UV: math_Vector, DF: math_Matrix) -> bool: ... + def GetStateNumber(self) -> int: ... + def NbEquations(self) -> int: ... + def NbExt(self) -> int: ... + def NbVariables(self) -> int: ... + def Points(self, N: int, P1: Extrema_POnCurv, P2: Extrema_POnCurv) -> None: ... + def SearchOfTolerance(self, C: None) -> float: ... + def SetCurve(self, theRank: int, C1: Adaptor3d_Curve) -> None: ... + def SetTolerance(self, theTol: float) -> None: ... + def SquareDistance(self, N: int) -> float: ... + def SubIntervalInitialize( + self, theUfirst: math_Vector, theUlast: math_Vector + ) -> None: ... + def Tolerance(self) -> float: ... + def Value(self, UV: math_Vector, F: math_Vector) -> bool: ... + def Values(self, UV: math_Vector, F: math_Vector, DF: math_Matrix) -> bool: ... + +class Extrema_CCLocFOfLocECC2d(math_FunctionSetWithDerivatives): + @overload + def __init__(self, thetol: Optional[float] = 1.0e-10) -> None: ... + @overload + def __init__( + self, + C1: Adaptor2d_Curve2d, + C2: Adaptor2d_Curve2d, + thetol: Optional[float] = 1.0e-10, + ) -> None: ... + def CurvePtr(self, theRank: int) -> None: ... + def Derivatives(self, UV: math_Vector, DF: math_Matrix) -> bool: ... + def GetStateNumber(self) -> int: ... + def NbEquations(self) -> int: ... + def NbExt(self) -> int: ... + def NbVariables(self) -> int: ... + def Points(self, N: int, P1: Extrema_POnCurv2d, P2: Extrema_POnCurv2d) -> None: ... + def SearchOfTolerance(self, C: None) -> float: ... + def SetCurve(self, theRank: int, C1: Adaptor2d_Curve2d) -> None: ... + def SetTolerance(self, theTol: float) -> None: ... + def SquareDistance(self, N: int) -> float: ... + def SubIntervalInitialize( + self, theUfirst: math_Vector, theUlast: math_Vector + ) -> None: ... + def Tolerance(self) -> float: ... + def Value(self, UV: math_Vector, F: math_Vector) -> bool: ... + def Values(self, UV: math_Vector, F: math_Vector, DF: math_Matrix) -> bool: ... + +class Extrema_Curve2dTool: + @staticmethod + def BSpline(C: Adaptor2d_Curve2d) -> Geom2d_BSplineCurve: ... + @staticmethod + def Bezier(C: Adaptor2d_Curve2d) -> Geom2d_BezierCurve: ... + @staticmethod + def Circle(C: Adaptor2d_Curve2d) -> gp_Circ2d: ... + @staticmethod + def Continuity(C: Adaptor2d_Curve2d) -> GeomAbs_Shape: ... + @staticmethod + def D0(C: Adaptor2d_Curve2d, U: float, P: gp_Pnt2d) -> None: ... + @staticmethod + def D1(C: Adaptor2d_Curve2d, U: float, P: gp_Pnt2d, V: gp_Vec2d) -> None: ... + @staticmethod + def D2( + C: Adaptor2d_Curve2d, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d + ) -> None: ... + @staticmethod + def D3( + C: Adaptor2d_Curve2d, + U: float, + P: gp_Pnt2d, + V1: gp_Vec2d, + V2: gp_Vec2d, + V3: gp_Vec2d, + ) -> None: ... + @staticmethod + def DN(C: Adaptor2d_Curve2d, U: float, N: int) -> gp_Vec2d: ... + @staticmethod + def DeflCurvIntervals(C: Adaptor2d_Curve2d) -> TColStd_HArray1OfReal: ... + @staticmethod + def Degree(C: Adaptor2d_Curve2d) -> int: ... + @staticmethod + def Ellipse(C: Adaptor2d_Curve2d) -> gp_Elips2d: ... + @staticmethod + def FirstParameter(C: Adaptor2d_Curve2d) -> float: ... + @staticmethod + def GetType(C: Adaptor2d_Curve2d) -> GeomAbs_CurveType: ... + @staticmethod + def Hyperbola(C: Adaptor2d_Curve2d) -> gp_Hypr2d: ... + @staticmethod + def Intervals( + C: Adaptor2d_Curve2d, T: TColStd_Array1OfReal, S: GeomAbs_Shape + ) -> None: ... + @staticmethod + def IsClosed(C: Adaptor2d_Curve2d) -> bool: ... + @staticmethod + def IsPeriodic(C: Adaptor2d_Curve2d) -> bool: ... + @staticmethod + def IsRational(C: Adaptor2d_Curve2d) -> bool: ... + @staticmethod + def LastParameter(C: Adaptor2d_Curve2d) -> float: ... + @staticmethod + def Line(C: Adaptor2d_Curve2d) -> gp_Lin2d: ... + @staticmethod + def NbIntervals(C: Adaptor2d_Curve2d, S: GeomAbs_Shape) -> int: ... + @staticmethod + def NbKnots(C: Adaptor2d_Curve2d) -> int: ... + @staticmethod + def NbPoles(C: Adaptor2d_Curve2d) -> int: ... + @staticmethod + def Parabola(C: Adaptor2d_Curve2d) -> gp_Parab2d: ... + @staticmethod + def Period(C: Adaptor2d_Curve2d) -> float: ... + @staticmethod + def Resolution(C: Adaptor2d_Curve2d, R3d: float) -> float: ... + @staticmethod + def Value(C: Adaptor2d_Curve2d, U: float) -> gp_Pnt2d: ... + +class Extrema_CurveTool: + @staticmethod + def BSpline(C: Adaptor3d_Curve) -> Geom_BSplineCurve: ... + @staticmethod + def Bezier(C: Adaptor3d_Curve) -> Geom_BezierCurve: ... + @staticmethod + def Circle(C: Adaptor3d_Curve) -> gp_Circ: ... + @staticmethod + def Continuity(C: Adaptor3d_Curve) -> GeomAbs_Shape: ... + @staticmethod + def D0(C: Adaptor3d_Curve, U: float, P: gp_Pnt) -> None: ... + @staticmethod + def D1(C: Adaptor3d_Curve, U: float, P: gp_Pnt, V: gp_Vec) -> None: ... + @staticmethod + def D2(C: Adaptor3d_Curve, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec) -> None: ... + @staticmethod + def D3( + C: Adaptor3d_Curve, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec + ) -> None: ... + @staticmethod + def DN(C: Adaptor3d_Curve, U: float, N: int) -> gp_Vec: ... + @staticmethod + def DeflCurvIntervals(C: Adaptor3d_Curve) -> TColStd_HArray1OfReal: ... + @staticmethod + def Degree(C: Adaptor3d_Curve) -> int: ... + @staticmethod + def Ellipse(C: Adaptor3d_Curve) -> gp_Elips: ... + @staticmethod + def FirstParameter(C: Adaptor3d_Curve) -> float: ... + @staticmethod + def GetType(C: Adaptor3d_Curve) -> GeomAbs_CurveType: ... + @staticmethod + def Hyperbola(C: Adaptor3d_Curve) -> gp_Hypr: ... + @staticmethod + def Intervals( + C: Adaptor3d_Curve, T: TColStd_Array1OfReal, S: GeomAbs_Shape + ) -> None: ... + @staticmethod + def IsPeriodic(C: Adaptor3d_Curve) -> bool: ... + @staticmethod + def IsRational(C: Adaptor3d_Curve) -> bool: ... + @staticmethod + def LastParameter(C: Adaptor3d_Curve) -> float: ... + @staticmethod + def Line(C: Adaptor3d_Curve) -> gp_Lin: ... + @staticmethod + def NbIntervals(C: Adaptor3d_Curve, S: GeomAbs_Shape) -> int: ... + @staticmethod + def NbKnots(C: Adaptor3d_Curve) -> int: ... + @staticmethod + def NbPoles(C: Adaptor3d_Curve) -> int: ... + @staticmethod + def Parabola(C: Adaptor3d_Curve) -> gp_Parab: ... + @staticmethod + def Period(C: Adaptor3d_Curve) -> float: ... + @staticmethod + def Resolution(C: Adaptor3d_Curve, R3d: float) -> float: ... + @staticmethod + def Value(C: Adaptor3d_Curve, U: float) -> gp_Pnt: ... + +class Extrema_ECC: + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, C1: Adaptor3d_Curve, C2: Adaptor3d_Curve) -> None: ... + @overload + def __init__( + self, + C1: Adaptor3d_Curve, + C2: Adaptor3d_Curve, + Uinf: float, + Usup: float, + Vinf: float, + Vsup: float, + ) -> None: ... + def GetSingleSolutionFlag(self) -> bool: ... + def IsDone(self) -> bool: ... + def IsParallel(self) -> bool: ... + def NbExt(self) -> int: ... + def Perform(self) -> None: ... + def Points(self, N: int, P1: Extrema_POnCurv, P2: Extrema_POnCurv) -> None: ... + def SetParams( + self, + C1: Adaptor3d_Curve, + C2: Adaptor3d_Curve, + Uinf: float, + Usup: float, + Vinf: float, + Vsup: float, + ) -> None: ... + def SetSingleSolutionFlag(self, theSingleSolutionFlag: bool) -> None: ... + def SetTolerance(self, Tol: float) -> None: ... + def SquareDistance(self, N: Optional[int] = 1) -> float: ... + +class Extrema_ECC2d: + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, C1: Adaptor2d_Curve2d, C2: Adaptor2d_Curve2d) -> None: ... + @overload + def __init__( + self, + C1: Adaptor2d_Curve2d, + C2: Adaptor2d_Curve2d, + Uinf: float, + Usup: float, + Vinf: float, + Vsup: float, + ) -> None: ... + def GetSingleSolutionFlag(self) -> bool: ... + def IsDone(self) -> bool: ... + def IsParallel(self) -> bool: ... + def NbExt(self) -> int: ... + def Perform(self) -> None: ... + def Points(self, N: int, P1: Extrema_POnCurv2d, P2: Extrema_POnCurv2d) -> None: ... + def SetParams( + self, + C1: Adaptor2d_Curve2d, + C2: Adaptor2d_Curve2d, + Uinf: float, + Usup: float, + Vinf: float, + Vsup: float, + ) -> None: ... + def SetSingleSolutionFlag(self, theSingleSolutionFlag: bool) -> None: ... + def SetTolerance(self, Tol: float) -> None: ... + def SquareDistance(self, N: Optional[int] = 1) -> float: ... + +class Extrema_ELPCOfLocateExtPC: + @overload + def __init__(self) -> None: ... + @overload + def __init__( + self, + P: gp_Pnt, + C: Adaptor3d_Curve, + Uinf: float, + Usup: float, + TolF: Optional[float] = 1.0e-10, + ) -> None: ... + @overload + def __init__( + self, P: gp_Pnt, C: Adaptor3d_Curve, TolF: Optional[float] = 1.0e-10 + ) -> None: ... + def Initialize( + self, + C: Adaptor3d_Curve, + Uinf: float, + Usup: float, + TolF: Optional[float] = 1.0e-10, + ) -> None: ... + def IsDone(self) -> bool: ... + def IsMin(self, N: int) -> bool: ... + def NbExt(self) -> int: ... + def Perform(self, P: gp_Pnt) -> None: ... + def Point(self, N: int) -> Extrema_POnCurv: ... + def SquareDistance(self, N: int) -> float: ... + def TrimmedSquareDistances(self, P1: gp_Pnt, P2: gp_Pnt) -> Tuple[float, float]: ... + +class Extrema_ELPCOfLocateExtPC2d: + @overload + def __init__(self) -> None: ... + @overload + def __init__( + self, + P: gp_Pnt2d, + C: Adaptor2d_Curve2d, + Uinf: float, + Usup: float, + TolF: Optional[float] = 1.0e-10, + ) -> None: ... + @overload + def __init__( + self, P: gp_Pnt2d, C: Adaptor2d_Curve2d, TolF: Optional[float] = 1.0e-10 + ) -> None: ... + def Initialize( + self, + C: Adaptor2d_Curve2d, + Uinf: float, + Usup: float, + TolF: Optional[float] = 1.0e-10, + ) -> None: ... + def IsDone(self) -> bool: ... + def IsMin(self, N: int) -> bool: ... + def NbExt(self) -> int: ... + def Perform(self, P: gp_Pnt2d) -> None: ... + def Point(self, N: int) -> Extrema_POnCurv2d: ... + def SquareDistance(self, N: int) -> float: ... + def TrimmedSquareDistances( + self, P1: gp_Pnt2d, P2: gp_Pnt2d + ) -> Tuple[float, float]: ... + +class Extrema_EPCOfELPCOfLocateExtPC: + @overload + def __init__(self) -> None: ... + @overload + def __init__( + self, P: gp_Pnt, C: Adaptor3d_Curve, NbU: int, TolU: float, TolF: float + ) -> None: ... + @overload + def __init__( + self, + P: gp_Pnt, + C: Adaptor3d_Curve, + NbU: int, + Umin: float, + Usup: float, + TolU: float, + TolF: float, + ) -> None: ... + @overload + def Initialize( + self, C: Adaptor3d_Curve, NbU: int, TolU: float, TolF: float + ) -> None: ... + @overload + def Initialize( + self, + C: Adaptor3d_Curve, + NbU: int, + Umin: float, + Usup: float, + TolU: float, + TolF: float, + ) -> None: ... + @overload + def Initialize(self, C: Adaptor3d_Curve) -> None: ... + @overload + def Initialize( + self, NbU: int, Umin: float, Usup: float, TolU: float, TolF: float + ) -> None: ... + def IsDone(self) -> bool: ... + def IsMin(self, N: int) -> bool: ... + def NbExt(self) -> int: ... + def Perform(self, P: gp_Pnt) -> None: ... + def Point(self, N: int) -> Extrema_POnCurv: ... + def SquareDistance(self, N: int) -> float: ... + +class Extrema_EPCOfELPCOfLocateExtPC2d: + @overload + def __init__(self) -> None: ... + @overload + def __init__( + self, P: gp_Pnt2d, C: Adaptor2d_Curve2d, NbU: int, TolU: float, TolF: float + ) -> None: ... + @overload + def __init__( + self, + P: gp_Pnt2d, + C: Adaptor2d_Curve2d, + NbU: int, + Umin: float, + Usup: float, + TolU: float, + TolF: float, + ) -> None: ... + @overload + def Initialize( + self, C: Adaptor2d_Curve2d, NbU: int, TolU: float, TolF: float + ) -> None: ... + @overload + def Initialize( + self, + C: Adaptor2d_Curve2d, + NbU: int, + Umin: float, + Usup: float, + TolU: float, + TolF: float, + ) -> None: ... + @overload + def Initialize(self, C: Adaptor2d_Curve2d) -> None: ... + @overload + def Initialize( + self, NbU: int, Umin: float, Usup: float, TolU: float, TolF: float + ) -> None: ... + def IsDone(self) -> bool: ... + def IsMin(self, N: int) -> bool: ... + def NbExt(self) -> int: ... + def Perform(self, P: gp_Pnt2d) -> None: ... + def Point(self, N: int) -> Extrema_POnCurv2d: ... + def SquareDistance(self, N: int) -> float: ... + +class Extrema_EPCOfExtPC: + @overload + def __init__(self) -> None: ... + @overload + def __init__( + self, P: gp_Pnt, C: Adaptor3d_Curve, NbU: int, TolU: float, TolF: float + ) -> None: ... + @overload + def __init__( + self, + P: gp_Pnt, + C: Adaptor3d_Curve, + NbU: int, + Umin: float, + Usup: float, + TolU: float, + TolF: float, + ) -> None: ... + @overload + def Initialize( + self, C: Adaptor3d_Curve, NbU: int, TolU: float, TolF: float + ) -> None: ... + @overload + def Initialize( + self, + C: Adaptor3d_Curve, + NbU: int, + Umin: float, + Usup: float, + TolU: float, + TolF: float, + ) -> None: ... + @overload + def Initialize(self, C: Adaptor3d_Curve) -> None: ... + @overload + def Initialize( + self, NbU: int, Umin: float, Usup: float, TolU: float, TolF: float + ) -> None: ... + def IsDone(self) -> bool: ... + def IsMin(self, N: int) -> bool: ... + def NbExt(self) -> int: ... + def Perform(self, P: gp_Pnt) -> None: ... + def Point(self, N: int) -> Extrema_POnCurv: ... + def SquareDistance(self, N: int) -> float: ... + +class Extrema_EPCOfExtPC2d: + @overload + def __init__(self) -> None: ... + @overload + def __init__( + self, P: gp_Pnt2d, C: Adaptor2d_Curve2d, NbU: int, TolU: float, TolF: float + ) -> None: ... + @overload + def __init__( + self, + P: gp_Pnt2d, + C: Adaptor2d_Curve2d, + NbU: int, + Umin: float, + Usup: float, + TolU: float, + TolF: float, + ) -> None: ... + @overload + def Initialize( + self, C: Adaptor2d_Curve2d, NbU: int, TolU: float, TolF: float + ) -> None: ... + @overload + def Initialize( + self, + C: Adaptor2d_Curve2d, + NbU: int, + Umin: float, + Usup: float, + TolU: float, + TolF: float, + ) -> None: ... + @overload + def Initialize(self, C: Adaptor2d_Curve2d) -> None: ... + @overload + def Initialize( + self, NbU: int, Umin: float, Usup: float, TolU: float, TolF: float + ) -> None: ... + def IsDone(self) -> bool: ... + def IsMin(self, N: int) -> bool: ... + def NbExt(self) -> int: ... + def Perform(self, P: gp_Pnt2d) -> None: ... + def Point(self, N: int) -> Extrema_POnCurv2d: ... + def SquareDistance(self, N: int) -> float: ... + +class Extrema_ExtCC: + @overload + def __init__( + self, TolC1: Optional[float] = 1.0e-10, TolC2: Optional[float] = 1.0e-10 + ) -> None: ... + @overload + def __init__( + self, + C1: Adaptor3d_Curve, + C2: Adaptor3d_Curve, + TolC1: Optional[float] = 1.0e-10, + TolC2: Optional[float] = 1.0e-10, + ) -> None: ... + @overload + def __init__( + self, + C1: Adaptor3d_Curve, + C2: Adaptor3d_Curve, + U1: float, + U2: float, + V1: float, + V2: float, + TolC1: Optional[float] = 1.0e-10, + TolC2: Optional[float] = 1.0e-10, + ) -> None: ... + def GetSingleSolutionFlag(self) -> bool: ... + @overload + def Initialize( + self, + C1: Adaptor3d_Curve, + C2: Adaptor3d_Curve, + TolC1: Optional[float] = 1.0e-10, + TolC2: Optional[float] = 1.0e-10, + ) -> None: ... + @overload + def Initialize( + self, + C1: Adaptor3d_Curve, + C2: Adaptor3d_Curve, + U1: float, + U2: float, + V1: float, + V2: float, + TolC1: Optional[float] = 1.0e-10, + TolC2: Optional[float] = 1.0e-10, + ) -> None: ... + def IsDone(self) -> bool: ... + def IsParallel(self) -> bool: ... + def NbExt(self) -> int: ... + def Perform(self) -> None: ... + def Points(self, N: int, P1: Extrema_POnCurv, P2: Extrema_POnCurv) -> None: ... + @overload + def SetCurve(self, theRank: int, C: Adaptor3d_Curve) -> None: ... + @overload + def SetCurve( + self, theRank: int, C: Adaptor3d_Curve, Uinf: float, Usup: float + ) -> None: ... + def SetRange(self, theRank: int, Uinf: float, Usup: float) -> None: ... + def SetSingleSolutionFlag(self, theSingleSolutionFlag: bool) -> None: ... + def SetTolerance(self, theRank: int, Tol: float) -> None: ... + def SquareDistance(self, N: Optional[int] = 1) -> float: ... + def TrimmedSquareDistances( + self, P11: gp_Pnt, P12: gp_Pnt, P21: gp_Pnt, P22: gp_Pnt + ) -> Tuple[float, float, float, float]: ... + +class Extrema_ExtCC2d: + @overload + def __init__(self) -> None: ... + @overload + def __init__( + self, + C1: Adaptor2d_Curve2d, + C2: Adaptor2d_Curve2d, + TolC1: Optional[float] = 1.0e-10, + TolC2: Optional[float] = 1.0e-10, + ) -> None: ... + @overload + def __init__( + self, + C1: Adaptor2d_Curve2d, + C2: Adaptor2d_Curve2d, + U1: float, + U2: float, + V1: float, + V2: float, + TolC1: Optional[float] = 1.0e-10, + TolC2: Optional[float] = 1.0e-10, + ) -> None: ... + def GetSingleSolutionFlag(self) -> bool: ... + def Initialize( + self, + C2: Adaptor2d_Curve2d, + V1: float, + V2: float, + TolC1: Optional[float] = 1.0e-10, + TolC2: Optional[float] = 1.0e-10, + ) -> None: ... + def IsDone(self) -> bool: ... + def IsParallel(self) -> bool: ... + def NbExt(self) -> int: ... + def Perform(self, C1: Adaptor2d_Curve2d, U1: float, U2: float) -> None: ... + def Points(self, N: int, P1: Extrema_POnCurv2d, P2: Extrema_POnCurv2d) -> None: ... + def SetSingleSolutionFlag(self, theSingleSolutionFlag: bool) -> None: ... + def SquareDistance(self, N: Optional[int] = 1) -> float: ... + def TrimmedSquareDistances( + self, P11: gp_Pnt2d, P12: gp_Pnt2d, P21: gp_Pnt2d, P22: gp_Pnt2d + ) -> Tuple[float, float, float, float]: ... + +class Extrema_ExtCS: + @overload + def __init__(self) -> None: ... + @overload + def __init__( + self, C: Adaptor3d_Curve, S: Adaptor3d_Surface, TolC: float, TolS: float + ) -> None: ... + @overload + def __init__( + self, + C: Adaptor3d_Curve, + S: Adaptor3d_Surface, + UCinf: float, + UCsup: float, + Uinf: float, + Usup: float, + Vinf: float, + Vsup: float, + TolC: float, + TolS: float, + ) -> None: ... + @overload + def Initialize(self, S: Adaptor3d_Surface, TolC: float, TolS: float) -> None: ... + @overload + def Initialize( + self, + S: Adaptor3d_Surface, + Uinf: float, + Usup: float, + Vinf: float, + Vsup: float, + TolC: float, + TolS: float, + ) -> None: ... + def IsDone(self) -> bool: ... + def IsParallel(self) -> bool: ... + def NbExt(self) -> int: ... + def Perform(self, C: Adaptor3d_Curve, Uinf: float, Usup: float) -> None: ... + def Points(self, N: int, P1: Extrema_POnCurv, P2: Extrema_POnSurf) -> None: ... + def SquareDistance(self, N: int) -> float: ... + +class Extrema_ExtElC: + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, C1: gp_Lin, C2: gp_Lin, AngTol: float) -> None: ... + @overload + def __init__(self, C1: gp_Lin, C2: gp_Circ, Tol: float) -> None: ... + @overload + def __init__(self, C1: gp_Lin, C2: gp_Elips) -> None: ... + @overload + def __init__(self, C1: gp_Lin, C2: gp_Hypr) -> None: ... + @overload + def __init__(self, C1: gp_Lin, C2: gp_Parab) -> None: ... + @overload + def __init__(self, C1: gp_Circ, C2: gp_Circ) -> None: ... + def IsDone(self) -> bool: ... + def IsParallel(self) -> bool: ... + def NbExt(self) -> int: ... + def Points(self, N: int, P1: Extrema_POnCurv, P2: Extrema_POnCurv) -> None: ... + def SquareDistance(self, N: Optional[int] = 1) -> float: ... + +class Extrema_ExtElC2d: + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, C1: gp_Lin2d, C2: gp_Lin2d, AngTol: float) -> None: ... + @overload + def __init__(self, C1: gp_Lin2d, C2: gp_Circ2d, Tol: float) -> None: ... + @overload + def __init__(self, C1: gp_Lin2d, C2: gp_Elips2d) -> None: ... + @overload + def __init__(self, C1: gp_Lin2d, C2: gp_Hypr2d) -> None: ... + @overload + def __init__(self, C1: gp_Lin2d, C2: gp_Parab2d) -> None: ... + @overload + def __init__(self, C1: gp_Circ2d, C2: gp_Circ2d) -> None: ... + @overload + def __init__(self, C1: gp_Circ2d, C2: gp_Elips2d) -> None: ... + @overload + def __init__(self, C1: gp_Circ2d, C2: gp_Hypr2d) -> None: ... + @overload + def __init__(self, C1: gp_Circ2d, C2: gp_Parab2d) -> None: ... + def IsDone(self) -> bool: ... + def IsParallel(self) -> bool: ... + def NbExt(self) -> int: ... + def Points(self, N: int, P1: Extrema_POnCurv2d, P2: Extrema_POnCurv2d) -> None: ... + def SquareDistance(self, N: Optional[int] = 1) -> float: ... + +class Extrema_ExtElCS: + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, C: gp_Lin, S: gp_Pln) -> None: ... + @overload + def __init__(self, C: gp_Lin, S: gp_Cylinder) -> None: ... + @overload + def __init__(self, C: gp_Lin, S: gp_Cone) -> None: ... + @overload + def __init__(self, C: gp_Lin, S: gp_Sphere) -> None: ... + @overload + def __init__(self, C: gp_Lin, S: gp_Torus) -> None: ... + @overload + def __init__(self, C: gp_Circ, S: gp_Pln) -> None: ... + @overload + def __init__(self, C: gp_Circ, S: gp_Cylinder) -> None: ... + @overload + def __init__(self, C: gp_Circ, S: gp_Cone) -> None: ... + @overload + def __init__(self, C: gp_Circ, S: gp_Sphere) -> None: ... + @overload + def __init__(self, C: gp_Circ, S: gp_Torus) -> None: ... + @overload + def __init__(self, C: gp_Hypr, S: gp_Pln) -> None: ... + def IsDone(self) -> bool: ... + def IsParallel(self) -> bool: ... + def NbExt(self) -> int: ... + @overload + def Perform(self, C: gp_Lin, S: gp_Pln) -> None: ... + @overload + def Perform(self, C: gp_Lin, S: gp_Cylinder) -> None: ... + @overload + def Perform(self, C: gp_Lin, S: gp_Cone) -> None: ... + @overload + def Perform(self, C: gp_Lin, S: gp_Sphere) -> None: ... + @overload + def Perform(self, C: gp_Lin, S: gp_Torus) -> None: ... + @overload + def Perform(self, C: gp_Circ, S: gp_Pln) -> None: ... + @overload + def Perform(self, C: gp_Circ, S: gp_Cylinder) -> None: ... + @overload + def Perform(self, C: gp_Circ, S: gp_Cone) -> None: ... + @overload + def Perform(self, C: gp_Circ, S: gp_Sphere) -> None: ... + @overload + def Perform(self, C: gp_Circ, S: gp_Torus) -> None: ... + @overload + def Perform(self, C: gp_Hypr, S: gp_Pln) -> None: ... + def Points(self, N: int, P1: Extrema_POnCurv, P2: Extrema_POnSurf) -> None: ... + def SquareDistance(self, N: Optional[int] = 1) -> float: ... + +class Extrema_ExtElSS: + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, S1: gp_Pln, S2: gp_Pln) -> None: ... + @overload + def __init__(self, S1: gp_Pln, S2: gp_Sphere) -> None: ... + @overload + def __init__(self, S1: gp_Sphere, S2: gp_Sphere) -> None: ... + @overload + def __init__(self, S1: gp_Sphere, S2: gp_Cylinder) -> None: ... + @overload + def __init__(self, S1: gp_Sphere, S2: gp_Cone) -> None: ... + @overload + def __init__(self, S1: gp_Sphere, S2: gp_Torus) -> None: ... + def IsDone(self) -> bool: ... + def IsParallel(self) -> bool: ... + def NbExt(self) -> int: ... + @overload + def Perform(self, S1: gp_Pln, S2: gp_Pln) -> None: ... + @overload + def Perform(self, S1: gp_Pln, S2: gp_Sphere) -> None: ... + @overload + def Perform(self, S1: gp_Sphere, S2: gp_Sphere) -> None: ... + @overload + def Perform(self, S1: gp_Sphere, S2: gp_Cylinder) -> None: ... + @overload + def Perform(self, S1: gp_Sphere, S2: gp_Cone) -> None: ... + @overload + def Perform(self, S1: gp_Sphere, S2: gp_Torus) -> None: ... + def Points(self, N: int, P1: Extrema_POnSurf, P2: Extrema_POnSurf) -> None: ... + def SquareDistance(self, N: Optional[int] = 1) -> float: ... + +class Extrema_ExtPC: + @overload + def __init__(self) -> None: ... + @overload + def __init__( + self, + P: gp_Pnt, + C: Adaptor3d_Curve, + Uinf: float, + Usup: float, + TolF: Optional[float] = 1.0e-10, + ) -> None: ... + @overload + def __init__( + self, P: gp_Pnt, C: Adaptor3d_Curve, TolF: Optional[float] = 1.0e-10 + ) -> None: ... + def Initialize( + self, + C: Adaptor3d_Curve, + Uinf: float, + Usup: float, + TolF: Optional[float] = 1.0e-10, + ) -> None: ... + def IsDone(self) -> bool: ... + def IsMin(self, N: int) -> bool: ... + def NbExt(self) -> int: ... + def Perform(self, P: gp_Pnt) -> None: ... + def Point(self, N: int) -> Extrema_POnCurv: ... + def SquareDistance(self, N: int) -> float: ... + def TrimmedSquareDistances(self, P1: gp_Pnt, P2: gp_Pnt) -> Tuple[float, float]: ... + +class Extrema_ExtPC2d: + @overload + def __init__(self) -> None: ... + @overload + def __init__( + self, + P: gp_Pnt2d, + C: Adaptor2d_Curve2d, + Uinf: float, + Usup: float, + TolF: Optional[float] = 1.0e-10, + ) -> None: ... + @overload + def __init__( + self, P: gp_Pnt2d, C: Adaptor2d_Curve2d, TolF: Optional[float] = 1.0e-10 + ) -> None: ... + def Initialize( + self, + C: Adaptor2d_Curve2d, + Uinf: float, + Usup: float, + TolF: Optional[float] = 1.0e-10, + ) -> None: ... + def IsDone(self) -> bool: ... + def IsMin(self, N: int) -> bool: ... + def NbExt(self) -> int: ... + def Perform(self, P: gp_Pnt2d) -> None: ... + def Point(self, N: int) -> Extrema_POnCurv2d: ... + def SquareDistance(self, N: int) -> float: ... + def TrimmedSquareDistances( + self, P1: gp_Pnt2d, P2: gp_Pnt2d + ) -> Tuple[float, float]: ... + +class Extrema_ExtPElC: + @overload + def __init__(self) -> None: ... + @overload + def __init__( + self, P: gp_Pnt, C: gp_Lin, Tol: float, Uinf: float, Usup: float + ) -> None: ... + @overload + def __init__( + self, P: gp_Pnt, C: gp_Circ, Tol: float, Uinf: float, Usup: float + ) -> None: ... + @overload + def __init__( + self, P: gp_Pnt, C: gp_Elips, Tol: float, Uinf: float, Usup: float + ) -> None: ... + @overload + def __init__( + self, P: gp_Pnt, C: gp_Hypr, Tol: float, Uinf: float, Usup: float + ) -> None: ... + @overload + def __init__( + self, P: gp_Pnt, C: gp_Parab, Tol: float, Uinf: float, Usup: float + ) -> None: ... + def IsDone(self) -> bool: ... + def IsMin(self, N: int) -> bool: ... + def NbExt(self) -> int: ... + @overload + def Perform( + self, P: gp_Pnt, C: gp_Lin, Tol: float, Uinf: float, Usup: float + ) -> None: ... + @overload + def Perform( + self, P: gp_Pnt, C: gp_Circ, Tol: float, Uinf: float, Usup: float + ) -> None: ... + @overload + def Perform( + self, P: gp_Pnt, C: gp_Elips, Tol: float, Uinf: float, Usup: float + ) -> None: ... + @overload + def Perform( + self, P: gp_Pnt, C: gp_Hypr, Tol: float, Uinf: float, Usup: float + ) -> None: ... + @overload + def Perform( + self, P: gp_Pnt, C: gp_Parab, Tol: float, Uinf: float, Usup: float + ) -> None: ... + def Point(self, N: int) -> Extrema_POnCurv: ... + def SquareDistance(self, N: int) -> float: ... + +class Extrema_ExtPElC2d: + @overload + def __init__(self) -> None: ... + @overload + def __init__( + self, P: gp_Pnt2d, C: gp_Lin2d, Tol: float, Uinf: float, Usup: float + ) -> None: ... + @overload + def __init__( + self, P: gp_Pnt2d, C: gp_Circ2d, Tol: float, Uinf: float, Usup: float + ) -> None: ... + @overload + def __init__( + self, P: gp_Pnt2d, C: gp_Elips2d, Tol: float, Uinf: float, Usup: float + ) -> None: ... + @overload + def __init__( + self, P: gp_Pnt2d, C: gp_Hypr2d, Tol: float, Uinf: float, Usup: float + ) -> None: ... + @overload + def __init__( + self, P: gp_Pnt2d, C: gp_Parab2d, Tol: float, Uinf: float, Usup: float + ) -> None: ... + def IsDone(self) -> bool: ... + def IsMin(self, N: int) -> bool: ... + def NbExt(self) -> int: ... + @overload + def Perform( + self, P: gp_Pnt2d, L: gp_Lin2d, Tol: float, Uinf: float, Usup: float + ) -> None: ... + @overload + def Perform( + self, P: gp_Pnt2d, C: gp_Circ2d, Tol: float, Uinf: float, Usup: float + ) -> None: ... + @overload + def Perform( + self, P: gp_Pnt2d, C: gp_Elips2d, Tol: float, Uinf: float, Usup: float + ) -> None: ... + @overload + def Perform( + self, P: gp_Pnt2d, C: gp_Hypr2d, Tol: float, Uinf: float, Usup: float + ) -> None: ... + @overload + def Perform( + self, P: gp_Pnt2d, C: gp_Parab2d, Tol: float, Uinf: float, Usup: float + ) -> None: ... + def Point(self, N: int) -> Extrema_POnCurv2d: ... + def SquareDistance(self, N: int) -> float: ... + +class Extrema_ExtPElS: + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, P: gp_Pnt, S: gp_Cylinder, Tol: float) -> None: ... + @overload + def __init__(self, P: gp_Pnt, S: gp_Pln, Tol: float) -> None: ... + @overload + def __init__(self, P: gp_Pnt, S: gp_Cone, Tol: float) -> None: ... + @overload + def __init__(self, P: gp_Pnt, S: gp_Torus, Tol: float) -> None: ... + @overload + def __init__(self, P: gp_Pnt, S: gp_Sphere, Tol: float) -> None: ... + def IsDone(self) -> bool: ... + def NbExt(self) -> int: ... + @overload + def Perform(self, P: gp_Pnt, S: gp_Cylinder, Tol: float) -> None: ... + @overload + def Perform(self, P: gp_Pnt, S: gp_Pln, Tol: float) -> None: ... + @overload + def Perform(self, P: gp_Pnt, S: gp_Cone, Tol: float) -> None: ... + @overload + def Perform(self, P: gp_Pnt, S: gp_Torus, Tol: float) -> None: ... + @overload + def Perform(self, P: gp_Pnt, S: gp_Sphere, Tol: float) -> None: ... + def Point(self, N: int) -> Extrema_POnSurf: ... + def SquareDistance(self, N: int) -> float: ... + +class Extrema_ExtPExtS(Standard_Transient): + @overload + def __init__(self) -> None: ... + @overload + def __init__( + self, + P: gp_Pnt, + S: GeomAdaptor_SurfaceOfLinearExtrusion, + Umin: float, + Usup: float, + Vmin: float, + Vsup: float, + TolU: float, + TolV: float, + ) -> None: ... + @overload + def __init__( + self, + P: gp_Pnt, + S: GeomAdaptor_SurfaceOfLinearExtrusion, + TolU: float, + TolV: float, + ) -> None: ... + def Initialize( + self, + S: GeomAdaptor_SurfaceOfLinearExtrusion, + Uinf: float, + Usup: float, + Vinf: float, + Vsup: float, + TolU: float, + TolV: float, + ) -> None: ... + def IsDone(self) -> bool: ... + def NbExt(self) -> int: ... + def Perform(self, P: gp_Pnt) -> None: ... + def Point(self, N: int) -> Extrema_POnSurf: ... + def SquareDistance(self, N: int) -> float: ... + +class Extrema_ExtPRevS(Standard_Transient): + @overload + def __init__(self) -> None: ... + @overload + def __init__( + self, + P: gp_Pnt, + S: GeomAdaptor_SurfaceOfRevolution, + Umin: float, + Usup: float, + Vmin: float, + Vsup: float, + TolU: float, + TolV: float, + ) -> None: ... + @overload + def __init__( + self, P: gp_Pnt, S: GeomAdaptor_SurfaceOfRevolution, TolU: float, TolV: float + ) -> None: ... + def Initialize( + self, + S: GeomAdaptor_SurfaceOfRevolution, + Umin: float, + Usup: float, + Vmin: float, + Vsup: float, + TolU: float, + TolV: float, + ) -> None: ... + def IsDone(self) -> bool: ... + def NbExt(self) -> int: ... + def Perform(self, P: gp_Pnt) -> None: ... + def Point(self, N: int) -> Extrema_POnSurf: ... + def SquareDistance(self, N: int) -> float: ... + +class Extrema_ExtPS: + @overload + def __init__(self) -> None: ... + @overload + def __init__( + self, + P: gp_Pnt, + S: Adaptor3d_Surface, + TolU: float, + TolV: float, + F: Optional[Extrema_ExtFlag] = Extrema_ExtFlag_MINMAX, + A: Optional[Extrema_ExtAlgo] = Extrema_ExtAlgo_Grad, + ) -> None: ... + @overload + def __init__( + self, + P: gp_Pnt, + S: Adaptor3d_Surface, + Uinf: float, + Usup: float, + Vinf: float, + Vsup: float, + TolU: float, + TolV: float, + F: Optional[Extrema_ExtFlag] = Extrema_ExtFlag_MINMAX, + A: Optional[Extrema_ExtAlgo] = Extrema_ExtAlgo_Grad, + ) -> None: ... + def Initialize( + self, + S: Adaptor3d_Surface, + Uinf: float, + Usup: float, + Vinf: float, + Vsup: float, + TolU: float, + TolV: float, + ) -> None: ... + def IsDone(self) -> bool: ... + def NbExt(self) -> int: ... + def Perform(self, P: gp_Pnt) -> None: ... + def Point(self, N: int) -> Extrema_POnSurf: ... + def SetAlgo(self, A: Extrema_ExtAlgo) -> None: ... + def SetFlag(self, F: Extrema_ExtFlag) -> None: ... + def SquareDistance(self, N: int) -> float: ... + def TrimmedSquareDistances( + self, PUfVf: gp_Pnt, PUfVl: gp_Pnt, PUlVf: gp_Pnt, PUlVl: gp_Pnt + ) -> Tuple[float, float, float, float]: ... + +class Extrema_ExtSS: + @overload + def __init__(self) -> None: ... + @overload + def __init__( + self, S1: Adaptor3d_Surface, S2: Adaptor3d_Surface, TolS1: float, TolS2: float + ) -> None: ... + @overload + def __init__( + self, + S1: Adaptor3d_Surface, + S2: Adaptor3d_Surface, + Uinf1: float, + Usup1: float, + Vinf1: float, + Vsup1: float, + Uinf2: float, + Usup2: float, + Vinf2: float, + Vsup2: float, + TolS1: float, + TolS2: float, + ) -> None: ... + def Initialize( + self, + S2: Adaptor3d_Surface, + Uinf2: float, + Usup2: float, + Vinf2: float, + Vsup2: float, + TolS1: float, + ) -> None: ... + def IsDone(self) -> bool: ... + def IsParallel(self) -> bool: ... + def NbExt(self) -> int: ... + def Perform( + self, + S1: Adaptor3d_Surface, + Uinf1: float, + Usup1: float, + Vinf1: float, + Vsup1: float, + TolS1: float, + ) -> None: ... + def Points(self, N: int, P1: Extrema_POnSurf, P2: Extrema_POnSurf) -> None: ... + def SquareDistance(self, N: int) -> float: ... + +class Extrema_FuncExtCS(math_FunctionSetWithDerivatives): + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, C: Adaptor3d_Curve, S: Adaptor3d_Surface) -> None: ... + def Derivatives(self, UV: math_Vector, DF: math_Matrix) -> bool: ... + def GetStateNumber(self) -> int: ... + def Initialize(self, C: Adaptor3d_Curve, S: Adaptor3d_Surface) -> None: ... + def NbEquations(self) -> int: ... + def NbExt(self) -> int: ... + def NbVariables(self) -> int: ... + def PointOnCurve(self, N: int) -> Extrema_POnCurv: ... + def PointOnSurface(self, N: int) -> Extrema_POnSurf: ... + def PointsOnCurve(self) -> Extrema_SequenceOfPOnCurv: ... + def PointsOnSurf(self) -> Extrema_SequenceOfPOnSurf: ... + def SquareDistance(self, N: int) -> float: ... + def SquareDistances(self) -> TColStd_SequenceOfReal: ... + def Value(self, UV: math_Vector, F: math_Vector) -> bool: ... + def Values(self, UV: math_Vector, F: math_Vector, DF: math_Matrix) -> bool: ... + +class Extrema_FuncExtSS(math_FunctionSetWithDerivatives): + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, S1: Adaptor3d_Surface, S2: Adaptor3d_Surface) -> None: ... + def Derivatives(self, UV: math_Vector, DF: math_Matrix) -> bool: ... + def GetStateNumber(self) -> int: ... + def Initialize(self, S1: Adaptor3d_Surface, S2: Adaptor3d_Surface) -> None: ... + def NbEquations(self) -> int: ... + def NbExt(self) -> int: ... + def NbVariables(self) -> int: ... + def PointOnS1(self, N: int) -> Extrema_POnSurf: ... + def PointOnS2(self, N: int) -> Extrema_POnSurf: ... + def SquareDistance(self, N: int) -> float: ... + def Value(self, UV: math_Vector, F: math_Vector) -> bool: ... + def Values(self, UV: math_Vector, F: math_Vector, DF: math_Matrix) -> bool: ... + +class Extrema_FuncPSDist(math_MultipleVarFunctionWithGradient): + def __init__(self, theS: Adaptor3d_Surface, theP: gp_Pnt) -> None: ... + def NbVariables(self) -> int: ... + +class Extrema_FuncPSNorm(math_FunctionSetWithDerivatives): + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, P: gp_Pnt, S: Adaptor3d_Surface) -> None: ... + def Derivatives(self, UV: math_Vector, DF: math_Matrix) -> bool: ... + def GetStateNumber(self) -> int: ... + def Initialize(self, S: Adaptor3d_Surface) -> None: ... + def NbEquations(self) -> int: ... + def NbExt(self) -> int: ... + def NbVariables(self) -> int: ... + def Point(self, N: int) -> Extrema_POnSurf: ... + def SetPoint(self, P: gp_Pnt) -> None: ... + def SquareDistance(self, N: int) -> float: ... + def Value(self, UV: math_Vector, F: math_Vector) -> bool: ... + def Values(self, UV: math_Vector, F: math_Vector, DF: math_Matrix) -> bool: ... + +class Extrema_GenExtCS: + @overload + def __init__(self) -> None: ... + @overload + def __init__( + self, + C: Adaptor3d_Curve, + S: Adaptor3d_Surface, + NbT: int, + NbU: int, + NbV: int, + Tol1: float, + Tol2: float, + ) -> None: ... + @overload + def __init__( + self, + C: Adaptor3d_Curve, + S: Adaptor3d_Surface, + NbT: int, + NbU: int, + NbV: int, + tmin: float, + tsup: float, + Umin: float, + Usup: float, + Vmin: float, + Vsup: float, + Tol1: float, + Tol2: float, + ) -> None: ... + @overload + def Initialize( + self, S: Adaptor3d_Surface, NbU: int, NbV: int, Tol2: float + ) -> None: ... + @overload + def Initialize( + self, + S: Adaptor3d_Surface, + NbU: int, + NbV: int, + Umin: float, + Usup: float, + Vmin: float, + Vsup: float, + Tol2: float, + ) -> None: ... + def IsDone(self) -> bool: ... + def NbExt(self) -> int: ... + @overload + def Perform(self, C: Adaptor3d_Curve, NbT: int, Tol1: float) -> None: ... + @overload + def Perform( + self, C: Adaptor3d_Curve, NbT: int, tmin: float, tsup: float, Tol1: float + ) -> None: ... + def PointOnCurve(self, N: int) -> Extrema_POnCurv: ... + def PointOnSurface(self, N: int) -> Extrema_POnSurf: ... + def SquareDistance(self, N: int) -> float: ... + +class Extrema_GenExtPS: + @overload + def __init__(self) -> None: ... + @overload + def __init__( + self, + P: gp_Pnt, + S: Adaptor3d_Surface, + NbU: int, + NbV: int, + TolU: float, + TolV: float, + F: Optional[Extrema_ExtFlag] = Extrema_ExtFlag_MINMAX, + A: Optional[Extrema_ExtAlgo] = Extrema_ExtAlgo_Grad, + ) -> None: ... + @overload + def __init__( + self, + P: gp_Pnt, + S: Adaptor3d_Surface, + NbU: int, + NbV: int, + Umin: float, + Usup: float, + Vmin: float, + Vsup: float, + TolU: float, + TolV: float, + F: Optional[Extrema_ExtFlag] = Extrema_ExtFlag_MINMAX, + A: Optional[Extrema_ExtAlgo] = Extrema_ExtAlgo_Grad, + ) -> None: ... + @overload + def Initialize( + self, S: Adaptor3d_Surface, NbU: int, NbV: int, TolU: float, TolV: float + ) -> None: ... + @overload + def Initialize( + self, + S: Adaptor3d_Surface, + NbU: int, + NbV: int, + Umin: float, + Usup: float, + Vmin: float, + Vsup: float, + TolU: float, + TolV: float, + ) -> None: ... + def IsDone(self) -> bool: ... + def NbExt(self) -> int: ... + def Perform(self, P: gp_Pnt) -> None: ... + def Point(self, N: int) -> Extrema_POnSurf: ... + def SetAlgo(self, A: Extrema_ExtAlgo) -> None: ... + def SetFlag(self, F: Extrema_ExtFlag) -> None: ... + def SquareDistance(self, N: int) -> float: ... + +class Extrema_GenExtSS: + @overload + def __init__(self) -> None: ... + @overload + def __init__( + self, + S1: Adaptor3d_Surface, + S2: Adaptor3d_Surface, + NbU: int, + NbV: int, + Tol1: float, + Tol2: float, + ) -> None: ... + @overload + def __init__( + self, + S1: Adaptor3d_Surface, + S2: Adaptor3d_Surface, + NbU: int, + NbV: int, + U1min: float, + U1sup: float, + V1min: float, + V1sup: float, + U2min: float, + U2sup: float, + V2min: float, + V2sup: float, + Tol1: float, + Tol2: float, + ) -> None: ... + @overload + def Initialize( + self, S2: Adaptor3d_Surface, NbU: int, NbV: int, Tol2: float + ) -> None: ... + @overload + def Initialize( + self, + S2: Adaptor3d_Surface, + NbU: int, + NbV: int, + U2min: float, + U2sup: float, + V2min: float, + V2sup: float, + Tol2: float, + ) -> None: ... + def IsDone(self) -> bool: ... + def NbExt(self) -> int: ... + @overload + def Perform(self, S1: Adaptor3d_Surface, Tol1: float) -> None: ... + @overload + def Perform( + self, + S1: Adaptor3d_Surface, + U1min: float, + U1sup: float, + V1min: float, + V1sup: float, + Tol1: float, + ) -> None: ... + def PointOnS1(self, N: int) -> Extrema_POnSurf: ... + def PointOnS2(self, N: int) -> Extrema_POnSurf: ... + def SquareDistance(self, N: int) -> float: ... + +class Extrema_GenLocateExtCS: + @overload + def __init__(self) -> None: ... + @overload + def __init__( + self, + C: Adaptor3d_Curve, + S: Adaptor3d_Surface, + T: float, + U: float, + V: float, + Tol1: float, + Tol2: float, + ) -> None: ... + def IsDone(self) -> bool: ... + def Perform( + self, + C: Adaptor3d_Curve, + S: Adaptor3d_Surface, + T: float, + U: float, + V: float, + Tol1: float, + Tol2: float, + ) -> None: ... + def PointOnCurve(self) -> Extrema_POnCurv: ... + def PointOnSurface(self) -> Extrema_POnSurf: ... + def SquareDistance(self) -> float: ... + +class Extrema_GenLocateExtPS: + def __init__( + self, + theS: Adaptor3d_Surface, + theTolU: Optional[float] = Precision.PConfusion(), + theTolV: Optional[float] = Precision.PConfusion(), + ) -> None: ... + def IsDone(self) -> bool: ... + @staticmethod + def IsMinDist( + theP: gp_Pnt, theS: Adaptor3d_Surface, theU0: float, theV0: float + ) -> bool: ... + def Perform( + self, + theP: gp_Pnt, + theU0: float, + theV0: float, + isDistanceCriteria: Optional[bool] = False, + ) -> None: ... + def Point(self) -> Extrema_POnSurf: ... + def SquareDistance(self) -> float: ... + +class Extrema_GenLocateExtSS: + @overload + def __init__(self) -> None: ... + @overload + def __init__( + self, + S1: Adaptor3d_Surface, + S2: Adaptor3d_Surface, + U1: float, + V1: float, + U2: float, + V2: float, + Tol1: float, + Tol2: float, + ) -> None: ... + def IsDone(self) -> bool: ... + def Perform( + self, + S1: Adaptor3d_Surface, + S2: Adaptor3d_Surface, + U1: float, + V1: float, + U2: float, + V2: float, + Tol1: float, + Tol2: float, + ) -> None: ... + def PointOnS1(self) -> Extrema_POnSurf: ... + def PointOnS2(self) -> Extrema_POnSurf: ... + def SquareDistance(self) -> float: ... + +class Extrema_GlobOptFuncCCC0(math_MultipleVarFunction): + @overload + def __init__(self, C1: Adaptor3d_Curve, C2: Adaptor3d_Curve) -> None: ... + @overload + def __init__(self, C1: Adaptor2d_Curve2d, C2: Adaptor2d_Curve2d) -> None: ... + def NbVariables(self) -> int: ... + def Value(self, X: math_Vector) -> Tuple[bool, float]: ... + +class Extrema_GlobOptFuncCCC1(math_MultipleVarFunctionWithGradient): + @overload + def __init__(self, C1: Adaptor3d_Curve, C2: Adaptor3d_Curve) -> None: ... + @overload + def __init__(self, C1: Adaptor2d_Curve2d, C2: Adaptor2d_Curve2d) -> None: ... + def Gradient(self, X: math_Vector, G: math_Vector) -> bool: ... + def NbVariables(self) -> int: ... + def Value(self, X: math_Vector) -> Tuple[bool, float]: ... + def Values(self, X: math_Vector, G: math_Vector) -> Tuple[bool, float]: ... + +class Extrema_GlobOptFuncCCC2(math_MultipleVarFunctionWithHessian): + @overload + def __init__(self, C1: Adaptor3d_Curve, C2: Adaptor3d_Curve) -> None: ... + @overload + def __init__(self, C1: Adaptor2d_Curve2d, C2: Adaptor2d_Curve2d) -> None: ... + def Gradient(self, X: math_Vector, G: math_Vector) -> bool: ... + def NbVariables(self) -> int: ... + def Value(self, X: math_Vector) -> Tuple[bool, float]: ... + @overload + def Values(self, X: math_Vector, G: math_Vector) -> Tuple[bool, float]: ... + @overload + def Values( + self, X: math_Vector, G: math_Vector, H: math_Matrix + ) -> Tuple[bool, float]: ... + +class Extrema_GlobOptFuncCQuadric(math_MultipleVarFunction): + @overload + def __init__(self, C: Adaptor3d_Curve) -> None: ... + @overload + def __init__(self, C: Adaptor3d_Curve, theTf: float, theTl: float) -> None: ... + @overload + def __init__(self, C: Adaptor3d_Curve, S: Adaptor3d_Surface) -> None: ... + def LoadQuad( + self, + S: Adaptor3d_Surface, + theUf: float, + theUl: float, + theVf: float, + theVl: float, + ) -> None: ... + def NbVariables(self) -> int: ... + def QuadricParameters(self, theCT: math_Vector, theUV: math_Vector) -> None: ... + def Value(self, theX: math_Vector) -> Tuple[bool, float]: ... + +class Extrema_GlobOptFuncCS(math_MultipleVarFunctionWithHessian): + def __init__(self, C: Adaptor3d_Curve, S: Adaptor3d_Surface) -> None: ... + def Gradient(self, theX: math_Vector, theG: math_Vector) -> bool: ... + def NbVariables(self) -> int: ... + def Value(self, theX: math_Vector) -> Tuple[bool, float]: ... + @overload + def Values(self, theX: math_Vector, theG: math_Vector) -> Tuple[bool, float]: ... + @overload + def Values( + self, theX: math_Vector, theG: math_Vector, theH: math_Matrix + ) -> Tuple[bool, float]: ... + +class Extrema_GlobOptFuncConicS(math_MultipleVarFunction): + @overload + def __init__(self, C: Adaptor3d_Curve, S: Adaptor3d_Surface) -> None: ... + @overload + def __init__(self, S: Adaptor3d_Surface) -> None: ... + @overload + def __init__( + self, + S: Adaptor3d_Surface, + theUf: float, + theUl: float, + theVf: float, + theVl: float, + ) -> None: ... + def ConicParameter(self, theUV: math_Vector) -> float: ... + def LoadConic(self, S: Adaptor3d_Curve, theTf: float, theTl: float) -> None: ... + def NbVariables(self) -> int: ... + def Value(self, theX: math_Vector) -> Tuple[bool, float]: ... + +class Extrema_LocECC: + def __init__( + self, + C1: Adaptor3d_Curve, + C2: Adaptor3d_Curve, + U0: float, + V0: float, + TolU: float, + TolV: float, + ) -> None: ... + def IsDone(self) -> bool: ... + def Point(self, P1: Extrema_POnCurv, P2: Extrema_POnCurv) -> None: ... + def SquareDistance(self) -> float: ... + +class Extrema_LocECC2d: + def __init__( + self, + C1: Adaptor2d_Curve2d, + C2: Adaptor2d_Curve2d, + U0: float, + V0: float, + TolU: float, + TolV: float, + ) -> None: ... + def IsDone(self) -> bool: ... + def Point(self, P1: Extrema_POnCurv2d, P2: Extrema_POnCurv2d) -> None: ... + def SquareDistance(self) -> float: ... + +class Extrema_LocEPCOfLocateExtPC: + @overload + def __init__(self) -> None: ... + @overload + def __init__( + self, P: gp_Pnt, C: Adaptor3d_Curve, U0: float, TolU: float + ) -> None: ... + @overload + def __init__( + self, + P: gp_Pnt, + C: Adaptor3d_Curve, + U0: float, + Umin: float, + Usup: float, + TolU: float, + ) -> None: ... + def Initialize( + self, C: Adaptor3d_Curve, Umin: float, Usup: float, TolU: float + ) -> None: ... + def IsDone(self) -> bool: ... + def IsMin(self) -> bool: ... + def Perform(self, P: gp_Pnt, U0: float) -> None: ... + def Point(self) -> Extrema_POnCurv: ... + def SquareDistance(self) -> float: ... + +class Extrema_LocEPCOfLocateExtPC2d: + @overload + def __init__(self) -> None: ... + @overload + def __init__( + self, P: gp_Pnt2d, C: Adaptor2d_Curve2d, U0: float, TolU: float + ) -> None: ... + @overload + def __init__( + self, + P: gp_Pnt2d, + C: Adaptor2d_Curve2d, + U0: float, + Umin: float, + Usup: float, + TolU: float, + ) -> None: ... + def Initialize( + self, C: Adaptor2d_Curve2d, Umin: float, Usup: float, TolU: float + ) -> None: ... + def IsDone(self) -> bool: ... + def IsMin(self) -> bool: ... + def Perform(self, P: gp_Pnt2d, U0: float) -> None: ... + def Point(self) -> Extrema_POnCurv2d: ... + def SquareDistance(self) -> float: ... + +class Extrema_LocateExtCC: + def __init__( + self, C1: Adaptor3d_Curve, C2: Adaptor3d_Curve, U0: float, V0: float + ) -> None: ... + def IsDone(self) -> bool: ... + def Point(self, P1: Extrema_POnCurv, P2: Extrema_POnCurv) -> None: ... + def SquareDistance(self) -> float: ... + +class Extrema_LocateExtCC2d: + def __init__( + self, C1: Adaptor2d_Curve2d, C2: Adaptor2d_Curve2d, U0: float, V0: float + ) -> None: ... + def IsDone(self) -> bool: ... + def Point(self, P1: Extrema_POnCurv2d, P2: Extrema_POnCurv2d) -> None: ... + def SquareDistance(self) -> float: ... + +class Extrema_LocateExtPC: + @overload + def __init__(self) -> None: ... + @overload + def __init__( + self, P: gp_Pnt, C: Adaptor3d_Curve, U0: float, TolF: float + ) -> None: ... + @overload + def __init__( + self, + P: gp_Pnt, + C: Adaptor3d_Curve, + U0: float, + Umin: float, + Usup: float, + TolF: float, + ) -> None: ... + def Initialize( + self, C: Adaptor3d_Curve, Umin: float, Usup: float, TolF: float + ) -> None: ... + def IsDone(self) -> bool: ... + def IsMin(self) -> bool: ... + def Perform(self, P: gp_Pnt, U0: float) -> None: ... + def Point(self) -> Extrema_POnCurv: ... + def SquareDistance(self) -> float: ... + +class Extrema_LocateExtPC2d: + @overload + def __init__(self) -> None: ... + @overload + def __init__( + self, P: gp_Pnt2d, C: Adaptor2d_Curve2d, U0: float, TolF: float + ) -> None: ... + @overload + def __init__( + self, + P: gp_Pnt2d, + C: Adaptor2d_Curve2d, + U0: float, + Umin: float, + Usup: float, + TolF: float, + ) -> None: ... + def Initialize( + self, C: Adaptor2d_Curve2d, Umin: float, Usup: float, TolF: float + ) -> None: ... + def IsDone(self) -> bool: ... + def IsMin(self) -> bool: ... + def Perform(self, P: gp_Pnt2d, U0: float) -> None: ... + def Point(self) -> Extrema_POnCurv2d: ... + def SquareDistance(self) -> float: ... + +class Extrema_PCFOfEPCOfELPCOfLocateExtPC(math_FunctionWithDerivative): + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, P: gp_Pnt, C: Adaptor3d_Curve) -> None: ... + def Derivative(self, U: float) -> Tuple[bool, float]: ... + def GetStateNumber(self) -> int: ... + def Initialize(self, C: Adaptor3d_Curve) -> None: ... + def IsMin(self, N: int) -> bool: ... + def NbExt(self) -> int: ... + def Point(self, N: int) -> Extrema_POnCurv: ... + def SearchOfTolerance(self) -> float: ... + def SetPoint(self, P: gp_Pnt) -> None: ... + def SquareDistance(self, N: int) -> float: ... + def SubIntervalInitialize(self, theUfirst: float, theUlast: float) -> None: ... + def Value(self, U: float) -> Tuple[bool, float]: ... + def Values(self, U: float) -> Tuple[bool, float, float]: ... + +class Extrema_PCFOfEPCOfELPCOfLocateExtPC2d(math_FunctionWithDerivative): + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, P: gp_Pnt2d, C: Adaptor2d_Curve2d) -> None: ... + def Derivative(self, U: float) -> Tuple[bool, float]: ... + def GetStateNumber(self) -> int: ... + def Initialize(self, C: Adaptor2d_Curve2d) -> None: ... + def IsMin(self, N: int) -> bool: ... + def NbExt(self) -> int: ... + def Point(self, N: int) -> Extrema_POnCurv2d: ... + def SearchOfTolerance(self) -> float: ... + def SetPoint(self, P: gp_Pnt2d) -> None: ... + def SquareDistance(self, N: int) -> float: ... + def SubIntervalInitialize(self, theUfirst: float, theUlast: float) -> None: ... + def Value(self, U: float) -> Tuple[bool, float]: ... + def Values(self, U: float) -> Tuple[bool, float, float]: ... + +class Extrema_PCFOfEPCOfExtPC(math_FunctionWithDerivative): + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, P: gp_Pnt, C: Adaptor3d_Curve) -> None: ... + def Derivative(self, U: float) -> Tuple[bool, float]: ... + def GetStateNumber(self) -> int: ... + def Initialize(self, C: Adaptor3d_Curve) -> None: ... + def IsMin(self, N: int) -> bool: ... + def NbExt(self) -> int: ... + def Point(self, N: int) -> Extrema_POnCurv: ... + def SearchOfTolerance(self) -> float: ... + def SetPoint(self, P: gp_Pnt) -> None: ... + def SquareDistance(self, N: int) -> float: ... + def SubIntervalInitialize(self, theUfirst: float, theUlast: float) -> None: ... + def Value(self, U: float) -> Tuple[bool, float]: ... + def Values(self, U: float) -> Tuple[bool, float, float]: ... + +class Extrema_PCFOfEPCOfExtPC2d(math_FunctionWithDerivative): + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, P: gp_Pnt2d, C: Adaptor2d_Curve2d) -> None: ... + def Derivative(self, U: float) -> Tuple[bool, float]: ... + def GetStateNumber(self) -> int: ... + def Initialize(self, C: Adaptor2d_Curve2d) -> None: ... + def IsMin(self, N: int) -> bool: ... + def NbExt(self) -> int: ... + def Point(self, N: int) -> Extrema_POnCurv2d: ... + def SearchOfTolerance(self) -> float: ... + def SetPoint(self, P: gp_Pnt2d) -> None: ... + def SquareDistance(self, N: int) -> float: ... + def SubIntervalInitialize(self, theUfirst: float, theUlast: float) -> None: ... + def Value(self, U: float) -> Tuple[bool, float]: ... + def Values(self, U: float) -> Tuple[bool, float, float]: ... + +class Extrema_PCLocFOfLocEPCOfLocateExtPC(math_FunctionWithDerivative): + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, P: gp_Pnt, C: Adaptor3d_Curve) -> None: ... + def Derivative(self, U: float) -> Tuple[bool, float]: ... + def GetStateNumber(self) -> int: ... + def Initialize(self, C: Adaptor3d_Curve) -> None: ... + def IsMin(self, N: int) -> bool: ... + def NbExt(self) -> int: ... + def Point(self, N: int) -> Extrema_POnCurv: ... + def SearchOfTolerance(self) -> float: ... + def SetPoint(self, P: gp_Pnt) -> None: ... + def SquareDistance(self, N: int) -> float: ... + def SubIntervalInitialize(self, theUfirst: float, theUlast: float) -> None: ... + def Value(self, U: float) -> Tuple[bool, float]: ... + def Values(self, U: float) -> Tuple[bool, float, float]: ... + +class Extrema_PCLocFOfLocEPCOfLocateExtPC2d(math_FunctionWithDerivative): + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, P: gp_Pnt2d, C: Adaptor2d_Curve2d) -> None: ... + def Derivative(self, U: float) -> Tuple[bool, float]: ... + def GetStateNumber(self) -> int: ... + def Initialize(self, C: Adaptor2d_Curve2d) -> None: ... + def IsMin(self, N: int) -> bool: ... + def NbExt(self) -> int: ... + def Point(self, N: int) -> Extrema_POnCurv2d: ... + def SearchOfTolerance(self) -> float: ... + def SetPoint(self, P: gp_Pnt2d) -> None: ... + def SquareDistance(self, N: int) -> float: ... + def SubIntervalInitialize(self, theUfirst: float, theUlast: float) -> None: ... + def Value(self, U: float) -> Tuple[bool, float]: ... + def Values(self, U: float) -> Tuple[bool, float, float]: ... + +class Extrema_POnCurv: + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, U: float, P: gp_Pnt) -> None: ... + def Parameter(self) -> float: ... + def SetValues(self, U: float, P: gp_Pnt) -> None: ... + def Value(self) -> gp_Pnt: ... + +class Extrema_POnCurv2d: + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, U: float, P: gp_Pnt2d) -> None: ... + def Parameter(self) -> float: ... + def SetValues(self, U: float, P: gp_Pnt2d) -> None: ... + def Value(self) -> gp_Pnt2d: ... + +class Extrema_POnSurf: + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, U: float, V: float, P: gp_Pnt) -> None: ... + def Parameter(self) -> Tuple[float, float]: ... + def SetParameters(self, theU: float, theV: float, thePnt: gp_Pnt) -> None: ... + def Value(self) -> gp_Pnt: ... + +class Extrema_POnSurfParams(Extrema_POnSurf): + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, theU: float, theV: float, thePnt: gp_Pnt) -> None: ... + def GetElementType(self) -> Extrema_ElementType: ... + def GetIndices(self) -> Tuple[int, int]: ... + def GetSqrDistance(self) -> float: ... + def SetElementType(self, theElementType: Extrema_ElementType) -> None: ... + def SetIndices(self, theIndexU: int, theIndexV: int) -> None: ... + def SetSqrDistance(self, theSqrDistance: float) -> None: ... + +# harray1 classes + +class Extrema_HArray1OfPOnCurv(Extrema_Array1OfPOnCurv, Standard_Transient): + def __init__(self, theLower: int, theUpper: int) -> None: ... + def Array1(self) -> Extrema_Array1OfPOnCurv: ... + +class Extrema_HArray1OfPOnCurv2d(Extrema_Array1OfPOnCurv2d, Standard_Transient): + def __init__(self, theLower: int, theUpper: int) -> None: ... + def Array1(self) -> Extrema_Array1OfPOnCurv2d: ... + +class Extrema_HArray1OfPOnSurf(Extrema_Array1OfPOnSurf, Standard_Transient): + def __init__(self, theLower: int, theUpper: int) -> None: ... + def Array1(self) -> Extrema_Array1OfPOnSurf: ... + +# harray2 classes + +class Extrema_HArray2OfPOnCurv(Extrema_Array2OfPOnCurv, Standard_Transient): + @overload + def __init__( + self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int + ) -> None: ... + @overload + def __init__(self, theOther: Extrema_Array2OfPOnCurv) -> None: ... + def Array2(self) -> Extrema_Array2OfPOnCurv: ... + +class Extrema_HArray2OfPOnCurv2d(Extrema_Array2OfPOnCurv2d, Standard_Transient): + @overload + def __init__( + self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int + ) -> None: ... + @overload + def __init__(self, theOther: Extrema_Array2OfPOnCurv2d) -> None: ... + def Array2(self) -> Extrema_Array2OfPOnCurv2d: ... + +class Extrema_HArray2OfPOnSurf(Extrema_Array2OfPOnSurf, Standard_Transient): + @overload + def __init__( + self, theRowLow: int, theRowUpp: int, theColLow: int, theColUpp: int + ) -> None: ... + @overload + def __init__(self, theOther: Extrema_Array2OfPOnSurf) -> None: ... + def Array2(self) -> Extrema_Array2OfPOnSurf: ... + +# hsequence classes diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/GccAna.py b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/GccAna.py new file mode 100644 index 0000000000000000000000000000000000000000..06a2bdd8a200a54d4f07e040461060c6d56cd214 --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/GccAna.py @@ -0,0 +1,2832 @@ +# 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. + +""" +GccAna module, see official documentation at +https://dev.opencascade.org/doc/occt-7.9.0/refman/html/package_gccana.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 _GccAna +else: + import _GccAna + +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__ = _GccAna.delete_SwigPyIterator + + def value(self): + return _GccAna.SwigPyIterator_value(self) + + def incr(self, n=1): + return _GccAna.SwigPyIterator_incr(self, n) + + def decr(self, n=1): + return _GccAna.SwigPyIterator_decr(self, n) + + def distance(self, x): + return _GccAna.SwigPyIterator_distance(self, x) + + def equal(self, x): + return _GccAna.SwigPyIterator_equal(self, x) + + def copy(self): + return _GccAna.SwigPyIterator_copy(self) + + def next(self): + return _GccAna.SwigPyIterator_next(self) + + def __next__(self): + return _GccAna.SwigPyIterator___next__(self) + + def previous(self): + return _GccAna.SwigPyIterator_previous(self) + + def advance(self, n): + return _GccAna.SwigPyIterator_advance(self, n) + + def __eq__(self, x): + return _GccAna.SwigPyIterator___eq__(self, x) + + def __ne__(self, x): + return _GccAna.SwigPyIterator___ne__(self, x) + + def __iadd__(self, n): + return _GccAna.SwigPyIterator___iadd__(self, n) + + def __isub__(self, n): + return _GccAna.SwigPyIterator___isub__(self, n) + + def __add__(self, n): + return _GccAna.SwigPyIterator___add__(self, n) + + def __sub__(self, *args): + return _GccAna.SwigPyIterator___sub__(self, *args) + def __iter__(self): + return self + +# Register SwigPyIterator in _GccAna: +_GccAna.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 solution number Index Raises OutOfRange exception if Index is greater than the number of solutions. It raises NotDone if the construction algorithm didn't succeed. + + """ + return _GccAna.GccAna_Circ2dBisec_ThisSolution(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _GccAna.delete_GccAna_Circ2dBisec + +# Register GccAna_Circ2dBisec in _GccAna: +_GccAna.GccAna_Circ2dBisec_swigregister(GccAna_Circ2dBisec) +class GccAna_Circ2dTanCen(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 + ---------- + Qualified1: GccEnt_QualifiedCirc + Pcenter: gp_Pnt2d + Tolerance: float + + Return + ------- + None + + Description + ----------- + This method implements the algorithms used to create 2d circles tangent to a circle and centered on a point. + + Parameters + ---------- + Linetan: gp_Lin2d + Pcenter: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + This method implements the algorithms used to create 2d circles tangent to a line and centered on a point. + + Parameters + ---------- + Point1: gp_Pnt2d + Pcenter: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + This method implements the algorithms used to create 2d circles passing through a point and centered on a point. Tolerance is a tolerance criterion used by the algorithm to find a solution when, mathematically, the problem posed does not have a solution, but where there is numeric uncertainty attached to the arguments. In these algorithms Tolerance is only used in very specific cases where the center of the solution is very close to the circle to which it is tangential, and where the solution is therefore a very small circle. Exceptions GccEnt_BadQualifier if a qualifier is inconsistent with the argument it qualifies (for example, enclosing for a line). + + """ + _GccAna.GccAna_Circ2dTanCen_swiginit(self, _GccAna.new_GccAna_Circ2dTanCen(*args)) + + def IsDone(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + This method returns True if the construction algorithm succeeded. Note: IsDone protects against a failure arising from a more internal intersection algorithm, which has reached its numeric limits. + + """ + return _GccAna.GccAna_Circ2dTanCen_IsDone(self, *args) + + def IsTheSame1(self, *args): + r""" + + Parameters + ---------- + Index: int + + Return + ------- + bool + + Description + ----------- + Returns True if the solution number Index is equal to the first argument. It raises NotDone if the construction algorithm didn't succeed. It raises OutOfRange if Index is greater than the number of solutions or less than zero. + + """ + return _GccAna.GccAna_Circ2dTanCen_IsTheSame1(self, *args) + + def NbSolutions(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Returns the number of circles, representing solutions computed by this algorithm and raises NotDone exception if the algorithm didn't succeed. + + """ + return _GccAna.GccAna_Circ2dTanCen_NbSolutions(self, *args) + + def Tangency1(self, *args): + r""" + + Parameters + ---------- + Index: int + PntSol: gp_Pnt2d + + Return + ------- + ParSol: float + ParArg: float + + Description + ----------- + Returns information about the tangency point between the result number Index and the first argument. ParSol is the intrinsic parameter of the point PntSol on the solution curv. ParArg is the intrinsic parameter of the point PntArg on the argument curv. It raises NotDone if the construction algorithm didn't succeed. It raises OutOfRange if Index is greater than the number of solutions or less than zero. + + """ + return _GccAna.GccAna_Circ2dTanCen_Tangency1(self, *args) + + def ThisSolution(self, *args): + r""" + + Parameters + ---------- + Index: int + + Return + ------- + gp_Circ2d + + Description + ----------- + Returns the circle, representing the solution number Index and raises OutOfRange exception if Index is greater than the number of solutions. Be careful: the Index is only a way to get all the solutions, but is not associated to these outside the context of the algorithm-object. Raises NotDone if the construction algorithm didn't succeed. It raises OutOfRange if Index is greater than the number of solutions or less than zer. + + """ + return _GccAna.GccAna_Circ2dTanCen_ThisSolution(self, *args) + + def WhichQualifier(self, *args): + r""" + + Parameters + ---------- + Index: int + Qualif1: GccEnt_Position + + Return + ------- + None + + Description + ----------- + Returns the qualifier Qualif1 of the tangency argument for the solution of index Index computed by this algorithm. The returned qualifier is: - that specified at the start of construction when the solutions are defined as enclosed, enclosing or It returns the real qualifiers (the qualifiers given to the constructor method in case of enclosed, enclosing and outside and the qualifiers computedin case of unqualified). + + """ + return _GccAna.GccAna_Circ2dTanCen_WhichQualifier(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _GccAna.delete_GccAna_Circ2dTanCen + +# Register GccAna_Circ2dTanCen in _GccAna: +_GccAna.GccAna_Circ2dTanCen_swigregister(GccAna_Circ2dTanCen) +class GccAna_Circ2dTanOnRad(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 + ---------- + Qualified1: GccEnt_QualifiedCirc + OnLine: gp_Lin2d + Radius: float + Tolerance: float + + Return + ------- + None + + Description + ----------- + This methods implements the algorithms used to create 2d Circles tangent to a circle and centered on a 2d Line with a given radius. Tolerance is used to find solution in every limit cases. For example Tolerance is used in the case of EnclosedCirc when Radius-R1+dist is greater Tolerance (dist is the distance between the line and the location of the circ, R1 is the radius of the circ) because there is no solution. raises NegativeValue in case of NegativeRadius. + + Parameters + ---------- + Qualified1: GccEnt_QualifiedLin + OnLine: gp_Lin2d + Radius: float + Tolerance: float + + Return + ------- + None + + Description + ----------- + This methods implements the algorithms used to create 2d Circles tangent to a 2d Line and centered on a 2d Line with a given radius. Tolerance is used to find solution in every limit cases. raises NegativeValue in case of NegativeRadius. + + Parameters + ---------- + Point1: gp_Pnt2d + OnLine: gp_Lin2d + Radius: float + Tolerance: float + + Return + ------- + None + + Description + ----------- + This methods implements the algorithms used to create 2d Circles passing through a 2d Point and centered on a 2d Line with a given radius. Tolerance is used to find solution in every limit cases. + + Parameters + ---------- + Qualified1: GccEnt_QualifiedCirc + OnCirc: gp_Circ2d + Radius: float + Tolerance: float + + Return + ------- + None + + Description + ----------- + This methods implements the algorithms used to create 2d Circles tangent to a circle and centered on a 2d Circle with a given radius. Tolerance is used to find solution in every limit cases. raises NegativeValue in case of NegativeRadius. + + Parameters + ---------- + Qualified1: GccEnt_QualifiedLin + OnCirc: gp_Circ2d + Radius: float + Tolerance: float + + Return + ------- + None + + Description + ----------- + This methods implements the algorithms used to create 2d Circles tangent to a 2d Line and centered on a 2d Line with a given radius. Tolerance is used to find solution in every limit cases. raises NegativeValue in case of NegativeRadius. + + Parameters + ---------- + Point1: gp_Pnt2d + OnCirc: gp_Circ2d + Radius: float + Tolerance: float + + Return + ------- + None + + Description + ----------- + This methods implements the algorithms used to create 2d Circles passing through a 2d Point and centered on a 2d Line with a given radius. Tolerance is used to find solution in every limit cases. raises NegativeValue in case of NegativeRadius. + + """ + _GccAna.GccAna_Circ2dTanOnRad_swiginit(self, _GccAna.new_GccAna_Circ2dTanOnRad(*args)) + + def CenterOn3(self, *args): + r""" + + Parameters + ---------- + Index: int + PntSol: gp_Pnt2d + + Return + ------- + ParArg: float + + Description + ----------- + Returns information about the center (on the curv) of the result. ParArg is the intrinsic parameter of the point on the argument curv. PntSol is the center point of the solution curv. Raises NotDone if the construction algorithm didn't succeed. It raises OutOfRange if Index is greater than the number of solutions. + + """ + return _GccAna.GccAna_Circ2dTanOnRad_CenterOn3(self, *args) + + def IsDone(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns true if the construction algorithm does not fail (even if it finds no solution). Note: IsDone protects against a failure arising from a more internal intersection algorithm, which has reached its numeric limits. + + """ + return _GccAna.GccAna_Circ2dTanOnRad_IsDone(self, *args) + + def IsTheSame1(self, *args): + r""" + + Parameters + ---------- + Index: int + + Return + ------- + bool + + Description + ----------- + Returns True if the solution number Index is equal to the first argument and False in the other cases. Raises NotDone if the construction algorithm didn't succeed. It raises OutOfRange if Index is greater than the number of solutions. + + """ + return _GccAna.GccAna_Circ2dTanOnRad_IsTheSame1(self, *args) + + def NbSolutions(self, *args): + r""" + Return + ------- + int + + Description + ----------- + This method returns the number of circles, representing solutions. Raises NotDone if the construction algorithm didn't succeed. + + """ + return _GccAna.GccAna_Circ2dTanOnRad_NbSolutions(self, *args) + + def Tangency1(self, *args): + r""" + + Parameters + ---------- + Index: int + PntSol: gp_Pnt2d + + Return + ------- + ParSol: float + ParArg: float + + Description + ----------- + Returns information about the tangency point between the result number Index and the first argument. ParSol is the intrinsic parameter of the point on the solution curv. ParArg is the intrinsic parameter of the point on the argument curv. PntSol is the tangency point on the solution curv. PntArg is the tangency point on the argument curv. Raises NotDone if the construction algorithm didn't succeed. It raises OutOfRange if Index is greater than the number of solutions. + + """ + return _GccAna.GccAna_Circ2dTanOnRad_Tangency1(self, *args) + + def ThisSolution(self, *args): + r""" + + Parameters + ---------- + Index: int + + Return + ------- + gp_Circ2d + + Description + ----------- + Returns the solution number Index and raises OutOfRange exception if Index is greater than the number of solutions. Be careful: the Index is only a way to get all the solutions, but is not associated to these outside the context of the algorithm-object. Raises NotDone if the construction algorithm didn't succeed. It raises OutOfRange if Index is greater than the number of solutions. + + """ + return _GccAna.GccAna_Circ2dTanOnRad_ThisSolution(self, *args) + + def WhichQualifier(self, *args): + r""" + + Parameters + ---------- + Index: int + Qualif1: GccEnt_Position + + Return + ------- + None + + Description + ----------- + Returns the qualifier Qualif1 of the tangency argument for the solution of index Index computed by this algorithm. The returned qualifier is: - that specified at the start of construction when the solutions are defined as enclosed, enclosing or outside with respect to the argument, or - that computed during construction (i.e. enclosed, enclosing or outside) when the solutions are defined as unqualified with respect to the argument, or - GccEnt_noqualifier if the tangency argument is a point. Exceptions Standard_OutOfRange if Index is less than zero or greater than the number of solutions computed by this algorithm. StdFail_NotDone if the construction fails. + + """ + return _GccAna.GccAna_Circ2dTanOnRad_WhichQualifier(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _GccAna.delete_GccAna_Circ2dTanOnRad + +# Register GccAna_Circ2dTanOnRad in _GccAna: +_GccAna.GccAna_Circ2dTanOnRad_swigregister(GccAna_Circ2dTanOnRad) +class GccAna_CircLin2dBisec(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 + ---------- + Circle: gp_Circ2d + Line: gp_Lin2d + + Return + ------- + None + + Description + ----------- + Constructs bisecting curves between the circle Circle and the line Line. + + """ + _GccAna.GccAna_CircLin2dBisec_swiginit(self, _GccAna.new_GccAna_CircLin2dBisec(*args)) + + def IsDone(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns true (this construction algorithm never fails). + + """ + return _GccAna.GccAna_CircLin2dBisec_IsDone(self, *args) + + def NbSolutions(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Returns the number of curves, representing solutions computed by this algorithm. + + """ + return _GccAna.GccAna_CircLin2dBisec_NbSolutions(self, *args) + + def ThisSolution(self, *args): + r""" + + Parameters + ---------- + Index: int + + Return + ------- + opencascade::handle + + Description + ----------- + Returns the solution number Index and raises OutOfRange exception if Index is greater than the number of solutions Exceptions Standard_OutOfRange if Index is less than zero or greater than the number of solutions computed by this algorithm. + + """ + return _GccAna.GccAna_CircLin2dBisec_ThisSolution(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _GccAna.delete_GccAna_CircLin2dBisec + +# Register GccAna_CircLin2dBisec in _GccAna: +_GccAna.GccAna_CircLin2dBisec_swigregister(GccAna_CircLin2dBisec) +class GccAna_CircPnt2dBisec(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 + ---------- + Circle1: gp_Circ2d + Point2: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + Constructs bisecting curves between the circle Circle1 and the point Point2. + + Parameters + ---------- + Circle1: gp_Circ2d + Point2: gp_Pnt2d + Tolerance: float + + Return + ------- + None + + Description + ----------- + Constructs bisecting curves between the circle Circle1 and the point Point2. Tolerance is used. + + """ + _GccAna.GccAna_CircPnt2dBisec_swiginit(self, _GccAna.new_GccAna_CircPnt2dBisec(*args)) + + def IsDone(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns true (this construction algorithm never fails). + + """ + return _GccAna.GccAna_CircPnt2dBisec_IsDone(self, *args) + + def NbSolutions(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Returns the number of curves, representing solutions computed by this algorithm. + + """ + return _GccAna.GccAna_CircPnt2dBisec_NbSolutions(self, *args) + + def ThisSolution(self, *args): + r""" + + Parameters + ---------- + Index: int + + Return + ------- + opencascade::handle + + Description + ----------- + Returns the solution number Index and raises OutOfRange exception if Index is greater than the number of solutions. Exceptions Standard_OutOfRange if Index is less than zero or greater than the number of solutions computed by this algorithm. + + """ + return _GccAna.GccAna_CircPnt2dBisec_ThisSolution(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _GccAna.delete_GccAna_CircPnt2dBisec + +# Register GccAna_CircPnt2dBisec in _GccAna: +_GccAna.GccAna_CircPnt2dBisec_swigregister(GccAna_CircPnt2dBisec) +class GccAna_Lin2d2Tan(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 + ---------- + ThePoint1: gp_Pnt2d + ThePoint2: gp_Pnt2d + Tolerance: float + + Return + ------- + None + + Description + ----------- + This methods implements the algorithms used to create 2d lines passing through 2 points. Tolerance is used because we can't create a line when the distance between the two points is too small. + + Parameters + ---------- + Qualified1: GccEnt_QualifiedCirc + ThePoint: gp_Pnt2d + Tolerance: float + + Return + ------- + None + + Description + ----------- + This methods implements the algorithms used to create 2d lines tangent to one circle and passing through a point. Exception BadQualifier is raised in the case of EnclosedCirc Tolerance is used because there is no solution when the point is inside the solution according to the tolerance. + + Parameters + ---------- + Qualified1: GccEnt_QualifiedCirc + Qualified2: GccEnt_QualifiedCirc + Tolerance: float + + Return + ------- + None + + Description + ----------- + This methods implements the algorithms used to create 2d lines tangent to 2 circles. Exception BadQualifier is raised in the case of EnclosedCirc. + + """ + _GccAna.GccAna_Lin2d2Tan_swiginit(self, _GccAna.new_GccAna_Lin2d2Tan(*args)) + + def IsDone(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + This method returns true when there is a solution and false in the other cases. + + """ + return _GccAna.GccAna_Lin2d2Tan_IsDone(self, *args) + + def NbSolutions(self, *args): + r""" + Return + ------- + int + + Description + ----------- + This method returns the number of solutions. Raises NotDone if the construction algorithm didn't succeed. + + """ + return _GccAna.GccAna_Lin2d2Tan_NbSolutions(self, *args) + + def Tangency1(self, *args): + r""" + + Parameters + ---------- + Index: int + PntSol: gp_Pnt2d + + Return + ------- + ParSol: float + ParArg: float + + Description + ----------- + Returns information about the tangency point between the result number Index and the first argument. ParSol is the intrinsic parameter of the point PntSol on the solution curv. ParArg is the intrinsic parameter of the point PntSol on the argument curv. Raises OutOfRange is raised if Index is greater than the number of solutions. It raises NotDone if the algorithm failed. + + """ + return _GccAna.GccAna_Lin2d2Tan_Tangency1(self, *args) + + def Tangency2(self, *args): + r""" + + Parameters + ---------- + Index: int + PntSol: gp_Pnt2d + + Return + ------- + ParSol: float + ParArg: float + + Description + ----------- + Returns information about the tangency point between the result number Index and the second argument. ParSol is the intrinsic parameter of the point ParSol on the solution curv. ParArg is the intrinsic parameter of the point PntSol on the argument curv. Raises OutOfRange is raised if Index is greater than the number of solutions. It raises NotDone if the algorithm failed. + + """ + return _GccAna.GccAna_Lin2d2Tan_Tangency2(self, *args) + + def ThisSolution(self, *args): + r""" + + Parameters + ---------- + Index: int + + Return + ------- + gp_Lin2d + + Description + ----------- + Returns the solution number Index and raises OutOfRange exception if Index is greater than the number of solutions. Be careful: the Index is only a way to get all the solutions, but is not associated to these outside the context of the algorithm-object. Raises OutOfRange is raised if Index is greater than the number of solutions. It raises NotDone if the algorithm failed. + + """ + return _GccAna.GccAna_Lin2d2Tan_ThisSolution(self, *args) + + def WhichQualifier(self, *args): + r""" + + Parameters + ---------- + Index: int + Qualif1: GccEnt_Position + Qualif2: GccEnt_Position + + Return + ------- + None + + Description + ----------- + Returns the qualifiers Qualif1 and Qualif2 of the tangency arguments for the solution of index Index computed by this algorithm. The returned qualifiers are: - those specified at the start of construction when the solutions are defined as enclosing or outside with respect to the arguments, or - those computed during construction (i.e. enclosing or outside) when the solutions are defined as unqualified with respect to the arguments, or - GccEnt_noqualifier if the tangency argument is a point. Exceptions Standard_OutOfRange if Index is less than zero or greater than the number of solutions computed by this algorithm. StdFail_NotDone if the construction fails. + + """ + return _GccAna.GccAna_Lin2d2Tan_WhichQualifier(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _GccAna.delete_GccAna_Lin2d2Tan + +# Register GccAna_Lin2d2Tan in _GccAna: +_GccAna.GccAna_Lin2d2Tan_swigregister(GccAna_Lin2d2Tan) +class GccAna_Lin2dBisec(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 + ---------- + Lin1: gp_Lin2d + Lin2: gp_Lin2d + + Return + ------- + None + + Description + ----------- + Constructs bisecting lines between the two lines Lin1 and Lin2. + + """ + _GccAna.GccAna_Lin2dBisec_swiginit(self, _GccAna.new_GccAna_Lin2dBisec(*args)) + + def Intersection1(self, *args): + r""" + + Parameters + ---------- + Index: int + PntSol: gp_Pnt2d + + Return + ------- + ParSol: float + ParArg: float + + Description + ----------- + Returns information about the intersection point between the result number Index and the first argument. Raises NotDone if the construction algorithm didn't succeed. It raises OutOfRange if Index is greater than the number of solutions. + + """ + return _GccAna.GccAna_Lin2dBisec_Intersection1(self, *args) + + def Intersection2(self, *args): + r""" + + Parameters + ---------- + Index: int + PntSol: gp_Pnt2d + + Return + ------- + ParSol: float + ParArg: float + + Description + ----------- + Returns information about the intersection point between the result number Index and the second argument. Raises NotDone if the construction algorithm didn't succeed. It raises OutOfRange if Index is greater than the number of solutions. + + """ + return _GccAna.GccAna_Lin2dBisec_Intersection2(self, *args) + + def IsDone(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True when the algorithm succeeded. + + """ + return _GccAna.GccAna_Lin2dBisec_IsDone(self, *args) + + def NbSolutions(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Returns the number of solutions and raise NotDone if the constructor wasn't called before. + + """ + return _GccAna.GccAna_Lin2dBisec_NbSolutions(self, *args) + + def ThisSolution(self, *args): + r""" + + Parameters + ---------- + Index: int + + Return + ------- + gp_Lin2d + + Description + ----------- + Returns the solution number Index . The first solution is the inside one and the second is the outside one. For the first solution the direction is D1+D2 (D1 is the direction of the first argument and D2 the direction of the second argument). For the second solution the direction is D1-D2. Raises NotDone if the construction algorithm didn't succeed. It raises OutOfRange if Index is greater than the number of solutions. + + """ + return _GccAna.GccAna_Lin2dBisec_ThisSolution(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _GccAna.delete_GccAna_Lin2dBisec + +# Register GccAna_Lin2dBisec in _GccAna: +_GccAna.GccAna_Lin2dBisec_swigregister(GccAna_Lin2dBisec) +class GccAna_Lin2dTanObl(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 + ---------- + ThePoint: gp_Pnt2d + TheLine: gp_Lin2d + TheAngle: float + + Return + ------- + None + + Description + ----------- + This class implements the algorithms used to create 2d line passing through a point and making an angle with a line. + + Parameters + ---------- + Qualified1: GccEnt_QualifiedCirc + TheLine: gp_Lin2d + TheAngle: float + + Return + ------- + None + + Description + ----------- + This class implements the algorithms used to create 2d line tangent to a circle and making an angle with a line. Exceptions GccEnt_BadQualifier if a qualifier is inconsistent with the argument it qualifies (for example, enclosed for a circle). + + """ + _GccAna.GccAna_Lin2dTanObl_swiginit(self, _GccAna.new_GccAna_Lin2dTanObl(*args)) + + def Intersection2(self, *args): + r""" + + Parameters + ---------- + Index: int + PntSol: gp_Pnt2d + + Return + ------- + ParSol: float + ParArg: float + + Description + ----------- + Returns information about the intersection between the result number Index and the third argument. Raises NotDone if the construction algorithm didn't succeed. It raises OutOfRange if Index is greater than the number of solutions. + + """ + return _GccAna.GccAna_Lin2dTanObl_Intersection2(self, *args) + + def IsDone(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True if the algorithm succeeded. Note: IsDone protects against a failure arising from a more internal intersection algorithm, which has reached its numeric limits. + + """ + return _GccAna.GccAna_Lin2dTanObl_IsDone(self, *args) + + def NbSolutions(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Returns the number of of lines, representing solutions computed by this algorithm. Raises NotDone if the construction algorithm didn't succeed. + + """ + return _GccAna.GccAna_Lin2dTanObl_NbSolutions(self, *args) + + def Tangency1(self, *args): + r""" + + Parameters + ---------- + Index: int + PntSol: gp_Pnt2d + + Return + ------- + ParSol: float + ParArg: float + + Description + ----------- + Returns information about the tangency point between the result number Index and the first argument. ParSol is the intrinsic parameter of the point ParSol on the solution curv. ParArg is the intrinsic parameter of the point ParArg on the argument curv. Raises NotDone if the construction algorithm didn't succeed. It raises OutOfRange if Index is greater than the number of solutions. + + """ + return _GccAna.GccAna_Lin2dTanObl_Tangency1(self, *args) + + def ThisSolution(self, *args): + r""" + + Parameters + ---------- + Index: int + + Return + ------- + gp_Lin2d + + Description + ----------- + Returns the solution number Index. Be careful: the Index is only a way to get all the solutions, but is not associated to these outside the context of the algorithm-object. raises NotDone if the construction algorithm didn't succeed. It raises OutOfRange if Index is greater than the number of solutions. + + """ + return _GccAna.GccAna_Lin2dTanObl_ThisSolution(self, *args) + + def WhichQualifier(self, *args): + r""" + + Parameters + ---------- + Index: int + Qualif1: GccEnt_Position + + Return + ------- + None + + Description + ----------- + Returns the qualifier Qualif1 of the tangency argument for the solution of index Index computed by this algorithm. The returned qualifier is: - that specified at the start of construction when the solutions are defined as enclosing or outside with respect to the argument, or - that computed during construction (i.e. enclosing or outside) when the solutions are defined as unqualified with respect to the argument, or - GccEnt_noqualifier if the tangency argument is a point. Exceptions Standard_OutOfRange if Index is less than zero or greater than the number of solutions computed by this algorithm. StdFail_NotDone if the construction fails. + + """ + return _GccAna.GccAna_Lin2dTanObl_WhichQualifier(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _GccAna.delete_GccAna_Lin2dTanObl + +# Register GccAna_Lin2dTanObl in _GccAna: +_GccAna.GccAna_Lin2dTanObl_swigregister(GccAna_Lin2dTanObl) +class GccAna_Lin2dTanPar(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 + ---------- + ThePoint: gp_Pnt2d + Lin1: gp_Lin2d + + Return + ------- + None + + Description + ----------- + This method implements the algorithms used to create a 2d line passing through a point and parallel to another line. + + Parameters + ---------- + Qualified1: GccEnt_QualifiedCirc + Lin1: gp_Lin2d + + Return + ------- + None + + Description + ----------- + This method implements the algorithms used to create a 2d line tangent to a circle and parallel to another line. It raises BadQualifier in case of EnclosedCirc. Exceptions GccEnt_BadQualifier if a qualifier is inconsistent with the argument it qualifies (for example, enclosed for a circle). + + """ + _GccAna.GccAna_Lin2dTanPar_swiginit(self, _GccAna.new_GccAna_Lin2dTanPar(*args)) + + def IsDone(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True if the algorithm succeeded. + + """ + return _GccAna.GccAna_Lin2dTanPar_IsDone(self, *args) + + def NbSolutions(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Returns the number of solutions. Raises NotDone if the construction algorithm didn't succeed. + + """ + return _GccAna.GccAna_Lin2dTanPar_NbSolutions(self, *args) + + def Tangency1(self, *args): + r""" + + Parameters + ---------- + Index: int + Pnt: gp_Pnt2d + + Return + ------- + ParSol: float + ParArg: float + + Description + ----------- + Returns information about the tangency point between the result number Index and the first argument. ParSol is the intrinsic parameter of the point on the solution curv. ParArg is the intrinsic parameter of the point on the argument curv. ParArg is equal 0 when the solution is passing through a point. Raises NotDone if the construction algorithm didn't succeed. It raises OutOfRange if Index is greater than the number of solutions. + + """ + return _GccAna.GccAna_Lin2dTanPar_Tangency1(self, *args) + + def ThisSolution(self, *args): + r""" + + Parameters + ---------- + Index: int + + Return + ------- + gp_Lin2d + + Description + ----------- + Returns the solution number Index and raises OutOfRange exception if Index is greater than the number of solutions. Be careful: the Index is only a way to get all the solutions, but is not associated to those outside the context of the algorithm-object. raises NotDone if the construction algorithm didn't succeed. It raises OutOfRange if Index is greater than the number of solutions. + + """ + return _GccAna.GccAna_Lin2dTanPar_ThisSolution(self, *args) + + def WhichQualifier(self, *args): + r""" + + Parameters + ---------- + Index: int + Qualif1: GccEnt_Position + + Return + ------- + None + + Description + ----------- + Returns the information about the qualifiers of the tangency arguments concerning the solution number Index. It returns the real qualifiers (the qualifiers given to the constructor method in case of enclosed, enclosing and outside and the qualifiers computed in case of unqualified). Raises NotDone if the construction algorithm didn't succeed. It raises OutOfRange if Index is greater than the number of solutions. + + """ + return _GccAna.GccAna_Lin2dTanPar_WhichQualifier(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _GccAna.delete_GccAna_Lin2dTanPar + +# Register GccAna_Lin2dTanPar in _GccAna: +_GccAna.GccAna_Lin2dTanPar_swigregister(GccAna_Lin2dTanPar) +class GccAna_Lin2dTanPer(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 + ---------- + ThePnt: gp_Pnt2d + TheLin: gp_Lin2d + + Return + ------- + None + + Description + ----------- + This method implements the algorithms used to create 2d lines passing through a point and perpendicular to a line. + + Parameters + ---------- + ThePnt: gp_Pnt2d + TheCircle: gp_Circ2d + + Return + ------- + None + + Description + ----------- + This method implements the algorithms used to create 2d lines passing through a point and perpendicular to a circle. + + Parameters + ---------- + Qualified1: GccEnt_QualifiedCirc + TheLin: gp_Lin2d + + Return + ------- + None + + Description + ----------- + This method implements the algorithms used to create 2d lines tangent to a circle and perpendicular to a line. + + Parameters + ---------- + Qualified1: GccEnt_QualifiedCirc + TheCircle: gp_Circ2d + + Return + ------- + None + + Description + ----------- + This method implements the algorithms used to create 2d lines tangent to a circle and perpendicular to a circle. + + """ + _GccAna.GccAna_Lin2dTanPer_swiginit(self, _GccAna.new_GccAna_Lin2dTanPer(*args)) + + def Intersection2(self, *args): + r""" + + Parameters + ---------- + Index: int + PntSol: gp_Pnt2d + + Return + ------- + ParSol: float + ParArg: float + + Description + ----------- + Returns information about the intersection between the solution number Index and the second argument. It returns the first intersection in a case of Lin2dTanPer which is perpendicular to a circle . ParSol is the intrinsic parameter of the point on the solution curv. ParArg is the intrinsic parameter of the point on the argument curv. Raises NotDone if the construction algorithm didn't succeed. It raises OutOfRange if Index is greater than the number of solutions. + + """ + return _GccAna.GccAna_Lin2dTanPer_Intersection2(self, *args) + + def IsDone(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True if the algorithm succeeded. + + """ + return _GccAna.GccAna_Lin2dTanPer_IsDone(self, *args) + + def NbSolutions(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Returns the number of solutions. Raises NotDone if the construction algorithm didn't succeed. + + """ + return _GccAna.GccAna_Lin2dTanPer_NbSolutions(self, *args) + + def Tangency1(self, *args): + r""" + + Parameters + ---------- + Index: int + Pnt: gp_Pnt2d + + Return + ------- + ParSol: float + ParArg: float + + Description + ----------- + Returns information about the tangency point between the result number Index and the first argument. ParSol is the intrinsic parameter of the point on the solution curv. ParArg is the intrinsic parameter of the point on the argument curv. If the first argument is a point ParArg is equal zero. raises NotDone if the construction algorithm didn't succeed. It raises OutOfRange if Index is greater than the number of solutions. + + """ + return _GccAna.GccAna_Lin2dTanPer_Tangency1(self, *args) + + def ThisSolution(self, *args): + r""" + + Parameters + ---------- + Index: int + + Return + ------- + gp_Lin2d + + Description + ----------- + Returns the solution number Index and raises OutOfRange exception if Index is greater than the number of solutions. Be careful: the Index is only a way to get all the solutions, but is not associated to those outside the context of the algorithm-object. Raises NotDone if the construction algorithm didn't succeed. It raises OutOfRange if Index is greater than the number of solutions. + + """ + return _GccAna.GccAna_Lin2dTanPer_ThisSolution(self, *args) + + def WhichQualifier(self, *args): + r""" + + Parameters + ---------- + Index: int + Qualif1: GccEnt_Position + + Return + ------- + None + + Description + ----------- + Returns the qualifier Qualif1 of the tangency argument for the solution of index Index computed by this algorithm. The returned qualifier is: - that specified at the start of construction when the solutions are defined as enclosing or outside with respect to the argument, or - that computed during construction (i.e. enclosing or outside) when the solutions are defined as unqualified with respect to the argument, or - GccEnt_noqualifier if the tangency argument is a point. Exceptions Standard_OutOfRange if Index is less than zero or greater than the number of solutions computed by this algorithm. StdFail_NotDone if the construction fails. + + """ + return _GccAna.GccAna_Lin2dTanPer_WhichQualifier(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _GccAna.delete_GccAna_Lin2dTanPer + +# Register GccAna_Lin2dTanPer in _GccAna: +_GccAna.GccAna_Lin2dTanPer_swigregister(GccAna_Lin2dTanPer) +class GccAna_LinPnt2dBisec(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 + ---------- + Line1: gp_Lin2d + Point2: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + Constructs a bisecting curve between the line Line1 and the point Point2. + + """ + _GccAna.GccAna_LinPnt2dBisec_swiginit(self, _GccAna.new_GccAna_LinPnt2dBisec(*args)) + + def IsDone(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True if the algorithm succeeded. + + """ + return _GccAna.GccAna_LinPnt2dBisec_IsDone(self, *args) + + def ThisSolution(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the number of solutions. It raises NotDone if the construction algorithm didn't succeed. + + """ + return _GccAna.GccAna_LinPnt2dBisec_ThisSolution(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _GccAna.delete_GccAna_LinPnt2dBisec + +# Register GccAna_LinPnt2dBisec in _GccAna: +_GccAna.GccAna_LinPnt2dBisec_swigregister(GccAna_LinPnt2dBisec) +class GccAna_Pnt2dBisec(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 + ---------- + Point1: gp_Pnt2d + Point2: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + Constructs a bisecting line between the points Point1 and Point2. + + """ + _GccAna.GccAna_Pnt2dBisec_swiginit(self, _GccAna.new_GccAna_Pnt2dBisec(*args)) + + def HasSolution(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns true if this algorithm has a solution, i.e. if the two points are not coincident. + + """ + return _GccAna.GccAna_Pnt2dBisec_HasSolution(self, *args) + + def IsDone(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns true (this construction algorithm never fails). + + """ + return _GccAna.GccAna_Pnt2dBisec_IsDone(self, *args) + + def ThisSolution(self, *args): + r""" + Return + ------- + gp_Lin2d + + Description + ----------- + Returns a line, representing the solution computed by this algorithm. + + """ + return _GccAna.GccAna_Pnt2dBisec_ThisSolution(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _GccAna.delete_GccAna_Pnt2dBisec + +# Register GccAna_Pnt2dBisec in _GccAna: +_GccAna.GccAna_Pnt2dBisec_swigregister(GccAna_Pnt2dBisec) + + + diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/Geom2dAPI.pyi b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/Geom2dAPI.pyi new file mode 100644 index 0000000000000000000000000000000000000000..c1035a1f535f0127229a41cfdd9ca07e58b77591 --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/Geom2dAPI.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.Geom2d import * +from OCC.Core.Extrema import * +from OCC.Core.gp import * +from OCC.Core.Geom2dInt import * +from OCC.Core.TColgp import * +from OCC.Core.TColStd import * +from OCC.Core.GeomAbs import * +from OCC.Core.Approx import * + +class Geom2dAPI_ExtremaCurveCurve: + @overload + def __init__( + self, + C1: Geom2d_Curve, + C2: Geom2d_Curve, + U1min: float, + U1max: float, + U2min: float, + U2max: float, + ) -> None: ... + def Distance(self, Index: int) -> float: ... + def Extrema(self) -> Extrema_ExtCC2d: ... + def LowerDistance(self) -> float: ... + def LowerDistanceParameters(self) -> Tuple[float, float]: ... + def NbExtrema(self) -> int: ... + def NearestPoints(self, P1: gp_Pnt2d, P2: gp_Pnt2d) -> None: ... + def Parameters(self, Index: int) -> Tuple[float, float]: ... + def Points(self, Index: int, P1: gp_Pnt2d, P2: gp_Pnt2d) -> None: ... + +class Geom2dAPI_InterCurveCurve: + @overload + def __init__(self) -> None: ... + @overload + def __init__( + self, C1: Geom2d_Curve, C2: Geom2d_Curve, Tol: Optional[float] = 1.0e-6 + ) -> None: ... + @overload + def __init__(self, C1: Geom2d_Curve, Tol: Optional[float] = 1.0e-6) -> None: ... + @overload + def Init( + self, C1: Geom2d_Curve, C2: Geom2d_Curve, Tol: Optional[float] = 1.0e-6 + ) -> None: ... + @overload + def Init(self, C1: Geom2d_Curve, Tol: Optional[float] = 1.0e-6) -> None: ... + def Intersector(self) -> Geom2dInt_GInter: ... + def NbPoints(self) -> int: ... + def NbSegments(self) -> int: ... + def Point(self, Index: int) -> gp_Pnt2d: ... + def Segment( + self, Index: int, Curve1: Geom2d_Curve, Curve2: Geom2d_Curve + ) -> None: ... + +class Geom2dAPI_Interpolate: + @overload + def __init__( + self, Points: TColgp_HArray1OfPnt2d, PeriodicFlag: bool, Tolerance: float + ) -> None: ... + @overload + def __init__( + self, + Points: TColgp_HArray1OfPnt2d, + Parameters: TColStd_HArray1OfReal, + PeriodicFlag: bool, + Tolerance: float, + ) -> None: ... + def Curve(self) -> Geom2d_BSplineCurve: ... + def IsDone(self) -> bool: ... + @overload + def Load( + self, + InitialTangent: gp_Vec2d, + FinalTangent: gp_Vec2d, + Scale: Optional[bool] = True, + ) -> None: ... + @overload + def Load( + self, + Tangents: TColgp_Array1OfVec2d, + TangentFlags: TColStd_HArray1OfBoolean, + Scale: Optional[bool] = True, + ) -> None: ... + def Perform(self) -> None: ... + +class Geom2dAPI_PointsToBSpline: + @overload + def __init__(self) -> None: ... + @overload + def __init__( + self, + Points: TColgp_Array1OfPnt2d, + DegMin: Optional[int] = 3, + DegMax: Optional[int] = 8, + Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, + Tol2D: Optional[float] = 1.0e-6, + ) -> None: ... + @overload + def __init__( + self, + YValues: TColStd_Array1OfReal, + X0: float, + DX: float, + DegMin: Optional[int] = 3, + DegMax: Optional[int] = 8, + Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, + Tol2D: Optional[float] = 1.0e-6, + ) -> None: ... + @overload + def __init__( + self, + Points: TColgp_Array1OfPnt2d, + ParType: Approx_ParametrizationType, + DegMin: Optional[int] = 3, + DegMax: Optional[int] = 8, + Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, + Tol2D: Optional[float] = 1.0e-3, + ) -> None: ... + @overload + def __init__( + self, + Points: TColgp_Array1OfPnt2d, + Parameters: TColStd_Array1OfReal, + DegMin: Optional[int] = 3, + DegMax: Optional[int] = 8, + Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, + Tol2D: Optional[float] = 1.0e-3, + ) -> None: ... + @overload + def __init__( + self, + Points: TColgp_Array1OfPnt2d, + Weight1: float, + Weight2: float, + Weight3: float, + DegMax: Optional[int] = 8, + Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, + Tol3D: Optional[float] = 1.0e-3, + ) -> None: ... + def Curve(self) -> Geom2d_BSplineCurve: ... + @overload + def Init( + self, + Points: TColgp_Array1OfPnt2d, + DegMin: Optional[int] = 3, + DegMax: Optional[int] = 8, + Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, + Tol2D: Optional[float] = 1.0e-6, + ) -> None: ... + @overload + def Init( + self, + YValues: TColStd_Array1OfReal, + X0: float, + DX: float, + DegMin: Optional[int] = 3, + DegMax: Optional[int] = 8, + Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, + Tol2D: Optional[float] = 1.0e-6, + ) -> None: ... + @overload + def Init( + self, + Points: TColgp_Array1OfPnt2d, + ParType: Approx_ParametrizationType, + DegMin: Optional[int] = 3, + DegMax: Optional[int] = 8, + Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, + Tol2D: Optional[float] = 1.0e-3, + ) -> None: ... + @overload + def Init( + self, + Points: TColgp_Array1OfPnt2d, + Parameters: TColStd_Array1OfReal, + DegMin: Optional[int] = 3, + DegMax: Optional[int] = 8, + Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, + Tol2D: Optional[float] = 1.0e-3, + ) -> None: ... + @overload + def Init( + self, + Points: TColgp_Array1OfPnt2d, + Weight1: float, + Weight2: float, + Weight3: float, + DegMax: Optional[int] = 8, + Continuity: Optional[GeomAbs_Shape] = GeomAbs_C2, + Tol2D: Optional[float] = 1.0e-3, + ) -> None: ... + def IsDone(self) -> bool: ... + +class Geom2dAPI_ProjectPointOnCurve: + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, P: gp_Pnt2d, Curve: Geom2d_Curve) -> None: ... + @overload + def __init__( + self, P: gp_Pnt2d, Curve: Geom2d_Curve, Umin: float, Usup: float + ) -> None: ... + def Distance(self, Index: int) -> float: ... + def Extrema(self) -> Extrema_ExtPC2d: ... + @overload + def Init(self, P: gp_Pnt2d, Curve: Geom2d_Curve) -> None: ... + @overload + def Init( + self, P: gp_Pnt2d, Curve: Geom2d_Curve, Umin: float, Usup: float + ) -> None: ... + def LowerDistance(self) -> float: ... + def LowerDistanceParameter(self) -> float: ... + def NbPoints(self) -> int: ... + def NearestPoint(self) -> gp_Pnt2d: ... + @overload + def Parameter(self, Index: int) -> float: ... + @overload + def Parameter(self, Index: int) -> float: ... + def Point(self, Index: int) -> gp_Pnt2d: ... + +# harray1 classes +# harray2 classes +# hsequence classes diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/Geom2dEvaluator.py b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/Geom2dEvaluator.py new file mode 100644 index 0000000000000000000000000000000000000000..1581400e00f4f53407cec8409f4ffc8e545f8b7b --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/Geom2dEvaluator.py @@ -0,0 +1,848 @@ +# 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. + +""" +Geom2dEvaluator module, see official documentation at +https://dev.opencascade.org/doc/occt-7.9.0/refman/html/package_geom2devaluator.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 _Geom2dEvaluator +else: + import _Geom2dEvaluator + +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__ = _Geom2dEvaluator.delete_SwigPyIterator + + def value(self): + return _Geom2dEvaluator.SwigPyIterator_value(self) + + def incr(self, n=1): + return _Geom2dEvaluator.SwigPyIterator_incr(self, n) + + def decr(self, n=1): + return _Geom2dEvaluator.SwigPyIterator_decr(self, n) + + def distance(self, x): + return _Geom2dEvaluator.SwigPyIterator_distance(self, x) + + def equal(self, x): + return _Geom2dEvaluator.SwigPyIterator_equal(self, x) + + def copy(self): + return _Geom2dEvaluator.SwigPyIterator_copy(self) + + def next(self): + return _Geom2dEvaluator.SwigPyIterator_next(self) + + def __next__(self): + return _Geom2dEvaluator.SwigPyIterator___next__(self) + + def previous(self): + return _Geom2dEvaluator.SwigPyIterator_previous(self) + + def advance(self, n): + return _Geom2dEvaluator.SwigPyIterator_advance(self, n) + + def __eq__(self, x): + return _Geom2dEvaluator.SwigPyIterator___eq__(self, x) + + def __ne__(self, x): + return _Geom2dEvaluator.SwigPyIterator___ne__(self, x) + + def __iadd__(self, n): + return _Geom2dEvaluator.SwigPyIterator___iadd__(self, n) + + def __isub__(self, n): + return _Geom2dEvaluator.SwigPyIterator___isub__(self, n) + + def __add__(self, n): + return _Geom2dEvaluator.SwigPyIterator___add__(self, n) + + def __sub__(self, *args): + return _Geom2dEvaluator.SwigPyIterator___sub__(self, *args) + def __iter__(self): + return self + +# Register SwigPyIterator in _Geom2dEvaluator: +_Geom2dEvaluator.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 + ----------- + No available documentation. + + """ + return _Geom2dEvaluator.Geom2dEvaluator_Curve_ShallowCopy(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_Geom2dEvaluator_Curve_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _Geom2dEvaluator.delete_Geom2dEvaluator_Curve + +# Register Geom2dEvaluator_Curve in _Geom2dEvaluator: +_Geom2dEvaluator.Geom2dEvaluator_Curve_swigregister(Geom2dEvaluator_Curve) +class Geom2dEvaluator_OffsetCurve(Geom2dEvaluator_Curve): + 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 + ---------- + theBase: Geom2d_Curve + theOffset: float + + Return + ------- + None + + Description + ----------- + Initialize evaluator by curve. + + Parameters + ---------- + theBase: Geom2dAdaptor_Curve + theOffset: float + + Return + ------- + None + + Description + ----------- + Initialize evaluator by curve adaptor. + + """ + _Geom2dEvaluator.Geom2dEvaluator_OffsetCurve_swiginit(self, _Geom2dEvaluator.new_Geom2dEvaluator_OffsetCurve(*args)) + + def SetOffsetValue(self, *args): + r""" + + Parameters + ---------- + theOffset: float + + Return + ------- + None + + Description + ----------- + Change the offset value. + + """ + return _Geom2dEvaluator.Geom2dEvaluator_OffsetCurve_SetOffsetValue(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_Geom2dEvaluator_OffsetCurve_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _Geom2dEvaluator.delete_Geom2dEvaluator_OffsetCurve + +# Register Geom2dEvaluator_OffsetCurve in _Geom2dEvaluator: +_Geom2dEvaluator.Geom2dEvaluator_OffsetCurve_swigregister(Geom2dEvaluator_OffsetCurve) + + + +@deprecated +def geom2devaluator_CalculateD0(*args): + return geom2devaluator.CalculateD0(*args) + +@deprecated +def geom2devaluator_CalculateD1(*args): + return geom2devaluator.CalculateD1(*args) + +@deprecated +def geom2devaluator_CalculateD2(*args): + return geom2devaluator.CalculateD2(*args) + +@deprecated +def geom2devaluator_CalculateD3(*args): + return geom2devaluator.CalculateD3(*args) + + + diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/Geom2dInt.pyi b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/Geom2dInt.pyi new file mode 100644 index 0000000000000000000000000000000000000000..bcb083d182fb4ca2bb63f676543789ee6bff7c1f --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/Geom2dInt.pyi @@ -0,0 +1,572 @@ +from enum import IntEnum +from typing import overload, NewType, Optional, Tuple + +from OCC.Core.Standard import * +from OCC.Core.NCollection import * +from OCC.Core.Adaptor2d import * +from OCC.Core.IntRes2d import * +from OCC.Core.gp import * +from OCC.Core.TColStd import * +from OCC.Core.GeomAbs import * +from OCC.Core.math import * +from OCC.Core.IntCurve import * +from OCC.Core.Extrema import * +from OCC.Core.Intf import * +from OCC.Core.Bnd import * + +class Geom2dInt_ExactIntersectionPointOfTheIntPCurvePCurveOfGInter: + def __init__( + self, C1: Adaptor2d_Curve2d, C2: Adaptor2d_Curve2d, Tol: float + ) -> None: ... + def AnErrorOccurred(self) -> bool: ... + def NbRoots(self) -> int: ... + @overload + def Perform( + self, + Poly1: Geom2dInt_ThePolygon2dOfTheIntPCurvePCurveOfGInter, + Poly2: Geom2dInt_ThePolygon2dOfTheIntPCurvePCurveOfGInter, + ) -> Tuple[int, int, float, float]: ... + @overload + def Perform( + self, Uo: float, Vo: float, UInf: float, VInf: float, USup: float, VSup: float + ) -> None: ... + def Roots(self) -> Tuple[float, float]: ... + +class Geom2dInt_GInter(IntRes2d_Intersection): + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, C: Adaptor2d_Curve2d, TolConf: float, Tol: float) -> None: ... + @overload + def __init__( + self, C: Adaptor2d_Curve2d, D: IntRes2d_Domain, TolConf: float, Tol: float + ) -> None: ... + @overload + def __init__( + self, C1: Adaptor2d_Curve2d, C2: Adaptor2d_Curve2d, TolConf: float, Tol: float + ) -> None: ... + @overload + def __init__( + self, + C1: Adaptor2d_Curve2d, + D1: IntRes2d_Domain, + C2: Adaptor2d_Curve2d, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def __init__( + self, + C1: Adaptor2d_Curve2d, + C2: Adaptor2d_Curve2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def __init__( + self, + C1: Adaptor2d_Curve2d, + D1: IntRes2d_Domain, + C2: Adaptor2d_Curve2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + def ComputeDomain( + self, C1: Adaptor2d_Curve2d, TolDomain: float + ) -> IntRes2d_Domain: ... + def GetMinNbSamples(self) -> int: ... + @overload + def Perform( + self, + C1: Adaptor2d_Curve2d, + D1: IntRes2d_Domain, + C2: Adaptor2d_Curve2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, C1: Adaptor2d_Curve2d, C2: Adaptor2d_Curve2d, TolConf: float, Tol: float + ) -> None: ... + @overload + def Perform( + self, C1: Adaptor2d_Curve2d, D1: IntRes2d_Domain, TolConf: float, Tol: float + ) -> None: ... + @overload + def Perform(self, C1: Adaptor2d_Curve2d, TolConf: float, Tol: float) -> None: ... + @overload + def Perform( + self, + C1: Adaptor2d_Curve2d, + D1: IntRes2d_Domain, + C2: Adaptor2d_Curve2d, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + C1: Adaptor2d_Curve2d, + C2: Adaptor2d_Curve2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + def SetMinNbSamples(self, theMinNbSamples: int) -> None: ... + +class Geom2dInt_Geom2dCurveTool: + @staticmethod + def Circle(C: Adaptor2d_Curve2d) -> gp_Circ2d: ... + @staticmethod + def D0(C: Adaptor2d_Curve2d, U: float, P: gp_Pnt2d) -> None: ... + @staticmethod + def D1(C: Adaptor2d_Curve2d, U: float, P: gp_Pnt2d, T: gp_Vec2d) -> None: ... + @staticmethod + def D2( + C: Adaptor2d_Curve2d, U: float, P: gp_Pnt2d, T: gp_Vec2d, N: gp_Vec2d + ) -> None: ... + @staticmethod + def D3( + C: Adaptor2d_Curve2d, + U: float, + P: gp_Pnt2d, + T: gp_Vec2d, + N: gp_Vec2d, + V: gp_Vec2d, + ) -> None: ... + @staticmethod + def DN(C: Adaptor2d_Curve2d, U: float, N: int) -> gp_Vec2d: ... + @staticmethod + def Degree(C: Adaptor2d_Curve2d) -> int: ... + @staticmethod + def Ellipse(C: Adaptor2d_Curve2d) -> gp_Elips2d: ... + @overload + @staticmethod + def EpsX(C: Adaptor2d_Curve2d) -> float: ... + @overload + @staticmethod + def EpsX(C: Adaptor2d_Curve2d, Eps_XYZ: float) -> float: ... + @staticmethod + def FirstParameter(C: Adaptor2d_Curve2d) -> float: ... + @staticmethod + def GetInterval( + C: Adaptor2d_Curve2d, Index: int, Tab: TColStd_Array1OfReal + ) -> Tuple[float, float]: ... + @staticmethod + def GetType(C: Adaptor2d_Curve2d) -> GeomAbs_CurveType: ... + @staticmethod + def Hyperbola(C: Adaptor2d_Curve2d) -> gp_Hypr2d: ... + @staticmethod + def Intervals(C: Adaptor2d_Curve2d, Tab: TColStd_Array1OfReal) -> None: ... + @staticmethod + def LastParameter(C: Adaptor2d_Curve2d) -> float: ... + @staticmethod + def Line(C: Adaptor2d_Curve2d) -> gp_Lin2d: ... + @staticmethod + def NbIntervals(C: Adaptor2d_Curve2d) -> int: ... + @overload + @staticmethod + def NbSamples(C: Adaptor2d_Curve2d) -> int: ... + @overload + @staticmethod + def NbSamples(C: Adaptor2d_Curve2d, U0: float, U1: float) -> int: ... + @staticmethod + def Parabola(C: Adaptor2d_Curve2d) -> gp_Parab2d: ... + @staticmethod + def Value(C: Adaptor2d_Curve2d, X: float) -> gp_Pnt2d: ... + +class Geom2dInt_IntConicCurveOfGInter(IntRes2d_Intersection): + @overload + def __init__(self) -> None: ... + @overload + def __init__( + self, + L: gp_Lin2d, + D1: IntRes2d_Domain, + PCurve: Adaptor2d_Curve2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def __init__( + self, + C: gp_Circ2d, + D1: IntRes2d_Domain, + PCurve: Adaptor2d_Curve2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def __init__( + self, + E: gp_Elips2d, + D1: IntRes2d_Domain, + PCurve: Adaptor2d_Curve2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def __init__( + self, + Prb: gp_Parab2d, + D1: IntRes2d_Domain, + PCurve: Adaptor2d_Curve2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def __init__( + self, + H: gp_Hypr2d, + D1: IntRes2d_Domain, + PCurve: Adaptor2d_Curve2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + L: gp_Lin2d, + D1: IntRes2d_Domain, + PCurve: Adaptor2d_Curve2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + C: gp_Circ2d, + D1: IntRes2d_Domain, + PCurve: Adaptor2d_Curve2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + E: gp_Elips2d, + D1: IntRes2d_Domain, + PCurve: Adaptor2d_Curve2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + Prb: gp_Parab2d, + D1: IntRes2d_Domain, + PCurve: Adaptor2d_Curve2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + H: gp_Hypr2d, + D1: IntRes2d_Domain, + PCurve: Adaptor2d_Curve2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + +class Geom2dInt_MyImpParToolOfTheIntersectorOfTheIntConicCurveOfGInter( + math_FunctionWithDerivative +): + def __init__(self, IT: IntCurve_IConicTool, PC: Adaptor2d_Curve2d) -> None: ... + def Derivative(self, Param: float) -> Tuple[bool, float]: ... + def Value(self, Param: float) -> Tuple[bool, float]: ... + def Values(self, Param: float) -> Tuple[bool, float, float]: ... + +class Geom2dInt_PCLocFOfTheLocateExtPCOfTheProjPCurOfGInter( + math_FunctionWithDerivative +): + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, P: gp_Pnt2d, C: Adaptor2d_Curve2d) -> None: ... + def Derivative(self, U: float) -> Tuple[bool, float]: ... + def GetStateNumber(self) -> int: ... + def Initialize(self, C: Adaptor2d_Curve2d) -> None: ... + def IsMin(self, N: int) -> bool: ... + def NbExt(self) -> int: ... + def Point(self, N: int) -> Extrema_POnCurv2d: ... + def SearchOfTolerance(self) -> float: ... + def SetPoint(self, P: gp_Pnt2d) -> None: ... + def SquareDistance(self, N: int) -> float: ... + def SubIntervalInitialize(self, theUfirst: float, theUlast: float) -> None: ... + def Value(self, U: float) -> Tuple[bool, float]: ... + def Values(self, U: float) -> Tuple[bool, float, float]: ... + +class Geom2dInt_TheCurveLocatorOfTheProjPCurOfGInter: + pass + +class Geom2dInt_TheDistBetweenPCurvesOfTheIntPCurvePCurveOfGInter( + math_FunctionSetWithDerivatives +): + def __init__( + self, curve1: Adaptor2d_Curve2d, curve2: Adaptor2d_Curve2d + ) -> None: ... + def Derivatives(self, X: math_Vector, D: math_Matrix) -> bool: ... + def NbEquations(self) -> int: ... + def NbVariables(self) -> int: ... + def Value(self, X: math_Vector, F: math_Vector) -> bool: ... + def Values(self, X: math_Vector, F: math_Vector, D: math_Matrix) -> bool: ... + +class Geom2dInt_TheIntConicCurveOfGInter(IntRes2d_Intersection): + @overload + def __init__(self) -> None: ... + @overload + def __init__( + self, + L: gp_Lin2d, + D1: IntRes2d_Domain, + PCurve: Adaptor2d_Curve2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def __init__( + self, + C: gp_Circ2d, + D1: IntRes2d_Domain, + PCurve: Adaptor2d_Curve2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def __init__( + self, + E: gp_Elips2d, + D1: IntRes2d_Domain, + PCurve: Adaptor2d_Curve2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def __init__( + self, + Prb: gp_Parab2d, + D1: IntRes2d_Domain, + PCurve: Adaptor2d_Curve2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def __init__( + self, + H: gp_Hypr2d, + D1: IntRes2d_Domain, + PCurve: Adaptor2d_Curve2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + L: gp_Lin2d, + D1: IntRes2d_Domain, + PCurve: Adaptor2d_Curve2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + C: gp_Circ2d, + D1: IntRes2d_Domain, + PCurve: Adaptor2d_Curve2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + E: gp_Elips2d, + D1: IntRes2d_Domain, + PCurve: Adaptor2d_Curve2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + Prb: gp_Parab2d, + D1: IntRes2d_Domain, + PCurve: Adaptor2d_Curve2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + H: gp_Hypr2d, + D1: IntRes2d_Domain, + PCurve: Adaptor2d_Curve2d, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + +class Geom2dInt_TheIntPCurvePCurveOfGInter(IntRes2d_Intersection): + def __init__(self) -> None: ... + def GetMinNbSamples(self) -> int: ... + @overload + def Perform( + self, + Curve1: Adaptor2d_Curve2d, + Domain1: IntRes2d_Domain, + Curve2: Adaptor2d_Curve2d, + Domain2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + Curve1: Adaptor2d_Curve2d, + Domain1: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + def SetMinNbSamples(self, theMinNbSamples: int) -> None: ... + +class Geom2dInt_TheIntersectorOfTheIntConicCurveOfGInter(IntRes2d_Intersection): + @overload + def __init__(self) -> None: ... + @overload + def __init__( + self, + ITool: IntCurve_IConicTool, + Dom1: IntRes2d_Domain, + PCurve: Adaptor2d_Curve2d, + Dom2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + def And_Domaine_Objet1_Intersections( + self, + TheImpTool: IntCurve_IConicTool, + TheParCurve: Adaptor2d_Curve2d, + TheImpCurveDomain: IntRes2d_Domain, + TheParCurveDomain: IntRes2d_Domain, + Inter2_And_Domain2: TColStd_Array1OfReal, + Inter1: TColStd_Array1OfReal, + Resultat1: TColStd_Array1OfReal, + Resultat2: TColStd_Array1OfReal, + EpsNul: float, + ) -> int: ... + def FindU( + self, + parameter: float, + point: gp_Pnt2d, + TheParCurev: Adaptor2d_Curve2d, + TheImpTool: IntCurve_IConicTool, + ) -> float: ... + def FindV( + self, + parameter: float, + point: gp_Pnt2d, + TheImpTool: IntCurve_IConicTool, + ParCurve: Adaptor2d_Curve2d, + TheParCurveDomain: IntRes2d_Domain, + V0: float, + V1: float, + Tolerance: float, + ) -> float: ... + def Perform( + self, + ITool: IntCurve_IConicTool, + Dom1: IntRes2d_Domain, + PCurve: Adaptor2d_Curve2d, + Dom2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + +class Geom2dInt_TheLocateExtPCOfTheProjPCurOfGInter: + @overload + def __init__(self) -> None: ... + @overload + def __init__( + self, P: gp_Pnt2d, C: Adaptor2d_Curve2d, U0: float, TolU: float + ) -> None: ... + @overload + def __init__( + self, + P: gp_Pnt2d, + C: Adaptor2d_Curve2d, + U0: float, + Umin: float, + Usup: float, + TolU: float, + ) -> None: ... + def Initialize( + self, C: Adaptor2d_Curve2d, Umin: float, Usup: float, TolU: float + ) -> None: ... + def IsDone(self) -> bool: ... + def IsMin(self) -> bool: ... + def Perform(self, P: gp_Pnt2d, U0: float) -> None: ... + def Point(self) -> Extrema_POnCurv2d: ... + def SquareDistance(self) -> float: ... + +class Geom2dInt_ThePolygon2dOfTheIntPCurvePCurveOfGInter(Intf_Polygon2d): + def __init__( + self, Curve: Adaptor2d_Curve2d, NbPnt: int, Domain: IntRes2d_Domain, Tol: float + ) -> None: ... + def ApproxParamOnCurve(self, Index: int, ParamOnLine: float) -> float: ... + def AutoIntersectionIsPossible(self) -> bool: ... + def CalculRegion( + self, x: float, y: float, x1: float, x2: float, y1: float, y2: float + ) -> int: ... + @overload + def Closed(self, clos: bool) -> None: ... + @overload + def Closed(self) -> bool: ... + def ComputeWithBox(self, Curve: Adaptor2d_Curve2d, OtherBox: Bnd_Box2d) -> None: ... + def DeflectionOverEstimation(self) -> float: ... + def Dump(self) -> None: ... + def InfParameter(self) -> float: ... + def NbSegments(self) -> int: ... + def Segment(self, theIndex: int, theBegin: gp_Pnt2d, theEnd: gp_Pnt2d) -> None: ... + def SetDeflectionOverEstimation(self, x: float) -> None: ... + def SupParameter(self) -> float: ... + +class Geom2dInt_TheProjPCurOfGInter: + @overload + @staticmethod + def FindParameter(C: Adaptor2d_Curve2d, Pnt: gp_Pnt2d, Tol: float) -> float: ... + @overload + @staticmethod + def FindParameter( + C: Adaptor2d_Curve2d, + Pnt: gp_Pnt2d, + LowParameter: float, + HighParameter: float, + Tol: float, + ) -> float: ... + +# harray1 classes +# harray2 classes +# hsequence classes diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/Geom2dLProp.py b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/Geom2dLProp.py new file mode 100644 index 0000000000000000000000000000000000000000..64714a1df1fdcc0aee2d06fd8726437ea6c7302b --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/Geom2dLProp.py @@ -0,0 +1,1119 @@ +# 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. + +""" +Geom2dLProp module, see official documentation at +https://dev.opencascade.org/doc/occt-7.9.0/refman/html/package_geom2dlprop.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 _Geom2dLProp +else: + import _Geom2dLProp + +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__ = _Geom2dLProp.delete_SwigPyIterator + + def value(self): + return _Geom2dLProp.SwigPyIterator_value(self) + + def incr(self, n=1): + return _Geom2dLProp.SwigPyIterator_incr(self, n) + + def decr(self, n=1): + return _Geom2dLProp.SwigPyIterator_decr(self, n) + + def distance(self, x): + return _Geom2dLProp.SwigPyIterator_distance(self, x) + + def equal(self, x): + return _Geom2dLProp.SwigPyIterator_equal(self, x) + + def copy(self): + return _Geom2dLProp.SwigPyIterator_copy(self) + + def next(self): + return _Geom2dLProp.SwigPyIterator_next(self) + + def __next__(self): + return _Geom2dLProp.SwigPyIterator___next__(self) + + def previous(self): + return _Geom2dLProp.SwigPyIterator_previous(self) + + def advance(self, n): + return _Geom2dLProp.SwigPyIterator_advance(self, n) + + def __eq__(self, x): + return _Geom2dLProp.SwigPyIterator___eq__(self, x) + + def __ne__(self, x): + return _Geom2dLProp.SwigPyIterator___ne__(self, x) + + def __iadd__(self, n): + return _Geom2dLProp.SwigPyIterator___iadd__(self, n) + + def __isub__(self, n): + return _Geom2dLProp.SwigPyIterator___isub__(self, n) + + def __add__(self, n): + return _Geom2dLProp.SwigPyIterator___add__(self, n) + + def __sub__(self, *args): + return _Geom2dLProp.SwigPyIterator___sub__(self, *args) + def __iter__(self): + return self + +# Register SwigPyIterator in _Geom2dLProp: +_Geom2dLProp.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: Geom2d_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. + + """ + _Geom2dLProp.Geom2dLProp_CLProps2d_swiginit(self, _Geom2dLProp.new_Geom2dLProp_CLProps2d(*args)) + + def CentreOfCurvature(self, *args): + r""" + + Parameters + ---------- + P: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + Returns the centre of curvature

. + + """ + return _Geom2dLProp.Geom2dLProp_CLProps2d_CentreOfCurvature(self, *args) + + def Curvature(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns the curvature. + + """ + return _Geom2dLProp.Geom2dLProp_CLProps2d_Curvature(self, *args) + + def D1(self, *args): + r""" + Return + ------- + gp_Vec2d + + Description + ----------- + Returns the first derivative. The derivative is computed if it has not been yet. + + """ + return _Geom2dLProp.Geom2dLProp_CLProps2d_D1(self, *args) + + def D2(self, *args): + r""" + Return + ------- + gp_Vec2d + + Description + ----------- + Returns the second derivative. The derivative is computed if it has not been yet. + + """ + return _Geom2dLProp.Geom2dLProp_CLProps2d_D2(self, *args) + + def D3(self, *args): + r""" + Return + ------- + gp_Vec2d + + Description + ----------- + Returns the third derivative. The derivative is computed if it has not been yet. + + """ + return _Geom2dLProp.Geom2dLProp_CLProps2d_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 _Geom2dLProp.Geom2dLProp_CLProps2d_IsTangentDefined(self, *args) + + def Normal(self, *args): + r""" + + Parameters + ---------- + N: gp_Dir2d + + Return + ------- + None + + Description + ----------- + Returns the normal direction . + + """ + return _Geom2dLProp.Geom2dLProp_CLProps2d_Normal(self, *args) + + def SetCurve(self, *args): + r""" + + Parameters + ---------- + C: Geom2d_Curve + + Return + ------- + None + + Description + ----------- + Initializes the local properties of the curve for the new curve. + + """ + return _Geom2dLProp.Geom2dLProp_CLProps2d_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 _Geom2dLProp.Geom2dLProp_CLProps2d_SetParameter(self, *args) + + def Tangent(self, *args): + r""" + + Parameters + ---------- + D: gp_Dir2d + + Return + ------- + None + + Description + ----------- + output the tangent direction . + + """ + return _Geom2dLProp.Geom2dLProp_CLProps2d_Tangent(self, *args) + + def Value(self, *args): + r""" + Return + ------- + gp_Pnt2d + + Description + ----------- + Returns the Point. + + """ + return _Geom2dLProp.Geom2dLProp_CLProps2d_Value(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _Geom2dLProp.delete_Geom2dLProp_CLProps2d + +# Register Geom2dLProp_CLProps2d in _Geom2dLProp: +_Geom2dLProp.Geom2dLProp_CLProps2d_swigregister(Geom2dLProp_CLProps2d) +class Geom2dLProp_CurAndInf2d(OCC.Core.LProp.LProp_CurAndInf): + 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 + ----------- + Initializes the framework. Note: The curve on which the local properties are computed is defined using one of the following functions: Perform, PerformCurExt or PerformInf. + + """ + _Geom2dLProp.Geom2dLProp_CurAndInf2d_swiginit(self, _Geom2dLProp.new_Geom2dLProp_CurAndInf2d(*args)) + + def IsDone(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + True if the solutions are found. + + """ + return _Geom2dLProp.Geom2dLProp_CurAndInf2d_IsDone(self, *args) + + def Perform(self, *args): + r""" + + Parameters + ---------- + C: Geom2d_Curve + + Return + ------- + None + + Description + ----------- + For the curve C, Computes both the inflection points and the maximum and minimum curvatures. + + """ + return _Geom2dLProp.Geom2dLProp_CurAndInf2d_Perform(self, *args) + + def PerformCurExt(self, *args): + r""" + + Parameters + ---------- + C: Geom2d_Curve + + Return + ------- + None + + Description + ----------- + For the curve C, Computes the locals extremas of curvature. + + """ + return _Geom2dLProp.Geom2dLProp_CurAndInf2d_PerformCurExt(self, *args) + + def PerformInf(self, *args): + r""" + + Parameters + ---------- + C: Geom2d_Curve + + Return + ------- + None + + Description + ----------- + For the curve C, Computes the inflections. After computation, the following functions can be used: - IsDone to check if the computation was successful - NbPoints to obtain the number of computed particular points - Parameter to obtain the parameter on the curve for each particular point - Type to check if the point is an inflection point or an extremum of curvature of the curve C. Warning These functions can be used to analyze a series of curves, however it is necessary to clear the table of results between each computation. + + """ + return _Geom2dLProp.Geom2dLProp_CurAndInf2d_PerformInf(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _Geom2dLProp.delete_Geom2dLProp_CurAndInf2d + +# Register Geom2dLProp_CurAndInf2d in _Geom2dLProp: +_Geom2dLProp.Geom2dLProp_CurAndInf2d_swigregister(Geom2dLProp_CurAndInf2d) +class Geom2dLProp_Curve2dTool(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: Geom2d_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 _Geom2dLProp.Geom2dLProp_Curve2dTool_Continuity(*args) + + @staticmethod + def D1(*args): + r""" + + Parameters + ---------- + C: Geom2d_Curve + U: float + P: gp_Pnt2d + V1: gp_Vec2d + + Return + ------- + None + + Description + ----------- + Computes the point

and first derivative of parameter on the curve . + + """ + return _Geom2dLProp.Geom2dLProp_Curve2dTool_D1(*args) + + @staticmethod + def D2(*args): + r""" + + Parameters + ---------- + C: Geom2d_Curve + U: float + P: gp_Pnt2d + V1: gp_Vec2d + V2: gp_Vec2d + + Return + ------- + None + + Description + ----------- + Computes the point

, the first derivative and second derivative of parameter on the curve . + + """ + return _Geom2dLProp.Geom2dLProp_Curve2dTool_D2(*args) + + @staticmethod + def D3(*args): + r""" + + Parameters + ---------- + C: Geom2d_Curve + U: float + P: gp_Pnt2d + V1: gp_Vec2d + V2: gp_Vec2d + V3: gp_Vec2d + + Return + ------- + None + + Description + ----------- + Computes the point

, the first derivative , the second derivative and third derivative of parameter on the curve . + + """ + return _Geom2dLProp.Geom2dLProp_Curve2dTool_D3(*args) + + @staticmethod + def FirstParameter(*args): + r""" + + Parameters + ---------- + C: Geom2d_Curve + + Return + ------- + float + + Description + ----------- + returns the first parameter bound of the curve. + + """ + return _Geom2dLProp.Geom2dLProp_Curve2dTool_FirstParameter(*args) + + @staticmethod + def LastParameter(*args): + r""" + + Parameters + ---------- + C: Geom2d_Curve + + Return + ------- + float + + Description + ----------- + returns the last parameter bound of the curve. FirstParameter must be less than LastParameter. + + """ + return _Geom2dLProp.Geom2dLProp_Curve2dTool_LastParameter(*args) + + @staticmethod + def Value(*args): + r""" + + Parameters + ---------- + C: Geom2d_Curve + U: float + P: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + Computes the point

of parameter on the curve . + + """ + return _Geom2dLProp.Geom2dLProp_Curve2dTool_Value(*args) + + __repr__ = _dumps_object + + + def __init__(self): + _Geom2dLProp.Geom2dLProp_Curve2dTool_swiginit(self, _Geom2dLProp.new_Geom2dLProp_Curve2dTool()) + __swig_destroy__ = _Geom2dLProp.delete_Geom2dLProp_Curve2dTool + +# Register Geom2dLProp_Curve2dTool in _Geom2dLProp: +_Geom2dLProp.Geom2dLProp_Curve2dTool_swigregister(Geom2dLProp_Curve2dTool) +class Geom2dLProp_FuncCurExt(OCC.Core.math.math_FunctionWithDerivative): + 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: Geom2d_Curve + Tol: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _Geom2dLProp.Geom2dLProp_FuncCurExt_swiginit(self, _Geom2dLProp.new_Geom2dLProp_FuncCurExt(*args)) + + def IsMinKC(self, *args): + r""" + + Parameters + ---------- + Param: float + + Return + ------- + bool + + Description + ----------- + True if Param corresponds to a minus of the radius of curvature. + + """ + return _Geom2dLProp.Geom2dLProp_FuncCurExt_IsMinKC(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _Geom2dLProp.delete_Geom2dLProp_FuncCurExt + +# Register Geom2dLProp_FuncCurExt in _Geom2dLProp: +_Geom2dLProp.Geom2dLProp_FuncCurExt_swigregister(Geom2dLProp_FuncCurExt) +class Geom2dLProp_FuncCurNul(OCC.Core.math.math_FunctionWithDerivative): + 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: Geom2d_Curve + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _Geom2dLProp.Geom2dLProp_FuncCurNul_swiginit(self, _Geom2dLProp.new_Geom2dLProp_FuncCurNul(*args)) + + __repr__ = _dumps_object + + __swig_destroy__ = _Geom2dLProp.delete_Geom2dLProp_FuncCurNul + +# Register Geom2dLProp_FuncCurNul in _Geom2dLProp: +_Geom2dLProp.Geom2dLProp_FuncCurNul_swigregister(Geom2dLProp_FuncCurNul) +class Geom2dLProp_NumericCurInf2d(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. + + """ + _Geom2dLProp.Geom2dLProp_NumericCurInf2d_swiginit(self, _Geom2dLProp.new_Geom2dLProp_NumericCurInf2d(*args)) + + def IsDone(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + True if the solutions are found. + + """ + return _Geom2dLProp.Geom2dLProp_NumericCurInf2d_IsDone(self, *args) + + def PerformCurExt(self, *args): + r""" + + Parameters + ---------- + C: Geom2d_Curve + Result: LProp_CurAndInf + + Return + ------- + None + + Description + ----------- + Computes the locals extremas of curvature. + + Parameters + ---------- + C: Geom2d_Curve + UMin: float + UMax: float + Result: LProp_CurAndInf + + Return + ------- + None + + Description + ----------- + Computes the locals extremas of curvature. in the interval of parameters [UMin,UMax]. + + """ + return _Geom2dLProp.Geom2dLProp_NumericCurInf2d_PerformCurExt(self, *args) + + def PerformInf(self, *args): + r""" + + Parameters + ---------- + C: Geom2d_Curve + Result: LProp_CurAndInf + + Return + ------- + None + + Description + ----------- + Computes the inflections. + + Parameters + ---------- + C: Geom2d_Curve + UMin: float + UMax: float + Result: LProp_CurAndInf + + Return + ------- + None + + Description + ----------- + Computes the inflections in the interval of parameters [UMin,UMax]. + + """ + return _Geom2dLProp.Geom2dLProp_NumericCurInf2d_PerformInf(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _Geom2dLProp.delete_Geom2dLProp_NumericCurInf2d + +# Register Geom2dLProp_NumericCurInf2d in _Geom2dLProp: +_Geom2dLProp.Geom2dLProp_NumericCurInf2d_swigregister(Geom2dLProp_NumericCurInf2d) + + + +@deprecated +def Geom2dLProp_Curve2dTool_Continuity(*args): + return Geom2dLProp_Curve2dTool.Continuity(*args) + +@deprecated +def Geom2dLProp_Curve2dTool_D1(*args): + return Geom2dLProp_Curve2dTool.D1(*args) + +@deprecated +def Geom2dLProp_Curve2dTool_D2(*args): + return Geom2dLProp_Curve2dTool.D2(*args) + +@deprecated +def Geom2dLProp_Curve2dTool_D3(*args): + return Geom2dLProp_Curve2dTool.D3(*args) + +@deprecated +def Geom2dLProp_Curve2dTool_FirstParameter(*args): + return Geom2dLProp_Curve2dTool.FirstParameter(*args) + +@deprecated +def Geom2dLProp_Curve2dTool_LastParameter(*args): + return Geom2dLProp_Curve2dTool.LastParameter(*args) + +@deprecated +def Geom2dLProp_Curve2dTool_Value(*args): + return Geom2dLProp_Curve2dTool.Value(*args) + + + diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/GeomAbs.py b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/GeomAbs.py new file mode 100644 index 0000000000000000000000000000000000000000..ba3b0892fee42e48aa7e7c91832988bc86b3c987 --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/GeomAbs.py @@ -0,0 +1,547 @@ +# 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. + +""" +GeomAbs module, see official documentation at +https://dev.opencascade.org/doc/occt-7.9.0/refman/html/package_geomabs.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 _GeomAbs +else: + import _GeomAbs + +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__ = _GeomAbs.delete_SwigPyIterator + + def value(self): + return _GeomAbs.SwigPyIterator_value(self) + + def incr(self, n=1): + return _GeomAbs.SwigPyIterator_incr(self, n) + + def decr(self, n=1): + return _GeomAbs.SwigPyIterator_decr(self, n) + + def distance(self, x): + return _GeomAbs.SwigPyIterator_distance(self, x) + + def equal(self, x): + return _GeomAbs.SwigPyIterator_equal(self, x) + + def copy(self): + return _GeomAbs.SwigPyIterator_copy(self) + + def next(self): + return _GeomAbs.SwigPyIterator_next(self) + + def __next__(self): + return _GeomAbs.SwigPyIterator___next__(self) + + def previous(self): + return _GeomAbs.SwigPyIterator_previous(self) + + def advance(self, n): + return _GeomAbs.SwigPyIterator_advance(self, n) + + def __eq__(self, x): + return _GeomAbs.SwigPyIterator___eq__(self, x) + + def __ne__(self, x): + return _GeomAbs.SwigPyIterator___ne__(self, x) + + def __iadd__(self, n): + return _GeomAbs.SwigPyIterator___iadd__(self, n) + + def __isub__(self, n): + return _GeomAbs.SwigPyIterator___isub__(self, n) + + def __add__(self, n): + return _GeomAbs.SwigPyIterator___add__(self, n) + + def __sub__(self, *args): + return _GeomAbs.SwigPyIterator___sub__(self, *args) + def __iter__(self): + return self + +# Register SwigPyIterator in _GeomAbs: +_GeomAbs.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__ = _GeomEvaluator.delete_SwigPyIterator + + def value(self): + return _GeomEvaluator.SwigPyIterator_value(self) + + def incr(self, n=1): + return _GeomEvaluator.SwigPyIterator_incr(self, n) + + def decr(self, n=1): + return _GeomEvaluator.SwigPyIterator_decr(self, n) + + def distance(self, x): + return _GeomEvaluator.SwigPyIterator_distance(self, x) + + def equal(self, x): + return _GeomEvaluator.SwigPyIterator_equal(self, x) + + def copy(self): + return _GeomEvaluator.SwigPyIterator_copy(self) + + def next(self): + return _GeomEvaluator.SwigPyIterator_next(self) + + def __next__(self): + return _GeomEvaluator.SwigPyIterator___next__(self) + + def previous(self): + return _GeomEvaluator.SwigPyIterator_previous(self) + + def advance(self, n): + return _GeomEvaluator.SwigPyIterator_advance(self, n) + + def __eq__(self, x): + return _GeomEvaluator.SwigPyIterator___eq__(self, x) + + def __ne__(self, x): + return _GeomEvaluator.SwigPyIterator___ne__(self, x) + + def __iadd__(self, n): + return _GeomEvaluator.SwigPyIterator___iadd__(self, n) + + def __isub__(self, n): + return _GeomEvaluator.SwigPyIterator___isub__(self, n) + + def __add__(self, n): + return _GeomEvaluator.SwigPyIterator___add__(self, n) + + def __sub__(self, *args): + return _GeomEvaluator.SwigPyIterator___sub__(self, *args) + def __iter__(self): + return self + +# Register SwigPyIterator in _GeomEvaluator: +_GeomEvaluator.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 + ----------- + No available documentation. + + """ + return _GeomEvaluator.GeomEvaluator_Curve_ShallowCopy(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_GeomEvaluator_Curve_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomEvaluator.delete_GeomEvaluator_Curve + +# Register GeomEvaluator_Curve in _GeomEvaluator: +_GeomEvaluator.GeomEvaluator_Curve_swigregister(GeomEvaluator_Curve) +class GeomEvaluator_Surface(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 D0(self, *args): + r""" + + Parameters + ---------- + theU: float + theV: float + theValue: gp_Pnt + + Return + ------- + None + + Description + ----------- + Value of surface. + + """ + return _GeomEvaluator.GeomEvaluator_Surface_D0(self, *args) + + def D1(self, *args): + r""" + + Parameters + ---------- + theU: float + theV: float + theValue: gp_Pnt + theD1U: gp_Vec + theD1V: gp_Vec + + Return + ------- + None + + Description + ----------- + Value and first derivatives of surface. + + """ + return _GeomEvaluator.GeomEvaluator_Surface_D1(self, *args) + + def D2(self, *args): + r""" + + Parameters + ---------- + theU: float + theV: float + theValue: gp_Pnt + theD1U: gp_Vec + theD1V: gp_Vec + theD2U: gp_Vec + theD2V: gp_Vec + theD2UV: gp_Vec + + Return + ------- + None + + Description + ----------- + Value, first and second derivatives of surface. + + """ + return _GeomEvaluator.GeomEvaluator_Surface_D2(self, *args) + + def D3(self, *args): + r""" + + Parameters + ---------- + theU: float + theV: float + theValue: gp_Pnt + theD1U: gp_Vec + theD1V: gp_Vec + theD2U: gp_Vec + theD2V: gp_Vec + theD2UV: gp_Vec + theD3U: gp_Vec + theD3V: gp_Vec + theD3UUV: gp_Vec + theD3UVV: gp_Vec + + Return + ------- + None + + Description + ----------- + Value, first, second and third derivatives of surface. + + """ + return _GeomEvaluator.GeomEvaluator_Surface_D3(self, *args) + + def DN(self, *args): + r""" + + Parameters + ---------- + theU: float + theV: float + theDerU: int + theDerV: int + + Return + ------- + gp_Vec + + Description + ----------- + Calculates N-th derivatives of surface, where N = theDerU + theDerV. //! Raises if N < 1 or theDerU < 0 or theDerV < 0. + + """ + return _GeomEvaluator.GeomEvaluator_Surface_DN(self, *args) + + def ShallowCopy(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _GeomEvaluator.GeomEvaluator_Surface_ShallowCopy(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_GeomEvaluator_Surface_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomEvaluator.delete_GeomEvaluator_Surface + +# Register GeomEvaluator_Surface in _GeomEvaluator: +_GeomEvaluator.GeomEvaluator_Surface_swigregister(GeomEvaluator_Surface) +class GeomEvaluator_OffsetCurve(GeomEvaluator_Curve): + 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 + ---------- + theBase: Geom_Curve + theOffset: float + theDirection: gp_Dir + + Return + ------- + None + + Description + ----------- + Initialize evaluator by curve. + + Parameters + ---------- + theBase: GeomAdaptor_Curve + theOffset: float + theDirection: gp_Dir + + Return + ------- + None + + Description + ----------- + Initialize evaluator by curve adaptor. + + """ + _GeomEvaluator.GeomEvaluator_OffsetCurve_swiginit(self, _GeomEvaluator.new_GeomEvaluator_OffsetCurve(*args)) + + def SetOffsetDirection(self, *args): + r""" + + Parameters + ---------- + theDirection: gp_Dir + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _GeomEvaluator.GeomEvaluator_OffsetCurve_SetOffsetDirection(self, *args) + + def SetOffsetValue(self, *args): + r""" + + Parameters + ---------- + theOffset: float + + Return + ------- + None + + Description + ----------- + Change the offset value. + + """ + return _GeomEvaluator.GeomEvaluator_OffsetCurve_SetOffsetValue(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_GeomEvaluator_OffsetCurve_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomEvaluator.delete_GeomEvaluator_OffsetCurve + +# Register GeomEvaluator_OffsetCurve in _GeomEvaluator: +_GeomEvaluator.GeomEvaluator_OffsetCurve_swigregister(GeomEvaluator_OffsetCurve) +class GeomEvaluator_OffsetSurface(GeomEvaluator_Surface): + 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 + ---------- + theBase: Geom_Surface + theOffset: float + theOscSurf: Geom_OsculatingSurface (optional, default to opencascade::handle()) + + Return + ------- + None + + Description + ----------- + Initialize evaluator by surface. + + Parameters + ---------- + theBase: GeomAdaptor_Surface + theOffset: float + theOscSurf: Geom_OsculatingSurface (optional, default to opencascade::handle()) + + Return + ------- + None + + Description + ----------- + Initialize evaluator by surface adaptor. + + """ + _GeomEvaluator.GeomEvaluator_OffsetSurface_swiginit(self, _GeomEvaluator.new_GeomEvaluator_OffsetSurface(*args)) + + def SetOffsetValue(self, *args): + r""" + + Parameters + ---------- + theOffset: float + + Return + ------- + None + + Description + ----------- + Change the offset value. + + """ + return _GeomEvaluator.GeomEvaluator_OffsetSurface_SetOffsetValue(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_GeomEvaluator_OffsetSurface_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomEvaluator.delete_GeomEvaluator_OffsetSurface + +# Register GeomEvaluator_OffsetSurface in _GeomEvaluator: +_GeomEvaluator.GeomEvaluator_OffsetSurface_swigregister(GeomEvaluator_OffsetSurface) +class GeomEvaluator_SurfaceOfExtrusion(GeomEvaluator_Surface): + 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 + ---------- + theBase: Geom_Curve + theExtrusionDir: gp_Dir + + Return + ------- + None + + Description + ----------- + Initialize evaluator by surface. + + Parameters + ---------- + theBase: Adaptor3d_Curve + theExtrusionDir: gp_Dir + + Return + ------- + None + + Description + ----------- + Initialize evaluator by surface adaptor. + + """ + _GeomEvaluator.GeomEvaluator_SurfaceOfExtrusion_swiginit(self, _GeomEvaluator.new_GeomEvaluator_SurfaceOfExtrusion(*args)) + + def SetDirection(self, *args): + r""" + + Parameters + ---------- + theDirection: gp_Dir + + Return + ------- + None + + Description + ----------- + /Changes the direction of extrusion. + + """ + return _GeomEvaluator.GeomEvaluator_SurfaceOfExtrusion_SetDirection(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_GeomEvaluator_SurfaceOfExtrusion_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomEvaluator.delete_GeomEvaluator_SurfaceOfExtrusion + +# Register GeomEvaluator_SurfaceOfExtrusion in _GeomEvaluator: +_GeomEvaluator.GeomEvaluator_SurfaceOfExtrusion_swigregister(GeomEvaluator_SurfaceOfExtrusion) +class GeomEvaluator_SurfaceOfRevolution(GeomEvaluator_Surface): + 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 + ---------- + theBase: Geom_Curve + theRevolDir: gp_Dir + theRevolLoc: gp_Pnt + + Return + ------- + None + + Description + ----------- + Initialize evaluator by revolved curve, the axis of revolution and the location. + + Parameters + ---------- + theBase: Adaptor3d_Curve + theRevolDir: gp_Dir + theRevolLoc: gp_Pnt + + Return + ------- + None + + Description + ----------- + Initialize evaluator by adaptor of the revolved curve, the axis of revolution and the location. + + """ + _GeomEvaluator.GeomEvaluator_SurfaceOfRevolution_swiginit(self, _GeomEvaluator.new_GeomEvaluator_SurfaceOfRevolution(*args)) + + def SetAxis(self, *args): + r""" + + Parameters + ---------- + theAxis: gp_Ax1 + + Return + ------- + None + + Description + ----------- + Change the axis of revolution. + + """ + return _GeomEvaluator.GeomEvaluator_SurfaceOfRevolution_SetAxis(self, *args) + + def SetDirection(self, *args): + r""" + + Parameters + ---------- + theDirection: gp_Dir + + Return + ------- + None + + Description + ----------- + Change direction of the axis of revolution. + + """ + return _GeomEvaluator.GeomEvaluator_SurfaceOfRevolution_SetDirection(self, *args) + + def SetLocation(self, *args): + r""" + + Parameters + ---------- + theLocation: gp_Pnt + + Return + ------- + None + + Description + ----------- + Change location of the axis of revolution. + + """ + return _GeomEvaluator.GeomEvaluator_SurfaceOfRevolution_SetLocation(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_GeomEvaluator_SurfaceOfRevolution_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomEvaluator.delete_GeomEvaluator_SurfaceOfRevolution + +# Register GeomEvaluator_SurfaceOfRevolution in _GeomEvaluator: +_GeomEvaluator.GeomEvaluator_SurfaceOfRevolution_swigregister(GeomEvaluator_SurfaceOfRevolution) + + + diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/GeomFill.py b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/GeomFill.py new file mode 100644 index 0000000000000000000000000000000000000000..93a8b953f49bf85827179535a712009d0f05a40c --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/GeomFill.py @@ -0,0 +1,8319 @@ +# 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. + +""" +GeomFill module, see official documentation at +https://dev.opencascade.org/doc/occt-7.9.0/refman/html/package_geomfill.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 _GeomFill +else: + import _GeomFill + +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__ = _GeomFill.delete_SwigPyIterator + + def value(self): + return _GeomFill.SwigPyIterator_value(self) + + def incr(self, n=1): + return _GeomFill.SwigPyIterator_incr(self, n) + + def decr(self, n=1): + return _GeomFill.SwigPyIterator_decr(self, n) + + def distance(self, x): + return _GeomFill.SwigPyIterator_distance(self, x) + + def equal(self, x): + return _GeomFill.SwigPyIterator_equal(self, x) + + def copy(self): + return _GeomFill.SwigPyIterator_copy(self) + + def next(self): + return _GeomFill.SwigPyIterator_next(self) + + def __next__(self): + return _GeomFill.SwigPyIterator___next__(self) + + def previous(self): + return _GeomFill.SwigPyIterator_previous(self) + + def advance(self, n): + return _GeomFill.SwigPyIterator_advance(self, n) + + def __eq__(self, x): + return _GeomFill.SwigPyIterator___eq__(self, x) + + def __ne__(self, x): + return _GeomFill.SwigPyIterator___ne__(self, x) + + def __iadd__(self, n): + return _GeomFill.SwigPyIterator___iadd__(self, n) + + def __isub__(self, n): + return _GeomFill.SwigPyIterator___isub__(self, n) + + def __add__(self, n): + return _GeomFill.SwigPyIterator___add__(self, n) + + def __sub__(self, *args): + return _GeomFill.SwigPyIterator___sub__(self, *args) + def __iter__(self): + return self + +# Register SwigPyIterator in _GeomFill: +_GeomFill.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 GeomFill_Array1OfLocationLaw in _GeomFill: +_GeomFill.GeomFill_Array1OfLocationLaw_swigregister(GeomFill_Array1OfLocationLaw) +class GeomFill_Array1OfSectionLaw(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 _GeomFill.GeomFill_Array1OfSectionLaw_begin(self, *args) + + def cbegin(self): + return _GeomFill.GeomFill_Array1OfSectionLaw_cbegin(self) + + def end(self, *args): + return _GeomFill.GeomFill_Array1OfSectionLaw_end(self, *args) + + def cend(self): + return _GeomFill.GeomFill_Array1OfSectionLaw_cend(self) + + def __init__(self, *args): + _GeomFill.GeomFill_Array1OfSectionLaw_swiginit(self, _GeomFill.new_GeomFill_Array1OfSectionLaw(*args)) + __swig_destroy__ = _GeomFill.delete_GeomFill_Array1OfSectionLaw + + def Init(self, theValue): + return _GeomFill.GeomFill_Array1OfSectionLaw_Init(self, theValue) + + def Size(self): + return _GeomFill.GeomFill_Array1OfSectionLaw_Size(self) + + def Length(self): + return _GeomFill.GeomFill_Array1OfSectionLaw_Length(self) + + def IsEmpty(self): + return _GeomFill.GeomFill_Array1OfSectionLaw_IsEmpty(self) + + def Lower(self): + return _GeomFill.GeomFill_Array1OfSectionLaw_Lower(self) + + def Upper(self): + return _GeomFill.GeomFill_Array1OfSectionLaw_Upper(self) + + def Assign(self, theOther): + return _GeomFill.GeomFill_Array1OfSectionLaw_Assign(self, theOther) + + def Move(self, *args): + return _GeomFill.GeomFill_Array1OfSectionLaw_Move(self, *args) + + def Set(self, *args): + return _GeomFill.GeomFill_Array1OfSectionLaw_Set(self, *args) + + def First(self): + return _GeomFill.GeomFill_Array1OfSectionLaw_First(self) + + def ChangeFirst(self): + return _GeomFill.GeomFill_Array1OfSectionLaw_ChangeFirst(self) + + def Last(self): + return _GeomFill.GeomFill_Array1OfSectionLaw_Last(self) + + def ChangeLast(self): + return _GeomFill.GeomFill_Array1OfSectionLaw_ChangeLast(self) + + def Value(self, theIndex): + return _GeomFill.GeomFill_Array1OfSectionLaw_Value(self, theIndex) + + def ChangeValue(self, theIndex): + return _GeomFill.GeomFill_Array1OfSectionLaw_ChangeValue(self, theIndex) + + def __call__(self, *args): + return _GeomFill.GeomFill_Array1OfSectionLaw___call__(self, *args) + + def SetValue(self, *args): + return _GeomFill.GeomFill_Array1OfSectionLaw_SetValue(self, *args) + + def UpdateLowerBound(self, theLower): + return _GeomFill.GeomFill_Array1OfSectionLaw_UpdateLowerBound(self, theLower) + + def UpdateUpperBound(self, theUpper): + return _GeomFill.GeomFill_Array1OfSectionLaw_UpdateUpperBound(self, theUpper) + + def Resize(self, theLower, theUpper, theToCopyData): + return _GeomFill.GeomFill_Array1OfSectionLaw_Resize(self, theLower, theUpper, theToCopyData) + + def IsDeletable(self): + return _GeomFill.GeomFill_Array1OfSectionLaw_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 GeomFill_Array1OfSectionLaw in _GeomFill: +_GeomFill.GeomFill_Array1OfSectionLaw_swigregister(GeomFill_Array1OfSectionLaw) +class GeomFill_SequenceOfAx2(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 _GeomFill.GeomFill_SequenceOfAx2_begin(self) + + def end(self): + return _GeomFill.GeomFill_SequenceOfAx2_end(self) + + def cbegin(self): + return _GeomFill.GeomFill_SequenceOfAx2_cbegin(self) + + def cend(self): + return _GeomFill.GeomFill_SequenceOfAx2_cend(self) + + def __init__(self, *args): + _GeomFill.GeomFill_SequenceOfAx2_swiginit(self, _GeomFill.new_GeomFill_SequenceOfAx2(*args)) + + def Size(self): + return _GeomFill.GeomFill_SequenceOfAx2_Size(self) + + def Length(self): + return _GeomFill.GeomFill_SequenceOfAx2_Length(self) + + def Lower(self): + return _GeomFill.GeomFill_SequenceOfAx2_Lower(self) + + def Upper(self): + return _GeomFill.GeomFill_SequenceOfAx2_Upper(self) + + def IsEmpty(self): + return _GeomFill.GeomFill_SequenceOfAx2_IsEmpty(self) + + def Reverse(self): + return _GeomFill.GeomFill_SequenceOfAx2_Reverse(self) + + def Exchange(self, I, J): + return _GeomFill.GeomFill_SequenceOfAx2_Exchange(self, I, J) + + @staticmethod + def delNode(theNode, theAl): + return _GeomFill.GeomFill_SequenceOfAx2_delNode(theNode, theAl) + + def Clear(self, theAllocator=0): + return _GeomFill.GeomFill_SequenceOfAx2_Clear(self, theAllocator) + + def Assign(self, theOther): + return _GeomFill.GeomFill_SequenceOfAx2_Assign(self, theOther) + + def Set(self, *args): + return _GeomFill.GeomFill_SequenceOfAx2_Set(self, *args) + + def Remove(self, *args): + return _GeomFill.GeomFill_SequenceOfAx2_Remove(self, *args) + + def Append(self, *args): + return _GeomFill.GeomFill_SequenceOfAx2_Append(self, *args) + + def Prepend(self, *args): + return _GeomFill.GeomFill_SequenceOfAx2_Prepend(self, *args) + + def InsertBefore(self, *args): + return _GeomFill.GeomFill_SequenceOfAx2_InsertBefore(self, *args) + + def InsertAfter(self, *args): + return _GeomFill.GeomFill_SequenceOfAx2_InsertAfter(self, *args) + + def Split(self, theIndex, theSeq): + return _GeomFill.GeomFill_SequenceOfAx2_Split(self, theIndex, theSeq) + + def First(self): + return _GeomFill.GeomFill_SequenceOfAx2_First(self) + + def ChangeFirst(self): + return _GeomFill.GeomFill_SequenceOfAx2_ChangeFirst(self) + + def Last(self): + return _GeomFill.GeomFill_SequenceOfAx2_Last(self) + + def ChangeLast(self): + return _GeomFill.GeomFill_SequenceOfAx2_ChangeLast(self) + + def Value(self, theIndex): + return _GeomFill.GeomFill_SequenceOfAx2_Value(self, theIndex) + + def ChangeValue(self, theIndex): + return _GeomFill.GeomFill_SequenceOfAx2_ChangeValue(self, theIndex) + + def __call__(self, *args): + return _GeomFill.GeomFill_SequenceOfAx2___call__(self, *args) + + def SetValue(self, theIndex, theItem): + return _GeomFill.GeomFill_SequenceOfAx2_SetValue(self, theIndex, theItem) + __swig_destroy__ = _GeomFill.delete_GeomFill_SequenceOfAx2 + + def __len__(self): + return self.Size() + + +# Register GeomFill_SequenceOfAx2 in _GeomFill: +_GeomFill.GeomFill_SequenceOfAx2_swigregister(GeomFill_SequenceOfAx2) +class GeomFill_SequenceOfTrsf(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 _GeomFill.GeomFill_SequenceOfTrsf_begin(self) + + def end(self): + return _GeomFill.GeomFill_SequenceOfTrsf_end(self) + + def cbegin(self): + return _GeomFill.GeomFill_SequenceOfTrsf_cbegin(self) + + def cend(self): + return _GeomFill.GeomFill_SequenceOfTrsf_cend(self) + + def __init__(self, *args): + _GeomFill.GeomFill_SequenceOfTrsf_swiginit(self, _GeomFill.new_GeomFill_SequenceOfTrsf(*args)) + + def Size(self): + return _GeomFill.GeomFill_SequenceOfTrsf_Size(self) + + def Length(self): + return _GeomFill.GeomFill_SequenceOfTrsf_Length(self) + + def Lower(self): + return _GeomFill.GeomFill_SequenceOfTrsf_Lower(self) + + def Upper(self): + return _GeomFill.GeomFill_SequenceOfTrsf_Upper(self) + + def IsEmpty(self): + return _GeomFill.GeomFill_SequenceOfTrsf_IsEmpty(self) + + def Reverse(self): + return _GeomFill.GeomFill_SequenceOfTrsf_Reverse(self) + + def Exchange(self, I, J): + return _GeomFill.GeomFill_SequenceOfTrsf_Exchange(self, I, J) + + @staticmethod + def delNode(theNode, theAl): + return _GeomFill.GeomFill_SequenceOfTrsf_delNode(theNode, theAl) + + def Clear(self, theAllocator=0): + return _GeomFill.GeomFill_SequenceOfTrsf_Clear(self, theAllocator) + + def Assign(self, theOther): + return _GeomFill.GeomFill_SequenceOfTrsf_Assign(self, theOther) + + def Set(self, *args): + return _GeomFill.GeomFill_SequenceOfTrsf_Set(self, *args) + + def Remove(self, *args): + return _GeomFill.GeomFill_SequenceOfTrsf_Remove(self, *args) + + def Append(self, *args): + return _GeomFill.GeomFill_SequenceOfTrsf_Append(self, *args) + + def Prepend(self, *args): + return _GeomFill.GeomFill_SequenceOfTrsf_Prepend(self, *args) + + def InsertBefore(self, *args): + return _GeomFill.GeomFill_SequenceOfTrsf_InsertBefore(self, *args) + + def InsertAfter(self, *args): + return _GeomFill.GeomFill_SequenceOfTrsf_InsertAfter(self, *args) + + def Split(self, theIndex, theSeq): + return _GeomFill.GeomFill_SequenceOfTrsf_Split(self, theIndex, theSeq) + + def First(self): + return _GeomFill.GeomFill_SequenceOfTrsf_First(self) + + def ChangeFirst(self): + return _GeomFill.GeomFill_SequenceOfTrsf_ChangeFirst(self) + + def Last(self): + return _GeomFill.GeomFill_SequenceOfTrsf_Last(self) + + def ChangeLast(self): + return _GeomFill.GeomFill_SequenceOfTrsf_ChangeLast(self) + + def Value(self, theIndex): + return _GeomFill.GeomFill_SequenceOfTrsf_Value(self, theIndex) + + def ChangeValue(self, theIndex): + return _GeomFill.GeomFill_SequenceOfTrsf_ChangeValue(self, theIndex) + + def __call__(self, *args): + return _GeomFill.GeomFill_SequenceOfTrsf___call__(self, *args) + + def SetValue(self, theIndex, theItem): + return _GeomFill.GeomFill_SequenceOfTrsf_SetValue(self, theIndex, theItem) + __swig_destroy__ = _GeomFill.delete_GeomFill_SequenceOfTrsf + + def __len__(self): + return self.Size() + + +# Register GeomFill_SequenceOfTrsf in _GeomFill: +_GeomFill.GeomFill_SequenceOfTrsf_swigregister(GeomFill_SequenceOfTrsf) +class geomfill(object): + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") + __repr__ = _swig_repr + + @staticmethod + def GetCircle(*args): + r""" + + Parameters + ---------- + TConv: Convert_ParameterisationType + ns1: gp_Vec + ns2: gp_Vec + nplan: gp_Vec + pt1: gp_Pnt + pt2: gp_Pnt + Rayon: float + Center: gp_Pnt + Poles: TColgp_Array1OfPnt + Weigths: TColStd_Array1OfReal + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + TConv: Convert_ParameterisationType + ns1: gp_Vec + ns2: gp_Vec + dn1w: gp_Vec + dn2w: gp_Vec + nplan: gp_Vec + dnplan: gp_Vec + pts1: gp_Pnt + pts2: gp_Pnt + tang1: gp_Vec + tang2: gp_Vec + Rayon: float + DRayon: float + Center: gp_Pnt + DCenter: gp_Vec + Poles: TColgp_Array1OfPnt + DPoles: TColgp_Array1OfVec + Weigths: TColStd_Array1OfReal + DWeigths: TColStd_Array1OfReal + + Return + ------- + bool + + Description + ----------- + No available documentation. + + Parameters + ---------- + TConv: Convert_ParameterisationType + ns1: gp_Vec + ns2: gp_Vec + dn1w: gp_Vec + dn2w: gp_Vec + d2n1w: gp_Vec + d2n2w: gp_Vec + nplan: gp_Vec + dnplan: gp_Vec + d2nplan: gp_Vec + pts1: gp_Pnt + pts2: gp_Pnt + tang1: gp_Vec + tang2: gp_Vec + Dtang1: gp_Vec + Dtang2: gp_Vec + Rayon: float + DRayon: float + D2Rayon: float + Center: gp_Pnt + DCenter: gp_Vec + D2Center: gp_Vec + Poles: TColgp_Array1OfPnt + DPoles: TColgp_Array1OfVec + D2Poles: TColgp_Array1OfVec + Weigths: TColStd_Array1OfReal + DWeigths: TColStd_Array1OfReal + D2Weigths: TColStd_Array1OfReal + + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _GeomFill.geomfill_GetCircle(*args) + + @staticmethod + def GetMinimalWeights(*args): + r""" + + Parameters + ---------- + TConv: Convert_ParameterisationType + AngleMin: float + AngleMax: float + Weigths: TColStd_Array1OfReal + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _GeomFill.geomfill_GetMinimalWeights(*args) + + @staticmethod + def GetShape(*args): + r""" + + Parameters + ---------- + MaxAng: float + + Return + ------- + NbPoles: int + NbKnots: int + Degree: int + TypeConv: Convert_ParameterisationType + + Description + ----------- + No available documentation. + + """ + return _GeomFill.geomfill_GetShape(*args) + + @staticmethod + def GetTolerance(*args): + r""" + + Parameters + ---------- + TConv: Convert_ParameterisationType + AngleMin: float + Radius: float + AngularTol: float + SpatialTol: float + + Return + ------- + float + + Description + ----------- + Used by the generical classes to determine Tolerance for approximation. + + """ + return _GeomFill.geomfill_GetTolerance(*args) + + @staticmethod + def Knots(*args): + r""" + + Parameters + ---------- + TypeConv: Convert_ParameterisationType + TKnots: TColStd_Array1OfReal + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _GeomFill.geomfill_Knots(*args) + + @staticmethod + def Mults(*args): + r""" + + Parameters + ---------- + TypeConv: Convert_ParameterisationType + TMults: TColStd_Array1OfInteger + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _GeomFill.geomfill_Mults(*args) + + @staticmethod + def Surface(*args): + r""" + + Parameters + ---------- + Curve1: Geom_Curve + Curve2: Geom_Curve + + Return + ------- + opencascade::handle + + Description + ----------- + Builds a ruled surface between the two curves, Curve1 and Curve2. + + """ + return _GeomFill.geomfill_Surface(*args) + + __repr__ = _dumps_object + + + def __init__(self): + _GeomFill.geomfill_swiginit(self, _GeomFill.new_geomfill()) + __swig_destroy__ = _GeomFill.delete_geomfill + +# Register geomfill in _GeomFill: +_GeomFill.geomfill_swigregister(geomfill) +class GeomFill_AppSurf(OCC.Core.AppBlend.AppBlend_Approx): + 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 + ---------- + Degmin: int + Degmax: int + Tol3d: float + Tol2d: float + NbIt: int + KnownParameters: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _GeomFill.GeomFill_AppSurf_swiginit(self, _GeomFill.new_GeomFill_AppSurf(*args)) + + def Continuity(self, *args): + r""" + Return + ------- + GeomAbs_Shape + + Description + ----------- + returns the Continuity used in the approximation. + + """ + return _GeomFill.GeomFill_AppSurf_Continuity(self, *args) + + def CriteriumWeight(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + W1: float + W2: float + W3: float + + Description + ----------- + returns the Weights (as percent) associed to the criterium used in the optimization. + + """ + return _GeomFill.GeomFill_AppSurf_CriteriumWeight(self, *args) + + def Init(self, *args): + r""" + + Parameters + ---------- + Degmin: int + Degmax: int + Tol3d: float + Tol2d: float + NbIt: int + KnownParameters: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_AppSurf_Init(self, *args) + + def ParType(self, *args): + r""" + Return + ------- + Approx_ParametrizationType + + Description + ----------- + returns the type of parametrization used in the approximation. + + """ + return _GeomFill.GeomFill_AppSurf_ParType(self, *args) + + def Perform(self, *args): + r""" + + Parameters + ---------- + Lin: GeomFill_Line + SecGen: GeomFill_SectionGenerator + SpApprox: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + Lin: GeomFill_Line + SecGen: GeomFill_SectionGenerator + NbMaxP: int + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_AppSurf_Perform(self, *args) + + def PerformSmoothing(self, *args): + r""" + + Parameters + ---------- + Lin: GeomFill_Line + SecGen: GeomFill_SectionGenerator + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_AppSurf_PerformSmoothing(self, *args) + + def SetContinuity(self, *args): + r""" + + Parameters + ---------- + C: GeomAbs_Shape + + Return + ------- + None + + Description + ----------- + Define the Continuity used in the approximation. + + """ + return _GeomFill.GeomFill_AppSurf_SetContinuity(self, *args) + + def SetCriteriumWeight(self, *args): + r""" + + Parameters + ---------- + W1: float + W2: float + W3: float + + Return + ------- + None + + Description + ----------- + define the Weights associed to the criterium used in the optimization. //! if Wi <= 0. + + """ + return _GeomFill.GeomFill_AppSurf_SetCriteriumWeight(self, *args) + + def SetParType(self, *args): + r""" + + Parameters + ---------- + ParType: Approx_ParametrizationType + + Return + ------- + None + + Description + ----------- + Define the type of parametrization used in the approximation. + + """ + return _GeomFill.GeomFill_AppSurf_SetParType(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomFill.delete_GeomFill_AppSurf + +# Register GeomFill_AppSurf in _GeomFill: +_GeomFill.GeomFill_AppSurf_swigregister(GeomFill_AppSurf) +class GeomFill_AppSweep(OCC.Core.AppBlend.AppBlend_Approx): + 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 + ---------- + Degmin: int + Degmax: int + Tol3d: float + Tol2d: float + NbIt: int + KnownParameters: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _GeomFill.GeomFill_AppSweep_swiginit(self, _GeomFill.new_GeomFill_AppSweep(*args)) + + def Continuity(self, *args): + r""" + Return + ------- + GeomAbs_Shape + + Description + ----------- + returns the Continuity used in the approximation. + + """ + return _GeomFill.GeomFill_AppSweep_Continuity(self, *args) + + def CriteriumWeight(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + W1: float + W2: float + W3: float + + Description + ----------- + returns the Weights (as percent) associed to the criterium used in the optimization. + + """ + return _GeomFill.GeomFill_AppSweep_CriteriumWeight(self, *args) + + def Init(self, *args): + r""" + + Parameters + ---------- + Degmin: int + Degmax: int + Tol3d: float + Tol2d: float + NbIt: int + KnownParameters: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_AppSweep_Init(self, *args) + + def ParType(self, *args): + r""" + Return + ------- + Approx_ParametrizationType + + Description + ----------- + returns the type of parametrization used in the approximation. + + """ + return _GeomFill.GeomFill_AppSweep_ParType(self, *args) + + def Perform(self, *args): + r""" + + Parameters + ---------- + Lin: GeomFill_Line + SecGen: GeomFill_SweepSectionGenerator + SpApprox: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + Lin: GeomFill_Line + SecGen: GeomFill_SweepSectionGenerator + NbMaxP: int + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_AppSweep_Perform(self, *args) + + def PerformSmoothing(self, *args): + r""" + + Parameters + ---------- + Lin: GeomFill_Line + SecGen: GeomFill_SweepSectionGenerator + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_AppSweep_PerformSmoothing(self, *args) + + def SetContinuity(self, *args): + r""" + + Parameters + ---------- + C: GeomAbs_Shape + + Return + ------- + None + + Description + ----------- + Define the Continuity used in the approximation. + + """ + return _GeomFill.GeomFill_AppSweep_SetContinuity(self, *args) + + def SetCriteriumWeight(self, *args): + r""" + + Parameters + ---------- + W1: float + W2: float + W3: float + + Return + ------- + None + + Description + ----------- + define the Weights associed to the criterium used in the optimization. //! if Wi <= 0. + + """ + return _GeomFill.GeomFill_AppSweep_SetCriteriumWeight(self, *args) + + def SetParType(self, *args): + r""" + + Parameters + ---------- + ParType: Approx_ParametrizationType + + Return + ------- + None + + Description + ----------- + Define the type of parametrization used in the approximation. + + """ + return _GeomFill.GeomFill_AppSweep_SetParType(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomFill.delete_GeomFill_AppSweep + +# Register GeomFill_AppSweep in _GeomFill: +_GeomFill.GeomFill_AppSweep_swigregister(GeomFill_AppSweep) +class GeomFill_BSplineCurves(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 + ----------- + Constructs a default BSpline surface framework. + + Parameters + ---------- + C1: Geom_BSplineCurve + C2: Geom_BSplineCurve + C3: Geom_BSplineCurve + C4: Geom_BSplineCurve + Type: GeomFill_FillingStyle + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + C1: Geom_BSplineCurve + C2: Geom_BSplineCurve + C3: Geom_BSplineCurve + Type: GeomFill_FillingStyle + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + C1: Geom_BSplineCurve + C2: Geom_BSplineCurve + Type: GeomFill_FillingStyle + + Return + ------- + None + + Description + ----------- + Constructs a framework for building a BSpline surface from either - the four contiguous BSpline curves, C1, C2, C3 and C4, or - the three contiguous BSpline curves, C1, C2 and C3, or - the two contiguous BSpline curves, C1 and C2. The type of filling style Type to be used is one of: - GeomFill_Stretch - the style with the flattest patch - GeomFill_Coons - a rounded style of patch with less depth than that of Curved - GeomFill_Curved - the style with the most rounded patch.Constructs a framework for building a BSpline surface common to the two BSpline curves, C1 and C2. Exceptions Standard_ConstructionError if the curves are not contiguous. + + """ + _GeomFill.GeomFill_BSplineCurves_swiginit(self, _GeomFill.new_GeomFill_BSplineCurves(*args)) + + def Init(self, *args): + r""" + + Parameters + ---------- + C1: Geom_BSplineCurve + C2: Geom_BSplineCurve + C3: Geom_BSplineCurve + C4: Geom_BSplineCurve + Type: GeomFill_FillingStyle + + Return + ------- + None + + Description + ----------- + if the curves cannot be joined. + + Parameters + ---------- + C1: Geom_BSplineCurve + C2: Geom_BSplineCurve + C3: Geom_BSplineCurve + Type: GeomFill_FillingStyle + + Return + ------- + None + + Description + ----------- + if the curves cannot be joined. + + Parameters + ---------- + C1: Geom_BSplineCurve + C2: Geom_BSplineCurve + Type: GeomFill_FillingStyle + + Return + ------- + None + + Description + ----------- + Initializes or reinitializes this algorithm with two, three, or four curves - C1, C2, C3, and C4 - and Type, one of the following filling styles: - GeomFill_Stretch - the style with the flattest patch - GeomFill_Coons - a rounded style of patch with less depth than that of Curved - GeomFill_Curved - the style with the most rounded patch. Exceptions Standard_ConstructionError if the curves are not contiguous. + + """ + return _GeomFill.GeomFill_BSplineCurves_Init(self, *args) + + def Surface(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the BSpline surface Surface resulting from the computation performed by this algorithm. + + """ + return _GeomFill.GeomFill_BSplineCurves_Surface(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomFill.delete_GeomFill_BSplineCurves + +# Register GeomFill_BSplineCurves in _GeomFill: +_GeomFill.GeomFill_BSplineCurves_swigregister(GeomFill_BSplineCurves) +class GeomFill_BezierCurves(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 + ----------- + Constructs an empty framework for building a Bezier surface from contiguous Bezier curves. You use the Init function to define the boundaries of the surface. + + Parameters + ---------- + C1: Geom_BezierCurve + C2: Geom_BezierCurve + C3: Geom_BezierCurve + C4: Geom_BezierCurve + Type: GeomFill_FillingStyle + + Return + ------- + None + + Description + ----------- + Constructs a framework for building a Bezier surface from the four contiguous Bezier curves, C1, C2, C3 and C4 Raises Standard_ConstructionError if the curves are not contiguous. + + Parameters + ---------- + C1: Geom_BezierCurve + C2: Geom_BezierCurve + C3: Geom_BezierCurve + Type: GeomFill_FillingStyle + + Return + ------- + None + + Description + ----------- + Constructs a framework for building a Bezier surface from the three contiguous Bezier curves, C1, C2 and C3 Raises Standard_ConstructionError if the curves are not contiguous. + + Parameters + ---------- + C1: Geom_BezierCurve + C2: Geom_BezierCurve + Type: GeomFill_FillingStyle + + Return + ------- + None + + Description + ----------- + Constructs a framework for building a Bezier surface from the two contiguous Bezier curves, C1 and C2 Raises Standard_ConstructionError if the curves are not contiguous. + + """ + _GeomFill.GeomFill_BezierCurves_swiginit(self, _GeomFill.new_GeomFill_BezierCurves(*args)) + + def Init(self, *args): + r""" + + Parameters + ---------- + C1: Geom_BezierCurve + C2: Geom_BezierCurve + C3: Geom_BezierCurve + C4: Geom_BezierCurve + Type: GeomFill_FillingStyle + + Return + ------- + None + + Description + ----------- + if the curves cannot be joined. + + Parameters + ---------- + C1: Geom_BezierCurve + C2: Geom_BezierCurve + C3: Geom_BezierCurve + Type: GeomFill_FillingStyle + + Return + ------- + None + + Description + ----------- + if the curves cannot be joined. + + Parameters + ---------- + C1: Geom_BezierCurve + C2: Geom_BezierCurve + Type: GeomFill_FillingStyle + + Return + ------- + None + + Description + ----------- + Initializes or reinitializes this algorithm with two, three, or four curves - C1, C2, C3, and C4 - and Type, one of the following filling styles: - GeomFill_Stretch - the style with the flattest patch - GeomFill_Coons - a rounded style of patch with less depth than that of Curved - GeomFill_Curved - the style with the most rounded patch. Exceptions Standard_ConstructionError if the curves are not contiguous. + + """ + return _GeomFill.GeomFill_BezierCurves_Init(self, *args) + + def Surface(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the Bezier surface resulting from the computation performed by this algorithm. + + """ + return _GeomFill.GeomFill_BezierCurves_Surface(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomFill.delete_GeomFill_BezierCurves + +# Register GeomFill_BezierCurves in _GeomFill: +_GeomFill.GeomFill_BezierCurves_swigregister(GeomFill_BezierCurves) +class GeomFill_Boundary(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 Bounds(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + First: float + Last: float + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_Boundary_Bounds(self, *args) + + def D1(self, *args): + r""" + + Parameters + ---------- + U: float + P: gp_Pnt + V: gp_Vec + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_Boundary_D1(self, *args) + + def D1Norm(self, *args): + r""" + + Parameters + ---------- + U: float + N: gp_Vec + DN: gp_Vec + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_Boundary_D1Norm(self, *args) + + def HasNormals(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_Boundary_HasNormals(self, *args) + + def IsDegenerated(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_Boundary_IsDegenerated(self, *args) + + def Norm(self, *args): + r""" + + Parameters + ---------- + U: float + + Return + ------- + gp_Vec + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_Boundary_Norm(self, *args) + + def Points(self, *args): + r""" + + Parameters + ---------- + PFirst: gp_Pnt + PLast: gp_Pnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_Boundary_Points(self, *args) + + def Reparametrize(self, *args): + r""" + + Parameters + ---------- + First: float + Last: float + HasDF: bool + HasDL: bool + DF: float + DL: float + Rev: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_Boundary_Reparametrize(self, *args) + + def Tol3d(self, *args): + r""" + Return + ------- + float + + Description + ----------- + No available documentation. + + Parameters + ---------- + Tol: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_Boundary_Tol3d(self, *args) + + def Tolang(self, *args): + r""" + Return + ------- + float + + Description + ----------- + No available documentation. + + Parameters + ---------- + Tol: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_Boundary_Tolang(self, *args) + + def Value(self, *args): + r""" + + Parameters + ---------- + U: float + + Return + ------- + gp_Pnt + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_Boundary_Value(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_GeomFill_Boundary_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomFill.delete_GeomFill_Boundary + +# Register GeomFill_Boundary in _GeomFill: +_GeomFill.GeomFill_Boundary_swigregister(GeomFill_Boundary) +class GeomFill_CircularBlendFunc(OCC.Core.Approx.Approx_SweepFunction): + 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: Adaptor3d_Curve + Curve1: Adaptor3d_Curve + Curve2: Adaptor3d_Curve + Radius: float + Polynomial: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + Create a Blend with a constant radius with 2 guide-line. sets the type of fillet surface. The -- default value is Convert_TgtThetaOver2 (classical -- nurbs -- representation of circles). ChFi3d_QuasiAngular -- corresponds to a nurbs representation of circles -- which parameterisation matches the circle one. -- ChFi3d_Polynomial corresponds to a polynomial -- representation of circles. + + """ + _GeomFill.GeomFill_CircularBlendFunc_swiginit(self, _GeomFill.new_GeomFill_CircularBlendFunc(*args)) + + + @staticmethod + def DownCast(t): + return Handle_GeomFill_CircularBlendFunc_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomFill.delete_GeomFill_CircularBlendFunc + +# Register GeomFill_CircularBlendFunc in _GeomFill: +_GeomFill.GeomFill_CircularBlendFunc_swigregister(GeomFill_CircularBlendFunc) +class GeomFill_ConstrainedFilling(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 + ---------- + MaxDeg: int + MaxSeg: int + + Return + ------- + None + + Description + ----------- + Constructs an empty framework for filling a surface from boundaries. The boundaries of the surface will be defined, and the surface will be built by using the function Init. The surface will respect the following constraints: - its degree will not be greater than MaxDeg - the maximum number of segments MaxSeg which BSpline surfaces can have. + + """ + _GeomFill.GeomFill_ConstrainedFilling_swiginit(self, _GeomFill.new_GeomFill_ConstrainedFilling(*args)) + + def Boundary(self, *args): + r""" + + Parameters + ---------- + I: int + + Return + ------- + opencascade::handle + + Description + ----------- + Returns the bound of index i after sort. + + """ + return _GeomFill.GeomFill_ConstrainedFilling_Boundary(self, *args) + + def CheckApprox(self, *args): + r""" + + Parameters + ---------- + I: int + + Return + ------- + None + + Description + ----------- + Computes values and normals along the bound I and compare them to the approx result curves (bound and tgte field) , draw the normals and tangents. + + """ + return _GeomFill.GeomFill_ConstrainedFilling_CheckApprox(self, *args) + + def CheckCoonsAlgPatch(self, *args): + r""" + + Parameters + ---------- + I: int + + Return + ------- + None + + Description + ----------- + Computes the fields of tangents on 30 points along the bound I, these are not the constraint tangents but gives an idea of the coonsAlgPatch regularity. + + """ + return _GeomFill.GeomFill_ConstrainedFilling_CheckCoonsAlgPatch(self, *args) + + def CheckResult(self, *args): + r""" + + Parameters + ---------- + I: int + + Return + ------- + None + + Description + ----------- + Computes values and normals along the bound I on both constraint surface and result surface, draw the normals, and computes the max distance between values and the max angle between normals. + + """ + return _GeomFill.GeomFill_ConstrainedFilling_CheckResult(self, *args) + + def CheckTgteField(self, *args): + r""" + + Parameters + ---------- + I: int + + Return + ------- + None + + Description + ----------- + Computes the fields of tangents and normals on 30 points along the bound I, draw them, and computes the max dot product that must be near than 0. + + """ + return _GeomFill.GeomFill_ConstrainedFilling_CheckTgteField(self, *args) + + def Eval(self, *args): + r""" + + Parameters + ---------- + W: float + Ord: int + + Return + ------- + Result: float + + Description + ----------- + Internal use for Advmath approximation call. + + """ + return _GeomFill.GeomFill_ConstrainedFilling_Eval(self, *args) + + def Init(self, *args): + r""" + + Parameters + ---------- + B1: GeomFill_Boundary + B2: GeomFill_Boundary + B3: GeomFill_Boundary + NoCheck: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + B1: GeomFill_Boundary + B2: GeomFill_Boundary + B3: GeomFill_Boundary + B4: GeomFill_Boundary + NoCheck: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + Constructs a BSpline surface filled from the series of boundaries B1, B2, B3 and, if need be, B4, which serve: - as path constraints - and optionally, as tangency constraints if they are GeomFill_BoundWithSurf curves. The boundaries may be given in any order: they are classified and if necessary, reversed and reparameterized. The surface will also respect the following constraints: - its degree will not be greater than the maximum degree defined at the time of construction of this framework, and - the maximum number of segments MaxSeg which BSpline surfaces can have. + + """ + return _GeomFill.GeomFill_ConstrainedFilling_Init(self, *args) + + def ReBuild(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Computes the new poles of the surface using the new blending functions set by several calls to SetDomain. + + """ + return _GeomFill.GeomFill_ConstrainedFilling_ReBuild(self, *args) + + def SetDomain(self, *args): + r""" + + Parameters + ---------- + l: float + B: GeomFill_BoundWithSurf + + Return + ------- + None + + Description + ----------- + Allows to modify domain on witch the blending function associated to the constrained boundary B will propag the influence of the field of tangency. Can be useful to reduce influence of boundaries on which the Coons compatibility conditions are not respected. l is a relative value of the parametric range of B. Default value for l is 1 (used in Init). Warning: Must be called after Init with a constrained boundary used in the call to Init. + + """ + return _GeomFill.GeomFill_ConstrainedFilling_SetDomain(self, *args) + + def Surface(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the BSpline surface after computation of the fill by this framework. + + """ + return _GeomFill.GeomFill_ConstrainedFilling_Surface(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomFill.delete_GeomFill_ConstrainedFilling + +# Register GeomFill_ConstrainedFilling in _GeomFill: +_GeomFill.GeomFill_ConstrainedFilling_swigregister(GeomFill_ConstrainedFilling) +class GeomFill_CoonsAlgPatch(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 + ---------- + B1: GeomFill_Boundary + B2: GeomFill_Boundary + B3: GeomFill_Boundary + B4: GeomFill_Boundary + + Return + ------- + None + + Description + ----------- + Constructs the algorithmic patch. By Default the constructed blending functions are linear. Warning: No control is done on the bounds. B1/B3 and B2/B4 must be same range and well oriented. + + """ + _GeomFill.GeomFill_CoonsAlgPatch_swiginit(self, _GeomFill.new_GeomFill_CoonsAlgPatch(*args)) + + def Bound(self, *args): + r""" + + Parameters + ---------- + I: int + + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_CoonsAlgPatch_Bound(self, *args) + + def Corner(self, *args): + r""" + + Parameters + ---------- + I: int + + Return + ------- + gp_Pnt + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_CoonsAlgPatch_Corner(self, *args) + + def D1U(self, *args): + r""" + + Parameters + ---------- + U: float + V: float + + Return + ------- + gp_Vec + + Description + ----------- + Computes the d/dU partial derivative on the algorithmic patch at parameters U and V. + + """ + return _GeomFill.GeomFill_CoonsAlgPatch_D1U(self, *args) + + def D1V(self, *args): + r""" + + Parameters + ---------- + U: float + V: float + + Return + ------- + gp_Vec + + Description + ----------- + Computes the d/dV partial derivative on the algorithmic patch at parameters U and V. + + """ + return _GeomFill.GeomFill_CoonsAlgPatch_D1V(self, *args) + + def DUV(self, *args): + r""" + + Parameters + ---------- + U: float + V: float + + Return + ------- + gp_Vec + + Description + ----------- + Computes the d2/dUdV partial derivative on the algorithmic patch made with linear blending functions at parameter U and V. + + """ + return _GeomFill.GeomFill_CoonsAlgPatch_DUV(self, *args) + + def Func(self, *args): + r""" + + Parameters + ---------- + f1: Law_Function + f2: Law_Function + + Return + ------- + None + + Description + ----------- + Give the blending functions. + + Parameters + ---------- + I: int + + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_CoonsAlgPatch_Func(self, *args) + + def SetFunc(self, *args): + r""" + + Parameters + ---------- + f1: Law_Function + f2: Law_Function + + Return + ------- + None + + Description + ----------- + Set the blending functions. + + """ + return _GeomFill.GeomFill_CoonsAlgPatch_SetFunc(self, *args) + + def Value(self, *args): + r""" + + Parameters + ---------- + U: float + V: float + + Return + ------- + gp_Pnt + + Description + ----------- + Computes the value on the algorithmic patch at parameters U and V. + + """ + return _GeomFill.GeomFill_CoonsAlgPatch_Value(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_GeomFill_CoonsAlgPatch_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomFill.delete_GeomFill_CoonsAlgPatch + +# Register GeomFill_CoonsAlgPatch in _GeomFill: +_GeomFill.GeomFill_CoonsAlgPatch_swigregister(GeomFill_CoonsAlgPatch) +class GeomFill_CornerState(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. + + """ + _GeomFill.GeomFill_CornerState_swiginit(self, _GeomFill.new_GeomFill_CornerState(*args)) + + def Constraint(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_CornerState_Constraint(self, *args) + + def DoKill(self, *args): + r""" + + Parameters + ---------- + Scal: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_CornerState_DoKill(self, *args) + + def Gap(self, *args): + r""" + Return + ------- + float + + Description + ----------- + No available documentation. + + Parameters + ---------- + G: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_CornerState_Gap(self, *args) + + def HasConstraint(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_CornerState_HasConstraint(self, *args) + + def IsToKill(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + Scal: float + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_CornerState_IsToKill(self, *args) + + def NorAng(self, *args): + r""" + Return + ------- + float + + Description + ----------- + No available documentation. + + Parameters + ---------- + Ang: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_CornerState_NorAng(self, *args) + + def TgtAng(self, *args): + r""" + Return + ------- + float + + Description + ----------- + No available documentation. + + Parameters + ---------- + Ang: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_CornerState_TgtAng(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomFill.delete_GeomFill_CornerState + +# Register GeomFill_CornerState in _GeomFill: +_GeomFill.GeomFill_CornerState_swigregister(GeomFill_CornerState) +class GeomFill_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""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _GeomFill.GeomFill_Filling_swiginit(self, _GeomFill.new_GeomFill_Filling(*args)) + + def NbUPoles(self, *args): + r""" + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_Filling_NbUPoles(self, *args) + + def NbVPoles(self, *args): + r""" + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_Filling_NbVPoles(self, *args) + + def Poles(self, *args): + r""" + + Parameters + ---------- + Poles: TColgp_Array2OfPnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_Filling_Poles(self, *args) + + def Weights(self, *args): + r""" + + Parameters + ---------- + Weights: TColStd_Array2OfReal + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_Filling_Weights(self, *args) + + def isRational(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_Filling_isRational(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomFill.delete_GeomFill_Filling + +# Register GeomFill_Filling in _GeomFill: +_GeomFill.GeomFill_Filling_swigregister(GeomFill_Filling) +class GeomFill_FunctionDraft(OCC.Core.math.math_FunctionSetWithDerivatives): + 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: Adaptor3d_Surface + C: Adaptor3d_Curve + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _GeomFill.GeomFill_FunctionDraft_swiginit(self, _GeomFill.new_GeomFill_FunctionDraft(*args)) + + def Deriv2T(self, *args): + r""" + + Parameters + ---------- + C: Adaptor3d_Curve + Param: float + W: float + d2N: gp_Vec + teta: float + F: math_Vector + + Return + ------- + bool + + Description + ----------- + returns the values of the T2 derivatives for the parameter Param . + + """ + return _GeomFill.GeomFill_FunctionDraft_Deriv2T(self, *args) + + def Deriv2X(self, *args): + r""" + + Parameters + ---------- + X: math_Vector + T: GeomFill_Tensor + + Return + ------- + bool + + Description + ----------- + returns the values of the X2 derivatives for the parameter Param . + + """ + return _GeomFill.GeomFill_FunctionDraft_Deriv2X(self, *args) + + def DerivT(self, *args): + r""" + + Parameters + ---------- + C: Adaptor3d_Curve + Param: float + W: float + dN: gp_Vec + teta: float + F: math_Vector + + Return + ------- + bool + + Description + ----------- + returns the values of the T derivatives for the parameter Param . + + """ + return _GeomFill.GeomFill_FunctionDraft_DerivT(self, *args) + + def DerivTX(self, *args): + r""" + + Parameters + ---------- + dN: gp_Vec + teta: float + D: math_Matrix + + Return + ------- + bool + + Description + ----------- + returns the values of the TX derivatives for the parameter Param . + + """ + return _GeomFill.GeomFill_FunctionDraft_DerivTX(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomFill.delete_GeomFill_FunctionDraft + +# Register GeomFill_FunctionDraft in _GeomFill: +_GeomFill.GeomFill_FunctionDraft_swigregister(GeomFill_FunctionDraft) +class GeomFill_FunctionGuide(OCC.Core.math.math_FunctionSetWithDerivatives): + 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: GeomFill_SectionLaw + Guide: Adaptor3d_Curve + ParamOnLaw: float (optional, default to 0.0) + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _GeomFill.GeomFill_FunctionGuide_swiginit(self, _GeomFill.new_GeomFill_FunctionGuide(*args)) + + def DerivT(self, *args): + r""" + + Parameters + ---------- + X: math_Vector + DCentre: gp_XYZ + DDir: gp_XYZ + DFDT: math_Vector + + Return + ------- + bool + + Description + ----------- + returns the values of the T derivatives for the parameter Param . + + """ + return _GeomFill.GeomFill_FunctionGuide_DerivT(self, *args) + + def SetParam(self, *args): + r""" + + Parameters + ---------- + Param: float + Centre: gp_Pnt + Dir: gp_XYZ + XDir: gp_XYZ + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_FunctionGuide_SetParam(self, *args) + + __repr__ = _dumps_object + + @methodnotwrapped + def Deriv2T(self): + pass + + __swig_destroy__ = _GeomFill.delete_GeomFill_FunctionGuide + +# Register GeomFill_FunctionGuide in _GeomFill: +_GeomFill.GeomFill_FunctionGuide_swigregister(GeomFill_FunctionGuide) +class GeomFill_Line(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 + ----------- + No available documentation. + + Parameters + ---------- + NbPoints: int + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _GeomFill.GeomFill_Line_swiginit(self, _GeomFill.new_GeomFill_Line(*args)) + + def NbPoints(self, *args): + r""" + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_Line_NbPoints(self, *args) + + def Point(self, *args): + r""" + + Parameters + ---------- + Index: int + + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_Line_Point(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_GeomFill_Line_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomFill.delete_GeomFill_Line + +# Register GeomFill_Line in _GeomFill: +_GeomFill.GeomFill_Line_swigregister(GeomFill_Line) +class GeomFill_LocFunction(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: GeomFill_LocationLaw + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _GeomFill.GeomFill_LocFunction_swiginit(self, _GeomFill.new_GeomFill_LocFunction(*args)) + + def D0(self, *args): + r""" + + Parameters + ---------- + Param: float + First: float + Last: float + + Return + ------- + bool + + Description + ----------- + compute the section for v = param. + + """ + return _GeomFill.GeomFill_LocFunction_D0(self, *args) + + def D1(self, *args): + r""" + + Parameters + ---------- + Param: float + First: float + Last: float + + Return + ------- + bool + + Description + ----------- + compute the first derivative in v direction of the section for v = param. + + """ + return _GeomFill.GeomFill_LocFunction_D1(self, *args) + + def D2(self, *args): + r""" + + Parameters + ---------- + Param: float + First: float + Last: float + + Return + ------- + bool + + Description + ----------- + compute the second derivative in v direction of the section for v = param. + + """ + return _GeomFill.GeomFill_LocFunction_D2(self, *args) + + def DN(self, *args): + r""" + + Parameters + ---------- + Param: float + First: float + Last: float + Order: int + + Return + ------- + Result: float + Ier: int + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_LocFunction_DN(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomFill.delete_GeomFill_LocFunction + +# Register GeomFill_LocFunction in _GeomFill: +_GeomFill.GeomFill_LocFunction_swigregister(GeomFill_LocFunction) +class GeomFill_LocationLaw(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 Copy(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_LocationLaw_Copy(self, *args) + + def D0(self, *args): + r""" + + Parameters + ---------- + Param: float + M: gp_Mat + V: gp_Vec + + Return + ------- + bool + + Description + ----------- + compute Location. + + Parameters + ---------- + Param: float + M: gp_Mat + V: gp_Vec + Poles2d: TColgp_Array1OfPnt2d + + Return + ------- + bool + + Description + ----------- + compute Location and 2d points. + + """ + return _GeomFill.GeomFill_LocationLaw_D0(self, *args) + + def D1(self, *args): + r""" + + Parameters + ---------- + Param: float + M: gp_Mat + V: gp_Vec + DM: gp_Mat + DV: gp_Vec + Poles2d: TColgp_Array1OfPnt2d + DPoles2d: TColgp_Array1OfVec2d + + Return + ------- + bool + + Description + ----------- + compute location 2d points and associated first derivatives. Warning: It used only for C1 or C2 approximation. + + """ + return _GeomFill.GeomFill_LocationLaw_D1(self, *args) + + def D2(self, *args): + r""" + + Parameters + ---------- + Param: float + M: gp_Mat + V: gp_Vec + DM: gp_Mat + DV: gp_Vec + D2M: gp_Mat + D2V: gp_Vec + Poles2d: TColgp_Array1OfPnt2d + DPoles2d: TColgp_Array1OfVec2d + D2Poles2d: TColgp_Array1OfVec2d + + Return + ------- + bool + + Description + ----------- + compute location 2d points and associated first and seconde derivatives. Warning: It used only for C2 approximation. + + """ + return _GeomFill.GeomFill_LocationLaw_D2(self, *args) + + def ErrorStatus(self, *args): + r""" + Return + ------- + GeomFill_PipeError + + Description + ----------- + Give a status to the Law Returns PipeOk (default implementation). + + """ + return _GeomFill.GeomFill_LocationLaw_ErrorStatus(self, *args) + + def GetAverageLaw(self, *args): + r""" + + Parameters + ---------- + AM: gp_Mat + AV: gp_Vec + + Return + ------- + None + + Description + ----------- + Get average value of M(t) and V(t) it is usfull to make fast approximation of rational surfaces. + + """ + return _GeomFill.GeomFill_LocationLaw_GetAverageLaw(self, *args) + + def GetCurve(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_LocationLaw_GetCurve(self, *args) + + def GetDomain(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + First: float + Last: float + + Description + ----------- + Gets the bounds of the function parametric domain. Warning: This domain it is not modified by the SetValue method. + + """ + return _GeomFill.GeomFill_LocationLaw_GetDomain(self, *args) + + def GetInterval(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + First: float + Last: float + + Description + ----------- + Gets the bounds of the parametric interval on the function. + + """ + return _GeomFill.GeomFill_LocationLaw_GetInterval(self, *args) + + def GetMaximalNorm(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Get the maximum Norm of the matrix-location part. It is usful to find an good Tolerance to approx M(t). + + """ + return _GeomFill.GeomFill_LocationLaw_GetMaximalNorm(self, *args) + + def HasFirstRestriction(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Say if the first restriction is defined in this class. If it is true the first element of poles array in D0,D1,D2... Correspond to this restriction. Returns Standard_False (default implementation). + + """ + return _GeomFill.GeomFill_LocationLaw_HasFirstRestriction(self, *args) + + def HasLastRestriction(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Say if the last restriction is defined in this class. If it is true the last element of poles array in D0,D1,D2... Correspond to this restriction. Returns Standard_False (default implementation). + + """ + return _GeomFill.GeomFill_LocationLaw_HasLastRestriction(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 _GeomFill.GeomFill_LocationLaw_Intervals(self, *args) + + def IsRotation(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + Error: float + + Description + ----------- + Say if the Location Law, is a rotation of Location The default implementation is ' returns False '. + + """ + return _GeomFill.GeomFill_LocationLaw_IsRotation(self, *args) + + def IsTranslation(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + Error: float + + Description + ----------- + Say if the Location Law, is an translation of Location The default implementation is ' returns False '. + + """ + return _GeomFill.GeomFill_LocationLaw_IsTranslation(self, *args) + + def Nb2dCurves(self, *args): + r""" + Return + ------- + int + + Description + ----------- + get the number of 2d curves (Restrictions + Traces) to approximate. + + """ + return _GeomFill.GeomFill_LocationLaw_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 _GeomFill.GeomFill_LocationLaw_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 _GeomFill.GeomFill_LocationLaw_Resolution(self, *args) + + def Rotation(self, *args): + r""" + + Parameters + ---------- + Center: gp_Pnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_LocationLaw_Rotation(self, *args) + + def SetCurve(self, *args): + r""" + + Parameters + ---------- + C: Adaptor3d_Curve + + Return + ------- + bool + + Description + ----------- + initialize curve of location law. + + """ + return _GeomFill.GeomFill_LocationLaw_SetCurve(self, *args) + + def SetInterval(self, *args): + r""" + + Parameters + ---------- + First: float + Last: float + + Return + ------- + None + + Description + ----------- + Sets the bounds of the parametric interval on the function This determines the derivatives in these values if the function is not Cn. + + """ + return _GeomFill.GeomFill_LocationLaw_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 The default implementation make nothing. + + """ + return _GeomFill.GeomFill_LocationLaw_SetTolerance(self, *args) + + def SetTrsf(self, *args): + r""" + + Parameters + ---------- + Transfo: gp_Mat + + Return + ------- + None + + Description + ----------- + Set a transformation Matrix like the law M(t) become Mat * M(t). + + """ + return _GeomFill.GeomFill_LocationLaw_SetTrsf(self, *args) + + def TraceNumber(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Give the number of trace (Curves 2d which are not restriction) Returns 0 (default implementation). + + """ + return _GeomFill.GeomFill_LocationLaw_TraceNumber(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_GeomFill_LocationLaw_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomFill.delete_GeomFill_LocationLaw + +# Register GeomFill_LocationLaw in _GeomFill: +_GeomFill.GeomFill_LocationLaw_swigregister(GeomFill_LocationLaw) +class GeomFill_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 + ----------- + Constructs an empty algorithm for building pipes. Use the function Init to initialize it. + + Parameters + ---------- + Path: Geom_Curve + Radius: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + Path: Geom_Curve + FirstSect: Geom_Curve + Option: GeomFill_Trihedron (optional, default to GeomFill_IsCorrectedFrenet) + + Return + ------- + None + + Description + ----------- + Create a pipe with a constant section () and a path () Option can be - GeomFill_IsCorrectedFrenet - GeomFill_IsFrenet - GeomFill_IsConstant. + + Parameters + ---------- + Path: Geom2d_Curve + Support: Geom_Surface + FirstSect: Geom_Curve + + Return + ------- + None + + Description + ----------- + Create a pipe with a constant section () and a path defined by and . + + Parameters + ---------- + Path: Geom_Curve + FirstSect: Geom_Curve + Dir: gp_Dir + + Return + ------- + None + + Description + ----------- + Create a pipe with a constant section () and a path and a fixed binormal direction

. + + Parameters + ---------- + Path: Geom_Curve + FirstSect: Geom_Curve + LastSect: Geom_Curve + + Return + ------- + None + + Description + ----------- + Create a pipe with an evolving section The section evaluate from First to Last Section. + + Parameters + ---------- + Path: Geom_Curve + NSections: TColGeom_SequenceOfCurve + + Return + ------- + None + + Description + ----------- + Create a pipe with N sections The section evaluate from First to Last Section. + + Parameters + ---------- + Path: Geom_Curve + Curve1: Geom_Curve + Curve2: Geom_Curve + Radius: float + + Return + ------- + None + + Description + ----------- + Create a pipe with a constant radius with 2 guide-line. + + Parameters + ---------- + Path: Adaptor3d_Curve + Curve1: Adaptor3d_Curve + Curve2: Adaptor3d_Curve + Radius: float + + Return + ------- + None + + Description + ----------- + Create a pipe with a constant radius with 2 guide-line. + + Parameters + ---------- + Path: Geom_Curve + Guide: Adaptor3d_Curve + FirstSect: Geom_Curve + ByACR: bool + rotat: bool + + Return + ------- + None + + Description + ----------- + Create a pipe with a constant section and with 1 guide-line. Use the function Perform to build the surface. All standard specific cases are detected in order to construct, according to the respective geometric nature of Path and the sections, a planar, cylindrical, conical, spherical or toroidal surface, a surface of linear extrusion or a surface of revolution. In the general case, the result is a BSpline surface (NURBS) built by approximation of a series of sections where: - the number of sections N is chosen automatically by the algorithm according to the respective geometries of Path and the sections. N is greater than or equal to 2; - N points Pi (with i in the range [ 1,N ]) are defined at regular intervals along the curve Path from its first point to its end point. At each point Pi, a coordinate system Ti is computed with Pi as origin, and with the tangential and normal vectors to Path defining two of its coordinate axes. In the case of a pipe with a constant circular section, the first section is a circle of radius Radius centered on the origin of Path and whose 'Z Axis' is aligned along the vector tangential to the origin of Path. In the case of a pipe with a constant section, the first section is the curve FirstSect. In these two cases, the ith section (for values of i greater than 1) is obtained by applying to a copy of this first section the geometric transformation which transforms coordinate system T1 into coordinate system Ti. In the case of an evolving section, N-2 intermediate curves Si are first computed (if N is greater than 2, and with i in the range [ 2,N-1 ]) whose geometry evolves regularly from the curve S1=FirstSect to the curve SN=LastSect. The first section is FirstSect, and the ith section (for values of i greater than 1) is obtained by applying to the curve Si the geometric transformation which transforms coordinate system T1 into coordinate system Ti. + + """ + _GeomFill.GeomFill_Pipe_swiginit(self, _GeomFill.new_GeomFill_Pipe(*args)) + + def ErrorOnSurf(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns the approximation's error. if the Surface is plane, cylinder ... this error can be 0. + + """ + return _GeomFill.GeomFill_Pipe_ErrorOnSurf(self, *args) + + def ExchangeUV(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + The u parametric direction of the surface constructed by this algorithm usually corresponds to the evolution along the path and the v parametric direction corresponds to the evolution along the section(s). However, this rule is not respected when constructing certain specific Geom surfaces (typically cylindrical surfaces, surfaces of revolution, etc.) for which the parameterization is inversed. The ExchangeUV function checks for this, and returns true in all these specific cases. Warning Do not use this function before the surface is built. + + """ + return _GeomFill.GeomFill_Pipe_ExchangeUV(self, *args) + + def GenerateParticularCase(self, *args): + r""" + + Parameters + ---------- + B: bool + + Return + ------- + None + + Description + ----------- + Sets a flag to try to create as many planes, cylinder,... as possible. Default value is . + Return + ------- + bool + + Description + ----------- + Returns the flag. + + """ + return _GeomFill.GeomFill_Pipe_GenerateParticularCase(self, *args) + + def GetStatus(self, *args): + r""" + Return + ------- + GeomFill_PipeError + + Description + ----------- + Returns execution status. + + """ + return _GeomFill.GeomFill_Pipe_GetStatus(self, *args) + + def Init(self, *args): + r""" + + Parameters + ---------- + Path: Geom_Curve + Radius: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + Path: Geom_Curve + FirstSect: Geom_Curve + Option: GeomFill_Trihedron (optional, default to GeomFill_IsCorrectedFrenet) + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + Path: Geom2d_Curve + Support: Geom_Surface + FirstSect: Geom_Curve + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + Path: Geom_Curve + FirstSect: Geom_Curve + Dir: gp_Dir + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + Path: Geom_Curve + FirstSect: Geom_Curve + LastSect: Geom_Curve + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + Path: Geom_Curve + NSections: TColGeom_SequenceOfCurve + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + Path: Adaptor3d_Curve + Curve1: Adaptor3d_Curve + Curve2: Adaptor3d_Curve + Radius: float + + Return + ------- + None + + Description + ----------- + Create a pipe with a constant radius with 2 guide-line. + + Parameters + ---------- + Path: Geom_Curve + Guide: Adaptor3d_Curve + FirstSect: Geom_Curve + ByACR: bool + rotat: bool + + Return + ------- + None + + Description + ----------- + Initializes this pipe algorithm to build the following surface: - a pipe with a constant circular section of radius Radius along the path Path, or - a pipe with constant section FirstSect along the path Path, or - a pipe where the section evolves from FirstSect to LastSect along the path Path. Use the function Perform to build the surface. Note: a description of the resulting surface is given under Constructors. + + """ + return _GeomFill.GeomFill_Pipe_Init(self, *args) + + def IsDone(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns whether approximation was done. + + """ + return _GeomFill.GeomFill_Pipe_IsDone(self, *args) + + def Perform(self, *args): + r""" + + Parameters + ---------- + WithParameters: bool (optional, default to Standard_False) + myPolynomial: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + Builds the pipe defined at the time of initialization of this algorithm. A description of the resulting surface is given under Constructors. If WithParameters (defaulted to false) is set to true, the approximation algorithm (used only in the general case of construction of a BSpline surface) builds the surface with a u parameter corresponding to the one of the path. Exceptions Standard_ConstructionError if a surface cannot be constructed from the data. Warning: It is the old Perform method, the next methode is recommended. + + Parameters + ---------- + Tol: float + Polynomial: bool + Conti: GeomAbs_Shape (optional, default to GeomAbs_C1) + MaxDegree: int (optional, default to 11) + NbMaxSegment: int (optional, default to 30) + + Return + ------- + None + + Description + ----------- + detects the particular cases. And compute the surface. if none particular case is detected we make an approximation with respect of the Tolerance , the continuty , the maximum degree , the maximum number of span and the spine parametrization. If we can't create a surface with the data. + + """ + return _GeomFill.GeomFill_Pipe_Perform(self, *args) + + def Surface(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the surface built by this algorithm. Warning Do not use this function before the surface is built (in this case the function will return a null handle). + + """ + return _GeomFill.GeomFill_Pipe_Surface(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomFill.delete_GeomFill_Pipe + +# Register GeomFill_Pipe in _GeomFill: +_GeomFill.GeomFill_Pipe_swigregister(GeomFill_Pipe) +class GeomFill_PlanFunc(OCC.Core.math.math_FunctionWithDerivative): + 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 + V: gp_Vec + C: Adaptor3d_Curve + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _GeomFill.GeomFill_PlanFunc_swiginit(self, _GeomFill.new_GeomFill_PlanFunc(*args)) + + def D2(self, *args): + r""" + + Parameters + ---------- + X: float + + Return + ------- + F: float + D1: float + D2: float + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_PlanFunc_D2(self, *args) + + def D2E(self, *args): + r""" + + Parameters + ---------- + X: float + DP: gp_Vec + D2P: gp_Vec + DV: gp_Vec + D2V: gp_Vec + + Return + ------- + DFDT: float + D2FDT2: float + D2FDTDX: float + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_PlanFunc_D2E(self, *args) + + def DEDT(self, *args): + r""" + + Parameters + ---------- + X: float + DP: gp_Vec + DV: gp_Vec + + Return + ------- + DF: float + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_PlanFunc_DEDT(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomFill.delete_GeomFill_PlanFunc + +# Register GeomFill_PlanFunc in _GeomFill: +_GeomFill.GeomFill_PlanFunc_swigregister(GeomFill_PlanFunc) +class GeomFill_PolynomialConvertor(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. + + """ + _GeomFill.GeomFill_PolynomialConvertor_swiginit(self, _GeomFill.new_GeomFill_PolynomialConvertor(*args)) + + def Init(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_PolynomialConvertor_Init(self, *args) + + def Initialized(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + say if is Initialized. + + """ + return _GeomFill.GeomFill_PolynomialConvertor_Initialized(self, *args) + + def Section(self, *args): + r""" + + Parameters + ---------- + FirstPnt: gp_Pnt + Center: gp_Pnt + Dir: gp_Vec + Angle: float + Poles: TColgp_Array1OfPnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + FirstPnt: gp_Pnt + DFirstPnt: gp_Vec + Center: gp_Pnt + DCenter: gp_Vec + Dir: gp_Vec + DDir: gp_Vec + Angle: float + DAngle: float + Poles: TColgp_Array1OfPnt + DPoles: TColgp_Array1OfVec + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + FirstPnt: gp_Pnt + DFirstPnt: gp_Vec + D2FirstPnt: gp_Vec + Center: gp_Pnt + DCenter: gp_Vec + D2Center: gp_Vec + Dir: gp_Vec + DDir: gp_Vec + D2Dir: gp_Vec + Angle: float + DAngle: float + D2Angle: float + Poles: TColgp_Array1OfPnt + DPoles: TColgp_Array1OfVec + D2Poles: TColgp_Array1OfVec + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_PolynomialConvertor_Section(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomFill.delete_GeomFill_PolynomialConvertor + +# Register GeomFill_PolynomialConvertor in _GeomFill: +_GeomFill.GeomFill_PolynomialConvertor_swigregister(GeomFill_PolynomialConvertor) +class GeomFill_Profiler(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. + + """ + _GeomFill.GeomFill_Profiler_swiginit(self, _GeomFill.new_GeomFill_Profiler(*args)) + + def AddCurve(self, *args): + r""" + + Parameters + ---------- + Curve: Geom_Curve + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_Profiler_AddCurve(self, *args) + + def Curve(self, *args): + r""" + + Parameters + ---------- + Index: int + + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_Profiler_Curve(self, *args) + + def Degree(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Raises if not yet perform. + + """ + return _GeomFill.GeomFill_Profiler_Degree(self, *args) + + def IsPeriodic(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_Profiler_IsPeriodic(self, *args) + + def KnotsAndMults(self, *args): + r""" + + Parameters + ---------- + Knots: TColStd_Array1OfReal + Mults: TColStd_Array1OfInteger + + Return + ------- + None + + Description + ----------- + Raises if not yet perform Raises if the lengths of and are not equal to NbKnots(). + + """ + return _GeomFill.GeomFill_Profiler_KnotsAndMults(self, *args) + + def NbKnots(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Raises if not yet perform. + + """ + return _GeomFill.GeomFill_Profiler_NbKnots(self, *args) + + def NbPoles(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Raises if not yet perform. + + """ + return _GeomFill.GeomFill_Profiler_NbPoles(self, *args) + + def Perform(self, *args): + r""" + + Parameters + ---------- + PTol: float + + Return + ------- + None + + Description + ----------- + Converts all curves to BSplineCurves. Set them to the common profile. is used to compare 2 knots. + + """ + return _GeomFill.GeomFill_Profiler_Perform(self, *args) + + def Poles(self, *args): + r""" + + Parameters + ---------- + Index: int + Poles: TColgp_Array1OfPnt + + Return + ------- + None + + Description + ----------- + returns in the poles of the BSplineCurve from index adjusting to the current profile. Raises if not yet perform Raises if not in the range [1,NbCurves] if the length of is not equal to NbPoles(). + + """ + return _GeomFill.GeomFill_Profiler_Poles(self, *args) + + def Weights(self, *args): + r""" + + Parameters + ---------- + Index: int + Weights: TColStd_Array1OfReal + + Return + ------- + None + + Description + ----------- + returns in the weights of the BSplineCurve from index adjusting to the current profile. Raises if not yet perform Raises if not in the range [1,NbCurves] or if the length of is not equal to NbPoles(). + + """ + return _GeomFill.GeomFill_Profiler_Weights(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomFill.delete_GeomFill_Profiler + +# Register GeomFill_Profiler in _GeomFill: +_GeomFill.GeomFill_Profiler_swigregister(GeomFill_Profiler) +class GeomFill_QuasiAngularConvertor(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. + + """ + _GeomFill.GeomFill_QuasiAngularConvertor_swiginit(self, _GeomFill.new_GeomFill_QuasiAngularConvertor(*args)) + + def Init(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_QuasiAngularConvertor_Init(self, *args) + + def Initialized(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + say if is Initialized. + + """ + return _GeomFill.GeomFill_QuasiAngularConvertor_Initialized(self, *args) + + def Section(self, *args): + r""" + + Parameters + ---------- + FirstPnt: gp_Pnt + Center: gp_Pnt + Dir: gp_Vec + Angle: float + Poles: TColgp_Array1OfPnt + Weights: TColStd_Array1OfReal + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + FirstPnt: gp_Pnt + DFirstPnt: gp_Vec + Center: gp_Pnt + DCenter: gp_Vec + Dir: gp_Vec + DDir: gp_Vec + Angle: float + DAngle: float + Poles: TColgp_Array1OfPnt + DPoles: TColgp_Array1OfVec + Weights: TColStd_Array1OfReal + DWeights: TColStd_Array1OfReal + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + FirstPnt: gp_Pnt + DFirstPnt: gp_Vec + D2FirstPnt: gp_Vec + Center: gp_Pnt + DCenter: gp_Vec + D2Center: gp_Vec + Dir: gp_Vec + DDir: gp_Vec + D2Dir: gp_Vec + Angle: float + DAngle: float + D2Angle: float + Poles: TColgp_Array1OfPnt + DPoles: TColgp_Array1OfVec + D2Poles: TColgp_Array1OfVec + Weights: TColStd_Array1OfReal + DWeights: TColStd_Array1OfReal + D2Weights: TColStd_Array1OfReal + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_QuasiAngularConvertor_Section(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomFill.delete_GeomFill_QuasiAngularConvertor + +# Register GeomFill_QuasiAngularConvertor in _GeomFill: +_GeomFill.GeomFill_QuasiAngularConvertor_swigregister(GeomFill_QuasiAngularConvertor) +class GeomFill_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 BSplineSurface(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + give if possible an bspline Surface, like iso-v are the section. If it is not possible this methode have to get an Null Surface. It is the default implementation. + + """ + return _GeomFill.GeomFill_SectionLaw_BSplineSurface(self, *args) + + 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 _GeomFill.GeomFill_SectionLaw_BarycentreOfSurf(self, *args) + + def CirclSection(self, *args): + r""" + + Parameters + ---------- + Param: float + + Return + ------- + opencascade::handle + + Description + ----------- + Return the circle section at parameter , if a IsConicalLaw. + + """ + return _GeomFill.GeomFill_SectionLaw_CirclSection(self, *args) + + def ConstantSection(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Return a copy of the constant Section, if me IsConstant. + + """ + return _GeomFill.GeomFill_SectionLaw_ConstantSection(self, *args) + + def D0(self, *args): + r""" + + Parameters + ---------- + Param: float + Poles: TColgp_Array1OfPnt + Weigths: TColStd_Array1OfReal + + Return + ------- + bool + + Description + ----------- + compute the section for v = param. + + """ + return _GeomFill.GeomFill_SectionLaw_D0(self, *args) + + def D1(self, *args): + r""" + + Parameters + ---------- + Param: float + Poles: TColgp_Array1OfPnt + DPoles: TColgp_Array1OfVec + 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 _GeomFill.GeomFill_SectionLaw_D1(self, *args) + + def D2(self, *args): + r""" + + Parameters + ---------- + Param: float + Poles: TColgp_Array1OfPnt + DPoles: TColgp_Array1OfVec + D2Poles: TColgp_Array1OfVec + 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 _GeomFill.GeomFill_SectionLaw_D2(self, *args) + + def GetDomain(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + First: float + Last: float + + Description + ----------- + Gets the bounds of the function parametric domain. Warning: This domain it is not modified by the SetValue method. + + """ + return _GeomFill.GeomFill_SectionLaw_GetDomain(self, *args) + + def GetInterval(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + First: float + Last: float + + Description + ----------- + Gets the bounds of the parametric interval on the function. + + """ + return _GeomFill.GeomFill_SectionLaw_GetInterval(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 _GeomFill.GeomFill_SectionLaw_GetMinimalWeight(self, *args) + + def GetTolerance(self, *args): + r""" + + Parameters + ---------- + BoundTol: float + SurfTol: float + AngleTol: float + Tol3d: TColStd_Array1OfReal + + Return + ------- + None + + Description + ----------- + Returns the tolerances associated at each poles 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 _GeomFill.GeomFill_SectionLaw_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 _GeomFill.GeomFill_SectionLaw_Intervals(self, *args) + + def IsConicalLaw(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + Error: float + + Description + ----------- + Returns True if all section are circle, with same plane,same center and linear radius evolution Return False by Default. + + """ + return _GeomFill.GeomFill_SectionLaw_IsConicalLaw(self, *args) + + def IsConstant(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + Error: float + + Description + ----------- + Say if all sections are equals. + + """ + return _GeomFill.GeomFill_SectionLaw_IsConstant(self, *args) + + def IsRational(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns if the sections are rational or not. + + """ + return _GeomFill.GeomFill_SectionLaw_IsRational(self, *args) + + def IsUPeriodic(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns if the sections are periodic or not. + + """ + return _GeomFill.GeomFill_SectionLaw_IsUPeriodic(self, *args) + + def IsVPeriodic(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns if law is periodic or not. + + """ + return _GeomFill.GeomFill_SectionLaw_IsVPeriodic(self, *args) + + def Knots(self, *args): + r""" + + Parameters + ---------- + TKnots: TColStd_Array1OfReal + + Return + ------- + None + + Description + ----------- + get the Knots of the section. + + """ + return _GeomFill.GeomFill_SectionLaw_Knots(self, *args) + + def MaximalSection(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns the length of the greater section. This information is useful to G1's control. Warning: With an little value, approximation can be slower. + + """ + return _GeomFill.GeomFill_SectionLaw_MaximalSection(self, *args) + + def Mults(self, *args): + r""" + + Parameters + ---------- + TMults: TColStd_Array1OfInteger + + Return + ------- + None + + Description + ----------- + get the Multplicities of the section. + + """ + return _GeomFill.GeomFill_SectionLaw_Mults(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 _GeomFill.GeomFill_SectionLaw_NbIntervals(self, *args) + + def SectionShape(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + NbPoles: int + NbKnots: int + Degree: int + + Description + ----------- + get the format of an section. + + """ + return _GeomFill.GeomFill_SectionLaw_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 function This determines the derivatives in these values if the function is not Cn. + + """ + return _GeomFill.GeomFill_SectionLaw_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 The default implementation make nothing. + + """ + return _GeomFill.GeomFill_SectionLaw_SetTolerance(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_GeomFill_SectionLaw_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomFill.delete_GeomFill_SectionLaw + +# Register GeomFill_SectionLaw in _GeomFill: +_GeomFill.GeomFill_SectionLaw_swigregister(GeomFill_SectionLaw) +class GeomFill_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 + ---------- + L: GeomFill_LocationLaw + Section: Geom_Geometry + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _GeomFill.GeomFill_SectionPlacement_swiginit(self, _GeomFill.new_GeomFill_SectionPlacement(*args)) + + def Angle(self, *args): + r""" + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_SectionPlacement_Angle(self, *args) + + def Distance(self, *args): + r""" + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_SectionPlacement_Distance(self, *args) + + def IsDone(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_SectionPlacement_IsDone(self, *args) + + def ModifiedSection(self, *args): + r""" + + Parameters + ---------- + WithTranslation: bool + + Return + ------- + opencascade::handle + + Description + ----------- + Compute the Section, in the coordinate system given by the Location Law. To have the Normal to section equal to the Location Law Normal. If contact between
and is forced. + + """ + return _GeomFill.GeomFill_SectionPlacement_ModifiedSection(self, *args) + + def ParameterOnPath(self, *args): + r""" + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_SectionPlacement_ParameterOnPath(self, *args) + + def ParameterOnSection(self, *args): + r""" + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_SectionPlacement_ParameterOnSection(self, *args) + + def Perform(self, *args): + r""" + + Parameters + ---------- + Tol: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + Path: Adaptor3d_Curve + Tol: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + ParamOnPath: float + Tol: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_SectionPlacement_Perform(self, *args) + + def Section(self, *args): + r""" + + Parameters + ---------- + WithTranslation: bool + + Return + ------- + opencascade::handle + + Description + ----------- + Compute the Section, in the coordinate system given by the Location Law. If contact between
and is forced. + + """ + return _GeomFill.GeomFill_SectionPlacement_Section(self, *args) + + def SetLocation(self, *args): + r""" + + Parameters + ---------- + L: GeomFill_LocationLaw + + Return + ------- + None + + Description + ----------- + To change the section Law. + + """ + return _GeomFill.GeomFill_SectionPlacement_SetLocation(self, *args) + + def Transformation(self, *args): + r""" + + Parameters + ---------- + WithTranslation: bool + WithCorrection: bool (optional, default to Standard_False) + + Return + ------- + gp_Trsf + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_SectionPlacement_Transformation(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomFill.delete_GeomFill_SectionPlacement + +# Register GeomFill_SectionPlacement in _GeomFill: +_GeomFill.GeomFill_SectionPlacement_swigregister(GeomFill_SectionPlacement) +class GeomFill_SnglrFunc(OCC.Core.Adaptor3d.Adaptor3d_Curve): + 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 + ---------- + HC: Adaptor3d_Curve + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _GeomFill.GeomFill_SnglrFunc_swiginit(self, _GeomFill.new_GeomFill_SnglrFunc(*args)) + + def SetRatio(self, *args): + r""" + + Parameters + ---------- + Ratio: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_SnglrFunc_SetRatio(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_GeomFill_SnglrFunc_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomFill.delete_GeomFill_SnglrFunc + +# Register GeomFill_SnglrFunc in _GeomFill: +_GeomFill.GeomFill_SnglrFunc_swigregister(GeomFill_SnglrFunc) +class GeomFill_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 + ---------- + Location: GeomFill_LocationLaw + WithKpart: bool (optional, default to Standard_True) + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _GeomFill.GeomFill_Sweep_swiginit(self, _GeomFill.new_GeomFill_Sweep(*args)) + + def Build(self, *args): + r""" + + Parameters + ---------- + Section: GeomFill_SectionLaw + Methode: GeomFill_ApproxStyle (optional, default to GeomFill_Location) + Continuity: GeomAbs_Shape (optional, default to GeomAbs_C2) + Degmax: int (optional, default to 10) + Segmax: int (optional, default to 30) + + Return + ------- + None + + Description + ----------- + Build the Sweeep Surface ApproxStyle defines Approximation Strategy - GeomFill_Section: The composed Function: Location X Section is directly approximated. - GeomFill_Location: The location law is approximated, and the SweepSurface is build algebric 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 //! raise If Domain are infinite or Profile not set. + + """ + return _GeomFill.GeomFill_Sweep_Build(self, *args) + + def ErrorOnRestriction(self, *args): + r""" + + Parameters + ---------- + IsFirst: bool + + Return + ------- + UError: float + VError: float + + Description + ----------- + Gets the Approximation error. + + """ + return _GeomFill.GeomFill_Sweep_ErrorOnRestriction(self, *args) + + def ErrorOnSurface(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Gets the Approximation error. + + """ + return _GeomFill.GeomFill_Sweep_ErrorOnSurface(self, *args) + + def ErrorOnTrace(self, *args): + r""" + + Parameters + ---------- + IndexOfTrace: int + + Return + ------- + UError: float + VError: float + + Description + ----------- + Gets the Approximation error. + + """ + return _GeomFill.GeomFill_Sweep_ErrorOnTrace(self, *args) + + def ExchangeUV(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + returns true if sections are U-Iso This can be produce in some cases when is True. + + """ + return _GeomFill.GeomFill_Sweep_ExchangeUV(self, *args) + + def IsDone(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Tells if the Surface is Buildt. + + """ + return _GeomFill.GeomFill_Sweep_IsDone(self, *args) + + def NumberOfTrace(self, *args): + r""" + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_Sweep_NumberOfTrace(self, *args) + + def Restriction(self, *args): + r""" + + Parameters + ---------- + IsFirst: bool + + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_Sweep_Restriction(self, *args) + + def SetDomain(self, *args): + r""" + + Parameters + ---------- + First: float + Last: float + SectionFirst: float + SectionLast: float + + Return + ------- + None + + Description + ----------- + Set parametric information [, ] Sets the parametric bound of the sweeping surface to build. , gives corresponding bounds parameter on the section law of and //! V-Iso on Sweeping Surface S(u,v) is defined by Location(v) and Section(w) where w = SectionFirst + (v - First) / (Last-First) * (SectionLast - SectionFirst) //! By default w = v, and First and Last are given by First and Last parameter stored in LocationLaw. + + """ + return _GeomFill.GeomFill_Sweep_SetDomain(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 _GeomFill.GeomFill_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.0) + + 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 method define in 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 _GeomFill.GeomFill_Sweep_SetTolerance(self, *args) + + def Surface(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_Sweep_Surface(self, *args) + + def Trace(self, *args): + r""" + + Parameters + ---------- + IndexOfTrace: int + + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_Sweep_Trace(self, *args) + + def UReversed(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + returns true if Parametrisation sens in U is inverse of parametrisation sens of section (or of path if ExchangeUV). + + """ + return _GeomFill.GeomFill_Sweep_UReversed(self, *args) + + def VReversed(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + returns true if Parametrisation sens in V is inverse of parametrisation sens of path (or of section if ExchangeUV). + + """ + return _GeomFill.GeomFill_Sweep_VReversed(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomFill.delete_GeomFill_Sweep + +# Register GeomFill_Sweep in _GeomFill: +_GeomFill.GeomFill_Sweep_swigregister(GeomFill_Sweep) +class GeomFill_SweepFunction(OCC.Core.Approx.Approx_SweepFunction): + 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: GeomFill_SectionLaw + Location: GeomFill_LocationLaw + FirstParameter: float + FirstParameterOnS: float + RatioParameterOnS: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _GeomFill.GeomFill_SweepFunction_swiginit(self, _GeomFill.new_GeomFill_SweepFunction(*args)) + + + @staticmethod + def DownCast(t): + return Handle_GeomFill_SweepFunction_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomFill.delete_GeomFill_SweepFunction + +# Register GeomFill_SweepFunction in _GeomFill: +_GeomFill.GeomFill_SweepFunction_swigregister(GeomFill_SweepFunction) +class GeomFill_Tensor(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 + ---------- + NbRow: int + NbCol: int + NbMat: int + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _GeomFill.GeomFill_Tensor_swiginit(self, _GeomFill.new_GeomFill_Tensor(*args)) + + def GetChangeValue(self, Row, Col, Mat): + r"""GetChangeValue(GeomFill_Tensor self, Standard_Integer const Row, Standard_Integer const Col, Standard_Integer const Mat) -> Standard_Real""" + return _GeomFill.GeomFill_Tensor_GetChangeValue(self, Row, Col, Mat) + + def SetChangeValue(self, Row, Col, Mat, value): + r"""SetChangeValue(GeomFill_Tensor self, Standard_Integer const Row, Standard_Integer const Col, Standard_Integer const Mat, Standard_Real value)""" + return _GeomFill.GeomFill_Tensor_SetChangeValue(self, Row, Col, Mat, value) + + def Init(self, *args): + r""" + + Parameters + ---------- + InitialValue: float + + Return + ------- + None + + Description + ----------- + Initialize all the elements of a Tensor to InitialValue. + + """ + return _GeomFill.GeomFill_Tensor_Init(self, *args) + + def Multiply(self, *args): + r""" + + Parameters + ---------- + Right: math_Vector + Product: math_Matrix + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_Tensor_Multiply(self, *args) + + def Value(self, *args): + r""" + + Parameters + ---------- + Row: int + Col: int + Mat: int + + Return + ------- + float + + Description + ----------- + accesses (in read or write mode) the value of index , and of a Tensor. An exception is raised if , or are not in the correct range. + + """ + return _GeomFill.GeomFill_Tensor_Value(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomFill.delete_GeomFill_Tensor + +# Register GeomFill_Tensor in _GeomFill: +_GeomFill.GeomFill_Tensor_swigregister(GeomFill_Tensor) +class GeomFill_TgtField(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 D1(self, *args): + r""" + + Parameters + ---------- + W: float + + Return + ------- + gp_Vec + + Description + ----------- + Computes the derivative of the field of tangency at parameter W. + + Parameters + ---------- + W: float + V: gp_Vec + DV: gp_Vec + + Return + ------- + None + + Description + ----------- + Computes the value and the derivative of the field of tangency at parameter W. + + """ + return _GeomFill.GeomFill_TgtField_D1(self, *args) + + def IsScalable(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_TgtField_IsScalable(self, *args) + + def Scale(self, *args): + r""" + + Parameters + ---------- + Func: Law_BSpline + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_TgtField_Scale(self, *args) + + def Value(self, *args): + r""" + + Parameters + ---------- + W: float + + Return + ------- + gp_Vec + + Description + ----------- + Computes the value of the field of tangency at parameter W. + + """ + return _GeomFill.GeomFill_TgtField_Value(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_GeomFill_TgtField_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomFill.delete_GeomFill_TgtField + +# Register GeomFill_TgtField in _GeomFill: +_GeomFill.GeomFill_TgtField_swigregister(GeomFill_TgtField) +class GeomFill_TrihedronLaw(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 Copy(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_TrihedronLaw_Copy(self, *args) + + def D0(self, *args): + r""" + + Parameters + ---------- + Param: float + Tangent: gp_Vec + Normal: gp_Vec + BiNormal: gp_Vec + + Return + ------- + bool + + Description + ----------- + compute Triedrhon on curve at parameter . + + """ + return _GeomFill.GeomFill_TrihedronLaw_D0(self, *args) + + def D1(self, *args): + r""" + + Parameters + ---------- + Param: float + Tangent: gp_Vec + DTangent: gp_Vec + Normal: gp_Vec + DNormal: gp_Vec + BiNormal: gp_Vec + DBiNormal: gp_Vec + + Return + ------- + bool + + Description + ----------- + compute Triedrhon and derivative Trihedron on curve at parameter Warning: It used only for C1 or C2 approximation. + + """ + return _GeomFill.GeomFill_TrihedronLaw_D1(self, *args) + + def D2(self, *args): + r""" + + Parameters + ---------- + Param: float + Tangent: gp_Vec + DTangent: gp_Vec + D2Tangent: gp_Vec + Normal: gp_Vec + DNormal: gp_Vec + D2Normal: gp_Vec + BiNormal: gp_Vec + DBiNormal: gp_Vec + D2BiNormal: gp_Vec + + Return + ------- + bool + + Description + ----------- + compute Trihedron on curve first and seconde derivatives. Warning: It used only for C2 approximation. + + """ + return _GeomFill.GeomFill_TrihedronLaw_D2(self, *args) + + def ErrorStatus(self, *args): + r""" + Return + ------- + GeomFill_PipeError + + Description + ----------- + Give a status to the Law Returns PipeOk (default implementation). + + """ + return _GeomFill.GeomFill_TrihedronLaw_ErrorStatus(self, *args) + + def GetAverageLaw(self, *args): + r""" + + Parameters + ---------- + ATangent: gp_Vec + ANormal: gp_Vec + ABiNormal: gp_Vec + + Return + ------- + None + + Description + ----------- + Get average value of M(t) and V(t) it is usfull to make fast approximation of rational surfaces. + + """ + return _GeomFill.GeomFill_TrihedronLaw_GetAverageLaw(self, *args) + + def GetInterval(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + First: float + Last: float + + Description + ----------- + Gets the bounds of the parametric interval on the function. + + """ + return _GeomFill.GeomFill_TrihedronLaw_GetInterval(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 _GeomFill.GeomFill_TrihedronLaw_Intervals(self, *args) + + def IsConstant(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Say if the law is Constant. + + """ + return _GeomFill.GeomFill_TrihedronLaw_IsConstant(self, *args) + + def IsOnlyBy3dCurve(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Say if the law is defined, only by the 3d Geometry of the set Curve Return False by Default. + + """ + return _GeomFill.GeomFill_TrihedronLaw_IsOnlyBy3dCurve(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 _GeomFill.GeomFill_TrihedronLaw_NbIntervals(self, *args) + + def SetCurve(self, *args): + r""" + + Parameters + ---------- + C: Adaptor3d_Curve + + Return + ------- + bool + + Description + ----------- + initialize curve of trihedron law + Return: Standard_True. + + """ + return _GeomFill.GeomFill_TrihedronLaw_SetCurve(self, *args) + + def SetInterval(self, *args): + r""" + + Parameters + ---------- + First: float + Last: float + + Return + ------- + None + + Description + ----------- + Sets the bounds of the parametric interval on the function This determines the derivatives in these values if the function is not Cn. + + """ + return _GeomFill.GeomFill_TrihedronLaw_SetInterval(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_GeomFill_TrihedronLaw_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomFill.delete_GeomFill_TrihedronLaw + +# Register GeomFill_TrihedronLaw in _GeomFill: +_GeomFill.GeomFill_TrihedronLaw_swigregister(GeomFill_TrihedronLaw) +class GeomFill_BoundWithSurf(GeomFill_Boundary): + 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 + ---------- + CurveOnSurf: Adaptor3d_CurveOnSurface + Tol3d: float + Tolang: float + + Return + ------- + None + + Description + ----------- + Constructs a boundary object defined by the 3d curve CurveOnSurf. The surface to be filled along this boundary will be in the tolerance range defined by Tol3d. What's more, at each point of CurveOnSurf, the angle between the normal to the surface to be filled along this boundary, and the normal to the surface on which CurveOnSurf lies, must not be greater than TolAng. This object is to be used as a boundary for a GeomFill_ConstrainedFilling framework. Warning CurveOnSurf is an adapted curve, that is, an object which is an interface between: - the services provided by a curve lying on a surface from the package Geom - and those required of the curve by the computation algorithm which uses it. The adapted curve is created in the following way: opencascade::handle mySurface = ... ; opencascade::handle myParamCurve = ... ; // where myParamCurve is a 2D curve in the parametric space of the surface mySurface opencascade::handle Surface = new GeomAdaptor_Surface(mySurface); opencascade::handle ParamCurve = new Geom2dAdaptor_Curve(myParamCurve); CurveOnSurf = Adaptor3d_CurveOnSurface(ParamCurve,Surface); The boundary is then constructed with the CurveOnSurf object: Standard_Real Tol = ... ; Standard_Real TolAng = ... ; myBoundary = GeomFill_BoundWithSurf ( CurveOnSurf, Tol, TolAng );. + + """ + _GeomFill.GeomFill_BoundWithSurf_swiginit(self, _GeomFill.new_GeomFill_BoundWithSurf(*args)) + + + @staticmethod + def DownCast(t): + return Handle_GeomFill_BoundWithSurf_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomFill.delete_GeomFill_BoundWithSurf + +# Register GeomFill_BoundWithSurf in _GeomFill: +_GeomFill.GeomFill_BoundWithSurf_swigregister(GeomFill_BoundWithSurf) +class GeomFill_ConstantBiNormal(GeomFill_TrihedronLaw): + 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 + ---------- + BiNormal: gp_Dir + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _GeomFill.GeomFill_ConstantBiNormal_swiginit(self, _GeomFill.new_GeomFill_ConstantBiNormal(*args)) + + + @staticmethod + def DownCast(t): + return Handle_GeomFill_ConstantBiNormal_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomFill.delete_GeomFill_ConstantBiNormal + +# Register GeomFill_ConstantBiNormal in _GeomFill: +_GeomFill.GeomFill_ConstantBiNormal_swigregister(GeomFill_ConstantBiNormal) +class GeomFill_Coons(GeomFill_Filling): + 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 + ---------- + P1: TColgp_Array1OfPnt + P2: TColgp_Array1OfPnt + P3: TColgp_Array1OfPnt + P4: TColgp_Array1OfPnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + P1: TColgp_Array1OfPnt + P2: TColgp_Array1OfPnt + P3: TColgp_Array1OfPnt + P4: TColgp_Array1OfPnt + W1: TColStd_Array1OfReal + W2: TColStd_Array1OfReal + W3: TColStd_Array1OfReal + W4: TColStd_Array1OfReal + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _GeomFill.GeomFill_Coons_swiginit(self, _GeomFill.new_GeomFill_Coons(*args)) + + def Init(self, *args): + r""" + + Parameters + ---------- + P1: TColgp_Array1OfPnt + P2: TColgp_Array1OfPnt + P3: TColgp_Array1OfPnt + P4: TColgp_Array1OfPnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + P1: TColgp_Array1OfPnt + P2: TColgp_Array1OfPnt + P3: TColgp_Array1OfPnt + P4: TColgp_Array1OfPnt + W1: TColStd_Array1OfReal + W2: TColStd_Array1OfReal + W3: TColStd_Array1OfReal + W4: TColStd_Array1OfReal + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_Coons_Init(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomFill.delete_GeomFill_Coons + +# Register GeomFill_Coons in _GeomFill: +_GeomFill.GeomFill_Coons_swigregister(GeomFill_Coons) +class GeomFill_CorrectedFrenet(GeomFill_TrihedronLaw): + 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 + ---------- + ForEvaluation: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _GeomFill.GeomFill_CorrectedFrenet_swiginit(self, _GeomFill.new_GeomFill_CorrectedFrenet(*args)) + + def EvaluateBestMode(self, *args): + r""" + Return + ------- + GeomFill_Trihedron + + Description + ----------- + Tries to define the best trihedron mode for the curve. It can be: - Frenet - CorrectedFrenet - DiscreteTrihedron Warning: the CorrectedFrenet must be constructed with option ForEvaluation = True, the curve must be set by method SetCurve. + + """ + return _GeomFill.GeomFill_CorrectedFrenet_EvaluateBestMode(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_GeomFill_CorrectedFrenet_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomFill.delete_GeomFill_CorrectedFrenet + +# Register GeomFill_CorrectedFrenet in _GeomFill: +_GeomFill.GeomFill_CorrectedFrenet_swigregister(GeomFill_CorrectedFrenet) +class GeomFill_CurveAndTrihedron(GeomFill_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 + ---------- + Trihedron: GeomFill_TrihedronLaw + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _GeomFill.GeomFill_CurveAndTrihedron_swiginit(self, _GeomFill.new_GeomFill_CurveAndTrihedron(*args)) + + def D0(self, *args): + r""" + + Parameters + ---------- + Param: float + M: gp_Mat + V: gp_Vec + + Return + ------- + bool + + Description + ----------- + compute Location and 2d points. + + Parameters + ---------- + Param: float + M: gp_Mat + V: gp_Vec + Poles2d: TColgp_Array1OfPnt2d + + Return + ------- + bool + + Description + ----------- + compute Location and 2d points. + + """ + return _GeomFill.GeomFill_CurveAndTrihedron_D0(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_GeomFill_CurveAndTrihedron_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomFill.delete_GeomFill_CurveAndTrihedron + +# Register GeomFill_CurveAndTrihedron in _GeomFill: +_GeomFill.GeomFill_CurveAndTrihedron_swigregister(GeomFill_CurveAndTrihedron) +class GeomFill_Curved(GeomFill_Filling): + 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 + ---------- + P1: TColgp_Array1OfPnt + P2: TColgp_Array1OfPnt + P3: TColgp_Array1OfPnt + P4: TColgp_Array1OfPnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + P1: TColgp_Array1OfPnt + P2: TColgp_Array1OfPnt + P3: TColgp_Array1OfPnt + P4: TColgp_Array1OfPnt + W1: TColStd_Array1OfReal + W2: TColStd_Array1OfReal + W3: TColStd_Array1OfReal + W4: TColStd_Array1OfReal + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + P1: TColgp_Array1OfPnt + P2: TColgp_Array1OfPnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + P1: TColgp_Array1OfPnt + P2: TColgp_Array1OfPnt + W1: TColStd_Array1OfReal + W2: TColStd_Array1OfReal + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _GeomFill.GeomFill_Curved_swiginit(self, _GeomFill.new_GeomFill_Curved(*args)) + + def Init(self, *args): + r""" + + Parameters + ---------- + P1: TColgp_Array1OfPnt + P2: TColgp_Array1OfPnt + P3: TColgp_Array1OfPnt + P4: TColgp_Array1OfPnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + P1: TColgp_Array1OfPnt + P2: TColgp_Array1OfPnt + P3: TColgp_Array1OfPnt + P4: TColgp_Array1OfPnt + W1: TColStd_Array1OfReal + W2: TColStd_Array1OfReal + W3: TColStd_Array1OfReal + W4: TColStd_Array1OfReal + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + P1: TColgp_Array1OfPnt + P2: TColgp_Array1OfPnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + P1: TColgp_Array1OfPnt + P2: TColgp_Array1OfPnt + W1: TColStd_Array1OfReal + W2: TColStd_Array1OfReal + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_Curved_Init(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomFill.delete_GeomFill_Curved + +# Register GeomFill_Curved in _GeomFill: +_GeomFill.GeomFill_Curved_swigregister(GeomFill_Curved) +class GeomFill_Darboux(GeomFill_TrihedronLaw): + 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. + + """ + _GeomFill.GeomFill_Darboux_swiginit(self, _GeomFill.new_GeomFill_Darboux(*args)) + + + @staticmethod + def DownCast(t): + return Handle_GeomFill_Darboux_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomFill.delete_GeomFill_Darboux + +# Register GeomFill_Darboux in _GeomFill: +_GeomFill.GeomFill_Darboux_swigregister(GeomFill_Darboux) +class GeomFill_DegeneratedBound(GeomFill_Boundary): + 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 + ---------- + Point: gp_Pnt + First: float + Last: float + Tol3d: float + Tolang: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _GeomFill.GeomFill_DegeneratedBound_swiginit(self, _GeomFill.new_GeomFill_DegeneratedBound(*args)) + + + @staticmethod + def DownCast(t): + return Handle_GeomFill_DegeneratedBound_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomFill.delete_GeomFill_DegeneratedBound + +# Register GeomFill_DegeneratedBound in _GeomFill: +_GeomFill.GeomFill_DegeneratedBound_swigregister(GeomFill_DegeneratedBound) +class GeomFill_DiscreteTrihedron(GeomFill_TrihedronLaw): + 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. + + """ + _GeomFill.GeomFill_DiscreteTrihedron_swiginit(self, _GeomFill.new_GeomFill_DiscreteTrihedron(*args)) + + def Init(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_DiscreteTrihedron_Init(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_GeomFill_DiscreteTrihedron_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomFill.delete_GeomFill_DiscreteTrihedron + +# Register GeomFill_DiscreteTrihedron in _GeomFill: +_GeomFill.GeomFill_DiscreteTrihedron_swigregister(GeomFill_DiscreteTrihedron) +class GeomFill_DraftTrihedron(GeomFill_TrihedronLaw): + 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 + ---------- + BiNormal: gp_Vec + Angle: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _GeomFill.GeomFill_DraftTrihedron_swiginit(self, _GeomFill.new_GeomFill_DraftTrihedron(*args)) + + def SetAngle(self, *args): + r""" + + Parameters + ---------- + Angle: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_DraftTrihedron_SetAngle(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_GeomFill_DraftTrihedron_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomFill.delete_GeomFill_DraftTrihedron + +# Register GeomFill_DraftTrihedron in _GeomFill: +_GeomFill.GeomFill_DraftTrihedron_swigregister(GeomFill_DraftTrihedron) +class GeomFill_EvolvedSection(GeomFill_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 + ---------- + C: Geom_Curve + L: Law_Function + + Return + ------- + None + + Description + ----------- + Make an SectionLaw with a Curve and a real Law. + + """ + _GeomFill.GeomFill_EvolvedSection_swiginit(self, _GeomFill.new_GeomFill_EvolvedSection(*args)) + + + @staticmethod + def DownCast(t): + return Handle_GeomFill_EvolvedSection_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomFill.delete_GeomFill_EvolvedSection + +# Register GeomFill_EvolvedSection in _GeomFill: +_GeomFill.GeomFill_EvolvedSection_swigregister(GeomFill_EvolvedSection) +class GeomFill_Fixed(GeomFill_TrihedronLaw): + 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 + ---------- + Tangent: gp_Vec + Normal: gp_Vec + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _GeomFill.GeomFill_Fixed_swiginit(self, _GeomFill.new_GeomFill_Fixed(*args)) + + + @staticmethod + def DownCast(t): + return Handle_GeomFill_Fixed_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomFill.delete_GeomFill_Fixed + +# Register GeomFill_Fixed in _GeomFill: +_GeomFill.GeomFill_Fixed_swigregister(GeomFill_Fixed) +class GeomFill_Frenet(GeomFill_TrihedronLaw): + 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. + + """ + _GeomFill.GeomFill_Frenet_swiginit(self, _GeomFill.new_GeomFill_Frenet(*args)) + + def Init(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_Frenet_Init(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_GeomFill_Frenet_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomFill.delete_GeomFill_Frenet + +# Register GeomFill_Frenet in _GeomFill: +_GeomFill.GeomFill_Frenet_swigregister(GeomFill_Frenet) +class GeomFill_Generator(GeomFill_Profiler): + 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. + + """ + _GeomFill.GeomFill_Generator_swiginit(self, _GeomFill.new_GeomFill_Generator(*args)) + + def Surface(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_Generator_Surface(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomFill.delete_GeomFill_Generator + +# Register GeomFill_Generator in _GeomFill: +_GeomFill.GeomFill_Generator_swigregister(GeomFill_Generator) +class GeomFill_LocationDraft(GeomFill_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 + ---------- + Direction: gp_Dir + Angle: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _GeomFill.GeomFill_LocationDraft_swiginit(self, _GeomFill.new_GeomFill_LocationDraft(*args)) + + def D0(self, *args): + r""" + + Parameters + ---------- + Param: float + M: gp_Mat + V: gp_Vec + + Return + ------- + bool + + Description + ----------- + compute Location. + + Parameters + ---------- + Param: float + M: gp_Mat + V: gp_Vec + Poles2d: TColgp_Array1OfPnt2d + + Return + ------- + bool + + Description + ----------- + compute Location and 2d points. + + """ + return _GeomFill.GeomFill_LocationDraft_D0(self, *args) + + def Direction(self, *args): + r""" + Return + ------- + gp_Dir + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_LocationDraft_Direction(self, *args) + + def IsIntersec(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Say if the generatrice interset the surface. + + """ + return _GeomFill.GeomFill_LocationDraft_IsIntersec(self, *args) + + def SetAngle(self, *args): + r""" + + Parameters + ---------- + Angle: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_LocationDraft_SetAngle(self, *args) + + def SetStopSurf(self, *args): + r""" + + Parameters + ---------- + Surf: Adaptor3d_Surface + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_LocationDraft_SetStopSurf(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_GeomFill_LocationDraft_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomFill.delete_GeomFill_LocationDraft + +# Register GeomFill_LocationDraft in _GeomFill: +_GeomFill.GeomFill_LocationDraft_swigregister(GeomFill_LocationDraft) +class GeomFill_LocationGuide(GeomFill_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 + ---------- + Triedre: GeomFill_TrihedronWithGuide + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _GeomFill.GeomFill_LocationGuide_swiginit(self, _GeomFill.new_GeomFill_LocationGuide(*args)) + + def ComputeAutomaticLaw(self, *args): + r""" + + Parameters + ---------- + ParAndRad: TColgp_HArray1OfPnt2d + + Return + ------- + GeomFill_PipeError + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_LocationGuide_ComputeAutomaticLaw(self, *args) + + def D0(self, *args): + r""" + + Parameters + ---------- + Param: float + M: gp_Mat + V: gp_Vec + + Return + ------- + bool + + Description + ----------- + compute Location. + + Parameters + ---------- + Param: float + M: gp_Mat + V: gp_Vec + Poles2d: TColgp_Array1OfPnt2d + + Return + ------- + bool + + Description + ----------- + compute Location and 2d points. + + """ + return _GeomFill.GeomFill_LocationGuide_D0(self, *args) + + def EraseRotation(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_LocationGuide_EraseRotation(self, *args) + + def Guide(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_LocationGuide_Guide(self, *args) + + def Section(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_LocationGuide_Section(self, *args) + + def Set(self, *args): + r""" + + Parameters + ---------- + Section: GeomFill_SectionLaw + rotat: bool + SFirst: float + SLast: float + PrecAngle: float + + Return + ------- + LastAngle: float + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_LocationGuide_Set(self, *args) + + def SetOrigine(self, *args): + r""" + + Parameters + ---------- + Param1: float + Param2: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_LocationGuide_SetOrigine(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_GeomFill_LocationGuide_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomFill.delete_GeomFill_LocationGuide + +# Register GeomFill_LocationGuide in _GeomFill: +_GeomFill.GeomFill_LocationGuide_swigregister(GeomFill_LocationGuide) +class GeomFill_NSections(GeomFill_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 + ---------- + NC: TColGeom_SequenceOfCurve + + Return + ------- + None + + Description + ----------- + Make a SectionLaw with N Curves. + + Parameters + ---------- + NC: TColGeom_SequenceOfCurve + NP: TColStd_SequenceOfReal + + Return + ------- + None + + Description + ----------- + Make a SectionLaw with N Curves and N associated parameters. + + Parameters + ---------- + NC: TColGeom_SequenceOfCurve + NP: TColStd_SequenceOfReal + UF: float + UL: float + VF: float + VL: float + + Return + ------- + None + + Description + ----------- + Make a SectionLaw with N Curves and N associated parameters. UF and UL are the parametric bounds of the NSections VF and VL are the parametric bounds of the path. + + Parameters + ---------- + NC: TColGeom_SequenceOfCurve + Trsfs: GeomFill_SequenceOfTrsf + NP: TColStd_SequenceOfReal + UF: float + UL: float + VF: float + VL: float + Surf: Geom_BSplineSurface + + Return + ------- + None + + Description + ----------- + Make a SectionLaw with N Curves and N associated parameters. UF and UL are the parametric bounds of the NSections VF and VL are the parametric bounds of the path UF and UL are the parametric bounds of the NSections Surf is a reference surface used by BRepFill_NSections. + + """ + _GeomFill.GeomFill_NSections_swiginit(self, _GeomFill.new_GeomFill_NSections(*args)) + + def ComputeSurface(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Computes the surface. + + """ + return _GeomFill.GeomFill_NSections_ComputeSurface(self, *args) + + def SetSurface(self, *args): + r""" + + Parameters + ---------- + RefSurf: Geom_BSplineSurface + + Return + ------- + None + + Description + ----------- + Sets the reference surface. + + """ + return _GeomFill.GeomFill_NSections_SetSurface(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_GeomFill_NSections_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomFill.delete_GeomFill_NSections + +# Register GeomFill_NSections in _GeomFill: +_GeomFill.GeomFill_NSections_swigregister(GeomFill_NSections) +class GeomFill_SectionGenerator(GeomFill_Profiler): + 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. + + """ + _GeomFill.GeomFill_SectionGenerator_swiginit(self, _GeomFill.new_GeomFill_SectionGenerator(*args)) + + def GetShape(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + NbPoles: int + NbKnots: int + Degree: int + NbPoles2d: int + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_SectionGenerator_GetShape(self, *args) + + def Knots(self, *args): + r""" + + Parameters + ---------- + TKnots: TColStd_Array1OfReal + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_SectionGenerator_Knots(self, *args) + + def Mults(self, *args): + r""" + + Parameters + ---------- + TMults: TColStd_Array1OfInteger + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_SectionGenerator_Mults(self, *args) + + def Parameter(self, *args): + r""" + + Parameters + ---------- + P: int + + Return + ------- + float + + Description + ----------- + Returns the parameter of Section

, to impose it for the approximation. + + """ + return _GeomFill.GeomFill_SectionGenerator_Parameter(self, *args) + + def Section(self, *args): + r""" + + Parameters + ---------- + P: int + Poles: TColgp_Array1OfPnt + DPoles: TColgp_Array1OfVec + Poles2d: TColgp_Array1OfPnt2d + DPoles2d: TColgp_Array1OfVec2d + Weigths: TColStd_Array1OfReal + DWeigths: TColStd_Array1OfReal + + Return + ------- + bool + + Description + ----------- + Used for the first and last section The method returns Standard_True if the derivatives are computed, otherwise it returns Standard_False. + + Parameters + ---------- + P: int + Poles: TColgp_Array1OfPnt + Poles2d: TColgp_Array1OfPnt2d + Weigths: TColStd_Array1OfReal + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_SectionGenerator_Section(self, *args) + + def SetParam(self, *args): + r""" + + Parameters + ---------- + Params: TColStd_HArray1OfReal + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_SectionGenerator_SetParam(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomFill.delete_GeomFill_SectionGenerator + +# Register GeomFill_SectionGenerator in _GeomFill: +_GeomFill.GeomFill_SectionGenerator_swigregister(GeomFill_SectionGenerator) +class GeomFill_SimpleBound(GeomFill_Boundary): + 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 + Tolang: float + + Return + ------- + None + + Description + ----------- + Constructs the boundary object defined by the 3d curve. The surface to be built along this boundary will be in the tolerance range defined by Tol3d. This object is to be used as a boundary for a GeomFill_ConstrainedFilling framework. Dummy is initialized but has no function in this class. Warning Curve is an adapted curve, that is, an object which is an interface between: - the services provided by a 3D curve from the package Geom - and those required of the curve by the computation algorithm which uses it. The adapted curve is created in one of the following ways: - First sequence: opencascade::handle myCurve = ... ; opencascade::handle Curve = new GeomAdaptor_Curve(myCurve); - Second sequence: // Step 1 opencascade::handle myCurve = ... ; GeomAdaptor_Curve Crv (myCurve); // Step 2 opencascade::handle Curve = new GeomAdaptor_Curve(Crv); You use the second part of this sequence if you already have the adapted curve Crv. The boundary is then constructed with the Curve object: Standard_Real Tol = ... ; Standard_Real dummy = 0. ; myBoundary = GeomFill_SimpleBound (Curve,Tol,dummy);. + + """ + _GeomFill.GeomFill_SimpleBound_swiginit(self, _GeomFill.new_GeomFill_SimpleBound(*args)) + + + @staticmethod + def DownCast(t): + return Handle_GeomFill_SimpleBound_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomFill.delete_GeomFill_SimpleBound + +# Register GeomFill_SimpleBound in _GeomFill: +_GeomFill.GeomFill_SimpleBound_swigregister(GeomFill_SimpleBound) +class GeomFill_Stretch(GeomFill_Filling): + 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 + ---------- + P1: TColgp_Array1OfPnt + P2: TColgp_Array1OfPnt + P3: TColgp_Array1OfPnt + P4: TColgp_Array1OfPnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + P1: TColgp_Array1OfPnt + P2: TColgp_Array1OfPnt + P3: TColgp_Array1OfPnt + P4: TColgp_Array1OfPnt + W1: TColStd_Array1OfReal + W2: TColStd_Array1OfReal + W3: TColStd_Array1OfReal + W4: TColStd_Array1OfReal + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _GeomFill.GeomFill_Stretch_swiginit(self, _GeomFill.new_GeomFill_Stretch(*args)) + + def Init(self, *args): + r""" + + Parameters + ---------- + P1: TColgp_Array1OfPnt + P2: TColgp_Array1OfPnt + P3: TColgp_Array1OfPnt + P4: TColgp_Array1OfPnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + P1: TColgp_Array1OfPnt + P2: TColgp_Array1OfPnt + P3: TColgp_Array1OfPnt + P4: TColgp_Array1OfPnt + W1: TColStd_Array1OfReal + W2: TColStd_Array1OfReal + W3: TColStd_Array1OfReal + W4: TColStd_Array1OfReal + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_Stretch_Init(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomFill.delete_GeomFill_Stretch + +# Register GeomFill_Stretch in _GeomFill: +_GeomFill.GeomFill_Stretch_swigregister(GeomFill_Stretch) +class GeomFill_TgtOnCoons(GeomFill_TgtField): + 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 + ---------- + K: GeomFill_CoonsAlgPatch + I: int + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _GeomFill.GeomFill_TgtOnCoons_swiginit(self, _GeomFill.new_GeomFill_TgtOnCoons(*args)) + + def D1(self, *args): + r""" + + Parameters + ---------- + W: float + + Return + ------- + gp_Vec + + Description + ----------- + Computes the derivative of the field of tangency at parameter W. + + Parameters + ---------- + W: float + T: gp_Vec + DT: gp_Vec + + Return + ------- + None + + Description + ----------- + Computes the value and the derivative of the field of tangency at parameter W. + + """ + return _GeomFill.GeomFill_TgtOnCoons_D1(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_GeomFill_TgtOnCoons_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomFill.delete_GeomFill_TgtOnCoons + +# Register GeomFill_TgtOnCoons in _GeomFill: +_GeomFill.GeomFill_TgtOnCoons_swigregister(GeomFill_TgtOnCoons) +class GeomFill_TrihedronWithGuide(GeomFill_TrihedronLaw): + 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 CurrentPointOnGuide(self, *args): + r""" + Return + ------- + gp_Pnt + + Description + ----------- + Returns the current point on guide found by D0, D1 or D2. + + """ + return _GeomFill.GeomFill_TrihedronWithGuide_CurrentPointOnGuide(self, *args) + + def Guide(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_TrihedronWithGuide_Guide(self, *args) + + def Origine(self, *args): + r""" + + Parameters + ---------- + Param1: float + Param2: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _GeomFill.GeomFill_TrihedronWithGuide_Origine(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_GeomFill_TrihedronWithGuide_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomFill.delete_GeomFill_TrihedronWithGuide + +# Register GeomFill_TrihedronWithGuide in _GeomFill: +_GeomFill.GeomFill_TrihedronWithGuide_swigregister(GeomFill_TrihedronWithGuide) +class GeomFill_UniformSection(GeomFill_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 + ---------- + C: Geom_Curve + FirstParameter: float (optional, default to 0.0) + LastParameter: float (optional, default to 1.0) + + Return + ------- + None + + Description + ----------- + Make an constant Law with C. [First, Last] define law definition domain. + + """ + _GeomFill.GeomFill_UniformSection_swiginit(self, _GeomFill.new_GeomFill_UniformSection(*args)) + + + @staticmethod + def DownCast(t): + return Handle_GeomFill_UniformSection_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomFill.delete_GeomFill_UniformSection + +# Register GeomFill_UniformSection in _GeomFill: +_GeomFill.GeomFill_UniformSection_swigregister(GeomFill_UniformSection) +class GeomFill_GuideTrihedronAC(GeomFill_TrihedronWithGuide): + 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 + ---------- + guide: Adaptor3d_Curve + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _GeomFill.GeomFill_GuideTrihedronAC_swiginit(self, _GeomFill.new_GeomFill_GuideTrihedronAC(*args)) + + + @staticmethod + def DownCast(t): + return Handle_GeomFill_GuideTrihedronAC_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomFill.delete_GeomFill_GuideTrihedronAC + +# Register GeomFill_GuideTrihedronAC in _GeomFill: +_GeomFill.GeomFill_GuideTrihedronAC_swigregister(GeomFill_GuideTrihedronAC) +class GeomFill_GuideTrihedronPlan(GeomFill_TrihedronWithGuide): + 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 + ---------- + theGuide: Adaptor3d_Curve + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _GeomFill.GeomFill_GuideTrihedronPlan_swiginit(self, _GeomFill.new_GeomFill_GuideTrihedronPlan(*args)) + + + @staticmethod + def DownCast(t): + return Handle_GeomFill_GuideTrihedronPlan_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _GeomFill.delete_GeomFill_GuideTrihedronPlan + +# Register GeomFill_GuideTrihedronPlan in _GeomFill: +_GeomFill.GeomFill_GuideTrihedronPlan_swigregister(GeomFill_GuideTrihedronPlan) + +@classnotwrapped +class GeomFill_SweepSectionGenerator: + pass + + +class GeomFill_HArray1OfLocationLaw(GeomFill_Array1OfLocationLaw, 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): + _GeomFill.GeomFill_HArray1OfLocationLaw_swiginit(self, _GeomFill.new_GeomFill_HArray1OfLocationLaw(*args)) + + def Array1(self): + return _GeomFill.GeomFill_HArray1OfLocationLaw_Array1(self) + + def ChangeArray1(self): + return _GeomFill.GeomFill_HArray1OfLocationLaw_ChangeArray1(self) + + + @staticmethod + def DownCast(t): + return Handle_GeomFill_HArray1OfLocationLaw_DownCast(t) + + __swig_destroy__ = _GeomFill.delete_GeomFill_HArray1OfLocationLaw + +# Register GeomFill_HArray1OfLocationLaw in _GeomFill: +_GeomFill.GeomFill_HArray1OfLocationLaw_swigregister(GeomFill_HArray1OfLocationLaw) +class GeomFill_HArray1OfSectionLaw(GeomFill_Array1OfSectionLaw, 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): + _GeomFill.GeomFill_HArray1OfSectionLaw_swiginit(self, _GeomFill.new_GeomFill_HArray1OfSectionLaw(*args)) + + def Array1(self): + return _GeomFill.GeomFill_HArray1OfSectionLaw_Array1(self) + + def ChangeArray1(self): + return _GeomFill.GeomFill_HArray1OfSectionLaw_ChangeArray1(self) + + + @staticmethod + def DownCast(t): + return Handle_GeomFill_HArray1OfSectionLaw_DownCast(t) + + __swig_destroy__ = _GeomFill.delete_GeomFill_HArray1OfSectionLaw + +# Register GeomFill_HArray1OfSectionLaw in _GeomFill: +_GeomFill.GeomFill_HArray1OfSectionLaw_swigregister(GeomFill_HArray1OfSectionLaw) +class GeomFill_HSequenceOfAx2(GeomFill_SequenceOfAx2, 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): + _GeomFill.GeomFill_HSequenceOfAx2_swiginit(self, _GeomFill.new_GeomFill_HSequenceOfAx2(*args)) + + def Sequence(self): + return _GeomFill.GeomFill_HSequenceOfAx2_Sequence(self) + + def Append(self, *args): + return _GeomFill.GeomFill_HSequenceOfAx2_Append(self, *args) + + def ChangeSequence(self): + return _GeomFill.GeomFill_HSequenceOfAx2_ChangeSequence(self) + + + @staticmethod + def DownCast(t): + return Handle_GeomFill_HSequenceOfAx2_DownCast(t) + + __swig_destroy__ = _GeomFill.delete_GeomFill_HSequenceOfAx2 + +# Register GeomFill_HSequenceOfAx2 in _GeomFill: +_GeomFill.GeomFill_HSequenceOfAx2_swigregister(GeomFill_HSequenceOfAx2) + + + +@deprecated +def geomfill_GetCircle(*args): + return geomfill.GetCircle(*args) + +@deprecated +def geomfill_GetCircle(*args): + return geomfill.GetCircle(*args) + +@deprecated +def geomfill_GetCircle(*args): + return geomfill.GetCircle(*args) + +@deprecated +def geomfill_GetMinimalWeights(*args): + return geomfill.GetMinimalWeights(*args) + +@deprecated +def geomfill_GetShape(*args): + return geomfill.GetShape(*args) + +@deprecated +def geomfill_GetTolerance(*args): + return geomfill.GetTolerance(*args) + +@deprecated +def geomfill_Knots(*args): + return geomfill.Knots(*args) + +@deprecated +def geomfill_Mults(*args): + return geomfill.Mults(*args) + +@deprecated +def geomfill_Surface(*args): + return geomfill.Surface(*args) + + + diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/GeomPlate.pyi b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/GeomPlate.pyi new file mode 100644 index 0000000000000000000000000000000000000000..3d0eecadaa47eb793e1e9ac8a223ae363aba0938 --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/GeomPlate.pyi @@ -0,0 +1,463 @@ +from enum import IntEnum +from typing import overload, NewType, Optional, Tuple + +from OCC.Core.Standard import * +from OCC.Core.NCollection import * +from OCC.Core.Adaptor3d import * +from OCC.Core.gp import * +from OCC.Core.TColgp import * +from OCC.Core.Geom import * +from OCC.Core.TColStd import * +from OCC.Core.TColGeom2d import * +from OCC.Core.Message import * +from OCC.Core.Geom2d import * +from OCC.Core.GeomLProp import * +from OCC.Core.Adaptor2d import * +from OCC.Core.Law import * +from OCC.Core.AdvApp2Var import * +from OCC.Core.GeomAbs import * +from OCC.Core.Plate import * + +class GeomPlate_Array1OfHCurve: + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, theLower: int, theUpper: int) -> None: ... + def __getitem__(self, index: int) -> False: ... + def __setitem__(self, index: int, value: False) -> None: ... + def __len__(self) -> int: ... + def __iter__(self) -> Iterator[False]: ... + def next(self) -> False: ... + __next__ = next + def Init(self, theValue: False) -> 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) -> False: ... + def Last(self) -> False: ... + def Value(self, theIndex: int) -> False: ... + def SetValue(self, theIndex: int, theValue: False) -> None: ... + +class GeomPlate_Array1OfSequenceOfReal: + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, theLower: int, theUpper: int) -> None: ... + def __getitem__(self, index: int) -> TColStd_SequenceOfReal: ... + def __setitem__(self, index: int, value: TColStd_SequenceOfReal) -> None: ... + def __len__(self) -> int: ... + def __iter__(self) -> Iterator[TColStd_SequenceOfReal]: ... + def next(self) -> TColStd_SequenceOfReal: ... + __next__ = next + def Init(self, theValue: TColStd_SequenceOfReal) -> 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) -> TColStd_SequenceOfReal: ... + def Last(self) -> TColStd_SequenceOfReal: ... + def Value(self, theIndex: int) -> TColStd_SequenceOfReal: ... + def SetValue(self, theIndex: int, theValue: TColStd_SequenceOfReal) -> None: ... + +class GeomPlate_SequenceOfAij: + def Assign(self, theItem: GeomPlate_Aij) -> GeomPlate_Aij: ... + def Clear(self) -> None: ... + def First(self) -> GeomPlate_Aij: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... + def Last(self) -> GeomPlate_Aij: ... + def Length(self) -> int: ... + def Lower(self) -> int: ... + def Prepend(self, theItem: GeomPlate_Aij) -> GeomPlate_Aij: ... + def RemoveFirst(self) -> None: ... + def Reverse(self) -> None: ... + def SetValue(self, theIndex: int, theValue: GeomPlate_Aij) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> GeomPlate_Aij: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... + +class GeomPlate_SequenceOfCurveConstraint: + def Assign(self, theItem: False) -> False: ... + def Clear(self) -> None: ... + def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... + def Last(self) -> False: ... + def Length(self) -> int: ... + def Lower(self) -> int: ... + def Prepend(self, theItem: False) -> False: ... + def RemoveFirst(self) -> None: ... + def Reverse(self) -> None: ... + def SetValue(self, theIndex: int, theValue: False) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... + +class GeomPlate_SequenceOfPointConstraint: + def Assign(self, theItem: False) -> False: ... + def Clear(self) -> None: ... + def First(self) -> False: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... + def Last(self) -> False: ... + def Length(self) -> int: ... + def Lower(self) -> int: ... + def Prepend(self, theItem: False) -> False: ... + def RemoveFirst(self) -> None: ... + def Reverse(self) -> None: ... + def SetValue(self, theIndex: int, theValue: False) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> False: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... + +class GeomPlate_Aij: + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, anInd1: int, anInd2: int, aVec: gp_Vec) -> None: ... + +class GeomPlate_BuildAveragePlane: + @overload + def __init__( + self, + Pts: TColgp_HArray1OfPnt, + NbBoundPoints: int, + Tol: float, + POption: int, + NOption: int, + ) -> None: ... + @overload + def __init__( + self, Normals: TColgp_SequenceOfVec, Pts: TColgp_HArray1OfPnt + ) -> None: ... + @staticmethod + def HalfSpace( + NewNormals: TColgp_SequenceOfVec, + Normals: TColgp_SequenceOfVec, + Bset: GeomPlate_SequenceOfAij, + LinTol: float, + AngTol: float, + ) -> bool: ... + def IsLine(self) -> bool: ... + def IsPlane(self) -> bool: ... + def Line(self) -> Geom_Line: ... + def MinMaxBox(self) -> Tuple[float, float, float, float]: ... + def Plane(self) -> Geom_Plane: ... + +class GeomPlate_BuildPlateSurface: + @overload + def __init__( + self, + NPoints: TColStd_HArray1OfInteger, + TabCurve: GeomPlate_HArray1OfHCurve, + Tang: TColStd_HArray1OfInteger, + Degree: int, + NbIter: Optional[int] = 3, + Tol2d: Optional[float] = 0.00001, + Tol3d: Optional[float] = 0.0001, + TolAng: Optional[float] = 0.01, + TolCurv: Optional[float] = 0.1, + Anisotropie: Optional[bool] = False, + ) -> None: ... + @overload + def __init__( + self, + Surf: Geom_Surface, + Degree: Optional[int] = 3, + NbPtsOnCur: Optional[int] = 10, + NbIter: Optional[int] = 3, + Tol2d: Optional[float] = 0.00001, + Tol3d: Optional[float] = 0.0001, + TolAng: Optional[float] = 0.01, + TolCurv: Optional[float] = 0.1, + Anisotropie: Optional[bool] = False, + ) -> None: ... + @overload + def __init__( + self, + Degree: Optional[int] = 3, + NbPtsOnCur: Optional[int] = 10, + NbIter: Optional[int] = 3, + Tol2d: Optional[float] = 0.00001, + Tol3d: Optional[float] = 0.0001, + TolAng: Optional[float] = 0.01, + TolCurv: Optional[float] = 0.1, + Anisotropie: Optional[bool] = False, + ) -> None: ... + @overload + def Add(self, Cont: GeomPlate_CurveConstraint) -> None: ... + @overload + def Add(self, Cont: GeomPlate_PointConstraint) -> None: ... + def CurveConstraint(self, order: int) -> GeomPlate_CurveConstraint: ... + def Curves2d(self) -> TColGeom2d_HArray1OfCurve: ... + def Disc2dContour(self, nbp: int, Seq2d: TColgp_SequenceOfXY) -> None: ... + def Disc3dContour( + self, nbp: int, iordre: int, Seq3d: TColgp_SequenceOfXYZ + ) -> None: ... + @overload + def G0Error(self) -> float: ... + @overload + def G0Error(self, Index: int) -> float: ... + @overload + def G1Error(self) -> float: ... + @overload + def G1Error(self, Index: int) -> float: ... + @overload + def G2Error(self) -> float: ... + @overload + def G2Error(self, Index: int) -> float: ... + def Init(self) -> None: ... + def IsDone(self) -> bool: ... + def LoadInitSurface(self, Surf: Geom_Surface) -> None: ... + def Order(self) -> TColStd_HArray1OfInteger: ... + def Perform( + self, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> None: ... + def PointConstraint(self, order: int) -> GeomPlate_PointConstraint: ... + def Sense(self) -> TColStd_HArray1OfInteger: ... + def SetNbBounds(self, NbBounds: int) -> None: ... + def SurfInit(self) -> Geom_Surface: ... + def Surface(self) -> GeomPlate_Surface: ... + +class GeomPlate_CurveConstraint(Standard_Transient): + @overload + def __init__(self) -> None: ... + @overload + def __init__( + self, + Boundary: Adaptor3d_Curve, + Order: int, + NPt: Optional[int] = 10, + TolDist: Optional[float] = 0.0001, + TolAng: Optional[float] = 0.01, + TolCurv: Optional[float] = 0.1, + ) -> None: ... + def Curve2dOnSurf(self) -> Geom2d_Curve: ... + def Curve3d(self) -> Adaptor3d_Curve: ... + def D0(self, U: float, P: gp_Pnt) -> None: ... + def D1(self, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec) -> None: ... + def D2( + self, + U: float, + P: gp_Pnt, + V1: gp_Vec, + V2: gp_Vec, + V3: gp_Vec, + V4: gp_Vec, + V5: gp_Vec, + ) -> None: ... + def FirstParameter(self) -> float: ... + def G0Criterion(self, U: float) -> float: ... + def G1Criterion(self, U: float) -> float: ... + def G2Criterion(self, U: float) -> float: ... + def LPropSurf(self, U: float) -> GeomLProp_SLProps: ... + def LastParameter(self) -> float: ... + def Length(self) -> float: ... + def NbPoints(self) -> int: ... + def Order(self) -> int: ... + def ProjectedCurve(self) -> Adaptor2d_Curve2d: ... + def SetCurve2dOnSurf(self, Curve2d: Geom2d_Curve) -> None: ... + def SetG0Criterion(self, G0Crit: Law_Function) -> None: ... + def SetG1Criterion(self, G1Crit: Law_Function) -> None: ... + def SetG2Criterion(self, G2Crit: Law_Function) -> None: ... + def SetNbPoints(self, NewNb: int) -> None: ... + def SetOrder(self, Order: int) -> None: ... + def SetProjectedCurve( + self, Curve2d: Adaptor2d_Curve2d, TolU: float, TolV: float + ) -> None: ... + +class GeomPlate_MakeApprox: + @overload + def __init__( + self, + SurfPlate: GeomPlate_Surface, + PlateCrit: AdvApp2Var_Criterion, + Tol3d: float, + Nbmax: int, + dgmax: int, + Continuity: Optional[GeomAbs_Shape] = GeomAbs_C1, + EnlargeCoeff: Optional[float] = 1.1, + ) -> None: ... + @overload + def __init__( + self, + SurfPlate: GeomPlate_Surface, + Tol3d: float, + Nbmax: int, + dgmax: int, + dmax: float, + CritOrder: Optional[int] = 0, + Continuity: Optional[GeomAbs_Shape] = GeomAbs_C1, + EnlargeCoeff: Optional[float] = 1.1, + ) -> None: ... + def ApproxError(self) -> float: ... + def CriterionError(self) -> float: ... + def Surface(self) -> Geom_BSplineSurface: ... + +class GeomPlate_PlateG0Criterion(AdvApp2Var_Criterion): + def __init__( + self, + Data: TColgp_SequenceOfXY, + G0Data: TColgp_SequenceOfXYZ, + Maximum: float, + Type: Optional[AdvApp2Var_CriterionType] = AdvApp2Var_Absolute, + Repart: Optional[AdvApp2Var_CriterionRepartition] = AdvApp2Var_Regular, + ) -> None: ... + def IsSatisfied(self, P: AdvApp2Var_Patch) -> bool: ... + def Value(self, P: AdvApp2Var_Patch, C: AdvApp2Var_Context) -> None: ... + +class GeomPlate_PlateG1Criterion(AdvApp2Var_Criterion): + def __init__( + self, + Data: TColgp_SequenceOfXY, + G1Data: TColgp_SequenceOfXYZ, + Maximum: float, + Type: Optional[AdvApp2Var_CriterionType] = AdvApp2Var_Absolute, + Repart: Optional[AdvApp2Var_CriterionRepartition] = AdvApp2Var_Regular, + ) -> None: ... + def IsSatisfied(self, P: AdvApp2Var_Patch) -> bool: ... + def Value(self, P: AdvApp2Var_Patch, C: AdvApp2Var_Context) -> None: ... + +class GeomPlate_PointConstraint(Standard_Transient): + @overload + def __init__( + self, Pt: gp_Pnt, Order: int, TolDist: Optional[float] = 0.0001 + ) -> None: ... + @overload + def __init__( + self, + U: float, + V: float, + Surf: Geom_Surface, + Order: int, + TolDist: Optional[float] = 0.0001, + TolAng: Optional[float] = 0.01, + TolCurv: Optional[float] = 0.1, + ) -> None: ... + def D0(self, P: gp_Pnt) -> None: ... + def D1(self, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec) -> None: ... + def D2( + self, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec, V4: gp_Vec, V5: gp_Vec + ) -> None: ... + def G0Criterion(self) -> float: ... + def G1Criterion(self) -> float: ... + def G2Criterion(self) -> float: ... + def HasPnt2dOnSurf(self) -> bool: ... + def LPropSurf(self) -> GeomLProp_SLProps: ... + def Order(self) -> int: ... + def Pnt2dOnSurf(self) -> gp_Pnt2d: ... + def SetG0Criterion(self, TolDist: float) -> None: ... + def SetG1Criterion(self, TolAng: float) -> None: ... + def SetG2Criterion(self, TolCurv: float) -> None: ... + def SetOrder(self, Order: int) -> None: ... + def SetPnt2dOnSurf(self, Pnt: gp_Pnt2d) -> None: ... + +class GeomPlate_Surface(Geom_Surface): + def __init__(self, Surfinit: Geom_Surface, Surfinter: Plate_Plate) -> None: ... + def Bounds(self) -> Tuple[float, float, float, float]: ... + def CallSurfinit(self) -> Geom_Surface: ... + def Constraints(self, Seq: TColgp_SequenceOfXY) -> None: ... + def Continuity(self) -> GeomAbs_Shape: ... + def Copy(self) -> Geom_Geometry: ... + def D0(self, U: float, V: float, P: gp_Pnt) -> None: ... + def D1(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec) -> None: ... + def D2( + self, + U: float, + V: float, + P: gp_Pnt, + D1U: gp_Vec, + D1V: gp_Vec, + D2U: gp_Vec, + D2V: gp_Vec, + D2UV: gp_Vec, + ) -> None: ... + def D3( + self, + U: float, + V: float, + P: gp_Pnt, + D1U: gp_Vec, + D1V: gp_Vec, + D2U: gp_Vec, + D2V: gp_Vec, + D2UV: gp_Vec, + D3U: gp_Vec, + D3V: gp_Vec, + D3UUV: gp_Vec, + D3UVV: gp_Vec, + ) -> None: ... + def DN(self, U: float, V: float, Nu: int, Nv: int) -> gp_Vec: ... + def IsCNu(self, N: int) -> bool: ... + def IsCNv(self, N: int) -> bool: ... + def IsUClosed(self) -> bool: ... + def IsUPeriodic(self) -> bool: ... + def IsVClosed(self) -> bool: ... + def IsVPeriodic(self) -> bool: ... + def ParametricTransformation(self, T: gp_Trsf) -> gp_GTrsf2d: ... + def RealBounds(self) -> Tuple[float, float, float, float]: ... + def SetBounds(self, Umin: float, Umax: float, Vmin: float, Vmax: float) -> None: ... + def Transform(self, T: gp_Trsf) -> None: ... + def TransformParameters(self, T: gp_Trsf) -> Tuple[float, float]: ... + def UIso(self, U: float) -> Geom_Curve: ... + def UPeriod(self) -> float: ... + def UReverse(self) -> None: ... + def UReversedParameter(self, U: float) -> float: ... + def VIso(self, V: float) -> Geom_Curve: ... + def VPeriod(self) -> float: ... + def VReverse(self) -> None: ... + def VReversedParameter(self, V: float) -> float: ... + +# harray1 classes + +class GeomPlate_HArray1OfHCurve(GeomPlate_Array1OfHCurve, Standard_Transient): + def __init__(self, theLower: int, theUpper: int) -> None: ... + def Array1(self) -> GeomPlate_Array1OfHCurve: ... + +class GeomPlate_HArray1OfSequenceOfReal( + GeomPlate_Array1OfSequenceOfReal, Standard_Transient +): + def __init__(self, theLower: int, theUpper: int) -> None: ... + def Array1(self) -> GeomPlate_Array1OfSequenceOfReal: ... + +# harray2 classes +# hsequence classes + +class GeomPlate_HSequenceOfCurveConstraint( + GeomPlate_SequenceOfCurveConstraint, Standard_Transient +): + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, other: GeomPlate_SequenceOfCurveConstraint) -> None: ... + def Sequence(self) -> GeomPlate_SequenceOfCurveConstraint: ... + def Append(self, theSequence: GeomPlate_SequenceOfCurveConstraint) -> None: ... + +class GeomPlate_HSequenceOfPointConstraint( + GeomPlate_SequenceOfPointConstraint, Standard_Transient +): + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, other: GeomPlate_SequenceOfPointConstraint) -> None: ... + def Sequence(self) -> GeomPlate_SequenceOfPointConstraint: ... + def Append(self, theSequence: GeomPlate_SequenceOfPointConstraint) -> None: ... diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/HLRBRep.py b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/HLRBRep.py new file mode 100644 index 0000000000000000000000000000000000000000..215625407ed01855a24fab3452a6d15429f2e38a --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/HLRBRep.py @@ -0,0 +1,14436 @@ +# 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. + +""" +HLRBRep module, see official documentation at +https://dev.opencascade.org/doc/occt-7.9.0/refman/html/package_hlrbrep.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 _HLRBRep +else: + import _HLRBRep + +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__ = _HLRBRep.delete_SwigPyIterator + + def value(self): + return _HLRBRep.SwigPyIterator_value(self) + + def incr(self, n=1): + return _HLRBRep.SwigPyIterator_incr(self, n) + + def decr(self, n=1): + return _HLRBRep.SwigPyIterator_decr(self, n) + + def distance(self, x): + return _HLRBRep.SwigPyIterator_distance(self, x) + + def equal(self, x): + return _HLRBRep.SwigPyIterator_equal(self, x) + + def copy(self): + return _HLRBRep.SwigPyIterator_copy(self) + + def next(self): + return _HLRBRep.SwigPyIterator_next(self) + + def __next__(self): + return _HLRBRep.SwigPyIterator___next__(self) + + def previous(self): + return _HLRBRep.SwigPyIterator_previous(self) + + def advance(self, n): + return _HLRBRep.SwigPyIterator_advance(self, n) + + def __eq__(self, x): + return _HLRBRep.SwigPyIterator___eq__(self, x) + + def __ne__(self, x): + return _HLRBRep.SwigPyIterator___ne__(self, x) + + def __iadd__(self, n): + return _HLRBRep.SwigPyIterator___iadd__(self, n) + + def __isub__(self, n): + return _HLRBRep.SwigPyIterator___isub__(self, n) + + def __add__(self, n): + return _HLRBRep.SwigPyIterator___add__(self, n) + + def __sub__(self, *args): + return _HLRBRep.SwigPyIterator___sub__(self, *args) + def __iter__(self): + return self + +# Register SwigPyIterator in _HLRBRep: +_HLRBRep.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 HLRBRep_Array1OfEData in _HLRBRep: +_HLRBRep.HLRBRep_Array1OfEData_swigregister(HLRBRep_Array1OfEData) +class HLRBRep_Array1OfFData(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 _HLRBRep.HLRBRep_Array1OfFData_begin(self, *args) + + def cbegin(self): + return _HLRBRep.HLRBRep_Array1OfFData_cbegin(self) + + def end(self, *args): + return _HLRBRep.HLRBRep_Array1OfFData_end(self, *args) + + def cend(self): + return _HLRBRep.HLRBRep_Array1OfFData_cend(self) + + def __init__(self, *args): + _HLRBRep.HLRBRep_Array1OfFData_swiginit(self, _HLRBRep.new_HLRBRep_Array1OfFData(*args)) + __swig_destroy__ = _HLRBRep.delete_HLRBRep_Array1OfFData + + def Init(self, theValue): + return _HLRBRep.HLRBRep_Array1OfFData_Init(self, theValue) + + def Size(self): + return _HLRBRep.HLRBRep_Array1OfFData_Size(self) + + def Length(self): + return _HLRBRep.HLRBRep_Array1OfFData_Length(self) + + def IsEmpty(self): + return _HLRBRep.HLRBRep_Array1OfFData_IsEmpty(self) + + def Lower(self): + return _HLRBRep.HLRBRep_Array1OfFData_Lower(self) + + def Upper(self): + return _HLRBRep.HLRBRep_Array1OfFData_Upper(self) + + def Assign(self, theOther): + return _HLRBRep.HLRBRep_Array1OfFData_Assign(self, theOther) + + def Move(self, *args): + return _HLRBRep.HLRBRep_Array1OfFData_Move(self, *args) + + def Set(self, *args): + return _HLRBRep.HLRBRep_Array1OfFData_Set(self, *args) + + def First(self): + return _HLRBRep.HLRBRep_Array1OfFData_First(self) + + def ChangeFirst(self): + return _HLRBRep.HLRBRep_Array1OfFData_ChangeFirst(self) + + def Last(self): + return _HLRBRep.HLRBRep_Array1OfFData_Last(self) + + def ChangeLast(self): + return _HLRBRep.HLRBRep_Array1OfFData_ChangeLast(self) + + def Value(self, theIndex): + return _HLRBRep.HLRBRep_Array1OfFData_Value(self, theIndex) + + def ChangeValue(self, theIndex): + return _HLRBRep.HLRBRep_Array1OfFData_ChangeValue(self, theIndex) + + def __call__(self, *args): + return _HLRBRep.HLRBRep_Array1OfFData___call__(self, *args) + + def SetValue(self, *args): + return _HLRBRep.HLRBRep_Array1OfFData_SetValue(self, *args) + + def UpdateLowerBound(self, theLower): + return _HLRBRep.HLRBRep_Array1OfFData_UpdateLowerBound(self, theLower) + + def UpdateUpperBound(self, theUpper): + return _HLRBRep.HLRBRep_Array1OfFData_UpdateUpperBound(self, theUpper) + + def Resize(self, theLower, theUpper, theToCopyData): + return _HLRBRep.HLRBRep_Array1OfFData_Resize(self, theLower, theUpper, theToCopyData) + + def IsDeletable(self): + return _HLRBRep.HLRBRep_Array1OfFData_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 HLRBRep_Array1OfFData in _HLRBRep: +_HLRBRep.HLRBRep_Array1OfFData_swigregister(HLRBRep_Array1OfFData) +class HLRBRep_ListIteratorOfListOfBPnt2D(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): + _HLRBRep.HLRBRep_ListIteratorOfListOfBPnt2D_swiginit(self, _HLRBRep.new_HLRBRep_ListIteratorOfListOfBPnt2D(*args)) + + def More(self): + return _HLRBRep.HLRBRep_ListIteratorOfListOfBPnt2D_More(self) + + def Next(self): + return _HLRBRep.HLRBRep_ListIteratorOfListOfBPnt2D_Next(self) + + def Value(self): + return _HLRBRep.HLRBRep_ListIteratorOfListOfBPnt2D_Value(self) + + def ChangeValue(self): + return _HLRBRep.HLRBRep_ListIteratorOfListOfBPnt2D_ChangeValue(self) + __swig_destroy__ = _HLRBRep.delete_HLRBRep_ListIteratorOfListOfBPnt2D + +# Register HLRBRep_ListIteratorOfListOfBPnt2D in _HLRBRep: +_HLRBRep.HLRBRep_ListIteratorOfListOfBPnt2D_swigregister(HLRBRep_ListIteratorOfListOfBPnt2D) +class HLRBRep_ListIteratorOfListOfBPoint(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): + _HLRBRep.HLRBRep_ListIteratorOfListOfBPoint_swiginit(self, _HLRBRep.new_HLRBRep_ListIteratorOfListOfBPoint(*args)) + + def More(self): + return _HLRBRep.HLRBRep_ListIteratorOfListOfBPoint_More(self) + + def Next(self): + return _HLRBRep.HLRBRep_ListIteratorOfListOfBPoint_Next(self) + + def Value(self): + return _HLRBRep.HLRBRep_ListIteratorOfListOfBPoint_Value(self) + + def ChangeValue(self): + return _HLRBRep.HLRBRep_ListIteratorOfListOfBPoint_ChangeValue(self) + __swig_destroy__ = _HLRBRep.delete_HLRBRep_ListIteratorOfListOfBPoint + +# Register HLRBRep_ListIteratorOfListOfBPoint in _HLRBRep: +_HLRBRep.HLRBRep_ListIteratorOfListOfBPoint_swigregister(HLRBRep_ListIteratorOfListOfBPoint) +class HLRBRep_ListOfBPnt2D(OCC.Core.NCollection.NCollection_BaseList): + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") + __repr__ = _swig_repr + + def begin(self): + return _HLRBRep.HLRBRep_ListOfBPnt2D_begin(self) + + def end(self): + return _HLRBRep.HLRBRep_ListOfBPnt2D_end(self) + + def cbegin(self): + return _HLRBRep.HLRBRep_ListOfBPnt2D_cbegin(self) + + def cend(self): + return _HLRBRep.HLRBRep_ListOfBPnt2D_cend(self) + + def __init__(self, *args): + _HLRBRep.HLRBRep_ListOfBPnt2D_swiginit(self, _HLRBRep.new_HLRBRep_ListOfBPnt2D(*args)) + + def Size(self): + return _HLRBRep.HLRBRep_ListOfBPnt2D_Size(self) + + def Assign(self, theOther): + return _HLRBRep.HLRBRep_ListOfBPnt2D_Assign(self, theOther) + + def Set(self, *args): + return _HLRBRep.HLRBRep_ListOfBPnt2D_Set(self, *args) + + def Clear(self, theAllocator=0): + return _HLRBRep.HLRBRep_ListOfBPnt2D_Clear(self, theAllocator) + + def First(self): + return _HLRBRep.HLRBRep_ListOfBPnt2D_First(self) + + def Last(self): + return _HLRBRep.HLRBRep_ListOfBPnt2D_Last(self) + + def Append(self, *args): + return _HLRBRep.HLRBRep_ListOfBPnt2D_Append(self, *args) + + def Prepend(self, *args): + return _HLRBRep.HLRBRep_ListOfBPnt2D_Prepend(self, *args) + + def RemoveFirst(self): + return _HLRBRep.HLRBRep_ListOfBPnt2D_RemoveFirst(self) + + def Remove(self, theIter): + return _HLRBRep.HLRBRep_ListOfBPnt2D_Remove(self, theIter) + + def InsertBefore(self, *args): + return _HLRBRep.HLRBRep_ListOfBPnt2D_InsertBefore(self, *args) + + def InsertAfter(self, *args): + return _HLRBRep.HLRBRep_ListOfBPnt2D_InsertAfter(self, *args) + + def Reverse(self): + return _HLRBRep.HLRBRep_ListOfBPnt2D_Reverse(self) + __swig_destroy__ = _HLRBRep.delete_HLRBRep_ListOfBPnt2D + + def __len__(self): + return self.Size() + + def __iter__(self): + it = HLRBRep_ListIteratorOfListOfBPnt2D(self.this) + while it.More(): + yield it.Value() + it.Next() + + +# Register HLRBRep_ListOfBPnt2D in _HLRBRep: +_HLRBRep.HLRBRep_ListOfBPnt2D_swigregister(HLRBRep_ListOfBPnt2D) +class HLRBRep_ListOfBPoint(OCC.Core.NCollection.NCollection_BaseList): + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") + __repr__ = _swig_repr + + def begin(self): + return _HLRBRep.HLRBRep_ListOfBPoint_begin(self) + + def end(self): + return _HLRBRep.HLRBRep_ListOfBPoint_end(self) + + def cbegin(self): + return _HLRBRep.HLRBRep_ListOfBPoint_cbegin(self) + + def cend(self): + return _HLRBRep.HLRBRep_ListOfBPoint_cend(self) + + def __init__(self, *args): + _HLRBRep.HLRBRep_ListOfBPoint_swiginit(self, _HLRBRep.new_HLRBRep_ListOfBPoint(*args)) + + def Size(self): + return _HLRBRep.HLRBRep_ListOfBPoint_Size(self) + + def Assign(self, theOther): + return _HLRBRep.HLRBRep_ListOfBPoint_Assign(self, theOther) + + def Set(self, *args): + return _HLRBRep.HLRBRep_ListOfBPoint_Set(self, *args) + + def Clear(self, theAllocator=0): + return _HLRBRep.HLRBRep_ListOfBPoint_Clear(self, theAllocator) + + def First(self): + return _HLRBRep.HLRBRep_ListOfBPoint_First(self) + + def Last(self): + return _HLRBRep.HLRBRep_ListOfBPoint_Last(self) + + def Append(self, *args): + return _HLRBRep.HLRBRep_ListOfBPoint_Append(self, *args) + + def Prepend(self, *args): + return _HLRBRep.HLRBRep_ListOfBPoint_Prepend(self, *args) + + def RemoveFirst(self): + return _HLRBRep.HLRBRep_ListOfBPoint_RemoveFirst(self) + + def Remove(self, theIter): + return _HLRBRep.HLRBRep_ListOfBPoint_Remove(self, theIter) + + def InsertBefore(self, *args): + return _HLRBRep.HLRBRep_ListOfBPoint_InsertBefore(self, *args) + + def InsertAfter(self, *args): + return _HLRBRep.HLRBRep_ListOfBPoint_InsertAfter(self, *args) + + def Reverse(self): + return _HLRBRep.HLRBRep_ListOfBPoint_Reverse(self) + __swig_destroy__ = _HLRBRep.delete_HLRBRep_ListOfBPoint + + def __len__(self): + return self.Size() + + def __iter__(self): + it = HLRBRep_ListIteratorOfListOfBPoint(self.this) + while it.More(): + yield it.Value() + it.Next() + + +# Register HLRBRep_ListOfBPoint in _HLRBRep: +_HLRBRep.HLRBRep_ListOfBPoint_swigregister(HLRBRep_ListOfBPoint) +class HLRBRep_SeqOfShapeBounds(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 _HLRBRep.HLRBRep_SeqOfShapeBounds_begin(self) + + def end(self): + return _HLRBRep.HLRBRep_SeqOfShapeBounds_end(self) + + def cbegin(self): + return _HLRBRep.HLRBRep_SeqOfShapeBounds_cbegin(self) + + def cend(self): + return _HLRBRep.HLRBRep_SeqOfShapeBounds_cend(self) + + def __init__(self, *args): + _HLRBRep.HLRBRep_SeqOfShapeBounds_swiginit(self, _HLRBRep.new_HLRBRep_SeqOfShapeBounds(*args)) + + def Size(self): + return _HLRBRep.HLRBRep_SeqOfShapeBounds_Size(self) + + def Length(self): + return _HLRBRep.HLRBRep_SeqOfShapeBounds_Length(self) + + def Lower(self): + return _HLRBRep.HLRBRep_SeqOfShapeBounds_Lower(self) + + def Upper(self): + return _HLRBRep.HLRBRep_SeqOfShapeBounds_Upper(self) + + def IsEmpty(self): + return _HLRBRep.HLRBRep_SeqOfShapeBounds_IsEmpty(self) + + def Reverse(self): + return _HLRBRep.HLRBRep_SeqOfShapeBounds_Reverse(self) + + def Exchange(self, I, J): + return _HLRBRep.HLRBRep_SeqOfShapeBounds_Exchange(self, I, J) + + @staticmethod + def delNode(theNode, theAl): + return _HLRBRep.HLRBRep_SeqOfShapeBounds_delNode(theNode, theAl) + + def Clear(self, theAllocator=0): + return _HLRBRep.HLRBRep_SeqOfShapeBounds_Clear(self, theAllocator) + + def Assign(self, theOther): + return _HLRBRep.HLRBRep_SeqOfShapeBounds_Assign(self, theOther) + + def Set(self, *args): + return _HLRBRep.HLRBRep_SeqOfShapeBounds_Set(self, *args) + + def Remove(self, *args): + return _HLRBRep.HLRBRep_SeqOfShapeBounds_Remove(self, *args) + + def Append(self, *args): + return _HLRBRep.HLRBRep_SeqOfShapeBounds_Append(self, *args) + + def Prepend(self, *args): + return _HLRBRep.HLRBRep_SeqOfShapeBounds_Prepend(self, *args) + + def InsertBefore(self, *args): + return _HLRBRep.HLRBRep_SeqOfShapeBounds_InsertBefore(self, *args) + + def InsertAfter(self, *args): + return _HLRBRep.HLRBRep_SeqOfShapeBounds_InsertAfter(self, *args) + + def Split(self, theIndex, theSeq): + return _HLRBRep.HLRBRep_SeqOfShapeBounds_Split(self, theIndex, theSeq) + + def First(self): + return _HLRBRep.HLRBRep_SeqOfShapeBounds_First(self) + + def ChangeFirst(self): + return _HLRBRep.HLRBRep_SeqOfShapeBounds_ChangeFirst(self) + + def Last(self): + return _HLRBRep.HLRBRep_SeqOfShapeBounds_Last(self) + + def ChangeLast(self): + return _HLRBRep.HLRBRep_SeqOfShapeBounds_ChangeLast(self) + + def Value(self, theIndex): + return _HLRBRep.HLRBRep_SeqOfShapeBounds_Value(self, theIndex) + + def ChangeValue(self, theIndex): + return _HLRBRep.HLRBRep_SeqOfShapeBounds_ChangeValue(self, theIndex) + + def __call__(self, *args): + return _HLRBRep.HLRBRep_SeqOfShapeBounds___call__(self, *args) + + def SetValue(self, theIndex, theItem): + return _HLRBRep.HLRBRep_SeqOfShapeBounds_SetValue(self, theIndex, theItem) + __swig_destroy__ = _HLRBRep.delete_HLRBRep_SeqOfShapeBounds + + def __len__(self): + return self.Size() + + +# Register HLRBRep_SeqOfShapeBounds in _HLRBRep: +_HLRBRep.HLRBRep_SeqOfShapeBounds_swigregister(HLRBRep_SeqOfShapeBounds) +class hlrbrep(object): + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") + __repr__ = _swig_repr + + @staticmethod + def MakeEdge(*args): + r""" + + Parameters + ---------- + ec: HLRBRep_Curve + U1: float + U2: float + + Return + ------- + TopoDS_Edge + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.hlrbrep_MakeEdge(*args) + + @staticmethod + def MakeEdge3d(*args): + r""" + + Parameters + ---------- + ec: HLRBRep_Curve + U1: float + U2: float + + Return + ------- + TopoDS_Edge + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.hlrbrep_MakeEdge3d(*args) + + @staticmethod + def PolyHLRAngleAndDeflection(*args): + r""" + + Parameters + ---------- + InAngl: float + + Return + ------- + OutAngl: float + OutDefl: float + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.hlrbrep_PolyHLRAngleAndDeflection(*args) + + __repr__ = _dumps_object + + + def __init__(self): + _HLRBRep.hlrbrep_swiginit(self, _HLRBRep.new_hlrbrep()) + __swig_destroy__ = _HLRBRep.delete_hlrbrep + +# Register hlrbrep in _HLRBRep: +_HLRBRep.hlrbrep_swigregister(hlrbrep) +class HLRBRep_AreaLimit(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 + ---------- + V: HLRAlgo_Intersection + Boundary: bool + Interference: bool + StateBefore: TopAbs_State + StateAfter: TopAbs_State + EdgeBefore: TopAbs_State + EdgeAfter: TopAbs_State + + Return + ------- + None + + Description + ----------- + The previous and next field are set to NULL. + + """ + _HLRBRep.HLRBRep_AreaLimit_swiginit(self, _HLRBRep.new_HLRBRep_AreaLimit(*args)) + + def Clear(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_AreaLimit_Clear(self, *args) + + def EdgeAfter(self, *args): + r""" + + Parameters + ---------- + St: TopAbs_State + + Return + ------- + None + + Description + ----------- + No available documentation. + Return + ------- + TopAbs_State + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_AreaLimit_EdgeAfter(self, *args) + + def EdgeBefore(self, *args): + r""" + + Parameters + ---------- + St: TopAbs_State + + Return + ------- + None + + Description + ----------- + No available documentation. + Return + ------- + TopAbs_State + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_AreaLimit_EdgeBefore(self, *args) + + def IsBoundary(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_AreaLimit_IsBoundary(self, *args) + + def IsInterference(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_AreaLimit_IsInterference(self, *args) + + def Next(self, *args): + r""" + + Parameters + ---------- + N: HLRBRep_AreaLimit + + Return + ------- + None + + Description + ----------- + No available documentation. + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_AreaLimit_Next(self, *args) + + def Previous(self, *args): + r""" + + Parameters + ---------- + P: HLRBRep_AreaLimit + + Return + ------- + None + + Description + ----------- + No available documentation. + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_AreaLimit_Previous(self, *args) + + def StateAfter(self, *args): + r""" + + Parameters + ---------- + St: TopAbs_State + + Return + ------- + None + + Description + ----------- + No available documentation. + Return + ------- + TopAbs_State + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_AreaLimit_StateAfter(self, *args) + + def StateBefore(self, *args): + r""" + + Parameters + ---------- + St: TopAbs_State + + Return + ------- + None + + Description + ----------- + No available documentation. + Return + ------- + TopAbs_State + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_AreaLimit_StateBefore(self, *args) + + def Vertex(self, *args): + r""" + Return + ------- + HLRAlgo_Intersection + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_AreaLimit_Vertex(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_HLRBRep_AreaLimit_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _HLRBRep.delete_HLRBRep_AreaLimit + +# Register HLRBRep_AreaLimit in _HLRBRep: +_HLRBRep.HLRBRep_AreaLimit_swigregister(HLRBRep_AreaLimit) +class HLRBRep_BCurveTool(object): + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") + __repr__ = _swig_repr + + @staticmethod + def BSpline(*args): + r""" + + Parameters + ---------- + C: BRepAdaptor_Curve + + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_BCurveTool_BSpline(*args) + + @staticmethod + def Bezier(*args): + r""" + + Parameters + ---------- + C: BRepAdaptor_Curve + + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_BCurveTool_Bezier(*args) + + @staticmethod + def Circle(*args): + r""" + + Parameters + ---------- + C: BRepAdaptor_Curve + + Return + ------- + gp_Circ + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_BCurveTool_Circle(*args) + + @staticmethod + def Continuity(*args): + r""" + + Parameters + ---------- + C: BRepAdaptor_Curve + + Return + ------- + GeomAbs_Shape + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_BCurveTool_Continuity(*args) + + @staticmethod + def D0(*args): + r""" + + Parameters + ---------- + C: BRepAdaptor_Curve + U: float + P: gp_Pnt + + Return + ------- + None + + Description + ----------- + Computes the point of parameter U on the curve. + + """ + return _HLRBRep.HLRBRep_BCurveTool_D0(*args) + + @staticmethod + def D1(*args): + r""" + + Parameters + ---------- + C: BRepAdaptor_Curve + U: float + P: gp_Pnt + V: gp_Vec + + Return + ------- + None + + Description + ----------- + Computes the point of parameter U on the curve with its first derivative. Raised if the continuity of the current interval is not C1. + + """ + return _HLRBRep.HLRBRep_BCurveTool_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 + ----------- + Returns the point P of parameter U, the first and second derivatives V1 and V2. Raised if the continuity of the current interval is not C2. + + """ + return _HLRBRep.HLRBRep_BCurveTool_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 + ----------- + Returns the point P of parameter U, the first, the second and the third derivative. Raised if the continuity of the current interval is not C3. + + """ + return _HLRBRep.HLRBRep_BCurveTool_D3(*args) + + @staticmethod + def DN(*args): + r""" + + Parameters + ---------- + C: BRepAdaptor_Curve + U: float + N: int + + Return + ------- + gp_Vec + + Description + ----------- + The returned vector gives the value of the derivative for the order of derivation N. Raised if the continuity of the current interval is not CN. Raised if N < 1. + + """ + return _HLRBRep.HLRBRep_BCurveTool_DN(*args) + + @staticmethod + def Degree(*args): + r""" + + Parameters + ---------- + C: BRepAdaptor_Curve + + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_BCurveTool_Degree(*args) + + @staticmethod + def Ellipse(*args): + r""" + + Parameters + ---------- + C: BRepAdaptor_Curve + + Return + ------- + gp_Elips + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_BCurveTool_Ellipse(*args) + + @staticmethod + def FirstParameter(*args): + r""" + + Parameters + ---------- + C: BRepAdaptor_Curve + + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_BCurveTool_FirstParameter(*args) + + @staticmethod + def GetType(*args): + r""" + + Parameters + ---------- + C: BRepAdaptor_Curve + + Return + ------- + GeomAbs_CurveType + + Description + ----------- + Returns the type of the curve in the current interval: Line, Circle, Ellipse, Hyperbola, Parabola, BezierCurve, BSplineCurve, OtherCurve. + + """ + return _HLRBRep.HLRBRep_BCurveTool_GetType(*args) + + @staticmethod + def Hyperbola(*args): + r""" + + Parameters + ---------- + C: BRepAdaptor_Curve + + Return + ------- + gp_Hypr + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_BCurveTool_Hyperbola(*args) + + @staticmethod + def Intervals(*args): + r""" + + Parameters + ---------- + C: BRepAdaptor_Curve + 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 _HLRBRep.HLRBRep_BCurveTool_Intervals(*args) + + @staticmethod + def IsClosed(*args): + r""" + + Parameters + ---------- + C: BRepAdaptor_Curve + + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_BCurveTool_IsClosed(*args) + + @staticmethod + def IsPeriodic(*args): + r""" + + Parameters + ---------- + C: BRepAdaptor_Curve + + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_BCurveTool_IsPeriodic(*args) + + @staticmethod + def IsRational(*args): + r""" + + Parameters + ---------- + C: BRepAdaptor_Curve + + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_BCurveTool_IsRational(*args) + + @staticmethod + def LastParameter(*args): + r""" + + Parameters + ---------- + C: BRepAdaptor_Curve + + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_BCurveTool_LastParameter(*args) + + @staticmethod + def Line(*args): + r""" + + Parameters + ---------- + C: BRepAdaptor_Curve + + Return + ------- + gp_Lin + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_BCurveTool_Line(*args) + + @staticmethod + def NbIntervals(*args): + r""" + + Parameters + ---------- + C: BRepAdaptor_Curve + S: GeomAbs_Shape + + Return + ------- + int + + Description + ----------- + Returns the number of intervals for continuity . May be one if Continuity(myclass) >= . + + """ + return _HLRBRep.HLRBRep_BCurveTool_NbIntervals(*args) + + @staticmethod + def NbKnots(*args): + r""" + + Parameters + ---------- + C: BRepAdaptor_Curve + + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_BCurveTool_NbKnots(*args) + + @staticmethod + def NbPoles(*args): + r""" + + Parameters + ---------- + C: BRepAdaptor_Curve + + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_BCurveTool_NbPoles(*args) + + @staticmethod + def NbSamples(*args): + r""" + + Parameters + ---------- + C: BRepAdaptor_Curve + U0: float + U1: float + + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_BCurveTool_NbSamples(*args) + + @staticmethod + def Parabola(*args): + r""" + + Parameters + ---------- + C: BRepAdaptor_Curve + + Return + ------- + gp_Parab + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_BCurveTool_Parabola(*args) + + @staticmethod + def Period(*args): + r""" + + Parameters + ---------- + C: BRepAdaptor_Curve + + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_BCurveTool_Period(*args) + + @staticmethod + def Poles(*args): + r""" + + Parameters + ---------- + C: BRepAdaptor_Curve + T: TColgp_Array1OfPnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_BCurveTool_Poles(*args) + + @staticmethod + def PolesAndWeights(*args): + r""" + + Parameters + ---------- + C: BRepAdaptor_Curve + T: TColgp_Array1OfPnt + W: TColStd_Array1OfReal + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_BCurveTool_PolesAndWeights(*args) + + @staticmethod + def Resolution(*args): + r""" + + Parameters + ---------- + C: BRepAdaptor_Curve + R3d: float + + Return + ------- + float + + Description + ----------- + Returns the parametric resolution corresponding to the real space resolution . + + """ + return _HLRBRep.HLRBRep_BCurveTool_Resolution(*args) + + @staticmethod + def Value(*args): + r""" + + Parameters + ---------- + C: BRepAdaptor_Curve + U: float + + Return + ------- + gp_Pnt + + Description + ----------- + Computes the point of parameter U on the curve. + + """ + return _HLRBRep.HLRBRep_BCurveTool_Value(*args) + + __repr__ = _dumps_object + + + def __init__(self): + _HLRBRep.HLRBRep_BCurveTool_swiginit(self, _HLRBRep.new_HLRBRep_BCurveTool()) + __swig_destroy__ = _HLRBRep.delete_HLRBRep_BCurveTool + +# Register HLRBRep_BCurveTool in _HLRBRep: +_HLRBRep.HLRBRep_BCurveTool_swigregister(HLRBRep_BCurveTool) +class HLRBRep_BiPnt2D(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 + ---------- + x1: float + y1: float + x2: float + y2: float + S: TopoDS_Shape + reg1: bool + regn: bool + outl: bool + intl: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + thePoint1: gp_XY + thePoint2: gp_XY + S: TopoDS_Shape + reg1: bool + regn: bool + outl: bool + intl: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _HLRBRep.HLRBRep_BiPnt2D_swiginit(self, _HLRBRep.new_HLRBRep_BiPnt2D(*args)) + + def IntLine(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + Parameters + ---------- + B: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_BiPnt2D_IntLine(self, *args) + + def OutLine(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + Parameters + ---------- + B: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_BiPnt2D_OutLine(self, *args) + + def P1(self, *args): + r""" + Return + ------- + gp_Pnt2d + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_BiPnt2D_P1(self, *args) + + def P2(self, *args): + r""" + Return + ------- + gp_Pnt2d + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_BiPnt2D_P2(self, *args) + + def Rg1Line(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + Parameters + ---------- + B: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_BiPnt2D_Rg1Line(self, *args) + + def RgNLine(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + Parameters + ---------- + B: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_BiPnt2D_RgNLine(self, *args) + + def Shape(self, *args): + r""" + Return + ------- + TopoDS_Shape + + Description + ----------- + No available documentation. + + Parameters + ---------- + S: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_BiPnt2D_Shape(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _HLRBRep.delete_HLRBRep_BiPnt2D + +# Register HLRBRep_BiPnt2D in _HLRBRep: +_HLRBRep.HLRBRep_BiPnt2D_swigregister(HLRBRep_BiPnt2D) +class HLRBRep_BiPoint(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 + ---------- + x1: float + y1: float + z1: float + x2: float + y2: float + z2: float + S: TopoDS_Shape + reg1: bool + regn: bool + outl: bool + intl: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _HLRBRep.HLRBRep_BiPoint_swiginit(self, _HLRBRep.new_HLRBRep_BiPoint(*args)) + + def IntLine(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + Parameters + ---------- + B: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_BiPoint_IntLine(self, *args) + + def OutLine(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + Parameters + ---------- + B: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_BiPoint_OutLine(self, *args) + + def P1(self, *args): + r""" + Return + ------- + gp_Pnt + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_BiPoint_P1(self, *args) + + def P2(self, *args): + r""" + Return + ------- + gp_Pnt + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_BiPoint_P2(self, *args) + + def Rg1Line(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + Parameters + ---------- + B: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_BiPoint_Rg1Line(self, *args) + + def RgNLine(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + Parameters + ---------- + B: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_BiPoint_RgNLine(self, *args) + + def Shape(self, *args): + r""" + Return + ------- + TopoDS_Shape + + Description + ----------- + No available documentation. + + Parameters + ---------- + S: TopoDS_Shape + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_BiPoint_Shape(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _HLRBRep.delete_HLRBRep_BiPoint + +# Register HLRBRep_BiPoint in _HLRBRep: +_HLRBRep.HLRBRep_BiPoint_swigregister(HLRBRep_BiPoint) +class HLRBRep_CInter(OCC.Core.IntRes2d.IntRes2d_Intersection): + 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 + ----------- + Empty constructor. + + Parameters + ---------- + C: Standard_Address + TolConf: float + Tol: float + + Return + ------- + None + + Description + ----------- + Self Intersection of a curve. + + Parameters + ---------- + C: Standard_Address + D: IntRes2d_Domain + TolConf: float + Tol: float + + Return + ------- + None + + Description + ----------- + Self Intersection of a curve with a domain. + + Parameters + ---------- + C1: Standard_Address + C2: Standard_Address + TolConf: float + Tol: float + + Return + ------- + None + + Description + ----------- + Intersection between 2 curves. + + Parameters + ---------- + C1: Standard_Address + D1: IntRes2d_Domain + C2: Standard_Address + TolConf: float + Tol: float + + Return + ------- + None + + Description + ----------- + Intersection between 2 curves. + + Parameters + ---------- + C1: Standard_Address + C2: Standard_Address + D2: IntRes2d_Domain + TolConf: float + Tol: float + + Return + ------- + None + + Description + ----------- + Intersection between 2 curves. + + Parameters + ---------- + C1: Standard_Address + D1: IntRes2d_Domain + C2: Standard_Address + D2: IntRes2d_Domain + TolConf: float + Tol: float + + Return + ------- + None + + Description + ----------- + Intersection between 2 curves. + + """ + _HLRBRep.HLRBRep_CInter_swiginit(self, _HLRBRep.new_HLRBRep_CInter(*args)) + + def ComputeDomain(self, *args): + r""" + + Parameters + ---------- + C1: Standard_Address + TolDomain: float + + Return + ------- + IntRes2d_Domain + + Description + ----------- + Create a domain from a curve. + + """ + return _HLRBRep.HLRBRep_CInter_ComputeDomain(self, *args) + + def GetMinNbSamples(self, *args): + r""" + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_CInter_GetMinNbSamples(self, *args) + + def Perform(self, *args): + r""" + + Parameters + ---------- + C1: Standard_Address + D1: IntRes2d_Domain + C2: Standard_Address + D2: IntRes2d_Domain + TolConf: float + Tol: float + + Return + ------- + None + + Description + ----------- + Intersection between 2 curves. + + Parameters + ---------- + C1: Standard_Address + C2: Standard_Address + TolConf: float + Tol: float + + Return + ------- + None + + Description + ----------- + Intersection between 2 curves. + + Parameters + ---------- + C1: Standard_Address + D1: IntRes2d_Domain + TolConf: float + Tol: float + + Return + ------- + None + + Description + ----------- + Intersection between 2 curves. + + Parameters + ---------- + C1: Standard_Address + TolConf: float + Tol: float + + Return + ------- + None + + Description + ----------- + Intersection between 2 curves. + + Parameters + ---------- + C1: Standard_Address + D1: IntRes2d_Domain + C2: Standard_Address + TolConf: float + Tol: float + + Return + ------- + None + + Description + ----------- + Intersection between 2 curves. + + Parameters + ---------- + C1: Standard_Address + C2: Standard_Address + D2: IntRes2d_Domain + TolConf: float + Tol: float + + Return + ------- + None + + Description + ----------- + Intersection between 2 curves. + + """ + return _HLRBRep.HLRBRep_CInter_Perform(self, *args) + + def SetMinNbSamples(self, *args): + r""" + + Parameters + ---------- + theMinNbSamples: int + + Return + ------- + None + + Description + ----------- + Set / get minimum number of points in polygon intersection. + + """ + return _HLRBRep.HLRBRep_CInter_SetMinNbSamples(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _HLRBRep.delete_HLRBRep_CInter + +# Register HLRBRep_CInter in _HLRBRep: +_HLRBRep.HLRBRep_CInter_swigregister(HLRBRep_CInter) +class HLRBRep_CLProps(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 + ---------- + C: HLRBRep_Curve * + N: int + Resolution: float + + Return + ------- + None + + Description + ----------- + Initializes the local properties of the curve 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: HLRBRep_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. + + """ + _HLRBRep.HLRBRep_CLProps_swiginit(self, _HLRBRep.new_HLRBRep_CLProps(*args)) + + def CentreOfCurvature(self, *args): + r""" + + Parameters + ---------- + P: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + Returns the centre of curvature

. + + """ + return _HLRBRep.HLRBRep_CLProps_CentreOfCurvature(self, *args) + + def Curvature(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns the curvature. + + """ + return _HLRBRep.HLRBRep_CLProps_Curvature(self, *args) + + def D1(self, *args): + r""" + Return + ------- + gp_Vec2d + + Description + ----------- + Returns the first derivative. The derivative is computed if it has not been yet. + + """ + return _HLRBRep.HLRBRep_CLProps_D1(self, *args) + + def D2(self, *args): + r""" + Return + ------- + gp_Vec2d + + Description + ----------- + Returns the second derivative. The derivative is computed if it has not been yet. + + """ + return _HLRBRep.HLRBRep_CLProps_D2(self, *args) + + def D3(self, *args): + r""" + Return + ------- + gp_Vec2d + + Description + ----------- + Returns the third derivative. The derivative is computed if it has not been yet. + + """ + return _HLRBRep.HLRBRep_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 _HLRBRep.HLRBRep_CLProps_IsTangentDefined(self, *args) + + def Normal(self, *args): + r""" + + Parameters + ---------- + N: gp_Dir2d + + Return + ------- + None + + Description + ----------- + Returns the normal direction . + + """ + return _HLRBRep.HLRBRep_CLProps_Normal(self, *args) + + def SetCurve(self, *args): + r""" + + Parameters + ---------- + C: HLRBRep_Curve * + + Return + ------- + None + + Description + ----------- + Initializes the local properties of the curve for the new curve. + + """ + return _HLRBRep.HLRBRep_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 _HLRBRep.HLRBRep_CLProps_SetParameter(self, *args) + + def Tangent(self, *args): + r""" + + Parameters + ---------- + D: gp_Dir2d + + Return + ------- + None + + Description + ----------- + output the tangent direction . + + """ + return _HLRBRep.HLRBRep_CLProps_Tangent(self, *args) + + def Value(self, *args): + r""" + Return + ------- + gp_Pnt2d + + Description + ----------- + Returns the Point. + + """ + return _HLRBRep.HLRBRep_CLProps_Value(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _HLRBRep.delete_HLRBRep_CLProps + +# Register HLRBRep_CLProps in _HLRBRep: +_HLRBRep.HLRBRep_CLProps_swigregister(HLRBRep_CLProps) +class HLRBRep_CLPropsATool(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 + ---------- + A: HLRBRep_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 _HLRBRep.HLRBRep_CLPropsATool_Continuity(*args) + + @staticmethod + def D1(*args): + r""" + + Parameters + ---------- + A: HLRBRep_Curve * + U: float + P: gp_Pnt2d + V1: gp_Vec2d + + Return + ------- + None + + Description + ----------- + Computes the point

and first derivative of parameter on the curve . + + """ + return _HLRBRep.HLRBRep_CLPropsATool_D1(*args) + + @staticmethod + def D2(*args): + r""" + + Parameters + ---------- + A: HLRBRep_Curve * + U: float + P: gp_Pnt2d + V1: gp_Vec2d + V2: gp_Vec2d + + Return + ------- + None + + Description + ----------- + Computes the point

, the first derivative and second derivative of parameter on the curve . + + """ + return _HLRBRep.HLRBRep_CLPropsATool_D2(*args) + + @staticmethod + def D3(*args): + r""" + + Parameters + ---------- + A: HLRBRep_Curve * + U: float + P: gp_Pnt2d + V1: gp_Vec2d + V2: gp_Vec2d + V3: gp_Vec2d + + Return + ------- + None + + Description + ----------- + Computes the point

, the first derivative , the second derivative and third derivative of parameter on the curve . + + """ + return _HLRBRep.HLRBRep_CLPropsATool_D3(*args) + + @staticmethod + def FirstParameter(*args): + r""" + + Parameters + ---------- + A: HLRBRep_Curve * + + Return + ------- + float + + Description + ----------- + returns the first parameter bound of the curve. + + """ + return _HLRBRep.HLRBRep_CLPropsATool_FirstParameter(*args) + + @staticmethod + def LastParameter(*args): + r""" + + Parameters + ---------- + A: HLRBRep_Curve * + + Return + ------- + float + + Description + ----------- + returns the last parameter bound of the curve. FirstParameter must be less than LastParamenter. + + """ + return _HLRBRep.HLRBRep_CLPropsATool_LastParameter(*args) + + @staticmethod + def Value(*args): + r""" + + Parameters + ---------- + A: HLRBRep_Curve * + U: float + P: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + Computes the point

of parameter on the Curve from HLRBRep . + + """ + return _HLRBRep.HLRBRep_CLPropsATool_Value(*args) + + __repr__ = _dumps_object + + + def __init__(self): + _HLRBRep.HLRBRep_CLPropsATool_swiginit(self, _HLRBRep.new_HLRBRep_CLPropsATool()) + __swig_destroy__ = _HLRBRep.delete_HLRBRep_CLPropsATool + +# Register HLRBRep_CLPropsATool in _HLRBRep: +_HLRBRep.HLRBRep_CLPropsATool_swigregister(HLRBRep_CLPropsATool) +class HLRBRep_Curve(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 + ----------- + Creates an undefined Curve. + + """ + _HLRBRep.HLRBRep_Curve_swiginit(self, _HLRBRep.new_HLRBRep_Curve(*args)) + + def Circle(self, *args): + r""" + Return + ------- + gp_Circ2d + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_Curve_Circle(self, *args) + + def Continuity(self, *args): + r""" + Return + ------- + GeomAbs_Shape + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_Curve_Continuity(self, *args) + + def Curve(self, *args): + r""" + Return + ------- + BRepAdaptor_Curve + + Description + ----------- + Returns the 3D curve. + + Parameters + ---------- + E: TopoDS_Edge + + Return + ------- + None + + Description + ----------- + Sets the 3D curve to be projected. + + """ + return _HLRBRep.HLRBRep_Curve_Curve(self, *args) + + def D0(self, *args): + r""" + + Parameters + ---------- + U: float + P: gp_Pnt + + Return + ------- + None + + Description + ----------- + Computes the 3D point of parameter U on the curve. + + Parameters + ---------- + U: float + P: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + Computes the point of parameter U on the curve. + + """ + return _HLRBRep.HLRBRep_Curve_D0(self, *args) + + def D1(self, *args): + r""" + + Parameters + ---------- + U: float + P: gp_Pnt + V: gp_Vec + + Return + ------- + None + + Description + ----------- + Computes the point of parameter U on the curve with its first derivative. + + Parameters + ---------- + U: float + P: gp_Pnt2d + V: gp_Vec2d + + Return + ------- + None + + Description + ----------- + Computes the point of parameter U on the curve with its first derivative. Raised if the continuity of the current interval is not C1. + + """ + return _HLRBRep.HLRBRep_Curve_D1(self, *args) + + def D2(self, *args): + r""" + + Parameters + ---------- + U: float + P: gp_Pnt2d + V1: gp_Vec2d + V2: gp_Vec2d + + Return + ------- + None + + Description + ----------- + Raised if the continuity of the current interval is not C2. + + """ + return _HLRBRep.HLRBRep_Curve_D2(self, *args) + + def D3(self, *args): + r""" + + Parameters + ---------- + U: float + P: gp_Pnt2d + V1: gp_Vec2d + V2: gp_Vec2d + V3: gp_Vec2d + + Return + ------- + None + + Description + ----------- + Returns the point P of parameter U, the first, the second and the third derivative. Raised if the continuity of the current interval is not C3. + + """ + return _HLRBRep.HLRBRep_Curve_D3(self, *args) + + def DN(self, *args): + r""" + + Parameters + ---------- + U: float + N: int + + Return + ------- + gp_Vec2d + + Description + ----------- + The returned vector gives the value of the derivative for the order of derivation N. Raised if the continuity of the current interval is not CN. Raised if N < 1. + + """ + return _HLRBRep.HLRBRep_Curve_DN(self, *args) + + def Degree(self, *args): + r""" + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_Curve_Degree(self, *args) + + def Ellipse(self, *args): + r""" + Return + ------- + gp_Elips2d + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_Curve_Ellipse(self, *args) + + def FirstParameter(self, *args): + r""" + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_Curve_FirstParameter(self, *args) + + def GetCurve(self, *args): + r""" + Return + ------- + BRepAdaptor_Curve + + Description + ----------- + Returns the 3D curve. + + """ + return _HLRBRep.HLRBRep_Curve_GetCurve(self, *args) + + def GetType(self, *args): + r""" + Return + ------- + GeomAbs_CurveType + + Description + ----------- + Returns the type of the curve in the current interval: Line, Circle, Ellipse, Hyperbola, Parabola, BezierCurve, BSplineCurve, OtherCurve. + + """ + return _HLRBRep.HLRBRep_Curve_GetType(self, *args) + + def Hyperbola(self, *args): + r""" + Return + ------- + gp_Hypr2d + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_Curve_Hyperbola(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 _HLRBRep.HLRBRep_Curve_Intervals(self, *args) + + def IsClosed(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_Curve_IsClosed(self, *args) + + def IsPeriodic(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_Curve_IsPeriodic(self, *args) + + def IsRational(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_Curve_IsRational(self, *args) + + def Knots(self, *args): + r""" + + Parameters + ---------- + kn: TColStd_Array1OfReal + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_Curve_Knots(self, *args) + + def LastParameter(self, *args): + r""" + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_Curve_LastParameter(self, *args) + + def Line(self, *args): + r""" + Return + ------- + gp_Lin2d + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_Curve_Line(self, *args) + + def Multiplicities(self, *args): + r""" + + Parameters + ---------- + mu: TColStd_Array1OfInteger + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_Curve_Multiplicities(self, *args) + + def NbIntervals(self, *args): + r""" + + Parameters + ---------- + S: GeomAbs_Shape + + Return + ------- + int + + Description + ----------- + If necessary, breaks the curve in intervals of continuity . And returns the number of intervals. + + """ + return _HLRBRep.HLRBRep_Curve_NbIntervals(self, *args) + + def NbKnots(self, *args): + r""" + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_Curve_NbKnots(self, *args) + + def NbPoles(self, *args): + r""" + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_Curve_NbPoles(self, *args) + + def Parabola(self, *args): + r""" + Return + ------- + gp_Parab2d + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_Curve_Parabola(self, *args) + + def Parameter2d(self, *args): + r""" + + Parameters + ---------- + P3d: float + + Return + ------- + float + + Description + ----------- + Returns the parameter on the 2d curve from the parameter on the 3d curve. + + """ + return _HLRBRep.HLRBRep_Curve_Parameter2d(self, *args) + + def Parameter3d(self, *args): + r""" + + Parameters + ---------- + P2d: float + + Return + ------- + float + + Description + ----------- + Returns the parameter on the 3d curve from the parameter on the 2d curve. + + """ + return _HLRBRep.HLRBRep_Curve_Parameter3d(self, *args) + + def Period(self, *args): + r""" + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_Curve_Period(self, *args) + + def Poles(self, *args): + r""" + + Parameters + ---------- + TP: TColgp_Array1OfPnt2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + aCurve: Geom_BSplineCurve + TP: TColgp_Array1OfPnt2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_Curve_Poles(self, *args) + + def PolesAndWeights(self, *args): + r""" + + Parameters + ---------- + TP: TColgp_Array1OfPnt2d + TW: TColStd_Array1OfReal + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + aCurve: Geom_BSplineCurve + TP: TColgp_Array1OfPnt2d + TW: TColStd_Array1OfReal + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_Curve_PolesAndWeights(self, *args) + + def Projector(self, *args): + r""" + + Parameters + ---------- + Proj: HLRAlgo_Projector * + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_Curve_Projector(self, *args) + + def Resolution(self, *args): + r""" + + Parameters + ---------- + R3d: float + + Return + ------- + float + + Description + ----------- + Returns the parametric resolution corresponding to the real space resolution . + + """ + return _HLRBRep.HLRBRep_Curve_Resolution(self, *args) + + def Tangent(self, *args): + r""" + + Parameters + ---------- + AtStart: bool + P: gp_Pnt2d + D: gp_Dir2d + + Return + ------- + None + + Description + ----------- + Depending on computes the 2D point and tangent on the curve at sart (or at end). If the first derivative is null look after at start (or before at end) with the second derivative. + + """ + return _HLRBRep.HLRBRep_Curve_Tangent(self, *args) + + def Update(self, *args): + r""" + + Parameters + ---------- + TotMin: float + TotMax: float + + Return + ------- + float + + Description + ----------- + Update the minmax and the internal data. + + """ + return _HLRBRep.HLRBRep_Curve_Update(self, *args) + + def UpdateMinMax(self, *args): + r""" + + Parameters + ---------- + TotMin: float + TotMax: float + + Return + ------- + float + + Description + ----------- + Update the minmax returns tol for enlarge;. + + """ + return _HLRBRep.HLRBRep_Curve_UpdateMinMax(self, *args) + + def Value(self, *args): + r""" + + Parameters + ---------- + U: float + + Return + ------- + gp_Pnt2d + + Description + ----------- + Computes the point of parameter U on the curve. + + """ + return _HLRBRep.HLRBRep_Curve_Value(self, *args) + + def Value3D(self, *args): + r""" + + Parameters + ---------- + U: float + + Return + ------- + gp_Pnt + + Description + ----------- + Computes the 3D point of parameter U on the curve. + + """ + return _HLRBRep.HLRBRep_Curve_Value3D(self, *args) + + def Z(self, *args): + r""" + + Parameters + ---------- + U: float + + Return + ------- + float + + Description + ----------- + Computes the Z coordinate of the point of parameter U on the curve in the viewing coordinate system. + + """ + return _HLRBRep.HLRBRep_Curve_Z(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _HLRBRep.delete_HLRBRep_Curve + +# Register HLRBRep_Curve in _HLRBRep: +_HLRBRep.HLRBRep_Curve_swigregister(HLRBRep_Curve) +class HLRBRep_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 BSpline(*args): + r""" + + Parameters + ---------- + C: Standard_Address + + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_CurveTool_BSpline(*args) + + @staticmethod + def Bezier(*args): + r""" + + Parameters + ---------- + C: Standard_Address + + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_CurveTool_Bezier(*args) + + @staticmethod + def Circle(*args): + r""" + + Parameters + ---------- + C: Standard_Address + + Return + ------- + gp_Circ2d + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_CurveTool_Circle(*args) + + @staticmethod + def Continuity(*args): + r""" + + Parameters + ---------- + C: Standard_Address + + Return + ------- + GeomAbs_Shape + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_CurveTool_Continuity(*args) + + @staticmethod + def D0(*args): + r""" + + Parameters + ---------- + C: Standard_Address + U: float + P: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + Computes the point of parameter U on the curve. + + """ + return _HLRBRep.HLRBRep_CurveTool_D0(*args) + + @staticmethod + def D1(*args): + r""" + + Parameters + ---------- + C: Standard_Address + U: float + P: gp_Pnt2d + V: gp_Vec2d + + Return + ------- + None + + Description + ----------- + Computes the point of parameter U on the curve with its first derivative. Raised if the continuity of the current interval is not C1. + + """ + return _HLRBRep.HLRBRep_CurveTool_D1(*args) + + @staticmethod + def D2(*args): + r""" + + Parameters + ---------- + C: Standard_Address + U: float + P: gp_Pnt2d + V1: gp_Vec2d + V2: gp_Vec2d + + Return + ------- + None + + Description + ----------- + Returns the point P of parameter U, the first and second derivatives V1 and V2. Raised if the continuity of the current interval is not C2. + + """ + return _HLRBRep.HLRBRep_CurveTool_D2(*args) + + @staticmethod + def D3(*args): + r""" + + Parameters + ---------- + C: Standard_Address + U: float + P: gp_Pnt2d + V1: gp_Vec2d + V2: gp_Vec2d + V3: gp_Vec2d + + Return + ------- + None + + Description + ----------- + Returns the point P of parameter U, the first, the second and the third derivative. Raised if the continuity of the current interval is not C3. + + """ + return _HLRBRep.HLRBRep_CurveTool_D3(*args) + + @staticmethod + def DN(*args): + r""" + + Parameters + ---------- + C: Standard_Address + U: float + N: int + + Return + ------- + gp_Vec2d + + Description + ----------- + The returned vector gives the value of the derivative for the order of derivation N. Raised if the continuity of the current interval is not CN. Raised if N < 1. + + """ + return _HLRBRep.HLRBRep_CurveTool_DN(*args) + + @staticmethod + def Degree(*args): + r""" + + Parameters + ---------- + C: Standard_Address + + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_CurveTool_Degree(*args) + + @staticmethod + def Ellipse(*args): + r""" + + Parameters + ---------- + C: Standard_Address + + Return + ------- + gp_Elips2d + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_CurveTool_Ellipse(*args) + + @staticmethod + def EpsX(*args): + r""" + + Parameters + ---------- + C: Standard_Address + + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_CurveTool_EpsX(*args) + + @staticmethod + def FirstParameter(*args): + r""" + + Parameters + ---------- + C: Standard_Address + + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_CurveTool_FirstParameter(*args) + + @staticmethod + def GetInterval(*args): + r""" + + Parameters + ---------- + C: Standard_Address + Index: int + Tab: TColStd_Array1OfReal + + Return + ------- + U1: float + U2: float + + Description + ----------- + output the bounds of interval of index used if Type == Composite. + + """ + return _HLRBRep.HLRBRep_CurveTool_GetInterval(*args) + + @staticmethod + def GetType(*args): + r""" + + Parameters + ---------- + C: Standard_Address + + Return + ------- + GeomAbs_CurveType + + Description + ----------- + Returns the type of the curve in the current interval: Line, Circle, Ellipse, Hyperbola, Parabola, BezierCurve, BSplineCurve, OtherCurve. + + """ + return _HLRBRep.HLRBRep_CurveTool_GetType(*args) + + @staticmethod + def Hyperbola(*args): + r""" + + Parameters + ---------- + C: Standard_Address + + Return + ------- + gp_Hypr2d + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_CurveTool_Hyperbola(*args) + + @staticmethod + def Intervals(*args): + r""" + + Parameters + ---------- + C: Standard_Address + T: TColStd_Array1OfReal + + 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 _HLRBRep.HLRBRep_CurveTool_Intervals(*args) + + @staticmethod + def IsClosed(*args): + r""" + + Parameters + ---------- + C: Standard_Address + + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_CurveTool_IsClosed(*args) + + @staticmethod + def IsPeriodic(*args): + r""" + + Parameters + ---------- + C: Standard_Address + + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_CurveTool_IsPeriodic(*args) + + @staticmethod + def LastParameter(*args): + r""" + + Parameters + ---------- + C: Standard_Address + + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_CurveTool_LastParameter(*args) + + @staticmethod + def Line(*args): + r""" + + Parameters + ---------- + C: Standard_Address + + Return + ------- + gp_Lin2d + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_CurveTool_Line(*args) + + @staticmethod + def NbIntervals(*args): + r""" + + Parameters + ---------- + C: Standard_Address + + Return + ------- + int + + Description + ----------- + Returns the number of intervals for continuity . May be one if Continuity(myclass) >= . + + """ + return _HLRBRep.HLRBRep_CurveTool_NbIntervals(*args) + + @staticmethod + def NbSamples(*args): + r""" + + Parameters + ---------- + C: Standard_Address + U0: float + U1: float + + Return + ------- + int + + Description + ----------- + No available documentation. + + Parameters + ---------- + C: Standard_Address + + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_CurveTool_NbSamples(*args) + + @staticmethod + def Parabola(*args): + r""" + + Parameters + ---------- + C: Standard_Address + + Return + ------- + gp_Parab2d + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_CurveTool_Parabola(*args) + + @staticmethod + def Period(*args): + r""" + + Parameters + ---------- + C: Standard_Address + + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_CurveTool_Period(*args) + + @staticmethod + def Resolution(*args): + r""" + + Parameters + ---------- + C: Standard_Address + R3d: float + + Return + ------- + float + + Description + ----------- + Returns the parametric resolution corresponding to the real space resolution . + + """ + return _HLRBRep.HLRBRep_CurveTool_Resolution(*args) + + @staticmethod + def TheType(*args): + r""" + + Parameters + ---------- + C: Standard_Address + + Return + ------- + GeomAbs_CurveType + + Description + ----------- + Returns the type of the curve in the current interval: Line, Circle, Ellipse, Hyperbola, Parabola, BezierCurve, BSplineCurve, OtherCurve. + + """ + return _HLRBRep.HLRBRep_CurveTool_TheType(*args) + + @staticmethod + def Value(*args): + r""" + + Parameters + ---------- + C: Standard_Address + U: float + + Return + ------- + gp_Pnt2d + + Description + ----------- + Computes the point of parameter U on the curve. + + """ + return _HLRBRep.HLRBRep_CurveTool_Value(*args) + + __repr__ = _dumps_object + + + def __init__(self): + _HLRBRep.HLRBRep_CurveTool_swiginit(self, _HLRBRep.new_HLRBRep_CurveTool()) + __swig_destroy__ = _HLRBRep.delete_HLRBRep_CurveTool + +# Register HLRBRep_CurveTool in _HLRBRep: +_HLRBRep.HLRBRep_CurveTool_swigregister(HLRBRep_CurveTool) +class HLRBRep_Data(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 + ---------- + NV: int + NE: int + NF: int + + Return + ------- + None + + Description + ----------- + Create an empty data structure of vertices, edges and faces. + + """ + _HLRBRep.HLRBRep_Data_swiginit(self, _HLRBRep.new_HLRBRep_Data(*args)) + + def AboveInterference(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True if the rejected interference is above the face. + + """ + return _HLRBRep.HLRBRep_Data_AboveInterference(self, *args) + + def Classify(self, *args): + r""" + + Parameters + ---------- + E: int + ED: HLRBRep_EdgeData + LevelFlag: bool + param: float + + Return + ------- + Level: int + + Description + ----------- + Classification of an edge. + + """ + return _HLRBRep.HLRBRep_Data_Classify(self, *args) + + def Compare(self, *args): + r""" + + Parameters + ---------- + E: int + ED: HLRBRep_EdgeData + + Return + ------- + TopAbs_State + + Description + ----------- + Returns the state of the Edge after classification. + + """ + return _HLRBRep.HLRBRep_Data_Compare(self, *args) + + def Destroy(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_Data_Destroy(self, *args) + + def EDataArray(self, *args): + r""" + Return + ------- + HLRBRep_Array1OfEData + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_Data_EDataArray(self, *args) + + def Edge(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Returns the current Edge. + + """ + return _HLRBRep.HLRBRep_Data_Edge(self, *args) + + def EdgeMap(self, *args): + r""" + Return + ------- + TopTools_IndexedMapOfShape + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_Data_EdgeMap(self, *args) + + def EdgeOfTheHidingFace(self, *args): + r""" + + Parameters + ---------- + E: int + ED: HLRBRep_EdgeData + + Return + ------- + bool + + Description + ----------- + Returns the true if the Edge belongs to the Hiding Face. + + """ + return _HLRBRep.HLRBRep_Data_EdgeOfTheHidingFace(self, *args) + + def EdgeState(self, *args): + r""" + + Parameters + ---------- + p1: float + p2: float + + Return + ------- + stbef: TopAbs_State + staf: TopAbs_State + + Description + ----------- + Returns the local 3D state of the intersection between the current edge and the current face at the and parameters. + + """ + return _HLRBRep.HLRBRep_Data_EdgeState(self, *args) + + def FDataArray(self, *args): + r""" + Return + ------- + HLRBRep_Array1OfFData + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_Data_FDataArray(self, *args) + + def FaceMap(self, *args): + r""" + Return + ------- + TopTools_IndexedMapOfShape + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_Data_FaceMap(self, *args) + + def HidingStartLevel(self, *args): + r""" + + Parameters + ---------- + E: int + ED: HLRBRep_EdgeData + IL: HLRAlgo_InterferenceList + + Return + ------- + int + + Description + ----------- + Returns the number of levels of hiding face above the first point of the edge . The InterferenceList is given to compute far away of the Interferences and then come back. + + """ + return _HLRBRep.HLRBRep_Data_HidingStartLevel(self, *args) + + def HidingTheFace(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns true if the current edge to be hidden belongs to the hiding face. + + """ + return _HLRBRep.HLRBRep_Data_HidingTheFace(self, *args) + + def InitBoundSort(self, *args): + r""" + + Parameters + ---------- + MinMaxTot: HLRAlgo_EdgesBlock::MinMaxIndices + e1: int + e2: int + + Return + ------- + None + + Description + ----------- + to compare with only non rejected edges. + + """ + return _HLRBRep.HLRBRep_Data_InitBoundSort(self, *args) + + def InitEdge(self, *args): + r""" + + Parameters + ---------- + FI: int + MST: BRepTopAdaptor_MapOfShapeTool + + Return + ------- + None + + Description + ----------- + Begin an iteration only on visible Edges crossing the face number . + + """ + return _HLRBRep.HLRBRep_Data_InitEdge(self, *args) + + def InitInterference(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Intersect the current Edge with the boundary of the hiding face. The interferences are given by the More, Next, and Value methods. + + """ + return _HLRBRep.HLRBRep_Data_InitInterference(self, *args) + + def Interference(self, *args): + r""" + Return + ------- + HLRAlgo_Interference + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_Data_Interference(self, *args) + + def IsBadFace(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns true if the current face is bad. + + """ + return _HLRBRep.HLRBRep_Data_IsBadFace(self, *args) + + def LocalFEGeometry2D(self, *args): + r""" + + Parameters + ---------- + FE: int + Param: float + Tg: gp_Dir2d + Nm: gp_Dir2d + + Return + ------- + Cu: float + + Description + ----------- + Returns the local description of the projection of the current FEdge at parameter . + + """ + return _HLRBRep.HLRBRep_Data_LocalFEGeometry2D(self, *args) + + def LocalLEGeometry2D(self, *args): + r""" + + Parameters + ---------- + Param: float + Tg: gp_Dir2d + Nm: gp_Dir2d + + Return + ------- + Cu: float + + Description + ----------- + Returns the local description of the projection of the current LEdge at parameter . + + """ + return _HLRBRep.HLRBRep_Data_LocalLEGeometry2D(self, *args) + + def MoreEdge(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_Data_MoreEdge(self, *args) + + def MoreInterference(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_Data_MoreInterference(self, *args) + + def NbEdges(self, *args): + r""" + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_Data_NbEdges(self, *args) + + def NbFaces(self, *args): + r""" + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_Data_NbFaces(self, *args) + + def NbVertices(self, *args): + r""" + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_Data_NbVertices(self, *args) + + def NextEdge(self, *args): + r""" + + Parameters + ---------- + skip: bool (optional, default to Standard_True) + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_Data_NextEdge(self, *args) + + def NextInterference(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_Data_NextInterference(self, *args) + + def Projector(self, *args): + r""" + Return + ------- + HLRAlgo_Projector + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_Data_Projector(self, *args) + + def RejectedInterference(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True if the interference is rejected. + + """ + return _HLRBRep.HLRBRep_Data_RejectedInterference(self, *args) + + def SimplClassify(self, *args): + r""" + + Parameters + ---------- + E: int + ED: HLRBRep_EdgeData + Nbp: int + p1: float + p2: float + + Return + ------- + TopAbs_State + + Description + ----------- + Simple classification of part of edge [p1, p2]. Returns OUT if at least 1 of Nbp points of edge is out; otherwise returns IN. It is used to check 'suspicion' hidden part of edge. + + """ + return _HLRBRep.HLRBRep_Data_SimplClassify(self, *args) + + def SimpleHidingFace(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns true if the current hiding face is not an auto-intersected one. + + """ + return _HLRBRep.HLRBRep_Data_SimpleHidingFace(self, *args) + + def Tolerance(self, *args): + r""" + + Parameters + ---------- + tol: float + + Return + ------- + None + + Description + ----------- + Set the tolerance for the rejections during the exploration. + Return + ------- + float + + Description + ----------- + returns the tolerance for the rejections during the exploration. + + """ + return _HLRBRep.HLRBRep_Data_Tolerance(self, *args) + + def Update(self, *args): + r""" + + Parameters + ---------- + P: HLRAlgo_Projector + + Return + ------- + None + + Description + ----------- + end of building of the Data and updating all the information linked to the projection. + + """ + return _HLRBRep.HLRBRep_Data_Update(self, *args) + + def Write(self, *args): + r""" + + Parameters + ---------- + DS: HLRBRep_Data + dv: int + de: int + df: int + + Return + ------- + None + + Description + ----------- + Write in me with a translation of ,,. + + """ + return _HLRBRep.HLRBRep_Data_Write(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_HLRBRep_Data_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _HLRBRep.delete_HLRBRep_Data + +# Register HLRBRep_Data in _HLRBRep: +_HLRBRep.HLRBRep_Data_swigregister(HLRBRep_Data) +class HLRBRep_EdgeBuilder(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 + ---------- + VList: HLRBRep_VertexList + + Return + ------- + None + + Description + ----------- + Creates an EdgeBuilder algorithm. describes the edge and the interferences. AreaLimits are created from the vertices. Builds(IN) is automatically called. + + """ + _HLRBRep.HLRBRep_EdgeBuilder_swiginit(self, _HLRBRep.new_HLRBRep_EdgeBuilder(*args)) + + def AreaEdgeState(self, *args): + r""" + Return + ------- + TopAbs_State + + Description + ----------- + Returns the edge state of the current area. + + """ + return _HLRBRep.HLRBRep_EdgeBuilder_AreaEdgeState(self, *args) + + def AreaState(self, *args): + r""" + Return + ------- + TopAbs_State + + Description + ----------- + Returns the state of the current area. + + """ + return _HLRBRep.HLRBRep_EdgeBuilder_AreaState(self, *args) + + def Builds(self, *args): + r""" + + Parameters + ---------- + ToBuild: TopAbs_State + + Return + ------- + None + + Description + ----------- + Reinitialize the results iteration to the parts with State . If this method is not called after construction the default is = IN. + + """ + return _HLRBRep.HLRBRep_EdgeBuilder_Builds(self, *args) + + def Current(self, *args): + r""" + Return + ------- + HLRAlgo_Intersection + + Description + ----------- + Returns the current vertex of the current edge. + + """ + return _HLRBRep.HLRBRep_EdgeBuilder_Current(self, *args) + + def Destroy(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_EdgeBuilder_Destroy(self, *args) + + def HasArea(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True if there is a current area. + + """ + return _HLRBRep.HLRBRep_EdgeBuilder_HasArea(self, *args) + + def InitAreas(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Initialize an iteration on the areas. + + """ + return _HLRBRep.HLRBRep_EdgeBuilder_InitAreas(self, *args) + + def IsBoundary(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True if the current vertex comes from the boundary of the edge. + + """ + return _HLRBRep.HLRBRep_EdgeBuilder_IsBoundary(self, *args) + + def IsInterference(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True if the current vertex was an interference. + + """ + return _HLRBRep.HLRBRep_EdgeBuilder_IsInterference(self, *args) + + def LeftLimit(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the AreaLimit beginning the current area. This is a NULL handle when the area is infinite on the left. + + """ + return _HLRBRep.HLRBRep_EdgeBuilder_LeftLimit(self, *args) + + def MoreEdges(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True if there are more new edges to build. + + """ + return _HLRBRep.HLRBRep_EdgeBuilder_MoreEdges(self, *args) + + def MoreVertices(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + True if there are more vertices in the current new edge. + + """ + return _HLRBRep.HLRBRep_EdgeBuilder_MoreVertices(self, *args) + + def NextArea(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Set the current area to the next area. + + """ + return _HLRBRep.HLRBRep_EdgeBuilder_NextArea(self, *args) + + def NextEdge(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Proceeds to the next edge to build. Skip all remaining vertices on the current edge. + + """ + return _HLRBRep.HLRBRep_EdgeBuilder_NextEdge(self, *args) + + def NextVertex(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Proceeds to the next vertex of the current edge. + + """ + return _HLRBRep.HLRBRep_EdgeBuilder_NextVertex(self, *args) + + def Orientation(self, *args): + r""" + Return + ------- + TopAbs_Orientation + + Description + ----------- + Returns the new orientation of the current vertex. + + """ + return _HLRBRep.HLRBRep_EdgeBuilder_Orientation(self, *args) + + def PreviousArea(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Set the current area to the previous area. + + """ + return _HLRBRep.HLRBRep_EdgeBuilder_PreviousArea(self, *args) + + def RightLimit(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the AreaLimit ending the current area. This is a NULL handle when the area is infinite on the right. + + """ + return _HLRBRep.HLRBRep_EdgeBuilder_RightLimit(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _HLRBRep.delete_HLRBRep_EdgeBuilder + +# Register HLRBRep_EdgeBuilder in _HLRBRep: +_HLRBRep.HLRBRep_EdgeBuilder_swigregister(HLRBRep_EdgeBuilder) +class HLRBRep_EdgeData(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. + + """ + _HLRBRep.HLRBRep_EdgeData_swiginit(self, _HLRBRep.new_HLRBRep_EdgeData(*args)) + + def AutoIntersectionDone(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + Parameters + ---------- + B: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_EdgeData_AutoIntersectionDone(self, *args) + + def ChangeGeometry(self, *args): + r""" + Return + ------- + HLRBRep_Curve + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_EdgeData_ChangeGeometry(self, *args) + + def Curve(self, *args): + r""" + Return + ------- + HLRBRep_Curve * + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_EdgeData_Curve(self, *args) + + def CutAtEnd(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + Parameters + ---------- + B: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_EdgeData_CutAtEnd(self, *args) + + def CutAtSta(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + Parameters + ---------- + B: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_EdgeData_CutAtSta(self, *args) + + def Geometry(self, *args): + r""" + Return + ------- + HLRBRep_Curve + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_EdgeData_Geometry(self, *args) + + def HideCount(self, *args): + r""" + Return + ------- + int + + Description + ----------- + No available documentation. + + Parameters + ---------- + I: int + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_EdgeData_HideCount(self, *args) + + def MinMax(self, *args): + r""" + Return + ------- + HLRAlgo_EdgesBlock::MinMaxIndices + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_EdgeData_MinMax(self, *args) + + def OutLVEnd(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + Parameters + ---------- + B: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_EdgeData_OutLVEnd(self, *args) + + def OutLVSta(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + Parameters + ---------- + B: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_EdgeData_OutLVSta(self, *args) + + def Rg1Line(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + Parameters + ---------- + B: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_EdgeData_Rg1Line(self, *args) + + def RgNLine(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + Parameters + ---------- + B: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_EdgeData_RgNLine(self, *args) + + def Selected(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + Parameters + ---------- + B: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_EdgeData_Selected(self, *args) + + def Set(self, *args): + r""" + + Parameters + ---------- + Reg1: bool + RegN: bool + EG: TopoDS_Edge + V1: int + V2: int + Out1: bool + Out2: bool + Cut1: bool + Cut2: bool + Start: float + TolStart: float + End: float + TolEnd: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_EdgeData_Set(self, *args) + + def Simple(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + Parameters + ---------- + B: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_EdgeData_Simple(self, *args) + + def Status(self, *args): + r""" + Return + ------- + HLRAlgo_EdgeStatus + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_EdgeData_Status(self, *args) + + def Tolerance(self, *args): + r""" + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_EdgeData_Tolerance(self, *args) + + def UpdateMinMax(self, *args): + r""" + + Parameters + ---------- + theTotMinMax: HLRAlgo_EdgesBlock::MinMaxIndices + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_EdgeData_UpdateMinMax(self, *args) + + def Used(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + Parameters + ---------- + B: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_EdgeData_Used(self, *args) + + def VEnd(self, *args): + r""" + Return + ------- + int + + Description + ----------- + No available documentation. + + Parameters + ---------- + I: int + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_EdgeData_VEnd(self, *args) + + def VSta(self, *args): + r""" + Return + ------- + int + + Description + ----------- + No available documentation. + + Parameters + ---------- + I: int + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_EdgeData_VSta(self, *args) + + def VerAtEnd(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + Parameters + ---------- + B: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_EdgeData_VerAtEnd(self, *args) + + def VerAtSta(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + Parameters + ---------- + B: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_EdgeData_VerAtSta(self, *args) + + def Vertical(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + Parameters + ---------- + B: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_EdgeData_Vertical(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _HLRBRep.delete_HLRBRep_EdgeData + +# Register HLRBRep_EdgeData in _HLRBRep: +_HLRBRep.HLRBRep_EdgeData_swigregister(HLRBRep_EdgeData) +class HLRBRep_EdgeFaceTool(object): + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") + __repr__ = _swig_repr + + @staticmethod + def CurvatureValue(*args): + r""" + + Parameters + ---------- + F: Standard_Address + U: float + V: float + Tg: gp_Dir + + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_EdgeFaceTool_CurvatureValue(*args) + + @staticmethod + def UVPoint(*args): + r""" + + Parameters + ---------- + Par: float + E: Standard_Address + F: Standard_Address + + Return + ------- + U: float + V: float + + Description + ----------- + return True if U and V are found. + + """ + return _HLRBRep.HLRBRep_EdgeFaceTool_UVPoint(*args) + + __repr__ = _dumps_object + + + def __init__(self): + _HLRBRep.HLRBRep_EdgeFaceTool_swiginit(self, _HLRBRep.new_HLRBRep_EdgeFaceTool()) + __swig_destroy__ = _HLRBRep.delete_HLRBRep_EdgeFaceTool + +# Register HLRBRep_EdgeFaceTool in _HLRBRep: +_HLRBRep.HLRBRep_EdgeFaceTool_swigregister(HLRBRep_EdgeFaceTool) +class HLRBRep_EdgeIList(object): + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") + __repr__ = _swig_repr + + @staticmethod + def AddInterference(*args): + r""" + + Parameters + ---------- + IL: HLRAlgo_InterferenceList + I: HLRAlgo_Interference + T: HLRBRep_EdgeInterferenceTool + + Return + ------- + None + + Description + ----------- + Add the interference to the list . + + """ + return _HLRBRep.HLRBRep_EdgeIList_AddInterference(*args) + + @staticmethod + def ProcessComplex(*args): + r""" + + Parameters + ---------- + IL: HLRAlgo_InterferenceList + T: HLRBRep_EdgeInterferenceTool + + Return + ------- + None + + Description + ----------- + Process complex transitions on the list IL. + + """ + return _HLRBRep.HLRBRep_EdgeIList_ProcessComplex(*args) + + __repr__ = _dumps_object + + + def __init__(self): + _HLRBRep.HLRBRep_EdgeIList_swiginit(self, _HLRBRep.new_HLRBRep_EdgeIList()) + __swig_destroy__ = _HLRBRep.delete_HLRBRep_EdgeIList + +# Register HLRBRep_EdgeIList in _HLRBRep: +_HLRBRep.HLRBRep_EdgeIList_swigregister(HLRBRep_EdgeIList) +class HLRBRep_EdgeInterferenceTool(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 + ---------- + DS: HLRBRep_Data + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _HLRBRep.HLRBRep_EdgeInterferenceTool_swiginit(self, _HLRBRep.new_HLRBRep_EdgeInterferenceTool(*args)) + + def CurrentOrientation(self, *args): + r""" + Return + ------- + TopAbs_Orientation + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_EdgeInterferenceTool_CurrentOrientation(self, *args) + + def CurrentParameter(self, *args): + r""" + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_EdgeInterferenceTool_CurrentParameter(self, *args) + + def CurrentVertex(self, *args): + r""" + Return + ------- + HLRAlgo_Intersection + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_EdgeInterferenceTool_CurrentVertex(self, *args) + + def EdgeGeometry(self, *args): + r""" + + Parameters + ---------- + Param: float + Tgt: gp_Dir + Nrm: gp_Dir + + Return + ------- + Curv: float + + Description + ----------- + Returns local geometric description of the Edge at parameter . See method Reset of class EdgeFaceTransition from TopCnx for other arguments. + + """ + return _HLRBRep.HLRBRep_EdgeInterferenceTool_EdgeGeometry(self, *args) + + def InitVertices(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_EdgeInterferenceTool_InitVertices(self, *args) + + def InterferenceBoundaryGeometry(self, *args): + r""" + + Parameters + ---------- + I: HLRAlgo_Interference + Tang: gp_Dir + Norm: gp_Dir + + Return + ------- + Curv: float + + Description + ----------- + Returns the geometry of the boundary at the interference . See the AddInterference method of the class EdgeFaceTransition from TopCnx for the other arguments. + + """ + return _HLRBRep.HLRBRep_EdgeInterferenceTool_InterferenceBoundaryGeometry(self, *args) + + def IsPeriodic(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_EdgeInterferenceTool_IsPeriodic(self, *args) + + def LoadEdge(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_EdgeInterferenceTool_LoadEdge(self, *args) + + def MoreVertices(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_EdgeInterferenceTool_MoreVertices(self, *args) + + def NextVertex(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_EdgeInterferenceTool_NextVertex(self, *args) + + def ParameterOfInterference(self, *args): + r""" + + Parameters + ---------- + I: HLRAlgo_Interference + + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_EdgeInterferenceTool_ParameterOfInterference(self, *args) + + def SameInterferences(self, *args): + r""" + + Parameters + ---------- + I1: HLRAlgo_Interference + I2: HLRAlgo_Interference + + Return + ------- + bool + + Description + ----------- + True if the two interferences are on the same geometric locus. + + """ + return _HLRBRep.HLRBRep_EdgeInterferenceTool_SameInterferences(self, *args) + + def SameVertexAndInterference(self, *args): + r""" + + Parameters + ---------- + I: HLRAlgo_Interference + + Return + ------- + bool + + Description + ----------- + True if the Interference and the current Vertex are on the same geometric locus. + + """ + return _HLRBRep.HLRBRep_EdgeInterferenceTool_SameVertexAndInterference(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _HLRBRep.delete_HLRBRep_EdgeInterferenceTool + +# Register HLRBRep_EdgeInterferenceTool in _HLRBRep: +_HLRBRep.HLRBRep_EdgeInterferenceTool_swigregister(HLRBRep_EdgeInterferenceTool) +class HLRBRep_ExactIntersectionPointOfTheIntPCurvePCurveOfCInter(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 + ---------- + C1: Standard_Address + C2: Standard_Address + Tol: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _HLRBRep.HLRBRep_ExactIntersectionPointOfTheIntPCurvePCurveOfCInter_swiginit(self, _HLRBRep.new_HLRBRep_ExactIntersectionPointOfTheIntPCurvePCurveOfCInter(*args)) + + def AnErrorOccurred(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_ExactIntersectionPointOfTheIntPCurvePCurveOfCInter_AnErrorOccurred(self, *args) + + def NbRoots(self, *args): + r""" + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_ExactIntersectionPointOfTheIntPCurvePCurveOfCInter_NbRoots(self, *args) + + def Perform(self, *args): + r""" + + Parameters + ---------- + Poly1: HLRBRep_ThePolygon2dOfTheIntPCurvePCurveOfCInter + Poly2: HLRBRep_ThePolygon2dOfTheIntPCurvePCurveOfCInter + + Return + ------- + NumSegOn1: int + NumSegOn2: int + ParamOnSeg1: float + ParamOnSeg2: float + + Description + ----------- + No available documentation. + + Parameters + ---------- + Uo: float + Vo: float + UInf: float + VInf: float + USup: float + VSup: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_ExactIntersectionPointOfTheIntPCurvePCurveOfCInter_Perform(self, *args) + + def Roots(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + U: float + V: float + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_ExactIntersectionPointOfTheIntPCurvePCurveOfCInter_Roots(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _HLRBRep.delete_HLRBRep_ExactIntersectionPointOfTheIntPCurvePCurveOfCInter + +# Register HLRBRep_ExactIntersectionPointOfTheIntPCurvePCurveOfCInter in _HLRBRep: +_HLRBRep.HLRBRep_ExactIntersectionPointOfTheIntPCurvePCurveOfCInter_swigregister(HLRBRep_ExactIntersectionPointOfTheIntPCurvePCurveOfCInter) +class HLRBRep_FaceData(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. + + """ + _HLRBRep.HLRBRep_FaceData_swiginit(self, _HLRBRep.new_HLRBRep_FaceData(*args)) + + def Back(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + Parameters + ---------- + B: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_FaceData_Back(self, *args) + + def Closed(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + Parameters + ---------- + B: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_FaceData_Closed(self, *args) + + def Cone(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + Parameters + ---------- + B: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_FaceData_Cone(self, *args) + + def Cut(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + Parameters + ---------- + B: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_FaceData_Cut(self, *args) + + def Cylinder(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + Parameters + ---------- + B: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_FaceData_Cylinder(self, *args) + + def Geometry(self, *args): + r""" + Return + ------- + HLRBRep_Surface + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_FaceData_Geometry(self, *args) + + def Hiding(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + Parameters + ---------- + B: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_FaceData_Hiding(self, *args) + + def Orientation(self, *args): + r""" + Return + ------- + TopAbs_Orientation + + Description + ----------- + No available documentation. + + Parameters + ---------- + O: TopAbs_Orientation + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_FaceData_Orientation(self, *args) + + def Plane(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + Parameters + ---------- + B: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_FaceData_Plane(self, *args) + + def Selected(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + Parameters + ---------- + B: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_FaceData_Selected(self, *args) + + def Set(self, *args): + r""" + + Parameters + ---------- + FG: TopoDS_Face + Or: TopAbs_Orientation + Cl: bool + NW: int + + Return + ------- + None + + Description + ----------- + is the orientation of the face. is true if the face belongs to a closed volume. is the number of wires ( or block of edges ) of the face. + + """ + return _HLRBRep.HLRBRep_FaceData_Set(self, *args) + + def SetWEdge(self, *args): + r""" + + Parameters + ---------- + WI: int + EWI: int + EI: int + Or: TopAbs_Orientation + OutL: bool + Inte: bool + Dble: bool + IsoL: bool + + Return + ------- + None + + Description + ----------- + Set the edge number of the wire . + + """ + return _HLRBRep.HLRBRep_FaceData_SetWEdge(self, *args) + + def SetWire(self, *args): + r""" + + Parameters + ---------- + WI: int + NE: int + + Return + ------- + None + + Description + ----------- + Set the number of edges of the wire number . + + """ + return _HLRBRep.HLRBRep_FaceData_SetWire(self, *args) + + def Side(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + Parameters + ---------- + B: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_FaceData_Side(self, *args) + + def Simple(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + Parameters + ---------- + B: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_FaceData_Simple(self, *args) + + def Size(self, *args): + r""" + Return + ------- + float + + Description + ----------- + No available documentation. + + Parameters + ---------- + S: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_FaceData_Size(self, *args) + + def Sphere(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + Parameters + ---------- + B: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_FaceData_Sphere(self, *args) + + def Tolerance(self, *args): + r""" + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_FaceData_Tolerance(self, *args) + + def Torus(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + Parameters + ---------- + B: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_FaceData_Torus(self, *args) + + def Wires(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_FaceData_Wires(self, *args) + + def WithOutL(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + Parameters + ---------- + B: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_FaceData_WithOutL(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _HLRBRep.delete_HLRBRep_FaceData + +# Register HLRBRep_FaceData in _HLRBRep: +_HLRBRep.HLRBRep_FaceData_swigregister(HLRBRep_FaceData) +class HLRBRep_FaceIterator(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. + + """ + _HLRBRep.HLRBRep_FaceIterator_swiginit(self, _HLRBRep.new_HLRBRep_FaceIterator(*args)) + + def BeginningOfWire(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True if the current edge is the first of a wire. + + """ + return _HLRBRep.HLRBRep_FaceIterator_BeginningOfWire(self, *args) + + def Double(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_FaceIterator_Double(self, *args) + + def Edge(self, *args): + r""" + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_FaceIterator_Edge(self, *args) + + def EndOfWire(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True if the current edge is the last of a wire. + + """ + return _HLRBRep.HLRBRep_FaceIterator_EndOfWire(self, *args) + + def InitEdge(self, *args): + r""" + + Parameters + ---------- + fd: HLRBRep_FaceData + + Return + ------- + None + + Description + ----------- + Begin an exploration of the edges of the face . + + """ + return _HLRBRep.HLRBRep_FaceIterator_InitEdge(self, *args) + + def Internal(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_FaceIterator_Internal(self, *args) + + def IsoLine(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_FaceIterator_IsoLine(self, *args) + + def MoreEdge(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_FaceIterator_MoreEdge(self, *args) + + def NextEdge(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_FaceIterator_NextEdge(self, *args) + + def Orientation(self, *args): + r""" + Return + ------- + TopAbs_Orientation + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_FaceIterator_Orientation(self, *args) + + def OutLine(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_FaceIterator_OutLine(self, *args) + + def SkipWire(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Skip the current wire in the exploration. + + """ + return _HLRBRep.HLRBRep_FaceIterator_SkipWire(self, *args) + + def Wire(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the edges of the current wire. + + """ + return _HLRBRep.HLRBRep_FaceIterator_Wire(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _HLRBRep.delete_HLRBRep_FaceIterator + +# Register HLRBRep_FaceIterator in _HLRBRep: +_HLRBRep.HLRBRep_FaceIterator_swigregister(HLRBRep_FaceIterator) +class HLRBRep_HLRToShape(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 + ---------- + A: HLRBRep_Algo + + Return + ------- + None + + Description + ----------- + Constructs a framework for filtering the results of the HLRBRep_Algo algorithm, A. Use the extraction filters to obtain the results you want for A. + + """ + _HLRBRep.HLRBRep_HLRToShape_swiginit(self, _HLRBRep.new_HLRBRep_HLRToShape(*args)) + + def CompoundOfEdges(self, *args): + r""" + + Parameters + ---------- + type: HLRBRep_TypeOfResultingEdge + visible: bool + In3d: bool + + Return + ------- + TopoDS_Shape + + Description + ----------- + Returns compound of resulting edges of required type and visibility, taking into account the kind of space (2d or 3d). + + Parameters + ---------- + S: TopoDS_Shape + type: HLRBRep_TypeOfResultingEdge + visible: bool + In3d: bool + + Return + ------- + TopoDS_Shape + + Description + ----------- + For specified shape returns compound of resulting edges of required type and visibility, taking into account the kind of space (2d or 3d). + + """ + return _HLRBRep.HLRBRep_HLRToShape_CompoundOfEdges(self, *args) + + def HCompound(self, *args): + r""" + Return + ------- + TopoDS_Shape + + Description + ----------- + No available documentation. + + Parameters + ---------- + S: TopoDS_Shape + + Return + ------- + TopoDS_Shape + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_HLRToShape_HCompound(self, *args) + + def IsoLineHCompound(self, *args): + r""" + Return + ------- + TopoDS_Shape + + Description + ----------- + No available documentation. + + Parameters + ---------- + S: TopoDS_Shape + + Return + ------- + TopoDS_Shape + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_HLRToShape_IsoLineHCompound(self, *args) + + def IsoLineVCompound(self, *args): + r""" + Return + ------- + TopoDS_Shape + + Description + ----------- + No available documentation. + + Parameters + ---------- + S: TopoDS_Shape + + Return + ------- + TopoDS_Shape + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_HLRToShape_IsoLineVCompound(self, *args) + + def OutLineHCompound(self, *args): + r""" + Return + ------- + TopoDS_Shape + + Description + ----------- + No available documentation. + + Parameters + ---------- + S: TopoDS_Shape + + Return + ------- + TopoDS_Shape + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_HLRToShape_OutLineHCompound(self, *args) + + def OutLineVCompound(self, *args): + r""" + Return + ------- + TopoDS_Shape + + Description + ----------- + No available documentation. + + Parameters + ---------- + S: TopoDS_Shape + + Return + ------- + TopoDS_Shape + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_HLRToShape_OutLineVCompound(self, *args) + + def OutLineVCompound3d(self, *args): + r""" + Return + ------- + TopoDS_Shape + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_HLRToShape_OutLineVCompound3d(self, *args) + + def Rg1LineHCompound(self, *args): + r""" + Return + ------- + TopoDS_Shape + + Description + ----------- + No available documentation. + + Parameters + ---------- + S: TopoDS_Shape + + Return + ------- + TopoDS_Shape + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_HLRToShape_Rg1LineHCompound(self, *args) + + def Rg1LineVCompound(self, *args): + r""" + Return + ------- + TopoDS_Shape + + Description + ----------- + No available documentation. + + Parameters + ---------- + S: TopoDS_Shape + + Return + ------- + TopoDS_Shape + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_HLRToShape_Rg1LineVCompound(self, *args) + + def RgNLineHCompound(self, *args): + r""" + Return + ------- + TopoDS_Shape + + Description + ----------- + No available documentation. + + Parameters + ---------- + S: TopoDS_Shape + + Return + ------- + TopoDS_Shape + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_HLRToShape_RgNLineHCompound(self, *args) + + def RgNLineVCompound(self, *args): + r""" + Return + ------- + TopoDS_Shape + + Description + ----------- + No available documentation. + + Parameters + ---------- + S: TopoDS_Shape + + Return + ------- + TopoDS_Shape + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_HLRToShape_RgNLineVCompound(self, *args) + + def VCompound(self, *args): + r""" + Return + ------- + TopoDS_Shape + + Description + ----------- + No available documentation. + + Parameters + ---------- + S: TopoDS_Shape + + Return + ------- + TopoDS_Shape + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_HLRToShape_VCompound(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _HLRBRep.delete_HLRBRep_HLRToShape + +# Register HLRBRep_HLRToShape in _HLRBRep: +_HLRBRep.HLRBRep_HLRToShape_swigregister(HLRBRep_HLRToShape) +class HLRBRep_Hider(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 + ---------- + DS: HLRBRep_Data + + Return + ------- + None + + Description + ----------- + Creates a Hider processing the set of Edges and hiding faces described by . Stores the hidden parts in . + + """ + _HLRBRep.HLRBRep_Hider_swiginit(self, _HLRBRep.new_HLRBRep_Hider(*args)) + + def Hide(self, *args): + r""" + + Parameters + ---------- + FI: int + MST: BRepTopAdaptor_MapOfShapeTool + + Return + ------- + None + + Description + ----------- + Removes from the edges, the parts hidden by the hiding face number . + + """ + return _HLRBRep.HLRBRep_Hider_Hide(self, *args) + + def OwnHiding(self, *args): + r""" + + Parameters + ---------- + FI: int + + Return + ------- + None + + Description + ----------- + own hiding the side face number . + + """ + return _HLRBRep.HLRBRep_Hider_OwnHiding(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _HLRBRep.delete_HLRBRep_Hider + +# Register HLRBRep_Hider in _HLRBRep: +_HLRBRep.HLRBRep_Hider_swigregister(HLRBRep_Hider) +class HLRBRep_IntConicCurveOfCInter(OCC.Core.IntRes2d.IntRes2d_Intersection): + 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 + ----------- + Empty constructor. + + Parameters + ---------- + L: gp_Lin2d + D1: IntRes2d_Domain + PCurve: Standard_Address + D2: IntRes2d_Domain + TolConf: float + Tol: float + + Return + ------- + None + + Description + ----------- + Intersection between a line and a parametric curve. + + Parameters + ---------- + C: gp_Circ2d + D1: IntRes2d_Domain + PCurve: Standard_Address + D2: IntRes2d_Domain + TolConf: float + Tol: float + + Return + ------- + None + + Description + ----------- + Intersection between a line and a parametric curve. + + Parameters + ---------- + E: gp_Elips2d + D1: IntRes2d_Domain + PCurve: Standard_Address + D2: IntRes2d_Domain + TolConf: float + Tol: float + + Return + ------- + None + + Description + ----------- + Intersection between an ellipse and a parametric curve. + + Parameters + ---------- + Prb: gp_Parab2d + D1: IntRes2d_Domain + PCurve: Standard_Address + D2: IntRes2d_Domain + TolConf: float + Tol: float + + Return + ------- + None + + Description + ----------- + Intersection between a parabola and a parametric curve. + + Parameters + ---------- + H: gp_Hypr2d + D1: IntRes2d_Domain + PCurve: Standard_Address + D2: IntRes2d_Domain + TolConf: float + Tol: float + + Return + ------- + None + + Description + ----------- + Intersection between the main branch of an hyperbola and a parametric curve. + + """ + _HLRBRep.HLRBRep_IntConicCurveOfCInter_swiginit(self, _HLRBRep.new_HLRBRep_IntConicCurveOfCInter(*args)) + + def Perform(self, *args): + r""" + + Parameters + ---------- + L: gp_Lin2d + D1: IntRes2d_Domain + PCurve: Standard_Address + D2: IntRes2d_Domain + TolConf: float + Tol: float + + Return + ------- + None + + Description + ----------- + Intersection between a line and a parametric curve. + + Parameters + ---------- + C: gp_Circ2d + D1: IntRes2d_Domain + PCurve: Standard_Address + D2: IntRes2d_Domain + TolConf: float + Tol: float + + Return + ------- + None + + Description + ----------- + Intersection between a line and a parametric curve. + + Parameters + ---------- + E: gp_Elips2d + D1: IntRes2d_Domain + PCurve: Standard_Address + D2: IntRes2d_Domain + TolConf: float + Tol: float + + Return + ------- + None + + Description + ----------- + Intersection between an ellipse and a parametric curve. + + Parameters + ---------- + Prb: gp_Parab2d + D1: IntRes2d_Domain + PCurve: Standard_Address + D2: IntRes2d_Domain + TolConf: float + Tol: float + + Return + ------- + None + + Description + ----------- + Intersection between a parabola and a parametric curve. + + Parameters + ---------- + H: gp_Hypr2d + D1: IntRes2d_Domain + PCurve: Standard_Address + D2: IntRes2d_Domain + TolConf: float + Tol: float + + Return + ------- + None + + Description + ----------- + Intersection between the main branch of an hyperbola and a parametric curve. + + """ + return _HLRBRep.HLRBRep_IntConicCurveOfCInter_Perform(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _HLRBRep.delete_HLRBRep_IntConicCurveOfCInter + +# Register HLRBRep_IntConicCurveOfCInter in _HLRBRep: +_HLRBRep.HLRBRep_IntConicCurveOfCInter_swigregister(HLRBRep_IntConicCurveOfCInter) +class HLRBRep_InterCSurf(OCC.Core.IntCurveSurface.IntCurveSurface_Intersection): + 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 + ----------- + Empty Constructor. + + """ + _HLRBRep.HLRBRep_InterCSurf_swiginit(self, _HLRBRep.new_HLRBRep_InterCSurf(*args)) + + def Perform(self, *args): + r""" + + Parameters + ---------- + Curve: gp_Lin + Surface: Standard_Address + + Return + ------- + None + + Description + ----------- + Compute the Intersection between the curve and the surface. + + Parameters + ---------- + Curve: gp_Lin + Polygon: HLRBRep_ThePolygonOfInterCSurf + Surface: Standard_Address + + Return + ------- + None + + Description + ----------- + Compute the Intersection between the curve and the surface. The Curve is already sampled and its polygon: is given. + + Parameters + ---------- + Curve: gp_Lin + ThePolygon: HLRBRep_ThePolygonOfInterCSurf + Surface: Standard_Address + Polyhedron: HLRBRep_ThePolyhedronOfInterCSurf + + Return + ------- + None + + Description + ----------- + Compute the Intersection between the curve and the surface. The Curve is already sampled and its polygon: is given. The Surface is also sampled and is given. + + Parameters + ---------- + Curve: gp_Lin + ThePolygon: HLRBRep_ThePolygonOfInterCSurf + Surface: Standard_Address + Polyhedron: HLRBRep_ThePolyhedronOfInterCSurf + BndBSB: Bnd_BoundSortBox + + Return + ------- + None + + Description + ----------- + Compute the Intersection between the curve and the surface. The Curve is already sampled and its polygon: is given. The Surface is also sampled and is given. + + Parameters + ---------- + Curve: gp_Lin + Surface: Standard_Address + Polyhedron: HLRBRep_ThePolyhedronOfInterCSurf + + Return + ------- + None + + Description + ----------- + Compute the Intersection between the curve and the surface. The Surface is already sampled and its polyhedron: is given. + + """ + return _HLRBRep.HLRBRep_InterCSurf_Perform(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _HLRBRep.delete_HLRBRep_InterCSurf + +# Register HLRBRep_InterCSurf in _HLRBRep: +_HLRBRep.HLRBRep_InterCSurf_swigregister(HLRBRep_InterCSurf) +class HLRBRep_InternalAlgo(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 + ----------- + No available documentation. + + Parameters + ---------- + A: HLRBRep_InternalAlgo + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _HLRBRep.HLRBRep_InternalAlgo_swiginit(self, _HLRBRep.new_HLRBRep_InternalAlgo(*args)) + + def DataStructure(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_InternalAlgo_DataStructure(self, *args) + + def Debug(self, *args): + r""" + + Parameters + ---------- + deb: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_InternalAlgo_Debug(self, *args) + + def Hide(self, *args): + r""" + Return + ------- + None + + Description + ----------- + hide all the DataStructure. + + Parameters + ---------- + I: int + + Return + ------- + None + + Description + ----------- + hide the Shape by itself. + + Parameters + ---------- + I: int + J: int + + Return + ------- + None + + Description + ----------- + hide the Shape by the shape . + + """ + return _HLRBRep.HLRBRep_InternalAlgo_Hide(self, *args) + + def HideAll(self, *args): + r""" + Return + ------- + None + + Description + ----------- + set to hide all the edges. + + Parameters + ---------- + I: int + + Return + ------- + None + + Description + ----------- + set to hide all the edges of the Shape . + + """ + return _HLRBRep.HLRBRep_InternalAlgo_HideAll(self, *args) + + def Index(self, *args): + r""" + + Parameters + ---------- + S: HLRTopoBRep_OutLiner + + Return + ------- + int + + Description + ----------- + return the index of the Shape and return 0 if the Shape is not found. + + """ + return _HLRBRep.HLRBRep_InternalAlgo_Index(self, *args) + + def InitEdgeStatus(self, *args): + r""" + Return + ------- + None + + Description + ----------- + init the status of the selected edges depending of the back faces of a closed shell. + + """ + return _HLRBRep.HLRBRep_InternalAlgo_InitEdgeStatus(self, *args) + + def Load(self, *args): + r""" + + Parameters + ---------- + S: HLRTopoBRep_OutLiner + SData: Standard_Transient + nbIso: int (optional, default to 0) + + Return + ------- + None + + Description + ----------- + add the shape . + + Parameters + ---------- + S: HLRTopoBRep_OutLiner + nbIso: int (optional, default to 0) + + Return + ------- + None + + Description + ----------- + add the shape . + + """ + return _HLRBRep.HLRBRep_InternalAlgo_Load(self, *args) + + def NbShapes(self, *args): + r""" + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_InternalAlgo_NbShapes(self, *args) + + def PartialHide(self, *args): + r""" + Return + ------- + None + + Description + ----------- + own hiding of all the shapes of the DataStructure without hiding by each other. + + """ + return _HLRBRep.HLRBRep_InternalAlgo_PartialHide(self, *args) + + def Projector(self, *args): + r""" + + Parameters + ---------- + P: HLRAlgo_Projector + + Return + ------- + None + + Description + ----------- + set the projector. + Return + ------- + HLRAlgo_Projector + + Description + ----------- + set the projector. + + """ + return _HLRBRep.HLRBRep_InternalAlgo_Projector(self, *args) + + def Remove(self, *args): + r""" + + Parameters + ---------- + I: int + + Return + ------- + None + + Description + ----------- + remove the Shape of Index . + + """ + return _HLRBRep.HLRBRep_InternalAlgo_Remove(self, *args) + + def Select(self, *args): + r""" + Return + ------- + None + + Description + ----------- + select all the DataStructure. + + Parameters + ---------- + I: int + + Return + ------- + None + + Description + ----------- + select only the Shape of index . + + """ + return _HLRBRep.HLRBRep_InternalAlgo_Select(self, *args) + + def SelectEdge(self, *args): + r""" + + Parameters + ---------- + I: int + + Return + ------- + None + + Description + ----------- + select only the edges of the Shape . + + """ + return _HLRBRep.HLRBRep_InternalAlgo_SelectEdge(self, *args) + + def SelectFace(self, *args): + r""" + + Parameters + ---------- + I: int + + Return + ------- + None + + Description + ----------- + select only the faces of the Shape . + + """ + return _HLRBRep.HLRBRep_InternalAlgo_SelectFace(self, *args) + + def SeqOfShapeBounds(self, *args): + r""" + Return + ------- + HLRBRep_SeqOfShapeBounds + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_InternalAlgo_SeqOfShapeBounds(self, *args) + + def ShapeBounds(self, *args): + r""" + + Parameters + ---------- + I: int + + Return + ------- + HLRBRep_ShapeBounds + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_InternalAlgo_ShapeBounds(self, *args) + + def ShapeData(self, *args): + r""" + + Parameters + ---------- + I: int + SData: Standard_Transient + + Return + ------- + None + + Description + ----------- + Change the Shape Data of the Shape of index . + + """ + return _HLRBRep.HLRBRep_InternalAlgo_ShapeData(self, *args) + + def ShowAll(self, *args): + r""" + Return + ------- + None + + Description + ----------- + set to visible all the edges. + + Parameters + ---------- + I: int + + Return + ------- + None + + Description + ----------- + set to visible all the edges of the Shape . + + """ + return _HLRBRep.HLRBRep_InternalAlgo_ShowAll(self, *args) + + def Update(self, *args): + r""" + Return + ------- + None + + Description + ----------- + update the DataStructure. + + """ + return _HLRBRep.HLRBRep_InternalAlgo_Update(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_HLRBRep_InternalAlgo_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _HLRBRep.delete_HLRBRep_InternalAlgo + +# Register HLRBRep_InternalAlgo in _HLRBRep: +_HLRBRep.HLRBRep_InternalAlgo_swigregister(HLRBRep_InternalAlgo) +class HLRBRep_Intersector(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. + + """ + _HLRBRep.HLRBRep_Intersector_swiginit(self, _HLRBRep.new_HLRBRep_Intersector(*args)) + + def CSPoint(self, *args): + r""" + + Parameters + ---------- + N: int + + Return + ------- + IntCurveSurface_IntersectionPoint + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_Intersector_CSPoint(self, *args) + + def CSSegment(self, *args): + r""" + + Parameters + ---------- + N: int + + Return + ------- + IntCurveSurface_IntersectionSegment + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_Intersector_CSSegment(self, *args) + + def Destroy(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_Intersector_Destroy(self, *args) + + def IsDone(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_Intersector_IsDone(self, *args) + + def Load(self, *args): + r""" + + Parameters + ---------- + A: Standard_Address + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_Intersector_Load(self, *args) + + def NbPoints(self, *args): + r""" + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_Intersector_NbPoints(self, *args) + + def NbSegments(self, *args): + r""" + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_Intersector_NbSegments(self, *args) + + def Perform(self, *args): + r""" + + Parameters + ---------- + A1: Standard_Address + da1: float + db1: float + + Return + ------- + None + + Description + ----------- + Performs the auto intersection of an edge. The edge domain is cut at start with da1*(b-a) and at end with db1*(b-a). + + Parameters + ---------- + nA: int + A1: Standard_Address + da1: float + db1: float + nB: int + A2: Standard_Address + da2: float + db2: float + NoBound: bool + + Return + ------- + None + + Description + ----------- + Performs the intersection between the two edges. The edges domains are cut at start with da*(b-a) and at end with db*(b-a). + + Parameters + ---------- + L: gp_Lin + P: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_Intersector_Perform(self, *args) + + def Point(self, *args): + r""" + + Parameters + ---------- + N: int + + Return + ------- + IntRes2d_IntersectionPoint + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_Intersector_Point(self, *args) + + def Segment(self, *args): + r""" + + Parameters + ---------- + N: int + + Return + ------- + IntRes2d_IntersectionSegment + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_Intersector_Segment(self, *args) + + def SimulateOnePoint(self, *args): + r""" + + Parameters + ---------- + A1: Standard_Address + U: float + A2: Standard_Address + V: float + + Return + ------- + None + + Description + ----------- + Create a single IntersectionPoint (U on A1) (V on A2) The point is middle on both curves. + + """ + return _HLRBRep.HLRBRep_Intersector_SimulateOnePoint(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _HLRBRep.delete_HLRBRep_Intersector + +# Register HLRBRep_Intersector in _HLRBRep: +_HLRBRep.HLRBRep_Intersector_swigregister(HLRBRep_Intersector) +class HLRBRep_LineTool(object): + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") + __repr__ = _swig_repr + + @staticmethod + def BSpline(*args): + r""" + + Parameters + ---------- + C: gp_Lin + + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_LineTool_BSpline(*args) + + @staticmethod + def Bezier(*args): + r""" + + Parameters + ---------- + C: gp_Lin + + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_LineTool_Bezier(*args) + + @staticmethod + def Circle(*args): + r""" + + Parameters + ---------- + C: gp_Lin + + Return + ------- + gp_Circ + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_LineTool_Circle(*args) + + @staticmethod + def Continuity(*args): + r""" + + Parameters + ---------- + C: gp_Lin + + Return + ------- + GeomAbs_Shape + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_LineTool_Continuity(*args) + + @staticmethod + def D0(*args): + r""" + + Parameters + ---------- + C: gp_Lin + U: float + P: gp_Pnt + + Return + ------- + None + + Description + ----------- + Computes the point of parameter U on the line. + + """ + return _HLRBRep.HLRBRep_LineTool_D0(*args) + + @staticmethod + def D1(*args): + r""" + + Parameters + ---------- + C: gp_Lin + U: float + P: gp_Pnt + V: gp_Vec + + Return + ------- + None + + Description + ----------- + Computes the point of parameter U on the line with its first derivative. Raised if the continuity of the current interval is not C1. + + """ + return _HLRBRep.HLRBRep_LineTool_D1(*args) + + @staticmethod + def D2(*args): + r""" + + Parameters + ---------- + C: gp_Lin + U: float + P: gp_Pnt + V1: gp_Vec + V2: gp_Vec + + Return + ------- + None + + Description + ----------- + Returns the point P of parameter U, the first and second derivatives V1 and V2. Raised if the continuity of the current interval is not C2. + + """ + return _HLRBRep.HLRBRep_LineTool_D2(*args) + + @staticmethod + def D3(*args): + r""" + + Parameters + ---------- + C: gp_Lin + U: float + P: gp_Pnt + V1: gp_Vec + V2: gp_Vec + V3: gp_Vec + + Return + ------- + None + + Description + ----------- + Returns the point P of parameter U, the first, the second and the third derivative. Raised if the continuity of the current interval is not C3. + + """ + return _HLRBRep.HLRBRep_LineTool_D3(*args) + + @staticmethod + def DN(*args): + r""" + + Parameters + ---------- + C: gp_Lin + U: float + N: int + + Return + ------- + gp_Vec + + Description + ----------- + The returned vector gives the value of the derivative for the order of derivation N. Raised if the continuity of the current interval is not CN. Raised if N < 1. + + """ + return _HLRBRep.HLRBRep_LineTool_DN(*args) + + @staticmethod + def Degree(*args): + r""" + + Parameters + ---------- + C: gp_Lin + + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_LineTool_Degree(*args) + + @staticmethod + def Ellipse(*args): + r""" + + Parameters + ---------- + C: gp_Lin + + Return + ------- + gp_Elips + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_LineTool_Ellipse(*args) + + @staticmethod + def FirstParameter(*args): + r""" + + Parameters + ---------- + C: gp_Lin + + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_LineTool_FirstParameter(*args) + + @staticmethod + def GetType(*args): + r""" + + Parameters + ---------- + C: gp_Lin + + Return + ------- + GeomAbs_CurveType + + Description + ----------- + Returns the type of the line in the current interval: Line, Circle, Ellipse, Hyperbola, Parabola, BezierCurve, BSplineCurve, OtherCurve. + + """ + return _HLRBRep.HLRBRep_LineTool_GetType(*args) + + @staticmethod + def Hyperbola(*args): + r""" + + Parameters + ---------- + C: gp_Lin + + Return + ------- + gp_Hypr + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_LineTool_Hyperbola(*args) + + @staticmethod + def IntervalContinuity(*args): + r""" + + Parameters + ---------- + C: gp_Lin + + Return + ------- + GeomAbs_Shape + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_LineTool_IntervalContinuity(*args) + + @staticmethod + def IntervalFirst(*args): + r""" + + Parameters + ---------- + C: gp_Lin + + Return + ------- + float + + Description + ----------- + Returns the first parameter of the current interval. + + """ + return _HLRBRep.HLRBRep_LineTool_IntervalFirst(*args) + + @staticmethod + def IntervalLast(*args): + r""" + + Parameters + ---------- + C: gp_Lin + + Return + ------- + float + + Description + ----------- + Returns the last parameter of the current interval. + + """ + return _HLRBRep.HLRBRep_LineTool_IntervalLast(*args) + + @staticmethod + def Intervals(*args): + r""" + + Parameters + ---------- + C: gp_Lin + T: TColStd_Array1OfReal + Sh: GeomAbs_Shape + + Return + ------- + None + + Description + ----------- + Sets the current working interval. + + """ + return _HLRBRep.HLRBRep_LineTool_Intervals(*args) + + @staticmethod + def IsClosed(*args): + r""" + + Parameters + ---------- + C: gp_Lin + + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_LineTool_IsClosed(*args) + + @staticmethod + def IsPeriodic(*args): + r""" + + Parameters + ---------- + C: gp_Lin + + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_LineTool_IsPeriodic(*args) + + @staticmethod + def IsRational(*args): + r""" + + Parameters + ---------- + C: gp_Lin + + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_LineTool_IsRational(*args) + + @staticmethod + def KnotsAndMultiplicities(*args): + r""" + + Parameters + ---------- + C: gp_Lin + TK: TColStd_Array1OfReal + TM: TColStd_Array1OfInteger + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_LineTool_KnotsAndMultiplicities(*args) + + @staticmethod + def LastParameter(*args): + r""" + + Parameters + ---------- + C: gp_Lin + + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_LineTool_LastParameter(*args) + + @staticmethod + def Line(*args): + r""" + + Parameters + ---------- + C: gp_Lin + + Return + ------- + gp_Lin + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_LineTool_Line(*args) + + @staticmethod + def NbIntervals(*args): + r""" + + Parameters + ---------- + C: gp_Lin + S: GeomAbs_Shape + + Return + ------- + int + + Description + ----------- + If necessary, breaks the line in intervals of continuity . And returns the number of intervals. + + """ + return _HLRBRep.HLRBRep_LineTool_NbIntervals(*args) + + @staticmethod + def NbKnots(*args): + r""" + + Parameters + ---------- + C: gp_Lin + + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_LineTool_NbKnots(*args) + + @staticmethod + def NbPoles(*args): + r""" + + Parameters + ---------- + C: gp_Lin + + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_LineTool_NbPoles(*args) + + @staticmethod + def NbSamples(*args): + r""" + + Parameters + ---------- + C: gp_Lin + U0: float + U1: float + + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_LineTool_NbSamples(*args) + + @staticmethod + def Parabola(*args): + r""" + + Parameters + ---------- + C: gp_Lin + + Return + ------- + gp_Parab + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_LineTool_Parabola(*args) + + @staticmethod + def Period(*args): + r""" + + Parameters + ---------- + C: gp_Lin + + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_LineTool_Period(*args) + + @staticmethod + def Poles(*args): + r""" + + Parameters + ---------- + C: gp_Lin + TP: TColgp_Array1OfPnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_LineTool_Poles(*args) + + @staticmethod + def PolesAndWeights(*args): + r""" + + Parameters + ---------- + C: gp_Lin + TP: TColgp_Array1OfPnt + TW: TColStd_Array1OfReal + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_LineTool_PolesAndWeights(*args) + + @staticmethod + def Resolution(*args): + r""" + + Parameters + ---------- + C: gp_Lin + R3d: float + + Return + ------- + float + + Description + ----------- + Returns the parametric resolution corresponding to the real space resolution . + + """ + return _HLRBRep.HLRBRep_LineTool_Resolution(*args) + + @staticmethod + def SamplePars(*args): + r""" + + Parameters + ---------- + C: gp_Lin + U0: float + U1: float + Defl: float + NbMin: int + Pars: TColStd_HArray1OfReal + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_LineTool_SamplePars(*args) + + @staticmethod + def Value(*args): + r""" + + Parameters + ---------- + C: gp_Lin + U: float + + Return + ------- + gp_Pnt + + Description + ----------- + Computes the point of parameter U on the line. + + """ + return _HLRBRep.HLRBRep_LineTool_Value(*args) + + __repr__ = _dumps_object + + + def __init__(self): + _HLRBRep.HLRBRep_LineTool_swiginit(self, _HLRBRep.new_HLRBRep_LineTool()) + __swig_destroy__ = _HLRBRep.delete_HLRBRep_LineTool + +# Register HLRBRep_LineTool in _HLRBRep: +_HLRBRep.HLRBRep_LineTool_swigregister(HLRBRep_LineTool) +class HLRBRep_MyImpParToolOfTheIntersectorOfTheIntConicCurveOfCInter(OCC.Core.math.math_FunctionWithDerivative): + 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 + ---------- + IT: IntCurve_IConicTool + PC: Standard_Address + + Return + ------- + None + + Description + ----------- + Constructor of the class. + + """ + _HLRBRep.HLRBRep_MyImpParToolOfTheIntersectorOfTheIntConicCurveOfCInter_swiginit(self, _HLRBRep.new_HLRBRep_MyImpParToolOfTheIntersectorOfTheIntConicCurveOfCInter(*args)) + + __repr__ = _dumps_object + + __swig_destroy__ = _HLRBRep.delete_HLRBRep_MyImpParToolOfTheIntersectorOfTheIntConicCurveOfCInter + +# Register HLRBRep_MyImpParToolOfTheIntersectorOfTheIntConicCurveOfCInter in _HLRBRep: +_HLRBRep.HLRBRep_MyImpParToolOfTheIntersectorOfTheIntConicCurveOfCInter_swigregister(HLRBRep_MyImpParToolOfTheIntersectorOfTheIntConicCurveOfCInter) +class HLRBRep_PCLocFOfTheLocateExtPCOfTheProjPCurOfCInter(OCC.Core.math.math_FunctionWithDerivative): + 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 + ---------- + P: gp_Pnt2d + C: Standard_Address + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _HLRBRep.HLRBRep_PCLocFOfTheLocateExtPCOfTheProjPCurOfCInter_swiginit(self, _HLRBRep.new_HLRBRep_PCLocFOfTheLocateExtPCOfTheProjPCurOfCInter(*args)) + + def Initialize(self, *args): + r""" + + Parameters + ---------- + C: Standard_Address + + Return + ------- + None + + Description + ----------- + sets the field mycurve of the function. + + """ + return _HLRBRep.HLRBRep_PCLocFOfTheLocateExtPCOfTheProjPCurOfCInter_Initialize(self, *args) + + def IsMin(self, *args): + r""" + + Parameters + ---------- + N: int + + Return + ------- + bool + + Description + ----------- + Shows if the Nth distance is a minimum. + + """ + return _HLRBRep.HLRBRep_PCLocFOfTheLocateExtPCOfTheProjPCurOfCInter_IsMin(self, *args) + + def NbExt(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Return the number of found extrema. + + """ + return _HLRBRep.HLRBRep_PCLocFOfTheLocateExtPCOfTheProjPCurOfCInter_NbExt(self, *args) + + def Point(self, *args): + r""" + + Parameters + ---------- + N: int + + Return + ------- + Extrema_POnCurv2d + + Description + ----------- + Returns the Nth extremum. + + """ + return _HLRBRep.HLRBRep_PCLocFOfTheLocateExtPCOfTheProjPCurOfCInter_Point(self, *args) + + def SearchOfTolerance(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Computes a Tol value. If 1st derivative of curve |D1|

and first derivative of parameter and on the Surface . + + """ + return _HLRBRep.HLRBRep_SLPropsATool_D1(*args) + + @staticmethod + def D2(*args): + r""" + + Parameters + ---------- + A: Standard_Address + 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 _HLRBRep.HLRBRep_SLPropsATool_D2(*args) + + @staticmethod + def DN(*args): + r""" + + Parameters + ---------- + A: Standard_Address + U: float + V: float + Nu: int + Nv: int + + Return + ------- + gp_Vec + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_SLPropsATool_DN(*args) + + @staticmethod + def Value(*args): + r""" + + Parameters + ---------- + A: Standard_Address + U: float + V: float + P: gp_Pnt + + Return + ------- + None + + Description + ----------- + Computes the point

of parameter and on the Surface . + + """ + return _HLRBRep.HLRBRep_SLPropsATool_Value(*args) + + __repr__ = _dumps_object + + + def __init__(self): + _HLRBRep.HLRBRep_SLPropsATool_swiginit(self, _HLRBRep.new_HLRBRep_SLPropsATool()) + __swig_destroy__ = _HLRBRep.delete_HLRBRep_SLPropsATool + +# Register HLRBRep_SLPropsATool in _HLRBRep: +_HLRBRep.HLRBRep_SLPropsATool_swigregister(HLRBRep_SLPropsATool) +class HLRBRep_ShapeBounds(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: HLRTopoBRep_OutLiner + SData: Standard_Transient + nbIso: int + V1: int + V2: int + E1: int + E2: int + F1: int + F2: int + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + S: HLRTopoBRep_OutLiner + nbIso: int + V1: int + V2: int + E1: int + E2: int + F1: int + F2: int + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _HLRBRep.HLRBRep_ShapeBounds_swiginit(self, _HLRBRep.new_HLRBRep_ShapeBounds(*args)) + + def Bounds(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + V1: int + V2: int + E1: int + E2: int + F1: int + F2: int + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_ShapeBounds_Bounds(self, *args) + + def MinMax(self, *args): + r""" + Return + ------- + HLRAlgo_EdgesBlock::MinMaxIndices + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_ShapeBounds_MinMax(self, *args) + + def NbOfIso(self, *args): + r""" + + Parameters + ---------- + nbIso: int + + Return + ------- + None + + Description + ----------- + No available documentation. + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_ShapeBounds_NbOfIso(self, *args) + + def Shape(self, *args): + r""" + + Parameters + ---------- + S: HLRTopoBRep_OutLiner + + Return + ------- + None + + Description + ----------- + No available documentation. + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_ShapeBounds_Shape(self, *args) + + def ShapeData(self, *args): + r""" + + Parameters + ---------- + SD: Standard_Transient + + Return + ------- + None + + Description + ----------- + No available documentation. + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_ShapeBounds_ShapeData(self, *args) + + def Sizes(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + NV: int + NE: int + NF: int + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_ShapeBounds_Sizes(self, *args) + + def Translate(self, *args): + r""" + + Parameters + ---------- + NV: int + NE: int + NF: int + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_ShapeBounds_Translate(self, *args) + + def UpdateMinMax(self, *args): + r""" + + Parameters + ---------- + theTotMinMax: HLRAlgo_EdgesBlock::MinMaxIndices + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_ShapeBounds_UpdateMinMax(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _HLRBRep.delete_HLRBRep_ShapeBounds + +# Register HLRBRep_ShapeBounds in _HLRBRep: +_HLRBRep.HLRBRep_ShapeBounds_swigregister(HLRBRep_ShapeBounds) +class HLRBRep_ShapeToHLR(object): + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") + __repr__ = _swig_repr + + @staticmethod + def Load(*args): + r""" + + Parameters + ---------- + S: HLRTopoBRep_OutLiner + P: HLRAlgo_Projector + MST: BRepTopAdaptor_MapOfShapeTool + nbIso: int (optional, default to 0) + + Return + ------- + opencascade::handle + + Description + ----------- + Creates a DataStructure containing the OutLiner depending on the projector

and nbIso. + + """ + return _HLRBRep.HLRBRep_ShapeToHLR_Load(*args) + + __repr__ = _dumps_object + + + def __init__(self): + _HLRBRep.HLRBRep_ShapeToHLR_swiginit(self, _HLRBRep.new_HLRBRep_ShapeToHLR()) + __swig_destroy__ = _HLRBRep.delete_HLRBRep_ShapeToHLR + +# Register HLRBRep_ShapeToHLR in _HLRBRep: +_HLRBRep.HLRBRep_ShapeToHLR_swigregister(HLRBRep_ShapeToHLR) +class HLRBRep_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 AxeOfRevolution(*args): + r""" + + Parameters + ---------- + S: Standard_Address + + Return + ------- + gp_Ax1 + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_SurfaceTool_AxeOfRevolution(*args) + + @staticmethod + def BSpline(*args): + r""" + + Parameters + ---------- + S: Standard_Address + + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_SurfaceTool_BSpline(*args) + + @staticmethod + def BasisCurve(*args): + r""" + + Parameters + ---------- + S: Standard_Address + + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_SurfaceTool_BasisCurve(*args) + + @staticmethod + def BasisSurface(*args): + r""" + + Parameters + ---------- + S: Standard_Address + + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_SurfaceTool_BasisSurface(*args) + + @staticmethod + def Bezier(*args): + r""" + + Parameters + ---------- + S: Standard_Address + + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_SurfaceTool_Bezier(*args) + + @staticmethod + def Cone(*args): + r""" + + Parameters + ---------- + S: Standard_Address + + Return + ------- + gp_Cone + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_SurfaceTool_Cone(*args) + + @staticmethod + def Cylinder(*args): + r""" + + Parameters + ---------- + S: Standard_Address + + Return + ------- + gp_Cylinder + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_SurfaceTool_Cylinder(*args) + + @staticmethod + def D0(*args): + r""" + + Parameters + ---------- + S: Standard_Address + u: float + v: float + P: gp_Pnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_SurfaceTool_D0(*args) + + @staticmethod + def D1(*args): + r""" + + Parameters + ---------- + S: Standard_Address + u: float + v: float + P: gp_Pnt + D1u: gp_Vec + D1v: gp_Vec + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_SurfaceTool_D1(*args) + + @staticmethod + def D2(*args): + r""" + + Parameters + ---------- + S: Standard_Address + u: float + v: float + P: gp_Pnt + D1U: gp_Vec + D1V: gp_Vec + D2U: gp_Vec + D2V: gp_Vec + D2UV: gp_Vec + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_SurfaceTool_D2(*args) + + @staticmethod + def D3(*args): + r""" + + Parameters + ---------- + S: Standard_Address + u: float + v: float + P: gp_Pnt + D1U: gp_Vec + D1V: gp_Vec + D2U: gp_Vec + D2V: gp_Vec + D2UV: gp_Vec + D3U: gp_Vec + D3V: gp_Vec + D3UUV: gp_Vec + D3UVV: gp_Vec + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_SurfaceTool_D3(*args) + + @staticmethod + def DN(*args): + r""" + + Parameters + ---------- + S: Standard_Address + u: float + v: float + Nu: int + Nv: int + + Return + ------- + gp_Vec + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_SurfaceTool_DN(*args) + + @staticmethod + def Direction(*args): + r""" + + Parameters + ---------- + S: Standard_Address + + Return + ------- + gp_Dir + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_SurfaceTool_Direction(*args) + + @staticmethod + def FirstUParameter(*args): + r""" + + Parameters + ---------- + S: Standard_Address + + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_SurfaceTool_FirstUParameter(*args) + + @staticmethod + def FirstVParameter(*args): + r""" + + Parameters + ---------- + S: Standard_Address + + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_SurfaceTool_FirstVParameter(*args) + + @staticmethod + def GetType(*args): + r""" + + Parameters + ---------- + S: Standard_Address + + Return + ------- + GeomAbs_SurfaceType + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_SurfaceTool_GetType(*args) + + @staticmethod + def IsUClosed(*args): + r""" + + Parameters + ---------- + S: Standard_Address + + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_SurfaceTool_IsUClosed(*args) + + @staticmethod + def IsUPeriodic(*args): + r""" + + Parameters + ---------- + S: Standard_Address + + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_SurfaceTool_IsUPeriodic(*args) + + @staticmethod + def IsVClosed(*args): + r""" + + Parameters + ---------- + S: Standard_Address + + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_SurfaceTool_IsVClosed(*args) + + @staticmethod + def IsVPeriodic(*args): + r""" + + Parameters + ---------- + S: Standard_Address + + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_SurfaceTool_IsVPeriodic(*args) + + @staticmethod + def LastUParameter(*args): + r""" + + Parameters + ---------- + S: Standard_Address + + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_SurfaceTool_LastUParameter(*args) + + @staticmethod + def LastVParameter(*args): + r""" + + Parameters + ---------- + S: Standard_Address + + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_SurfaceTool_LastVParameter(*args) + + @staticmethod + def NbSamplesU(*args): + r""" + + Parameters + ---------- + S: Standard_Address + + Return + ------- + int + + Description + ----------- + No available documentation. + + Parameters + ---------- + S: Standard_Address + u1: float + u2: float + + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_SurfaceTool_NbSamplesU(*args) + + @staticmethod + def NbSamplesV(*args): + r""" + + Parameters + ---------- + S: Standard_Address + + Return + ------- + int + + Description + ----------- + No available documentation. + + Parameters + ---------- + S: Standard_Address + v1: float + v2: float + + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_SurfaceTool_NbSamplesV(*args) + + @staticmethod + def NbUIntervals(*args): + r""" + + Parameters + ---------- + S: Standard_Address + Sh: GeomAbs_Shape + + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_SurfaceTool_NbUIntervals(*args) + + @staticmethod + def NbVIntervals(*args): + r""" + + Parameters + ---------- + S: Standard_Address + Sh: GeomAbs_Shape + + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_SurfaceTool_NbVIntervals(*args) + + @staticmethod + def OffsetValue(*args): + r""" + + Parameters + ---------- + S: Standard_Address + + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_SurfaceTool_OffsetValue(*args) + + @staticmethod + def Plane(*args): + r""" + + Parameters + ---------- + S: Standard_Address + + Return + ------- + gp_Pln + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_SurfaceTool_Plane(*args) + + @staticmethod + def Sphere(*args): + r""" + + Parameters + ---------- + S: Standard_Address + + Return + ------- + gp_Sphere + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_SurfaceTool_Sphere(*args) + + @staticmethod + def Torus(*args): + r""" + + Parameters + ---------- + S: Standard_Address + + Return + ------- + gp_Torus + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_SurfaceTool_Torus(*args) + + @staticmethod + def UIntervals(*args): + r""" + + Parameters + ---------- + S: Standard_Address + T: TColStd_Array1OfReal + Sh: GeomAbs_Shape + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_SurfaceTool_UIntervals(*args) + + @staticmethod + def UPeriod(*args): + r""" + + Parameters + ---------- + S: Standard_Address + + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_SurfaceTool_UPeriod(*args) + + @staticmethod + def UResolution(*args): + r""" + + Parameters + ---------- + S: Standard_Address + R3d: float + + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_SurfaceTool_UResolution(*args) + + @staticmethod + def UTrim(*args): + r""" + + Parameters + ---------- + S: Standard_Address + First: float + Last: float + Tol: float + + Return + ------- + opencascade::handle + + Description + ----------- + If >= . + + """ + return _HLRBRep.HLRBRep_SurfaceTool_UTrim(*args) + + @staticmethod + def VIntervals(*args): + r""" + + Parameters + ---------- + S: Standard_Address + T: TColStd_Array1OfReal + Sh: GeomAbs_Shape + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_SurfaceTool_VIntervals(*args) + + @staticmethod + def VPeriod(*args): + r""" + + Parameters + ---------- + S: Standard_Address + + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_SurfaceTool_VPeriod(*args) + + @staticmethod + def VResolution(*args): + r""" + + Parameters + ---------- + S: Standard_Address + R3d: float + + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_SurfaceTool_VResolution(*args) + + @staticmethod + def VTrim(*args): + r""" + + Parameters + ---------- + S: Standard_Address + First: float + Last: float + Tol: float + + Return + ------- + opencascade::handle + + Description + ----------- + If >= . + + """ + return _HLRBRep.HLRBRep_SurfaceTool_VTrim(*args) + + @staticmethod + def Value(*args): + r""" + + Parameters + ---------- + S: Standard_Address + u: float + v: float + + Return + ------- + gp_Pnt + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_SurfaceTool_Value(*args) + + __repr__ = _dumps_object + + + def __init__(self): + _HLRBRep.HLRBRep_SurfaceTool_swiginit(self, _HLRBRep.new_HLRBRep_SurfaceTool()) + __swig_destroy__ = _HLRBRep.delete_HLRBRep_SurfaceTool + +# Register HLRBRep_SurfaceTool in _HLRBRep: +_HLRBRep.HLRBRep_SurfaceTool_swigregister(HLRBRep_SurfaceTool) +class HLRBRep_TheCSFunctionOfInterCSurf(OCC.Core.math.math_FunctionSetWithDerivatives): + 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: Standard_Address + C: gp_Lin + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _HLRBRep.HLRBRep_TheCSFunctionOfInterCSurf_swiginit(self, _HLRBRep.new_HLRBRep_TheCSFunctionOfInterCSurf(*args)) + + def AuxillarCurve(self, *args): + r""" + Return + ------- + gp_Lin + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_TheCSFunctionOfInterCSurf_AuxillarCurve(self, *args) + + def AuxillarSurface(self, *args): + r""" + Return + ------- + Standard_Address + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_TheCSFunctionOfInterCSurf_AuxillarSurface(self, *args) + + def Point(self, *args): + r""" + Return + ------- + gp_Pnt + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_TheCSFunctionOfInterCSurf_Point(self, *args) + + def Root(self, *args): + r""" + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_TheCSFunctionOfInterCSurf_Root(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _HLRBRep.delete_HLRBRep_TheCSFunctionOfInterCSurf + +# Register HLRBRep_TheCSFunctionOfInterCSurf in _HLRBRep: +_HLRBRep.HLRBRep_TheCSFunctionOfInterCSurf_swigregister(HLRBRep_TheCSFunctionOfInterCSurf) +class HLRBRep_TheDistBetweenPCurvesOfTheIntPCurvePCurveOfCInter(OCC.Core.math.math_FunctionSetWithDerivatives): + 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 + ---------- + curve1: Standard_Address + curve2: Standard_Address + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _HLRBRep.HLRBRep_TheDistBetweenPCurvesOfTheIntPCurvePCurveOfCInter_swiginit(self, _HLRBRep.new_HLRBRep_TheDistBetweenPCurvesOfTheIntPCurvePCurveOfCInter(*args)) + + __repr__ = _dumps_object + + __swig_destroy__ = _HLRBRep.delete_HLRBRep_TheDistBetweenPCurvesOfTheIntPCurvePCurveOfCInter + +# Register HLRBRep_TheDistBetweenPCurvesOfTheIntPCurvePCurveOfCInter in _HLRBRep: +_HLRBRep.HLRBRep_TheDistBetweenPCurvesOfTheIntPCurvePCurveOfCInter_swigregister(HLRBRep_TheDistBetweenPCurvesOfTheIntPCurvePCurveOfCInter) +class HLRBRep_TheExactInterCSurf(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 + ---------- + U: float + V: float + W: float + F: HLRBRep_TheCSFunctionOfInterCSurf + TolTangency: float + MarginCoef: float (optional, default to 0.0) + + Return + ------- + None + + Description + ----------- + compute the solution point with the close point MarginCoef is the coefficient for extension of UV bounds. Ex., UFirst -= MarginCoef*(ULast-UFirst). + + Parameters + ---------- + F: HLRBRep_TheCSFunctionOfInterCSurf + TolTangency: float + + Return + ------- + None + + Description + ----------- + initialize the parameters to compute the solution. + + """ + _HLRBRep.HLRBRep_TheExactInterCSurf_swiginit(self, _HLRBRep.new_HLRBRep_TheExactInterCSurf(*args)) + + def Function(self, *args): + r""" + Return + ------- + HLRBRep_TheCSFunctionOfInterCSurf + + Description + ----------- + return the math function which is used to compute the intersection. + + """ + return _HLRBRep.HLRBRep_TheExactInterCSurf_Function(self, *args) + + def IsDone(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True if the creation completed without failure. + + """ + return _HLRBRep.HLRBRep_TheExactInterCSurf_IsDone(self, *args) + + def IsEmpty(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_TheExactInterCSurf_IsEmpty(self, *args) + + def ParameterOnCurve(self, *args): + r""" + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_TheExactInterCSurf_ParameterOnCurve(self, *args) + + def ParameterOnSurface(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + U: float + V: float + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_TheExactInterCSurf_ParameterOnSurface(self, *args) + + def Perform(self, *args): + r""" + + Parameters + ---------- + U: float + V: float + W: float + Rsnld: math_FunctionSetRoot + u0: float + v0: float + u1: float + v1: float + w0: float + w1: float + + Return + ------- + None + + Description + ----------- + compute the solution it's possible to write to optimize: IntImp_IntCS inter(S1,C1,Toltangency) math_FunctionSetRoot rsnld(Inter.function()) while ...{ u=... v=... w=... inter.Perform(u,v,w,rsnld) } or IntImp_IntCS inter(Toltangency) inter.SetSurface(S); math_FunctionSetRoot rsnld(Inter.function()) while ...{ C=... inter.SetCurve(C); u=... v=... w=... inter.Perform(u,v,w,rsnld) }. + + """ + return _HLRBRep.HLRBRep_TheExactInterCSurf_Perform(self, *args) + + def Point(self, *args): + r""" + Return + ------- + gp_Pnt + + Description + ----------- + returns the intersection point The exception NotDone is raised if IsDone is false. The exception DomainError is raised if IsEmpty is true. + + """ + return _HLRBRep.HLRBRep_TheExactInterCSurf_Point(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _HLRBRep.delete_HLRBRep_TheExactInterCSurf + +# Register HLRBRep_TheExactInterCSurf in _HLRBRep: +_HLRBRep.HLRBRep_TheExactInterCSurf_swigregister(HLRBRep_TheExactInterCSurf) +class HLRBRep_TheIntConicCurveOfCInter(OCC.Core.IntRes2d.IntRes2d_Intersection): + 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 + ----------- + Empty constructor. + + Parameters + ---------- + L: gp_Lin2d + D1: IntRes2d_Domain + PCurve: Standard_Address + D2: IntRes2d_Domain + TolConf: float + Tol: float + + Return + ------- + None + + Description + ----------- + Intersection between a line and a parametric curve. + + Parameters + ---------- + C: gp_Circ2d + D1: IntRes2d_Domain + PCurve: Standard_Address + D2: IntRes2d_Domain + TolConf: float + Tol: float + + Return + ------- + None + + Description + ----------- + Intersection between a line and a parametric curve. + + Parameters + ---------- + E: gp_Elips2d + D1: IntRes2d_Domain + PCurve: Standard_Address + D2: IntRes2d_Domain + TolConf: float + Tol: float + + Return + ------- + None + + Description + ----------- + Intersection between an ellipse and a parametric curve. + + Parameters + ---------- + Prb: gp_Parab2d + D1: IntRes2d_Domain + PCurve: Standard_Address + D2: IntRes2d_Domain + TolConf: float + Tol: float + + Return + ------- + None + + Description + ----------- + Intersection between a parabola and a parametric curve. + + Parameters + ---------- + H: gp_Hypr2d + D1: IntRes2d_Domain + PCurve: Standard_Address + D2: IntRes2d_Domain + TolConf: float + Tol: float + + Return + ------- + None + + Description + ----------- + Intersection between the main branch of an hyperbola and a parametric curve. + + """ + _HLRBRep.HLRBRep_TheIntConicCurveOfCInter_swiginit(self, _HLRBRep.new_HLRBRep_TheIntConicCurveOfCInter(*args)) + + def Perform(self, *args): + r""" + + Parameters + ---------- + L: gp_Lin2d + D1: IntRes2d_Domain + PCurve: Standard_Address + D2: IntRes2d_Domain + TolConf: float + Tol: float + + Return + ------- + None + + Description + ----------- + Intersection between a line and a parametric curve. + + Parameters + ---------- + C: gp_Circ2d + D1: IntRes2d_Domain + PCurve: Standard_Address + D2: IntRes2d_Domain + TolConf: float + Tol: float + + Return + ------- + None + + Description + ----------- + Intersection between a line and a parametric curve. + + Parameters + ---------- + E: gp_Elips2d + D1: IntRes2d_Domain + PCurve: Standard_Address + D2: IntRes2d_Domain + TolConf: float + Tol: float + + Return + ------- + None + + Description + ----------- + Intersection between an ellipse and a parametric curve. + + Parameters + ---------- + Prb: gp_Parab2d + D1: IntRes2d_Domain + PCurve: Standard_Address + D2: IntRes2d_Domain + TolConf: float + Tol: float + + Return + ------- + None + + Description + ----------- + Intersection between a parabola and a parametric curve. + + Parameters + ---------- + H: gp_Hypr2d + D1: IntRes2d_Domain + PCurve: Standard_Address + D2: IntRes2d_Domain + TolConf: float + Tol: float + + Return + ------- + None + + Description + ----------- + Intersection between the main branch of an hyperbola and a parametric curve. + + """ + return _HLRBRep.HLRBRep_TheIntConicCurveOfCInter_Perform(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _HLRBRep.delete_HLRBRep_TheIntConicCurveOfCInter + +# Register HLRBRep_TheIntConicCurveOfCInter in _HLRBRep: +_HLRBRep.HLRBRep_TheIntConicCurveOfCInter_swigregister(HLRBRep_TheIntConicCurveOfCInter) +class HLRBRep_TheIntPCurvePCurveOfCInter(OCC.Core.IntRes2d.IntRes2d_Intersection): + 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. + + """ + _HLRBRep.HLRBRep_TheIntPCurvePCurveOfCInter_swiginit(self, _HLRBRep.new_HLRBRep_TheIntPCurvePCurveOfCInter(*args)) + + def GetMinNbSamples(self, *args): + r""" + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_TheIntPCurvePCurveOfCInter_GetMinNbSamples(self, *args) + + def Perform(self, *args): + r""" + + Parameters + ---------- + Curve1: Standard_Address + Domain1: IntRes2d_Domain + Curve2: Standard_Address + Domain2: IntRes2d_Domain + TolConf: float + Tol: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + Curve1: Standard_Address + Domain1: IntRes2d_Domain + TolConf: float + Tol: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_TheIntPCurvePCurveOfCInter_Perform(self, *args) + + def SetMinNbSamples(self, *args): + r""" + + Parameters + ---------- + theMinNbSamples: int + + Return + ------- + None + + Description + ----------- + Set / get minimum number of points in polygon for intersection. + + """ + return _HLRBRep.HLRBRep_TheIntPCurvePCurveOfCInter_SetMinNbSamples(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _HLRBRep.delete_HLRBRep_TheIntPCurvePCurveOfCInter + +# Register HLRBRep_TheIntPCurvePCurveOfCInter in _HLRBRep: +_HLRBRep.HLRBRep_TheIntPCurvePCurveOfCInter_swigregister(HLRBRep_TheIntPCurvePCurveOfCInter) +class HLRBRep_TheInterferenceOfInterCSurf(OCC.Core.Intf.Intf_Interference): + 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 + ----------- + Constructs an empty interference between Polygon and Polyhedron. + + Parameters + ---------- + thePolyg: HLRBRep_ThePolygonOfInterCSurf + thePolyh: HLRBRep_ThePolyhedronOfInterCSurf + + Return + ------- + None + + Description + ----------- + Constructs and computes an interference between the Polygon and the Polyhedron. + + Parameters + ---------- + theLin: gp_Lin + thePolyh: HLRBRep_ThePolyhedronOfInterCSurf + + Return + ------- + None + + Description + ----------- + Constructs and computes an interference between the Straight Line and the Polyhedron. + + Parameters + ---------- + theLins: Intf_Array1OfLin + thePolyh: HLRBRep_ThePolyhedronOfInterCSurf + + Return + ------- + None + + Description + ----------- + Constructs and computes an interference between the Straight Lines and the Polyhedron. + + Parameters + ---------- + thePolyg: HLRBRep_ThePolygonOfInterCSurf + thePolyh: HLRBRep_ThePolyhedronOfInterCSurf + theBoundSB: Bnd_BoundSortBox + + Return + ------- + None + + Description + ----------- + Constructs and computes an interference between the Polygon and the Polyhedron. + + Parameters + ---------- + theLin: gp_Lin + thePolyh: HLRBRep_ThePolyhedronOfInterCSurf + theBoundSB: Bnd_BoundSortBox + + Return + ------- + None + + Description + ----------- + Constructs and computes an interference between the Straight Line and the Polyhedron. + + Parameters + ---------- + theLins: Intf_Array1OfLin + thePolyh: HLRBRep_ThePolyhedronOfInterCSurf + theBoundSB: Bnd_BoundSortBox + + Return + ------- + None + + Description + ----------- + Constructs and computes an interference between the Straight Lines and the Polyhedron. + + """ + _HLRBRep.HLRBRep_TheInterferenceOfInterCSurf_swiginit(self, _HLRBRep.new_HLRBRep_TheInterferenceOfInterCSurf(*args)) + + def Interference(self, *args): + r""" + + Parameters + ---------- + thePolyg: HLRBRep_ThePolygonOfInterCSurf + thePolyh: HLRBRep_ThePolyhedronOfInterCSurf + theBoundSB: Bnd_BoundSortBox + + Return + ------- + None + + Description + ----------- + Compares the boundings between the segment of and the facets of . + + Parameters + ---------- + thePolyg: HLRBRep_ThePolygonOfInterCSurf + thePolyh: HLRBRep_ThePolyhedronOfInterCSurf + + Return + ------- + None + + Description + ----------- + Compares the boundings between the segment of and the facets of . + + """ + return _HLRBRep.HLRBRep_TheInterferenceOfInterCSurf_Interference(self, *args) + + def Perform(self, *args): + r""" + + Parameters + ---------- + thePolyg: HLRBRep_ThePolygonOfInterCSurf + thePolyh: HLRBRep_ThePolyhedronOfInterCSurf + + Return + ------- + None + + Description + ----------- + Computes an interference between the Polygon and the Polyhedron. + + Parameters + ---------- + theLin: gp_Lin + thePolyh: HLRBRep_ThePolyhedronOfInterCSurf + + Return + ------- + None + + Description + ----------- + Computes an interference between the Straight Line and the Polyhedron. + + Parameters + ---------- + theLins: Intf_Array1OfLin + thePolyh: HLRBRep_ThePolyhedronOfInterCSurf + + Return + ------- + None + + Description + ----------- + Computes an interference between the Straight Lines and the Polyhedron. + + Parameters + ---------- + thePolyg: HLRBRep_ThePolygonOfInterCSurf + thePolyh: HLRBRep_ThePolyhedronOfInterCSurf + theBoundSB: Bnd_BoundSortBox + + Return + ------- + None + + Description + ----------- + Computes an interference between the Polygon and the Polyhedron. + + Parameters + ---------- + theLin: gp_Lin + thePolyh: HLRBRep_ThePolyhedronOfInterCSurf + theBoundSB: Bnd_BoundSortBox + + Return + ------- + None + + Description + ----------- + Computes an interference between the Straight Line and the Polyhedron. + + Parameters + ---------- + theLins: Intf_Array1OfLin + thePolyh: HLRBRep_ThePolyhedronOfInterCSurf + theBoundSB: Bnd_BoundSortBox + + Return + ------- + None + + Description + ----------- + Computes an interference between the Straight Lines and the Polyhedron. + + """ + return _HLRBRep.HLRBRep_TheInterferenceOfInterCSurf_Perform(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _HLRBRep.delete_HLRBRep_TheInterferenceOfInterCSurf + +# Register HLRBRep_TheInterferenceOfInterCSurf in _HLRBRep: +_HLRBRep.HLRBRep_TheInterferenceOfInterCSurf_swigregister(HLRBRep_TheInterferenceOfInterCSurf) +class HLRBRep_TheIntersectorOfTheIntConicCurveOfCInter(OCC.Core.IntRes2d.IntRes2d_Intersection): + 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 + ----------- + Empty constructor. + + Parameters + ---------- + ITool: IntCurve_IConicTool + Dom1: IntRes2d_Domain + PCurve: Standard_Address + Dom2: IntRes2d_Domain + TolConf: float + Tol: float + + Return + ------- + None + + Description + ----------- + Intersection between an implicit curve and a parametrised curve. The exception ConstructionError is raised if the domain of the parametrised curve does not verify HasFirstPoint and HasLastPoint return True. + + """ + _HLRBRep.HLRBRep_TheIntersectorOfTheIntConicCurveOfCInter_swiginit(self, _HLRBRep.new_HLRBRep_TheIntersectorOfTheIntConicCurveOfCInter(*args)) + + def And_Domaine_Objet1_Intersections(self, *args): + r""" + + Parameters + ---------- + TheImpTool: IntCurve_IConicTool + TheParCurve: Standard_Address + TheImpCurveDomain: IntRes2d_Domain + TheParCurveDomain: IntRes2d_Domain + Inter2_And_Domain2: TColStd_Array1OfReal + Inter1: TColStd_Array1OfReal + Resultat1: TColStd_Array1OfReal + Resultat2: TColStd_Array1OfReal + EpsNul: float + + Return + ------- + NbResultats: int + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_TheIntersectorOfTheIntConicCurveOfCInter_And_Domaine_Objet1_Intersections(self, *args) + + def FindU(self, *args): + r""" + + Parameters + ---------- + parameter: float + point: gp_Pnt2d + TheParCurev: Standard_Address + TheImpTool: IntCurve_IConicTool + + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_TheIntersectorOfTheIntConicCurveOfCInter_FindU(self, *args) + + def FindV(self, *args): + r""" + + Parameters + ---------- + parameter: float + point: gp_Pnt2d + TheImpTool: IntCurve_IConicTool + ParCurve: Standard_Address + TheParCurveDomain: IntRes2d_Domain + V0: float + V1: float + Tolerance: float + + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_TheIntersectorOfTheIntConicCurveOfCInter_FindV(self, *args) + + def Perform(self, *args): + r""" + + Parameters + ---------- + ITool: IntCurve_IConicTool + Dom1: IntRes2d_Domain + PCurve: Standard_Address + Dom2: IntRes2d_Domain + TolConf: float + Tol: float + + Return + ------- + None + + Description + ----------- + Intersection between an implicit curve and a parametrised curve. The exception ConstructionError is raised if the domain of the parametrised curve does not verify HasFirstPoint and HasLastPoint return True. + + """ + return _HLRBRep.HLRBRep_TheIntersectorOfTheIntConicCurveOfCInter_Perform(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _HLRBRep.delete_HLRBRep_TheIntersectorOfTheIntConicCurveOfCInter + +# Register HLRBRep_TheIntersectorOfTheIntConicCurveOfCInter in _HLRBRep: +_HLRBRep.HLRBRep_TheIntersectorOfTheIntConicCurveOfCInter_swigregister(HLRBRep_TheIntersectorOfTheIntConicCurveOfCInter) +class HLRBRep_TheLocateExtPCOfTheProjPCurOfCInter(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 + ---------- + P: gp_Pnt2d + C: Standard_Address + U0: float + TolU: float + + Return + ------- + None + + Description + ----------- + Calculates the distance with a close point. The close point is defined by the parameter value U0. The function F(u)=distance(P,C(u)) has an extremum when g(u)=dF/du=0. The algorithm searches a zero near the close point. TolU is used to decide to stop the iterations. At the nth iteration, the criteria is: abs(Un - Un-1) < TolU. + + Parameters + ---------- + P: gp_Pnt2d + C: Standard_Address + U0: float + Umin: float + Usup: float + TolU: float + + Return + ------- + None + + Description + ----------- + Calculates the distance with a close point. The close point is defined by the parameter value U0. The function F(u)=distance(P,C(u)) has an extremum when g(u)=dF/du=0. The algorithm searches a zero near the close point. Zeros are searched between Umin and Usup. TolU is used to decide to stop the iterations. At the nth iteration, the criteria is: abs(Un - Un-1) < TolU. + + """ + _HLRBRep.HLRBRep_TheLocateExtPCOfTheProjPCurOfCInter_swiginit(self, _HLRBRep.new_HLRBRep_TheLocateExtPCOfTheProjPCurOfCInter(*args)) + + def Initialize(self, *args): + r""" + + Parameters + ---------- + C: Standard_Address + Umin: float + Usup: float + TolU: float + + Return + ------- + None + + Description + ----------- + sets the fields of the algorithm. + + """ + return _HLRBRep.HLRBRep_TheLocateExtPCOfTheProjPCurOfCInter_Initialize(self, *args) + + def IsDone(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True if the distance is found. + + """ + return _HLRBRep.HLRBRep_TheLocateExtPCOfTheProjPCurOfCInter_IsDone(self, *args) + + def IsMin(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True if the extremum distance is a minimum. + + """ + return _HLRBRep.HLRBRep_TheLocateExtPCOfTheProjPCurOfCInter_IsMin(self, *args) + + def Perform(self, *args): + r""" + + Parameters + ---------- + P: gp_Pnt2d + U0: float + + Return + ------- + None + + Description + ----------- + the algorithm is done with the point P. An exception is raised if the fields have not been initialized. + + """ + return _HLRBRep.HLRBRep_TheLocateExtPCOfTheProjPCurOfCInter_Perform(self, *args) + + def Point(self, *args): + r""" + Return + ------- + Extrema_POnCurv2d + + Description + ----------- + Returns the point of the extremum distance. + + """ + return _HLRBRep.HLRBRep_TheLocateExtPCOfTheProjPCurOfCInter_Point(self, *args) + + def SquareDistance(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns the value of the extremum square distance. + + """ + return _HLRBRep.HLRBRep_TheLocateExtPCOfTheProjPCurOfCInter_SquareDistance(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _HLRBRep.delete_HLRBRep_TheLocateExtPCOfTheProjPCurOfCInter + +# Register HLRBRep_TheLocateExtPCOfTheProjPCurOfCInter in _HLRBRep: +_HLRBRep.HLRBRep_TheLocateExtPCOfTheProjPCurOfCInter_swigregister(HLRBRep_TheLocateExtPCOfTheProjPCurOfCInter) +class HLRBRep_ThePolygon2dOfTheIntPCurvePCurveOfCInter(OCC.Core.Intf.Intf_Polygon2d): + 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: Standard_Address + NbPnt: int + Domain: IntRes2d_Domain + Tol: float + + Return + ------- + None + + Description + ----------- + Compute a polygon on the domain of the curve. + + """ + _HLRBRep.HLRBRep_ThePolygon2dOfTheIntPCurvePCurveOfCInter_swiginit(self, _HLRBRep.new_HLRBRep_ThePolygon2dOfTheIntPCurvePCurveOfCInter(*args)) + + def ApproxParamOnCurve(self, *args): + r""" + + Parameters + ---------- + Index: int + ParamOnLine: float + + Return + ------- + float + + Description + ----------- + Give an approximation of the parameter on the curve according to the discretization of the Curve. + + """ + return _HLRBRep.HLRBRep_ThePolygon2dOfTheIntPCurvePCurveOfCInter_ApproxParamOnCurve(self, *args) + + def AutoIntersectionIsPossible(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_ThePolygon2dOfTheIntPCurvePCurveOfCInter_AutoIntersectionIsPossible(self, *args) + + def CalculRegion(self, *args): + r""" + + Parameters + ---------- + x: float + y: float + x1: float + x2: float + y1: float + y2: float + + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_ThePolygon2dOfTheIntPCurvePCurveOfCInter_CalculRegion(self, *args) + + def Closed(self, *args): + r""" + + Parameters + ---------- + clos: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + Return + ------- + bool + + Description + ----------- + Returns True if the polyline is closed. + + """ + return _HLRBRep.HLRBRep_ThePolygon2dOfTheIntPCurvePCurveOfCInter_Closed(self, *args) + + def ComputeWithBox(self, *args): + r""" + + Parameters + ---------- + Curve: Standard_Address + OtherBox: Bnd_Box2d + + Return + ------- + None + + Description + ----------- + The current polygon is modified if most of the points of the polygon are outside the box . In this situation, bounds are computed to build a polygon inside or near the OtherBox. + + """ + return _HLRBRep.HLRBRep_ThePolygon2dOfTheIntPCurvePCurveOfCInter_ComputeWithBox(self, *args) + + def Dump(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_ThePolygon2dOfTheIntPCurvePCurveOfCInter_Dump(self, *args) + + def InfParameter(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns the parameter (On the curve) of the first point of the Polygon. + + """ + return _HLRBRep.HLRBRep_ThePolygon2dOfTheIntPCurvePCurveOfCInter_InfParameter(self, *args) + + def SetDeflectionOverEstimation(self, *args): + r""" + + Parameters + ---------- + x: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_ThePolygon2dOfTheIntPCurvePCurveOfCInter_SetDeflectionOverEstimation(self, *args) + + def SupParameter(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns the parameter (On the curve) of the last point of the Polygon. + + """ + return _HLRBRep.HLRBRep_ThePolygon2dOfTheIntPCurvePCurveOfCInter_SupParameter(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _HLRBRep.delete_HLRBRep_ThePolygon2dOfTheIntPCurvePCurveOfCInter + +# Register HLRBRep_ThePolygon2dOfTheIntPCurvePCurveOfCInter in _HLRBRep: +_HLRBRep.HLRBRep_ThePolygon2dOfTheIntPCurvePCurveOfCInter_swigregister(HLRBRep_ThePolygon2dOfTheIntPCurvePCurveOfCInter) +class HLRBRep_ThePolygonOfInterCSurf(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: gp_Lin + NbPnt: int + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + Curve: gp_Lin + U1: float + U2: float + NbPnt: int + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + Curve: gp_Lin + Upars: TColStd_Array1OfReal + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _HLRBRep.HLRBRep_ThePolygonOfInterCSurf_swiginit(self, _HLRBRep.new_HLRBRep_ThePolygonOfInterCSurf(*args)) + + def ApproxParamOnCurve(self, *args): + r""" + + Parameters + ---------- + Index: int + ParamOnLine: float + + Return + ------- + float + + Description + ----------- + Give an approximation of the parameter on the curve according to the discretization of the Curve. + + """ + return _HLRBRep.HLRBRep_ThePolygonOfInterCSurf_ApproxParamOnCurve(self, *args) + + def BeginOfSeg(self, *args): + r""" + + Parameters + ---------- + theIndex: int + + Return + ------- + gp_Pnt + + Description + ----------- + Give the point of range Index in the Polygon. + + """ + return _HLRBRep.HLRBRep_ThePolygonOfInterCSurf_BeginOfSeg(self, *args) + + def Bounding(self, *args): + r""" + Return + ------- + Bnd_Box + + Description + ----------- + Give the bounding box of the polygon. + + """ + return _HLRBRep.HLRBRep_ThePolygonOfInterCSurf_Bounding(self, *args) + + def Closed(self, *args): + r""" + + Parameters + ---------- + flag: bool + + Return + ------- + None + + Description + ----------- + No available documentation. + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_ThePolygonOfInterCSurf_Closed(self, *args) + + def DeflectionOverEstimation(self, *args): + r""" + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_ThePolygonOfInterCSurf_DeflectionOverEstimation(self, *args) + + def Dump(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_ThePolygonOfInterCSurf_Dump(self, *args) + + def EndOfSeg(self, *args): + r""" + + Parameters + ---------- + theIndex: int + + Return + ------- + gp_Pnt + + Description + ----------- + Give the point of range Index in the Polygon. + + """ + return _HLRBRep.HLRBRep_ThePolygonOfInterCSurf_EndOfSeg(self, *args) + + def InfParameter(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns the parameter (On the curve) of the first point of the Polygon. + + """ + return _HLRBRep.HLRBRep_ThePolygonOfInterCSurf_InfParameter(self, *args) + + def NbSegments(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Give the number of Segments in the polyline. + + """ + return _HLRBRep.HLRBRep_ThePolygonOfInterCSurf_NbSegments(self, *args) + + def SetDeflectionOverEstimation(self, *args): + r""" + + Parameters + ---------- + x: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_ThePolygonOfInterCSurf_SetDeflectionOverEstimation(self, *args) + + def SupParameter(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns the parameter (On the curve) of the last point of the Polygon. + + """ + return _HLRBRep.HLRBRep_ThePolygonOfInterCSurf_SupParameter(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _HLRBRep.delete_HLRBRep_ThePolygonOfInterCSurf + +# Register HLRBRep_ThePolygonOfInterCSurf in _HLRBRep: +_HLRBRep.HLRBRep_ThePolygonOfInterCSurf_swigregister(HLRBRep_ThePolygonOfInterCSurf) +class HLRBRep_ThePolygonToolOfInterCSurf(object): + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") + __repr__ = _swig_repr + + @staticmethod + def BeginOfSeg(*args): + r""" + + Parameters + ---------- + thePolygon: HLRBRep_ThePolygonOfInterCSurf + Index: int + + Return + ------- + gp_Pnt + + Description + ----------- + Give the point of range Index in the Polygon. + + """ + return _HLRBRep.HLRBRep_ThePolygonToolOfInterCSurf_BeginOfSeg(*args) + + @staticmethod + def Bounding(*args): + r""" + + Parameters + ---------- + thePolygon: HLRBRep_ThePolygonOfInterCSurf + + Return + ------- + Bnd_Box + + Description + ----------- + Give the bounding box of the polygon. + + """ + return _HLRBRep.HLRBRep_ThePolygonToolOfInterCSurf_Bounding(*args) + + @staticmethod + def Closed(*args): + r""" + + Parameters + ---------- + thePolygon: HLRBRep_ThePolygonOfInterCSurf + + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_ThePolygonToolOfInterCSurf_Closed(*args) + + @staticmethod + def DeflectionOverEstimation(*args): + r""" + + Parameters + ---------- + thePolygon: HLRBRep_ThePolygonOfInterCSurf + + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_ThePolygonToolOfInterCSurf_DeflectionOverEstimation(*args) + + @staticmethod + def Dump(*args): + r""" + + Parameters + ---------- + thePolygon: HLRBRep_ThePolygonOfInterCSurf + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_ThePolygonToolOfInterCSurf_Dump(*args) + + @staticmethod + def EndOfSeg(*args): + r""" + + Parameters + ---------- + thePolygon: HLRBRep_ThePolygonOfInterCSurf + Index: int + + Return + ------- + gp_Pnt + + Description + ----------- + Give the point of range Index in the Polygon. + + """ + return _HLRBRep.HLRBRep_ThePolygonToolOfInterCSurf_EndOfSeg(*args) + + @staticmethod + def NbSegments(*args): + r""" + + Parameters + ---------- + thePolygon: HLRBRep_ThePolygonOfInterCSurf + + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_ThePolygonToolOfInterCSurf_NbSegments(*args) + + __repr__ = _dumps_object + + + def __init__(self): + _HLRBRep.HLRBRep_ThePolygonToolOfInterCSurf_swiginit(self, _HLRBRep.new_HLRBRep_ThePolygonToolOfInterCSurf()) + __swig_destroy__ = _HLRBRep.delete_HLRBRep_ThePolygonToolOfInterCSurf + +# Register HLRBRep_ThePolygonToolOfInterCSurf in _HLRBRep: +_HLRBRep.HLRBRep_ThePolygonToolOfInterCSurf_swigregister(HLRBRep_ThePolygonToolOfInterCSurf) +class HLRBRep_ThePolyhedronToolOfInterCSurf(object): + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") + __repr__ = _swig_repr + + @staticmethod + def Bounding(*args): + r""" + + Parameters + ---------- + thePolyh: HLRBRep_ThePolyhedronOfInterCSurf + + Return + ------- + Bnd_Box + + Description + ----------- + Give the bounding box of the PolyhedronTool. + + """ + return _HLRBRep.HLRBRep_ThePolyhedronToolOfInterCSurf_Bounding(*args) + + @staticmethod + def ComponentsBounding(*args): + r""" + + Parameters + ---------- + thePolyh: HLRBRep_ThePolyhedronOfInterCSurf + + Return + ------- + opencascade::handle + + Description + ----------- + Give the array of boxes. The box corresponding to the triangle . + + """ + return _HLRBRep.HLRBRep_ThePolyhedronToolOfInterCSurf_ComponentsBounding(*args) + + @staticmethod + def DeflectionOverEstimation(*args): + r""" + + Parameters + ---------- + thePolyh: HLRBRep_ThePolyhedronOfInterCSurf + + Return + ------- + float + + Description + ----------- + Give the tolerance of the polygon. + + """ + return _HLRBRep.HLRBRep_ThePolyhedronToolOfInterCSurf_DeflectionOverEstimation(*args) + + @staticmethod + def Dump(*args): + r""" + + Parameters + ---------- + thePolyh: HLRBRep_ThePolyhedronOfInterCSurf + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_ThePolyhedronToolOfInterCSurf_Dump(*args) + + @staticmethod + def GetBorderDeflection(*args): + r""" + + Parameters + ---------- + thePolyh: HLRBRep_ThePolyhedronOfInterCSurf + + Return + ------- + float + + Description + ----------- + This method returns a border deflection of the polyhedron. + + """ + return _HLRBRep.HLRBRep_ThePolyhedronToolOfInterCSurf_GetBorderDeflection(*args) + + @staticmethod + def IsOnBound(*args): + r""" + + Parameters + ---------- + thePolyh: HLRBRep_ThePolyhedronOfInterCSurf + Index1: int + Index2: int + + Return + ------- + bool + + Description + ----------- + This method returns true if the edge based on points with indices Index1 and Index2 represents a boundary edge. It is necessary to take into account the boundary deflection for this edge. + + """ + return _HLRBRep.HLRBRep_ThePolyhedronToolOfInterCSurf_IsOnBound(*args) + + @staticmethod + def NbTriangles(*args): + r""" + + Parameters + ---------- + thePolyh: HLRBRep_ThePolyhedronOfInterCSurf + + Return + ------- + int + + Description + ----------- + Give the number of triangles in this polyhedral surface. + + """ + return _HLRBRep.HLRBRep_ThePolyhedronToolOfInterCSurf_NbTriangles(*args) + + @staticmethod + def Point(*args): + r""" + + Parameters + ---------- + thePolyh: HLRBRep_ThePolyhedronOfInterCSurf + Index: int + + Return + ------- + gp_Pnt + + Description + ----------- + Give the point of index i in the polyhedral surface. + + """ + return _HLRBRep.HLRBRep_ThePolyhedronToolOfInterCSurf_Point(*args) + + @staticmethod + def TriConnex(*args): + r""" + + Parameters + ---------- + thePolyh: HLRBRep_ThePolyhedronOfInterCSurf + Triang: int + Pivot: int + Pedge: int + + Return + ------- + TriCon: int + OtherP: int + + Description + ----------- + Give the address Tricon of the triangle connexe to the triangle of address Triang by the edge Pivot Pedge and the third point of this connexe triangle. When we are on a free edge TriCon==0 but the function return the value of the triangle in the other side of Pivot on the free edge. Used to turn around a vertex. + + """ + return _HLRBRep.HLRBRep_ThePolyhedronToolOfInterCSurf_TriConnex(*args) + + @staticmethod + def Triangle(*args): + r""" + + Parameters + ---------- + thePolyh: HLRBRep_ThePolyhedronOfInterCSurf + Index: int + + Return + ------- + P1: int + P2: int + P3: int + + Description + ----------- + Give the indices of the 3 points of the triangle of address Index in the PolyhedronTool. + + """ + return _HLRBRep.HLRBRep_ThePolyhedronToolOfInterCSurf_Triangle(*args) + + __repr__ = _dumps_object + + + def __init__(self): + _HLRBRep.HLRBRep_ThePolyhedronToolOfInterCSurf_swiginit(self, _HLRBRep.new_HLRBRep_ThePolyhedronToolOfInterCSurf()) + __swig_destroy__ = _HLRBRep.delete_HLRBRep_ThePolyhedronToolOfInterCSurf + +# Register HLRBRep_ThePolyhedronToolOfInterCSurf in _HLRBRep: +_HLRBRep.HLRBRep_ThePolyhedronToolOfInterCSurf_swigregister(HLRBRep_ThePolyhedronToolOfInterCSurf) +class HLRBRep_TheProjPCurOfCInter(object): + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") + __repr__ = _swig_repr + + @staticmethod + def FindParameter(*args): + r""" + + Parameters + ---------- + C: Standard_Address + Pnt: gp_Pnt2d + Tol: float + + Return + ------- + float + + Description + ----------- + Returns the parameter V of the point on the parametric curve corresponding to the Point Pnt. The Correspondence between Pnt and the point P(V) on the parametric curve must be coherent with the way of determination of the signed distance between a point and the implicit curve. Tol is the tolerance on the distance between a point and the parametrised curve. In that case, no bounds are given. The research of the right parameter has to be made on the natural parametric domain of the curve. + + Parameters + ---------- + C: Standard_Address + Pnt: gp_Pnt2d + LowParameter: float + HighParameter: float + Tol: float + + Return + ------- + float + + Description + ----------- + Returns the parameter V of the point on the parametric curve corresponding to the Point Pnt. The Correspondence between Pnt and the point P(V) on the parametric curve must be coherent with the way of determination of the signed distance between a point and the implicit curve. Tol is the tolerance on the distance between a point and the parametrised curve. LowParameter and HighParameter give the boundaries of the interval in which the parameter certainly lies. These parameters are given to implement a more efficient algorithm. So, it is not necessary to check that the returned value verifies LowParameter <= Value <= HighParameter. + + """ + return _HLRBRep.HLRBRep_TheProjPCurOfCInter_FindParameter(*args) + + __repr__ = _dumps_object + + + def __init__(self): + _HLRBRep.HLRBRep_TheProjPCurOfCInter_swiginit(self, _HLRBRep.new_HLRBRep_TheProjPCurOfCInter()) + __swig_destroy__ = _HLRBRep.delete_HLRBRep_TheProjPCurOfCInter + +# Register HLRBRep_TheProjPCurOfCInter in _HLRBRep: +_HLRBRep.HLRBRep_TheProjPCurOfCInter_swigregister(HLRBRep_TheProjPCurOfCInter) +class HLRBRep_TheQuadCurvExactInterCSurf(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: Standard_Address + C: gp_Lin + + Return + ------- + None + + Description + ----------- + Provides the signed distance function: Q(w) and its first derivative dQ(w)/dw. + + """ + _HLRBRep.HLRBRep_TheQuadCurvExactInterCSurf_swiginit(self, _HLRBRep.new_HLRBRep_TheQuadCurvExactInterCSurf(*args)) + + def Intervals(self, *args): + r""" + + Parameters + ---------- + Index: int + + Return + ------- + U1: float + U2: float + + Description + ----------- + U1 and U2 are the parameters of a segment on the curve. + + """ + return _HLRBRep.HLRBRep_TheQuadCurvExactInterCSurf_Intervals(self, *args) + + def IsDone(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_TheQuadCurvExactInterCSurf_IsDone(self, *args) + + def NbIntervals(self, *args): + r""" + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_TheQuadCurvExactInterCSurf_NbIntervals(self, *args) + + def NbRoots(self, *args): + r""" + Return + ------- + int + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_TheQuadCurvExactInterCSurf_NbRoots(self, *args) + + def Root(self, *args): + r""" + + Parameters + ---------- + Index: int + + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _HLRBRep.HLRBRep_TheQuadCurvExactInterCSurf_Root(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _HLRBRep.delete_HLRBRep_TheQuadCurvExactInterCSurf + +# Register HLRBRep_TheQuadCurvExactInterCSurf in _HLRBRep: +_HLRBRep.HLRBRep_TheQuadCurvExactInterCSurf_swigregister(HLRBRep_TheQuadCurvExactInterCSurf) +class HLRBRep_TheQuadCurvFuncOfTheQuadCurvExactInterCSurf(OCC.Core.math.math_FunctionWithDerivative): + 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 + ---------- + Q: IntSurf_Quadric + C: gp_Lin + + Return + ------- + None + + Description + ----------- + Create the function. + + """ + _HLRBRep.HLRBRep_TheQuadCurvFuncOfTheQuadCurvExactInterCSurf_swiginit(self, _HLRBRep.new_HLRBRep_TheQuadCurvFuncOfTheQuadCurvExactInterCSurf(*args)) + + __repr__ = _dumps_object + + __swig_destroy__ = _HLRBRep.delete_HLRBRep_TheQuadCurvFuncOfTheQuadCurvExactInterCSurf + +# Register HLRBRep_TheQuadCurvFuncOfTheQuadCurvExactInterCSurf in _HLRBRep: +_HLRBRep.HLRBRep_TheQuadCurvFuncOfTheQuadCurvExactInterCSurf_swigregister(HLRBRep_TheQuadCurvFuncOfTheQuadCurvExactInterCSurf) +class HLRBRep_VertexList(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 + ---------- + T: HLRBRep_EdgeInterferenceTool + I: HLRAlgo_ListIteratorOfInterferenceList + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _HLRBRep.HLRBRep_VertexList_swiginit(self, _HLRBRep.new_HLRBRep_VertexList(*args)) + + def BoundaryTransition(self, *args): + r""" + Return + ------- + TopAbs_Orientation + + Description + ----------- + Returns the transition of the current vertex relative to the boundary if it is an interference. + + """ + return _HLRBRep.HLRBRep_VertexList_BoundaryTransition(self, *args) + + def Current(self, *args): + r""" + Return + ------- + HLRAlgo_Intersection + + Description + ----------- + Returns the current vertex. + + """ + return _HLRBRep.HLRBRep_VertexList_Current(self, *args) + + def IsBoundary(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True if the current vertex is on the boundary of the edge. + + """ + return _HLRBRep.HLRBRep_VertexList_IsBoundary(self, *args) + + def IsInterference(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True if the current vertex is an interference. + + """ + return _HLRBRep.HLRBRep_VertexList_IsInterference(self, *args) + + def IsPeriodic(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True when the curve is periodic. + + """ + return _HLRBRep.HLRBRep_VertexList_IsPeriodic(self, *args) + + def More(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True when there are more vertices. + + """ + return _HLRBRep.HLRBRep_VertexList_More(self, *args) + + def Next(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Proceeds to the next vertex. + + """ + return _HLRBRep.HLRBRep_VertexList_Next(self, *args) + + def Orientation(self, *args): + r""" + Return + ------- + TopAbs_Orientation + + Description + ----------- + Returns the orientation of the current vertex if it is on the boundary of the edge. + + """ + return _HLRBRep.HLRBRep_VertexList_Orientation(self, *args) + + def Transition(self, *args): + r""" + Return + ------- + TopAbs_Orientation + + Description + ----------- + Returns the transition of the current vertex if it is an interference. + + """ + return _HLRBRep.HLRBRep_VertexList_Transition(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _HLRBRep.delete_HLRBRep_VertexList + +# Register HLRBRep_VertexList in _HLRBRep: +_HLRBRep.HLRBRep_VertexList_swigregister(HLRBRep_VertexList) +class HLRBRep_Algo(HLRBRep_InternalAlgo): + 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 + ----------- + Constructs an empty framework for the calculation of visible and hidden lines of a shape in a projection. Use the function: - Projector to define the point of view - Add to select the shape or shapes to be visualized - Update to compute the outlines of the shape, and - Hide to compute the visible and hidden lines of the shape. + + Parameters + ---------- + A: HLRBRep_Algo + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _HLRBRep.HLRBRep_Algo_swiginit(self, _HLRBRep.new_HLRBRep_Algo(*args)) + + def Add(self, *args): + r""" + + Parameters + ---------- + S: TopoDS_Shape + SData: Standard_Transient + nbIso: int (optional, default to 0) + + Return + ------- + None + + Description + ----------- + add the Shape . + + Parameters + ---------- + S: TopoDS_Shape + nbIso: int (optional, default to 0) + + Return + ------- + None + + Description + ----------- + Adds the shape S to this framework, and specifies the number of isoparameters nbiso desired in visualizing S. You may add as many shapes as you wish. Use the function Add once for each shape. + + """ + return _HLRBRep.HLRBRep_Algo_Add(self, *args) + + def Index(self, *args): + r""" + + Parameters + ---------- + S: TopoDS_Shape + + Return + ------- + int + + Description + ----------- + return the index of the Shape and return 0 if the Shape is not found. + + """ + return _HLRBRep.HLRBRep_Algo_Index(self, *args) + + def OutLinedShapeNullify(self, *args): + r""" + Return + ------- + None + + Description + ----------- + nullify all the results of OutLiner from HLRTopoBRep. + + """ + return _HLRBRep.HLRBRep_Algo_OutLinedShapeNullify(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_HLRBRep_Algo_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _HLRBRep.delete_HLRBRep_Algo + +# Register HLRBRep_Algo in _HLRBRep: +_HLRBRep.HLRBRep_Algo_swigregister(HLRBRep_Algo) + +@classnotwrapped +class HLRBRep_ThePolyhedronOfInterCSurf: + pass + +@classnotwrapped +class HLRBRep_BSurfaceTool: + pass + +@classnotwrapped +class HLRBRep_Surface: + pass + +@classnotwrapped +class HLRBRep_TheCurveLocatorOfTheProjPCurOfCInter: + pass + + + + + +@deprecated +def hlrbrep_MakeEdge(*args): + return hlrbrep.MakeEdge(*args) + +@deprecated +def hlrbrep_MakeEdge3d(*args): + return hlrbrep.MakeEdge3d(*args) + +@deprecated +def hlrbrep_PolyHLRAngleAndDeflection(*args): + return hlrbrep.PolyHLRAngleAndDeflection(*args) + +@deprecated +def HLRBRep_BCurveTool_BSpline(*args): + return HLRBRep_BCurveTool.BSpline(*args) + +@deprecated +def HLRBRep_BCurveTool_Bezier(*args): + return HLRBRep_BCurveTool.Bezier(*args) + +@deprecated +def HLRBRep_BCurveTool_Circle(*args): + return HLRBRep_BCurveTool.Circle(*args) + +@deprecated +def HLRBRep_BCurveTool_Continuity(*args): + return HLRBRep_BCurveTool.Continuity(*args) + +@deprecated +def HLRBRep_BCurveTool_D0(*args): + return HLRBRep_BCurveTool.D0(*args) + +@deprecated +def HLRBRep_BCurveTool_D1(*args): + return HLRBRep_BCurveTool.D1(*args) + +@deprecated +def HLRBRep_BCurveTool_D2(*args): + return HLRBRep_BCurveTool.D2(*args) + +@deprecated +def HLRBRep_BCurveTool_D3(*args): + return HLRBRep_BCurveTool.D3(*args) + +@deprecated +def HLRBRep_BCurveTool_DN(*args): + return HLRBRep_BCurveTool.DN(*args) + +@deprecated +def HLRBRep_BCurveTool_Degree(*args): + return HLRBRep_BCurveTool.Degree(*args) + +@deprecated +def HLRBRep_BCurveTool_Ellipse(*args): + return HLRBRep_BCurveTool.Ellipse(*args) + +@deprecated +def HLRBRep_BCurveTool_FirstParameter(*args): + return HLRBRep_BCurveTool.FirstParameter(*args) + +@deprecated +def HLRBRep_BCurveTool_GetType(*args): + return HLRBRep_BCurveTool.GetType(*args) + +@deprecated +def HLRBRep_BCurveTool_Hyperbola(*args): + return HLRBRep_BCurveTool.Hyperbola(*args) + +@deprecated +def HLRBRep_BCurveTool_Intervals(*args): + return HLRBRep_BCurveTool.Intervals(*args) + +@deprecated +def HLRBRep_BCurveTool_IsClosed(*args): + return HLRBRep_BCurveTool.IsClosed(*args) + +@deprecated +def HLRBRep_BCurveTool_IsPeriodic(*args): + return HLRBRep_BCurveTool.IsPeriodic(*args) + +@deprecated +def HLRBRep_BCurveTool_IsRational(*args): + return HLRBRep_BCurveTool.IsRational(*args) + +@deprecated +def HLRBRep_BCurveTool_LastParameter(*args): + return HLRBRep_BCurveTool.LastParameter(*args) + +@deprecated +def HLRBRep_BCurveTool_Line(*args): + return HLRBRep_BCurveTool.Line(*args) + +@deprecated +def HLRBRep_BCurveTool_NbIntervals(*args): + return HLRBRep_BCurveTool.NbIntervals(*args) + +@deprecated +def HLRBRep_BCurveTool_NbKnots(*args): + return HLRBRep_BCurveTool.NbKnots(*args) + +@deprecated +def HLRBRep_BCurveTool_NbPoles(*args): + return HLRBRep_BCurveTool.NbPoles(*args) + +@deprecated +def HLRBRep_BCurveTool_NbSamples(*args): + return HLRBRep_BCurveTool.NbSamples(*args) + +@deprecated +def HLRBRep_BCurveTool_Parabola(*args): + return HLRBRep_BCurveTool.Parabola(*args) + +@deprecated +def HLRBRep_BCurveTool_Period(*args): + return HLRBRep_BCurveTool.Period(*args) + +@deprecated +def HLRBRep_BCurveTool_Poles(*args): + return HLRBRep_BCurveTool.Poles(*args) + +@deprecated +def HLRBRep_BCurveTool_PolesAndWeights(*args): + return HLRBRep_BCurveTool.PolesAndWeights(*args) + +@deprecated +def HLRBRep_BCurveTool_Resolution(*args): + return HLRBRep_BCurveTool.Resolution(*args) + +@deprecated +def HLRBRep_BCurveTool_Value(*args): + return HLRBRep_BCurveTool.Value(*args) + +@deprecated +def HLRBRep_CLPropsATool_Continuity(*args): + return HLRBRep_CLPropsATool.Continuity(*args) + +@deprecated +def HLRBRep_CLPropsATool_D1(*args): + return HLRBRep_CLPropsATool.D1(*args) + +@deprecated +def HLRBRep_CLPropsATool_D2(*args): + return HLRBRep_CLPropsATool.D2(*args) + +@deprecated +def HLRBRep_CLPropsATool_D3(*args): + return HLRBRep_CLPropsATool.D3(*args) + +@deprecated +def HLRBRep_CLPropsATool_FirstParameter(*args): + return HLRBRep_CLPropsATool.FirstParameter(*args) + +@deprecated +def HLRBRep_CLPropsATool_LastParameter(*args): + return HLRBRep_CLPropsATool.LastParameter(*args) + +@deprecated +def HLRBRep_CLPropsATool_Value(*args): + return HLRBRep_CLPropsATool.Value(*args) + +@deprecated +def HLRBRep_CurveTool_BSpline(*args): + return HLRBRep_CurveTool.BSpline(*args) + +@deprecated +def HLRBRep_CurveTool_Bezier(*args): + return HLRBRep_CurveTool.Bezier(*args) + +@deprecated +def HLRBRep_CurveTool_Circle(*args): + return HLRBRep_CurveTool.Circle(*args) + +@deprecated +def HLRBRep_CurveTool_Continuity(*args): + return HLRBRep_CurveTool.Continuity(*args) + +@deprecated +def HLRBRep_CurveTool_D0(*args): + return HLRBRep_CurveTool.D0(*args) + +@deprecated +def HLRBRep_CurveTool_D1(*args): + return HLRBRep_CurveTool.D1(*args) + +@deprecated +def HLRBRep_CurveTool_D2(*args): + return HLRBRep_CurveTool.D2(*args) + +@deprecated +def HLRBRep_CurveTool_D3(*args): + return HLRBRep_CurveTool.D3(*args) + +@deprecated +def HLRBRep_CurveTool_DN(*args): + return HLRBRep_CurveTool.DN(*args) + +@deprecated +def HLRBRep_CurveTool_Degree(*args): + return HLRBRep_CurveTool.Degree(*args) + +@deprecated +def HLRBRep_CurveTool_Ellipse(*args): + return HLRBRep_CurveTool.Ellipse(*args) + +@deprecated +def HLRBRep_CurveTool_EpsX(*args): + return HLRBRep_CurveTool.EpsX(*args) + +@deprecated +def HLRBRep_CurveTool_FirstParameter(*args): + return HLRBRep_CurveTool.FirstParameter(*args) + +@deprecated +def HLRBRep_CurveTool_GetInterval(*args): + return HLRBRep_CurveTool.GetInterval(*args) + +@deprecated +def HLRBRep_CurveTool_GetType(*args): + return HLRBRep_CurveTool.GetType(*args) + +@deprecated +def HLRBRep_CurveTool_Hyperbola(*args): + return HLRBRep_CurveTool.Hyperbola(*args) + +@deprecated +def HLRBRep_CurveTool_Intervals(*args): + return HLRBRep_CurveTool.Intervals(*args) + +@deprecated +def HLRBRep_CurveTool_IsClosed(*args): + return HLRBRep_CurveTool.IsClosed(*args) + +@deprecated +def HLRBRep_CurveTool_IsPeriodic(*args): + return HLRBRep_CurveTool.IsPeriodic(*args) + +@deprecated +def HLRBRep_CurveTool_LastParameter(*args): + return HLRBRep_CurveTool.LastParameter(*args) + +@deprecated +def HLRBRep_CurveTool_Line(*args): + return HLRBRep_CurveTool.Line(*args) + +@deprecated +def HLRBRep_CurveTool_NbIntervals(*args): + return HLRBRep_CurveTool.NbIntervals(*args) + +@deprecated +def HLRBRep_CurveTool_NbSamples(*args): + return HLRBRep_CurveTool.NbSamples(*args) + +@deprecated +def HLRBRep_CurveTool_NbSamples(*args): + return HLRBRep_CurveTool.NbSamples(*args) + +@deprecated +def HLRBRep_CurveTool_Parabola(*args): + return HLRBRep_CurveTool.Parabola(*args) + +@deprecated +def HLRBRep_CurveTool_Period(*args): + return HLRBRep_CurveTool.Period(*args) + +@deprecated +def HLRBRep_CurveTool_Resolution(*args): + return HLRBRep_CurveTool.Resolution(*args) + +@deprecated +def HLRBRep_CurveTool_TheType(*args): + return HLRBRep_CurveTool.TheType(*args) + +@deprecated +def HLRBRep_CurveTool_Value(*args): + return HLRBRep_CurveTool.Value(*args) + +@deprecated +def HLRBRep_EdgeFaceTool_CurvatureValue(*args): + return HLRBRep_EdgeFaceTool.CurvatureValue(*args) + +@deprecated +def HLRBRep_EdgeFaceTool_UVPoint(*args): + return HLRBRep_EdgeFaceTool.UVPoint(*args) + +@deprecated +def HLRBRep_EdgeIList_AddInterference(*args): + return HLRBRep_EdgeIList.AddInterference(*args) + +@deprecated +def HLRBRep_EdgeIList_ProcessComplex(*args): + return HLRBRep_EdgeIList.ProcessComplex(*args) + +@deprecated +def HLRBRep_LineTool_BSpline(*args): + return HLRBRep_LineTool.BSpline(*args) + +@deprecated +def HLRBRep_LineTool_Bezier(*args): + return HLRBRep_LineTool.Bezier(*args) + +@deprecated +def HLRBRep_LineTool_Circle(*args): + return HLRBRep_LineTool.Circle(*args) + +@deprecated +def HLRBRep_LineTool_Continuity(*args): + return HLRBRep_LineTool.Continuity(*args) + +@deprecated +def HLRBRep_LineTool_D0(*args): + return HLRBRep_LineTool.D0(*args) + +@deprecated +def HLRBRep_LineTool_D1(*args): + return HLRBRep_LineTool.D1(*args) + +@deprecated +def HLRBRep_LineTool_D2(*args): + return HLRBRep_LineTool.D2(*args) + +@deprecated +def HLRBRep_LineTool_D3(*args): + return HLRBRep_LineTool.D3(*args) + +@deprecated +def HLRBRep_LineTool_DN(*args): + return HLRBRep_LineTool.DN(*args) + +@deprecated +def HLRBRep_LineTool_Degree(*args): + return HLRBRep_LineTool.Degree(*args) + +@deprecated +def HLRBRep_LineTool_Ellipse(*args): + return HLRBRep_LineTool.Ellipse(*args) + +@deprecated +def HLRBRep_LineTool_FirstParameter(*args): + return HLRBRep_LineTool.FirstParameter(*args) + +@deprecated +def HLRBRep_LineTool_GetType(*args): + return HLRBRep_LineTool.GetType(*args) + +@deprecated +def HLRBRep_LineTool_Hyperbola(*args): + return HLRBRep_LineTool.Hyperbola(*args) + +@deprecated +def HLRBRep_LineTool_IntervalContinuity(*args): + return HLRBRep_LineTool.IntervalContinuity(*args) + +@deprecated +def HLRBRep_LineTool_IntervalFirst(*args): + return HLRBRep_LineTool.IntervalFirst(*args) + +@deprecated +def HLRBRep_LineTool_IntervalLast(*args): + return HLRBRep_LineTool.IntervalLast(*args) + +@deprecated +def HLRBRep_LineTool_Intervals(*args): + return HLRBRep_LineTool.Intervals(*args) + +@deprecated +def HLRBRep_LineTool_IsClosed(*args): + return HLRBRep_LineTool.IsClosed(*args) + +@deprecated +def HLRBRep_LineTool_IsPeriodic(*args): + return HLRBRep_LineTool.IsPeriodic(*args) + +@deprecated +def HLRBRep_LineTool_IsRational(*args): + return HLRBRep_LineTool.IsRational(*args) + +@deprecated +def HLRBRep_LineTool_KnotsAndMultiplicities(*args): + return HLRBRep_LineTool.KnotsAndMultiplicities(*args) + +@deprecated +def HLRBRep_LineTool_LastParameter(*args): + return HLRBRep_LineTool.LastParameter(*args) + +@deprecated +def HLRBRep_LineTool_Line(*args): + return HLRBRep_LineTool.Line(*args) + +@deprecated +def HLRBRep_LineTool_NbIntervals(*args): + return HLRBRep_LineTool.NbIntervals(*args) + +@deprecated +def HLRBRep_LineTool_NbKnots(*args): + return HLRBRep_LineTool.NbKnots(*args) + +@deprecated +def HLRBRep_LineTool_NbPoles(*args): + return HLRBRep_LineTool.NbPoles(*args) + +@deprecated +def HLRBRep_LineTool_NbSamples(*args): + return HLRBRep_LineTool.NbSamples(*args) + +@deprecated +def HLRBRep_LineTool_Parabola(*args): + return HLRBRep_LineTool.Parabola(*args) + +@deprecated +def HLRBRep_LineTool_Period(*args): + return HLRBRep_LineTool.Period(*args) + +@deprecated +def HLRBRep_LineTool_Poles(*args): + return HLRBRep_LineTool.Poles(*args) + +@deprecated +def HLRBRep_LineTool_PolesAndWeights(*args): + return HLRBRep_LineTool.PolesAndWeights(*args) + +@deprecated +def HLRBRep_LineTool_Resolution(*args): + return HLRBRep_LineTool.Resolution(*args) + +@deprecated +def HLRBRep_LineTool_SamplePars(*args): + return HLRBRep_LineTool.SamplePars(*args) + +@deprecated +def HLRBRep_LineTool_Value(*args): + return HLRBRep_LineTool.Value(*args) + +@deprecated +def HLRBRep_SLPropsATool_Bounds(*args): + return HLRBRep_SLPropsATool.Bounds(*args) + +@deprecated +def HLRBRep_SLPropsATool_Continuity(*args): + return HLRBRep_SLPropsATool.Continuity(*args) + +@deprecated +def HLRBRep_SLPropsATool_D1(*args): + return HLRBRep_SLPropsATool.D1(*args) + +@deprecated +def HLRBRep_SLPropsATool_D2(*args): + return HLRBRep_SLPropsATool.D2(*args) + +@deprecated +def HLRBRep_SLPropsATool_DN(*args): + return HLRBRep_SLPropsATool.DN(*args) + +@deprecated +def HLRBRep_SLPropsATool_Value(*args): + return HLRBRep_SLPropsATool.Value(*args) + +@deprecated +def HLRBRep_ShapeToHLR_Load(*args): + return HLRBRep_ShapeToHLR.Load(*args) + +@deprecated +def HLRBRep_SurfaceTool_AxeOfRevolution(*args): + return HLRBRep_SurfaceTool.AxeOfRevolution(*args) + +@deprecated +def HLRBRep_SurfaceTool_BSpline(*args): + return HLRBRep_SurfaceTool.BSpline(*args) + +@deprecated +def HLRBRep_SurfaceTool_BasisCurve(*args): + return HLRBRep_SurfaceTool.BasisCurve(*args) + +@deprecated +def HLRBRep_SurfaceTool_BasisSurface(*args): + return HLRBRep_SurfaceTool.BasisSurface(*args) + +@deprecated +def HLRBRep_SurfaceTool_Bezier(*args): + return HLRBRep_SurfaceTool.Bezier(*args) + +@deprecated +def HLRBRep_SurfaceTool_Cone(*args): + return HLRBRep_SurfaceTool.Cone(*args) + +@deprecated +def HLRBRep_SurfaceTool_Cylinder(*args): + return HLRBRep_SurfaceTool.Cylinder(*args) + +@deprecated +def HLRBRep_SurfaceTool_D0(*args): + return HLRBRep_SurfaceTool.D0(*args) + +@deprecated +def HLRBRep_SurfaceTool_D1(*args): + return HLRBRep_SurfaceTool.D1(*args) + +@deprecated +def HLRBRep_SurfaceTool_D2(*args): + return HLRBRep_SurfaceTool.D2(*args) + +@deprecated +def HLRBRep_SurfaceTool_D3(*args): + return HLRBRep_SurfaceTool.D3(*args) + +@deprecated +def HLRBRep_SurfaceTool_DN(*args): + return HLRBRep_SurfaceTool.DN(*args) + +@deprecated +def HLRBRep_SurfaceTool_Direction(*args): + return HLRBRep_SurfaceTool.Direction(*args) + +@deprecated +def HLRBRep_SurfaceTool_FirstUParameter(*args): + return HLRBRep_SurfaceTool.FirstUParameter(*args) + +@deprecated +def HLRBRep_SurfaceTool_FirstVParameter(*args): + return HLRBRep_SurfaceTool.FirstVParameter(*args) + +@deprecated +def HLRBRep_SurfaceTool_GetType(*args): + return HLRBRep_SurfaceTool.GetType(*args) + +@deprecated +def HLRBRep_SurfaceTool_IsUClosed(*args): + return HLRBRep_SurfaceTool.IsUClosed(*args) + +@deprecated +def HLRBRep_SurfaceTool_IsUPeriodic(*args): + return HLRBRep_SurfaceTool.IsUPeriodic(*args) + +@deprecated +def HLRBRep_SurfaceTool_IsVClosed(*args): + return HLRBRep_SurfaceTool.IsVClosed(*args) + +@deprecated +def HLRBRep_SurfaceTool_IsVPeriodic(*args): + return HLRBRep_SurfaceTool.IsVPeriodic(*args) + +@deprecated +def HLRBRep_SurfaceTool_LastUParameter(*args): + return HLRBRep_SurfaceTool.LastUParameter(*args) + +@deprecated +def HLRBRep_SurfaceTool_LastVParameter(*args): + return HLRBRep_SurfaceTool.LastVParameter(*args) + +@deprecated +def HLRBRep_SurfaceTool_NbSamplesU(*args): + return HLRBRep_SurfaceTool.NbSamplesU(*args) + +@deprecated +def HLRBRep_SurfaceTool_NbSamplesU(*args): + return HLRBRep_SurfaceTool.NbSamplesU(*args) + +@deprecated +def HLRBRep_SurfaceTool_NbSamplesV(*args): + return HLRBRep_SurfaceTool.NbSamplesV(*args) + +@deprecated +def HLRBRep_SurfaceTool_NbSamplesV(*args): + return HLRBRep_SurfaceTool.NbSamplesV(*args) + +@deprecated +def HLRBRep_SurfaceTool_NbUIntervals(*args): + return HLRBRep_SurfaceTool.NbUIntervals(*args) + +@deprecated +def HLRBRep_SurfaceTool_NbVIntervals(*args): + return HLRBRep_SurfaceTool.NbVIntervals(*args) + +@deprecated +def HLRBRep_SurfaceTool_OffsetValue(*args): + return HLRBRep_SurfaceTool.OffsetValue(*args) + +@deprecated +def HLRBRep_SurfaceTool_Plane(*args): + return HLRBRep_SurfaceTool.Plane(*args) + +@deprecated +def HLRBRep_SurfaceTool_Sphere(*args): + return HLRBRep_SurfaceTool.Sphere(*args) + +@deprecated +def HLRBRep_SurfaceTool_Torus(*args): + return HLRBRep_SurfaceTool.Torus(*args) + +@deprecated +def HLRBRep_SurfaceTool_UIntervals(*args): + return HLRBRep_SurfaceTool.UIntervals(*args) + +@deprecated +def HLRBRep_SurfaceTool_UPeriod(*args): + return HLRBRep_SurfaceTool.UPeriod(*args) + +@deprecated +def HLRBRep_SurfaceTool_UResolution(*args): + return HLRBRep_SurfaceTool.UResolution(*args) + +@deprecated +def HLRBRep_SurfaceTool_UTrim(*args): + return HLRBRep_SurfaceTool.UTrim(*args) + +@deprecated +def HLRBRep_SurfaceTool_VIntervals(*args): + return HLRBRep_SurfaceTool.VIntervals(*args) + +@deprecated +def HLRBRep_SurfaceTool_VPeriod(*args): + return HLRBRep_SurfaceTool.VPeriod(*args) + +@deprecated +def HLRBRep_SurfaceTool_VResolution(*args): + return HLRBRep_SurfaceTool.VResolution(*args) + +@deprecated +def HLRBRep_SurfaceTool_VTrim(*args): + return HLRBRep_SurfaceTool.VTrim(*args) + +@deprecated +def HLRBRep_SurfaceTool_Value(*args): + return HLRBRep_SurfaceTool.Value(*args) + +@deprecated +def HLRBRep_ThePolygonToolOfInterCSurf_BeginOfSeg(*args): + return HLRBRep_ThePolygonToolOfInterCSurf.BeginOfSeg(*args) + +@deprecated +def HLRBRep_ThePolygonToolOfInterCSurf_Bounding(*args): + return HLRBRep_ThePolygonToolOfInterCSurf.Bounding(*args) + +@deprecated +def HLRBRep_ThePolygonToolOfInterCSurf_Closed(*args): + return HLRBRep_ThePolygonToolOfInterCSurf.Closed(*args) + +@deprecated +def HLRBRep_ThePolygonToolOfInterCSurf_DeflectionOverEstimation(*args): + return HLRBRep_ThePolygonToolOfInterCSurf.DeflectionOverEstimation(*args) + +@deprecated +def HLRBRep_ThePolygonToolOfInterCSurf_Dump(*args): + return HLRBRep_ThePolygonToolOfInterCSurf.Dump(*args) + +@deprecated +def HLRBRep_ThePolygonToolOfInterCSurf_EndOfSeg(*args): + return HLRBRep_ThePolygonToolOfInterCSurf.EndOfSeg(*args) + +@deprecated +def HLRBRep_ThePolygonToolOfInterCSurf_NbSegments(*args): + return HLRBRep_ThePolygonToolOfInterCSurf.NbSegments(*args) + +@deprecated +def HLRBRep_ThePolyhedronToolOfInterCSurf_Bounding(*args): + return HLRBRep_ThePolyhedronToolOfInterCSurf.Bounding(*args) + +@deprecated +def HLRBRep_ThePolyhedronToolOfInterCSurf_ComponentsBounding(*args): + return HLRBRep_ThePolyhedronToolOfInterCSurf.ComponentsBounding(*args) + +@deprecated +def HLRBRep_ThePolyhedronToolOfInterCSurf_DeflectionOverEstimation(*args): + return HLRBRep_ThePolyhedronToolOfInterCSurf.DeflectionOverEstimation(*args) + +@deprecated +def HLRBRep_ThePolyhedronToolOfInterCSurf_Dump(*args): + return HLRBRep_ThePolyhedronToolOfInterCSurf.Dump(*args) + +@deprecated +def HLRBRep_ThePolyhedronToolOfInterCSurf_GetBorderDeflection(*args): + return HLRBRep_ThePolyhedronToolOfInterCSurf.GetBorderDeflection(*args) + +@deprecated +def HLRBRep_ThePolyhedronToolOfInterCSurf_IsOnBound(*args): + return HLRBRep_ThePolyhedronToolOfInterCSurf.IsOnBound(*args) + +@deprecated +def HLRBRep_ThePolyhedronToolOfInterCSurf_NbTriangles(*args): + return HLRBRep_ThePolyhedronToolOfInterCSurf.NbTriangles(*args) + +@deprecated +def HLRBRep_ThePolyhedronToolOfInterCSurf_Point(*args): + return HLRBRep_ThePolyhedronToolOfInterCSurf.Point(*args) + +@deprecated +def HLRBRep_ThePolyhedronToolOfInterCSurf_TriConnex(*args): + return HLRBRep_ThePolyhedronToolOfInterCSurf.TriConnex(*args) + +@deprecated +def HLRBRep_ThePolyhedronToolOfInterCSurf_Triangle(*args): + return HLRBRep_ThePolyhedronToolOfInterCSurf.Triangle(*args) + +@deprecated +def HLRBRep_TheProjPCurOfCInter_FindParameter(*args): + return HLRBRep_TheProjPCurOfCInter.FindParameter(*args) + +@deprecated +def HLRBRep_TheProjPCurOfCInter_FindParameter(*args): + return HLRBRep_TheProjPCurOfCInter.FindParameter(*args) + + + diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/HLRBRep.pyi b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/HLRBRep.pyi new file mode 100644 index 0000000000000000000000000000000000000000..bade9c5a75e5d7c3a200017996fa3c03a07d2d1f --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/HLRBRep.pyi @@ -0,0 +1,2092 @@ +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.HLRAlgo import * +from OCC.Core.TopAbs import * +from OCC.Core.BRepAdaptor import * +from OCC.Core.Geom import * +from OCC.Core.gp import * +from OCC.Core.GeomAbs import * +from OCC.Core.TColStd import * +from OCC.Core.TColgp import * +from OCC.Core.IntRes2d import * +from OCC.Core.Geom2d import * +from OCC.Core.TopTools import * +from OCC.Core.BRepTopAdaptor import * +from OCC.Core.IntCurveSurface import * +from OCC.Core.Bnd import * +from OCC.Core.HLRTopoBRep import * +from OCC.Core.math import * +from OCC.Core.IntCurve import * +from OCC.Core.Extrema import * +from OCC.Core.Adaptor3d import * +from OCC.Core.Intf import * +from OCC.Core.IntSurf import * + +class HLRBRep_Array1OfEData: + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, theLower: int, theUpper: int) -> None: ... + def __getitem__(self, index: int) -> HLRBRep_EdgeData: ... + def __setitem__(self, index: int, value: HLRBRep_EdgeData) -> None: ... + def __len__(self) -> int: ... + def __iter__(self) -> Iterator[HLRBRep_EdgeData]: ... + def next(self) -> HLRBRep_EdgeData: ... + __next__ = next + def Init(self, theValue: HLRBRep_EdgeData) -> 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) -> HLRBRep_EdgeData: ... + def Last(self) -> HLRBRep_EdgeData: ... + def Value(self, theIndex: int) -> HLRBRep_EdgeData: ... + def SetValue(self, theIndex: int, theValue: HLRBRep_EdgeData) -> None: ... + +class HLRBRep_Array1OfFData: + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, theLower: int, theUpper: int) -> None: ... + def __getitem__(self, index: int) -> HLRBRep_FaceData: ... + def __setitem__(self, index: int, value: HLRBRep_FaceData) -> None: ... + def __len__(self) -> int: ... + def __iter__(self) -> Iterator[HLRBRep_FaceData]: ... + def next(self) -> HLRBRep_FaceData: ... + __next__ = next + def Init(self, theValue: HLRBRep_FaceData) -> 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) -> HLRBRep_FaceData: ... + def Last(self) -> HLRBRep_FaceData: ... + def Value(self, theIndex: int) -> HLRBRep_FaceData: ... + def SetValue(self, theIndex: int, theValue: HLRBRep_FaceData) -> None: ... + +class HLRBRep_ListOfBPnt2D: + def Append(self, theItem: HLRBRep_BiPnt2D) -> HLRBRep_BiPnt2D: ... + def Assign(self, theItem: HLRBRep_ListOfBPnt2D) -> HLRBRep_ListOfBPnt2D: ... + def Clear(self) -> None: ... + def First(self) -> HLRBRep_BiPnt2D: ... + def Last(self) -> HLRBRep_BiPnt2D: ... + def Prepend(self, theItem: HLRBRep_BiPnt2D) -> HLRBRep_BiPnt2D: ... + def RemoveFirst(self) -> None: ... + def Reverse(self) -> None: ... + def Size(self) -> int: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... + def __iter__(self) -> HLRBRep_BiPnt2D: ... + +class HLRBRep_ListOfBPoint: + def Append(self, theItem: HLRBRep_BiPoint) -> HLRBRep_BiPoint: ... + def Assign(self, theItem: HLRBRep_ListOfBPoint) -> HLRBRep_ListOfBPoint: ... + def Clear(self) -> None: ... + def First(self) -> HLRBRep_BiPoint: ... + def Last(self) -> HLRBRep_BiPoint: ... + def Prepend(self, theItem: HLRBRep_BiPoint) -> HLRBRep_BiPoint: ... + def RemoveFirst(self) -> None: ... + def Reverse(self) -> None: ... + def Size(self) -> int: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... + def __iter__(self) -> HLRBRep_BiPoint: ... + +class HLRBRep_SeqOfShapeBounds: + def Assign(self, theItem: HLRBRep_ShapeBounds) -> HLRBRep_ShapeBounds: ... + def Clear(self) -> None: ... + def First(self) -> HLRBRep_ShapeBounds: ... + def IsDeletables(self) -> bool: ... + def IsEmpty(self) -> bool: ... + def Last(self) -> HLRBRep_ShapeBounds: ... + def Length(self) -> int: ... + def Lower(self) -> int: ... + def Prepend(self, theItem: HLRBRep_ShapeBounds) -> HLRBRep_ShapeBounds: ... + def RemoveFirst(self) -> None: ... + def Reverse(self) -> None: ... + def SetValue(self, theIndex: int, theValue: HLRBRep_ShapeBounds) -> None: ... + def Size(self) -> int: ... + def UpdateUpperBound(self, int) -> None: ... + def UpdateLowerBound(self, int) -> None: ... + def Upper(self) -> int: ... + def Value(self, theIndex: int) -> HLRBRep_ShapeBounds: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... + +class HLRBRep_TypeOfResultingEdge(IntEnum): + HLRBRep_Undefined: int = ... + HLRBRep_IsoLine: int = ... + HLRBRep_OutLine: int = ... + HLRBRep_Rg1Line: int = ... + HLRBRep_RgNLine: int = ... + HLRBRep_Sharp: int = ... + +HLRBRep_Undefined = HLRBRep_TypeOfResultingEdge.HLRBRep_Undefined +HLRBRep_IsoLine = HLRBRep_TypeOfResultingEdge.HLRBRep_IsoLine +HLRBRep_OutLine = HLRBRep_TypeOfResultingEdge.HLRBRep_OutLine +HLRBRep_Rg1Line = HLRBRep_TypeOfResultingEdge.HLRBRep_Rg1Line +HLRBRep_RgNLine = HLRBRep_TypeOfResultingEdge.HLRBRep_RgNLine +HLRBRep_Sharp = HLRBRep_TypeOfResultingEdge.HLRBRep_Sharp + +class hlrbrep: + @staticmethod + def MakeEdge(ec: HLRBRep_Curve, U1: float, U2: float) -> TopoDS_Edge: ... + @staticmethod + def MakeEdge3d(ec: HLRBRep_Curve, U1: float, U2: float) -> TopoDS_Edge: ... + @staticmethod + def PolyHLRAngleAndDeflection(InAngl: float) -> Tuple[float, float]: ... + +class HLRBRep_AreaLimit(Standard_Transient): + def __init__( + self, + V: HLRAlgo_Intersection, + Boundary: bool, + Interference: bool, + StateBefore: TopAbs_State, + StateAfter: TopAbs_State, + EdgeBefore: TopAbs_State, + EdgeAfter: TopAbs_State, + ) -> None: ... + def Clear(self) -> None: ... + @overload + def EdgeAfter(self, St: TopAbs_State) -> None: ... + @overload + def EdgeAfter(self) -> TopAbs_State: ... + @overload + def EdgeBefore(self, St: TopAbs_State) -> None: ... + @overload + def EdgeBefore(self) -> TopAbs_State: ... + def IsBoundary(self) -> bool: ... + def IsInterference(self) -> bool: ... + @overload + def Next(self, N: HLRBRep_AreaLimit) -> None: ... + @overload + def Next(self) -> HLRBRep_AreaLimit: ... + @overload + def Previous(self, P: HLRBRep_AreaLimit) -> None: ... + @overload + def Previous(self) -> HLRBRep_AreaLimit: ... + @overload + def StateAfter(self, St: TopAbs_State) -> None: ... + @overload + def StateAfter(self) -> TopAbs_State: ... + @overload + def StateBefore(self, St: TopAbs_State) -> None: ... + @overload + def StateBefore(self) -> TopAbs_State: ... + def Vertex(self) -> HLRAlgo_Intersection: ... + +class HLRBRep_BCurveTool: + @staticmethod + def BSpline(C: BRepAdaptor_Curve) -> Geom_BSplineCurve: ... + @staticmethod + def Bezier(C: BRepAdaptor_Curve) -> Geom_BezierCurve: ... + @staticmethod + def Circle(C: BRepAdaptor_Curve) -> gp_Circ: ... + @staticmethod + def Continuity(C: BRepAdaptor_Curve) -> GeomAbs_Shape: ... + @staticmethod + def D0(C: BRepAdaptor_Curve, U: float, P: gp_Pnt) -> None: ... + @staticmethod + def D1(C: BRepAdaptor_Curve, U: float, P: gp_Pnt, V: gp_Vec) -> None: ... + @staticmethod + def D2( + C: BRepAdaptor_Curve, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec + ) -> None: ... + @staticmethod + def D3( + C: BRepAdaptor_Curve, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec + ) -> None: ... + @staticmethod + def DN(C: BRepAdaptor_Curve, U: float, N: int) -> gp_Vec: ... + @staticmethod + def Degree(C: BRepAdaptor_Curve) -> int: ... + @staticmethod + def Ellipse(C: BRepAdaptor_Curve) -> gp_Elips: ... + @staticmethod + def FirstParameter(C: BRepAdaptor_Curve) -> float: ... + @staticmethod + def GetType(C: BRepAdaptor_Curve) -> GeomAbs_CurveType: ... + @staticmethod + def Hyperbola(C: BRepAdaptor_Curve) -> gp_Hypr: ... + @staticmethod + def Intervals( + C: BRepAdaptor_Curve, T: TColStd_Array1OfReal, S: GeomAbs_Shape + ) -> None: ... + @staticmethod + def IsClosed(C: BRepAdaptor_Curve) -> bool: ... + @staticmethod + def IsPeriodic(C: BRepAdaptor_Curve) -> bool: ... + @staticmethod + def IsRational(C: BRepAdaptor_Curve) -> bool: ... + @staticmethod + def LastParameter(C: BRepAdaptor_Curve) -> float: ... + @staticmethod + def Line(C: BRepAdaptor_Curve) -> gp_Lin: ... + @staticmethod + def NbIntervals(C: BRepAdaptor_Curve, S: GeomAbs_Shape) -> int: ... + @staticmethod + def NbKnots(C: BRepAdaptor_Curve) -> int: ... + @staticmethod + def NbPoles(C: BRepAdaptor_Curve) -> int: ... + @staticmethod + def NbSamples(C: BRepAdaptor_Curve, U0: float, U1: float) -> int: ... + @staticmethod + def Parabola(C: BRepAdaptor_Curve) -> gp_Parab: ... + @staticmethod + def Period(C: BRepAdaptor_Curve) -> float: ... + @staticmethod + def Poles(C: BRepAdaptor_Curve, T: TColgp_Array1OfPnt) -> None: ... + @staticmethod + def PolesAndWeights( + C: BRepAdaptor_Curve, T: TColgp_Array1OfPnt, W: TColStd_Array1OfReal + ) -> None: ... + @staticmethod + def Resolution(C: BRepAdaptor_Curve, R3d: float) -> float: ... + @staticmethod + def Value(C: BRepAdaptor_Curve, U: float) -> gp_Pnt: ... + +class HLRBRep_BiPnt2D: + @overload + def __init__(self) -> None: ... + @overload + def __init__( + self, + x1: float, + y1: float, + x2: float, + y2: float, + S: TopoDS_Shape, + reg1: bool, + regn: bool, + outl: bool, + intl: bool, + ) -> None: ... + @overload + def __init__( + self, + thePoint1: gp_XY, + thePoint2: gp_XY, + S: TopoDS_Shape, + reg1: bool, + regn: bool, + outl: bool, + intl: bool, + ) -> None: ... + @overload + def IntLine(self) -> bool: ... + @overload + def IntLine(self, B: bool) -> None: ... + @overload + def OutLine(self) -> bool: ... + @overload + def OutLine(self, B: bool) -> None: ... + def P1(self) -> gp_Pnt2d: ... + def P2(self) -> gp_Pnt2d: ... + @overload + def Rg1Line(self) -> bool: ... + @overload + def Rg1Line(self, B: bool) -> None: ... + @overload + def RgNLine(self) -> bool: ... + @overload + def RgNLine(self, B: bool) -> None: ... + @overload + def Shape(self) -> TopoDS_Shape: ... + @overload + def Shape(self, S: TopoDS_Shape) -> None: ... + +class HLRBRep_BiPoint: + @overload + def __init__(self) -> None: ... + @overload + def __init__( + self, + x1: float, + y1: float, + z1: float, + x2: float, + y2: float, + z2: float, + S: TopoDS_Shape, + reg1: bool, + regn: bool, + outl: bool, + intl: bool, + ) -> None: ... + @overload + def IntLine(self) -> bool: ... + @overload + def IntLine(self, B: bool) -> None: ... + @overload + def OutLine(self) -> bool: ... + @overload + def OutLine(self, B: bool) -> None: ... + def P1(self) -> gp_Pnt: ... + def P2(self) -> gp_Pnt: ... + @overload + def Rg1Line(self) -> bool: ... + @overload + def Rg1Line(self, B: bool) -> None: ... + @overload + def RgNLine(self) -> bool: ... + @overload + def RgNLine(self, B: bool) -> None: ... + @overload + def Shape(self) -> TopoDS_Shape: ... + @overload + def Shape(self, S: TopoDS_Shape) -> None: ... + +class HLRBRep_CInter(IntRes2d_Intersection): + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, C: None, TolConf: float, Tol: float) -> None: ... + @overload + def __init__( + self, C: None, D: IntRes2d_Domain, TolConf: float, Tol: float + ) -> None: ... + @overload + def __init__(self, C1: None, C2: None, TolConf: float, Tol: float) -> None: ... + @overload + def __init__( + self, C1: None, D1: IntRes2d_Domain, C2: None, TolConf: float, Tol: float + ) -> None: ... + @overload + def __init__( + self, C1: None, C2: None, D2: IntRes2d_Domain, TolConf: float, Tol: float + ) -> None: ... + @overload + def __init__( + self, + C1: None, + D1: IntRes2d_Domain, + C2: None, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + def ComputeDomain(self, C1: None, TolDomain: float) -> IntRes2d_Domain: ... + def GetMinNbSamples(self) -> int: ... + @overload + def Perform( + self, + C1: None, + D1: IntRes2d_Domain, + C2: None, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform(self, C1: None, C2: None, TolConf: float, Tol: float) -> None: ... + @overload + def Perform( + self, C1: None, D1: IntRes2d_Domain, TolConf: float, Tol: float + ) -> None: ... + @overload + def Perform(self, C1: None, TolConf: float, Tol: float) -> None: ... + @overload + def Perform( + self, C1: None, D1: IntRes2d_Domain, C2: None, TolConf: float, Tol: float + ) -> None: ... + @overload + def Perform( + self, C1: None, C2: None, D2: IntRes2d_Domain, TolConf: float, Tol: float + ) -> None: ... + def SetMinNbSamples(self, theMinNbSamples: int) -> None: ... + +class HLRBRep_CLProps: + @overload + def __init__(self, C: HLRBRep_Curve, N: int, Resolution: float) -> None: ... + @overload + def __init__( + self, C: HLRBRep_Curve, U: float, N: int, Resolution: float + ) -> None: ... + @overload + def __init__(self, N: int, Resolution: float) -> None: ... + def CentreOfCurvature(self, P: gp_Pnt2d) -> None: ... + def Curvature(self) -> float: ... + def D1(self) -> gp_Vec2d: ... + def D2(self) -> gp_Vec2d: ... + def D3(self) -> gp_Vec2d: ... + def IsTangentDefined(self) -> bool: ... + def Normal(self, N: gp_Dir2d) -> None: ... + def SetCurve(self, C: HLRBRep_Curve) -> None: ... + def SetParameter(self, U: float) -> None: ... + def Tangent(self, D: gp_Dir2d) -> None: ... + def Value(self) -> gp_Pnt2d: ... + +class HLRBRep_CLPropsATool: + @staticmethod + def Continuity(A: HLRBRep_Curve) -> int: ... + @staticmethod + def D1(A: HLRBRep_Curve, U: float, P: gp_Pnt2d, V1: gp_Vec2d) -> None: ... + @staticmethod + def D2( + A: HLRBRep_Curve, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d + ) -> None: ... + @staticmethod + def D3( + A: HLRBRep_Curve, + U: float, + P: gp_Pnt2d, + V1: gp_Vec2d, + V2: gp_Vec2d, + V3: gp_Vec2d, + ) -> None: ... + @staticmethod + def FirstParameter(A: HLRBRep_Curve) -> float: ... + @staticmethod + def LastParameter(A: HLRBRep_Curve) -> float: ... + @staticmethod + def Value(A: HLRBRep_Curve, U: float, P: gp_Pnt2d) -> None: ... + +class HLRBRep_Curve: + def __init__(self) -> None: ... + def Circle(self) -> gp_Circ2d: ... + def Continuity(self) -> GeomAbs_Shape: ... + @overload + def Curve(self) -> BRepAdaptor_Curve: ... + @overload + def Curve(self, E: TopoDS_Edge) -> None: ... + @overload + def D0(self, U: float, P: gp_Pnt) -> None: ... + @overload + def D0(self, U: float, P: gp_Pnt2d) -> None: ... + @overload + def D1(self, U: float, P: gp_Pnt, V: gp_Vec) -> None: ... + @overload + def D1(self, U: float, P: gp_Pnt2d, V: gp_Vec2d) -> None: ... + def D2(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d) -> None: ... + def D3( + self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d + ) -> None: ... + def DN(self, U: float, N: int) -> gp_Vec2d: ... + def Degree(self) -> int: ... + def Ellipse(self) -> gp_Elips2d: ... + def FirstParameter(self) -> float: ... + def GetCurve(self) -> BRepAdaptor_Curve: ... + def GetType(self) -> GeomAbs_CurveType: ... + def Hyperbola(self) -> gp_Hypr2d: ... + def Intervals(self, T: TColStd_Array1OfReal, S: GeomAbs_Shape) -> None: ... + def IsClosed(self) -> bool: ... + def IsPeriodic(self) -> bool: ... + def IsRational(self) -> bool: ... + def Knots(self, kn: TColStd_Array1OfReal) -> None: ... + def LastParameter(self) -> float: ... + def Line(self) -> gp_Lin2d: ... + def Multiplicities(self, mu: TColStd_Array1OfInteger) -> None: ... + def NbIntervals(self, S: GeomAbs_Shape) -> int: ... + def NbKnots(self) -> int: ... + def NbPoles(self) -> int: ... + def Parabola(self) -> gp_Parab2d: ... + def Parameter2d(self, P3d: float) -> float: ... + def Parameter3d(self, P2d: float) -> float: ... + def Period(self) -> float: ... + @overload + def Poles(self, TP: TColgp_Array1OfPnt2d) -> None: ... + @overload + def Poles(self, aCurve: Geom_BSplineCurve, TP: TColgp_Array1OfPnt2d) -> None: ... + @overload + def PolesAndWeights( + self, TP: TColgp_Array1OfPnt2d, TW: TColStd_Array1OfReal + ) -> None: ... + @overload + def PolesAndWeights( + self, + aCurve: Geom_BSplineCurve, + TP: TColgp_Array1OfPnt2d, + TW: TColStd_Array1OfReal, + ) -> None: ... + def Projector(self, Proj: HLRAlgo_Projector) -> None: ... + def Resolution(self, R3d: float) -> float: ... + def Tangent(self, AtStart: bool, P: gp_Pnt2d, D: gp_Dir2d) -> None: ... + def Update(self, TotMin_list: List[float], TotMax_list: List[float]) -> float: ... + def UpdateMinMax( + self, TotMin_list: List[float], TotMax_list: List[float] + ) -> float: ... + def Value(self, U: float) -> gp_Pnt2d: ... + def Value3D(self, U: float) -> gp_Pnt: ... + def Z(self, U: float) -> float: ... + +class HLRBRep_CurveTool: + @staticmethod + def BSpline(C: None) -> Geom2d_BSplineCurve: ... + @staticmethod + def Bezier(C: None) -> Geom2d_BezierCurve: ... + @staticmethod + def Circle(C: None) -> gp_Circ2d: ... + @staticmethod + def Continuity(C: None) -> GeomAbs_Shape: ... + @staticmethod + def D0(C: None, U: float, P: gp_Pnt2d) -> None: ... + @staticmethod + def D1(C: None, U: float, P: gp_Pnt2d, V: gp_Vec2d) -> None: ... + @staticmethod + def D2(C: None, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d) -> None: ... + @staticmethod + def D3( + C: None, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d + ) -> None: ... + @staticmethod + def DN(C: None, U: float, N: int) -> gp_Vec2d: ... + @staticmethod + def Degree(C: None) -> int: ... + @staticmethod + def Ellipse(C: None) -> gp_Elips2d: ... + @staticmethod + def EpsX(C: None) -> float: ... + @staticmethod + def FirstParameter(C: None) -> float: ... + @staticmethod + def GetInterval( + C: None, Index: int, Tab: TColStd_Array1OfReal + ) -> Tuple[float, float]: ... + @staticmethod + def GetType(C: None) -> GeomAbs_CurveType: ... + @staticmethod + def Hyperbola(C: None) -> gp_Hypr2d: ... + @staticmethod + def Intervals(C: None, T: TColStd_Array1OfReal) -> None: ... + @staticmethod + def IsClosed(C: None) -> bool: ... + @staticmethod + def IsPeriodic(C: None) -> bool: ... + @staticmethod + def LastParameter(C: None) -> float: ... + @staticmethod + def Line(C: None) -> gp_Lin2d: ... + @staticmethod + def NbIntervals(C: None) -> int: ... + @overload + @staticmethod + def NbSamples(C: None, U0: float, U1: float) -> int: ... + @overload + @staticmethod + def NbSamples(C: None) -> int: ... + @staticmethod + def Parabola(C: None) -> gp_Parab2d: ... + @staticmethod + def Period(C: None) -> float: ... + @staticmethod + def Resolution(C: None, R3d: float) -> float: ... + @staticmethod + def TheType(C: None) -> GeomAbs_CurveType: ... + @staticmethod + def Value(C: None, U: float) -> gp_Pnt2d: ... + +class HLRBRep_Data(Standard_Transient): + def __init__(self, NV: int, NE: int, NF: int) -> None: ... + def AboveInterference(self) -> bool: ... + def Classify( + self, E: int, ED: HLRBRep_EdgeData, LevelFlag: bool, param: float + ) -> Tuple[TopAbs_State, int]: ... + def Compare(self, E: int, ED: HLRBRep_EdgeData) -> TopAbs_State: ... + def Destroy(self) -> None: ... + def EDataArray(self) -> HLRBRep_Array1OfEData: ... + def Edge(self) -> int: ... + def EdgeMap(self) -> TopTools_IndexedMapOfShape: ... + def EdgeOfTheHidingFace(self, E: int, ED: HLRBRep_EdgeData) -> bool: ... + def EdgeState(self, p1: float, p2: float) -> Tuple[TopAbs_State, TopAbs_State]: ... + def FDataArray(self) -> HLRBRep_Array1OfFData: ... + def FaceMap(self) -> TopTools_IndexedMapOfShape: ... + def HidingStartLevel( + self, E: int, ED: HLRBRep_EdgeData, IL: HLRAlgo_InterferenceList + ) -> int: ... + def HidingTheFace(self) -> bool: ... + def InitEdge(self, FI: int, MST: BRepTopAdaptor_MapOfShapeTool) -> None: ... + def InitInterference(self) -> None: ... + def Interference(self) -> HLRAlgo_Interference: ... + def IsBadFace(self) -> bool: ... + def LocalFEGeometry2D( + self, FE: int, Param: float, Tg: gp_Dir2d, Nm: gp_Dir2d + ) -> float: ... + def LocalLEGeometry2D(self, Param: float, Tg: gp_Dir2d, Nm: gp_Dir2d) -> float: ... + def MoreEdge(self) -> bool: ... + def MoreInterference(self) -> bool: ... + def NbEdges(self) -> int: ... + def NbFaces(self) -> int: ... + def NbVertices(self) -> int: ... + def NextEdge(self, skip: Optional[bool] = True) -> None: ... + def NextInterference(self) -> None: ... + def Projector(self) -> HLRAlgo_Projector: ... + def RejectedInterference(self) -> bool: ... + def SimplClassify( + self, E: int, ED: HLRBRep_EdgeData, Nbp: int, p1: float, p2: float + ) -> TopAbs_State: ... + def SimpleHidingFace(self) -> bool: ... + @overload + def Tolerance(self, tol: float) -> None: ... + @overload + def Tolerance(self) -> float: ... + def Update(self, P: HLRAlgo_Projector) -> None: ... + def Write(self, DS: HLRBRep_Data, dv: int, de: int, df: int) -> None: ... + +class HLRBRep_EdgeBuilder: + def __init__(self, VList: HLRBRep_VertexList) -> None: ... + def AreaEdgeState(self) -> TopAbs_State: ... + def AreaState(self) -> TopAbs_State: ... + def Builds(self, ToBuild: TopAbs_State) -> None: ... + def Current(self) -> HLRAlgo_Intersection: ... + def Destroy(self) -> None: ... + def HasArea(self) -> bool: ... + def InitAreas(self) -> None: ... + def IsBoundary(self) -> bool: ... + def IsInterference(self) -> bool: ... + def LeftLimit(self) -> HLRBRep_AreaLimit: ... + def MoreEdges(self) -> bool: ... + def MoreVertices(self) -> bool: ... + def NextArea(self) -> None: ... + def NextEdge(self) -> None: ... + def NextVertex(self) -> None: ... + def Orientation(self) -> TopAbs_Orientation: ... + def PreviousArea(self) -> None: ... + def RightLimit(self) -> HLRBRep_AreaLimit: ... + +class HLRBRep_EdgeData: + def __init__(self) -> None: ... + @overload + def AutoIntersectionDone(self) -> bool: ... + @overload + def AutoIntersectionDone(self, B: bool) -> None: ... + def ChangeGeometry(self) -> HLRBRep_Curve: ... + def Curve(self) -> HLRBRep_Curve: ... + @overload + def CutAtEnd(self) -> bool: ... + @overload + def CutAtEnd(self, B: bool) -> None: ... + @overload + def CutAtSta(self) -> bool: ... + @overload + def CutAtSta(self, B: bool) -> None: ... + def Geometry(self) -> HLRBRep_Curve: ... + @overload + def HideCount(self) -> int: ... + @overload + def HideCount(self, I: int) -> None: ... + def MinMax(self) -> False: ... + @overload + def OutLVEnd(self) -> bool: ... + @overload + def OutLVEnd(self, B: bool) -> None: ... + @overload + def OutLVSta(self) -> bool: ... + @overload + def OutLVSta(self, B: bool) -> None: ... + @overload + def Rg1Line(self) -> bool: ... + @overload + def Rg1Line(self, B: bool) -> None: ... + @overload + def RgNLine(self) -> bool: ... + @overload + def RgNLine(self, B: bool) -> None: ... + @overload + def Selected(self) -> bool: ... + @overload + def Selected(self, B: bool) -> None: ... + def Set( + self, + Reg1: bool, + RegN: bool, + EG: TopoDS_Edge, + V1: int, + V2: int, + Out1: bool, + Out2: bool, + Cut1: bool, + Cut2: bool, + Start: float, + TolStart: float, + End: float, + TolEnd: float, + ) -> None: ... + @overload + def Simple(self) -> bool: ... + @overload + def Simple(self, B: bool) -> None: ... + def Status(self) -> HLRAlgo_EdgeStatus: ... + def Tolerance(self) -> float: ... + @overload + def Used(self) -> bool: ... + @overload + def Used(self, B: bool) -> None: ... + @overload + def VEnd(self) -> int: ... + @overload + def VEnd(self, I: int) -> None: ... + @overload + def VSta(self) -> int: ... + @overload + def VSta(self, I: int) -> None: ... + @overload + def VerAtEnd(self) -> bool: ... + @overload + def VerAtEnd(self, B: bool) -> None: ... + @overload + def VerAtSta(self) -> bool: ... + @overload + def VerAtSta(self, B: bool) -> None: ... + @overload + def Vertical(self) -> bool: ... + @overload + def Vertical(self, B: bool) -> None: ... + +class HLRBRep_EdgeFaceTool: + @staticmethod + def CurvatureValue(F: None, U: float, V: float, Tg: gp_Dir) -> float: ... + @staticmethod + def UVPoint(Par: float, E: None, F: None) -> Tuple[bool, float, float]: ... + +class HLRBRep_EdgeIList: + @staticmethod + def AddInterference( + IL: HLRAlgo_InterferenceList, + I: HLRAlgo_Interference, + T: HLRBRep_EdgeInterferenceTool, + ) -> None: ... + @staticmethod + def ProcessComplex( + IL: HLRAlgo_InterferenceList, T: HLRBRep_EdgeInterferenceTool + ) -> None: ... + +class HLRBRep_EdgeInterferenceTool: + def __init__(self, DS: HLRBRep_Data) -> None: ... + def CurrentOrientation(self) -> TopAbs_Orientation: ... + def CurrentParameter(self) -> float: ... + def CurrentVertex(self) -> HLRAlgo_Intersection: ... + def EdgeGeometry(self, Param: float, Tgt: gp_Dir, Nrm: gp_Dir) -> float: ... + def InitVertices(self) -> None: ... + def InterferenceBoundaryGeometry( + self, I: HLRAlgo_Interference, Tang: gp_Dir, Norm: gp_Dir + ) -> float: ... + def IsPeriodic(self) -> bool: ... + def LoadEdge(self) -> None: ... + def MoreVertices(self) -> bool: ... + def NextVertex(self) -> None: ... + def ParameterOfInterference(self, I: HLRAlgo_Interference) -> float: ... + def SameInterferences( + self, I1: HLRAlgo_Interference, I2: HLRAlgo_Interference + ) -> bool: ... + def SameVertexAndInterference(self, I: HLRAlgo_Interference) -> bool: ... + +class HLRBRep_ExactIntersectionPointOfTheIntPCurvePCurveOfCInter: + def __init__(self, C1: None, C2: None, Tol: float) -> None: ... + def AnErrorOccurred(self) -> bool: ... + def NbRoots(self) -> int: ... + @overload + def Perform( + self, + Poly1: HLRBRep_ThePolygon2dOfTheIntPCurvePCurveOfCInter, + Poly2: HLRBRep_ThePolygon2dOfTheIntPCurvePCurveOfCInter, + ) -> Tuple[int, int, float, float]: ... + @overload + def Perform( + self, Uo: float, Vo: float, UInf: float, VInf: float, USup: float, VSup: float + ) -> None: ... + def Roots(self) -> Tuple[float, float]: ... + +class HLRBRep_FaceData: + def __init__(self) -> None: ... + @overload + def Back(self) -> bool: ... + @overload + def Back(self, B: bool) -> None: ... + @overload + def Closed(self) -> bool: ... + @overload + def Closed(self, B: bool) -> None: ... + @overload + def Cone(self) -> bool: ... + @overload + def Cone(self, B: bool) -> None: ... + @overload + def Cut(self) -> bool: ... + @overload + def Cut(self, B: bool) -> None: ... + @overload + def Cylinder(self) -> bool: ... + @overload + def Cylinder(self, B: bool) -> None: ... + def Geometry(self) -> HLRBRep_Surface: ... + @overload + def Hiding(self) -> bool: ... + @overload + def Hiding(self, B: bool) -> None: ... + @overload + def Orientation(self) -> TopAbs_Orientation: ... + @overload + def Orientation(self, O: TopAbs_Orientation) -> None: ... + @overload + def Plane(self) -> bool: ... + @overload + def Plane(self, B: bool) -> None: ... + @overload + def Selected(self) -> bool: ... + @overload + def Selected(self, B: bool) -> None: ... + def Set( + self, FG: TopoDS_Face, Or: TopAbs_Orientation, Cl: bool, NW: int + ) -> None: ... + def SetWEdge( + self, + WI: int, + EWI: int, + EI: int, + Or: TopAbs_Orientation, + OutL: bool, + Inte: bool, + Dble: bool, + IsoL: bool, + ) -> None: ... + def SetWire(self, WI: int, NE: int) -> None: ... + @overload + def Side(self) -> bool: ... + @overload + def Side(self, B: bool) -> None: ... + @overload + def Simple(self) -> bool: ... + @overload + def Simple(self, B: bool) -> None: ... + @overload + def Size(self) -> float: ... + @overload + def Size(self, S: float) -> None: ... + @overload + def Sphere(self) -> bool: ... + @overload + def Sphere(self, B: bool) -> None: ... + def Tolerance(self) -> float: ... + @overload + def Torus(self) -> bool: ... + @overload + def Torus(self, B: bool) -> None: ... + def Wires(self) -> HLRAlgo_WiresBlock: ... + @overload + def WithOutL(self) -> bool: ... + @overload + def WithOutL(self, B: bool) -> None: ... + +class HLRBRep_FaceIterator: + def __init__(self) -> None: ... + def BeginningOfWire(self) -> bool: ... + def Double(self) -> bool: ... + def Edge(self) -> int: ... + def EndOfWire(self) -> bool: ... + def InitEdge(self, fd: HLRBRep_FaceData) -> None: ... + def Internal(self) -> bool: ... + def IsoLine(self) -> bool: ... + def MoreEdge(self) -> bool: ... + def NextEdge(self) -> None: ... + def Orientation(self) -> TopAbs_Orientation: ... + def OutLine(self) -> bool: ... + def SkipWire(self) -> None: ... + def Wire(self) -> HLRAlgo_EdgesBlock: ... + +class HLRBRep_HLRToShape: + def __init__(self, A: HLRBRep_Algo) -> None: ... + @overload + def CompoundOfEdges( + self, type: HLRBRep_TypeOfResultingEdge, visible: bool, In3d: bool + ) -> TopoDS_Shape: ... + @overload + def CompoundOfEdges( + self, + S: TopoDS_Shape, + type: HLRBRep_TypeOfResultingEdge, + visible: bool, + In3d: bool, + ) -> TopoDS_Shape: ... + @overload + def HCompound(self) -> TopoDS_Shape: ... + @overload + def HCompound(self, S: TopoDS_Shape) -> TopoDS_Shape: ... + @overload + def IsoLineHCompound(self) -> TopoDS_Shape: ... + @overload + def IsoLineHCompound(self, S: TopoDS_Shape) -> TopoDS_Shape: ... + @overload + def IsoLineVCompound(self) -> TopoDS_Shape: ... + @overload + def IsoLineVCompound(self, S: TopoDS_Shape) -> TopoDS_Shape: ... + @overload + def OutLineHCompound(self) -> TopoDS_Shape: ... + @overload + def OutLineHCompound(self, S: TopoDS_Shape) -> TopoDS_Shape: ... + @overload + def OutLineVCompound(self) -> TopoDS_Shape: ... + @overload + def OutLineVCompound(self, S: TopoDS_Shape) -> TopoDS_Shape: ... + def OutLineVCompound3d(self) -> TopoDS_Shape: ... + @overload + def Rg1LineHCompound(self) -> TopoDS_Shape: ... + @overload + def Rg1LineHCompound(self, S: TopoDS_Shape) -> TopoDS_Shape: ... + @overload + def Rg1LineVCompound(self) -> TopoDS_Shape: ... + @overload + def Rg1LineVCompound(self, S: TopoDS_Shape) -> TopoDS_Shape: ... + @overload + def RgNLineHCompound(self) -> TopoDS_Shape: ... + @overload + def RgNLineHCompound(self, S: TopoDS_Shape) -> TopoDS_Shape: ... + @overload + def RgNLineVCompound(self) -> TopoDS_Shape: ... + @overload + def RgNLineVCompound(self, S: TopoDS_Shape) -> TopoDS_Shape: ... + @overload + def VCompound(self) -> TopoDS_Shape: ... + @overload + def VCompound(self, S: TopoDS_Shape) -> TopoDS_Shape: ... + +class HLRBRep_Hider: + def __init__(self, DS: HLRBRep_Data) -> None: ... + def Hide(self, FI: int, MST: BRepTopAdaptor_MapOfShapeTool) -> None: ... + def OwnHiding(self, FI: int) -> None: ... + +class HLRBRep_IntConicCurveOfCInter(IntRes2d_Intersection): + @overload + def __init__(self) -> None: ... + @overload + def __init__( + self, + L: gp_Lin2d, + D1: IntRes2d_Domain, + PCurve: None, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def __init__( + self, + C: gp_Circ2d, + D1: IntRes2d_Domain, + PCurve: None, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def __init__( + self, + E: gp_Elips2d, + D1: IntRes2d_Domain, + PCurve: None, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def __init__( + self, + Prb: gp_Parab2d, + D1: IntRes2d_Domain, + PCurve: None, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def __init__( + self, + H: gp_Hypr2d, + D1: IntRes2d_Domain, + PCurve: None, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + L: gp_Lin2d, + D1: IntRes2d_Domain, + PCurve: None, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + C: gp_Circ2d, + D1: IntRes2d_Domain, + PCurve: None, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + E: gp_Elips2d, + D1: IntRes2d_Domain, + PCurve: None, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + Prb: gp_Parab2d, + D1: IntRes2d_Domain, + PCurve: None, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + H: gp_Hypr2d, + D1: IntRes2d_Domain, + PCurve: None, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + +class HLRBRep_InterCSurf(IntCurveSurface_Intersection): + def __init__(self) -> None: ... + @overload + def Perform(self, Curve: gp_Lin, Surface: None) -> None: ... + @overload + def Perform( + self, Curve: gp_Lin, Polygon: HLRBRep_ThePolygonOfInterCSurf, Surface: None + ) -> None: ... + @overload + def Perform( + self, + Curve: gp_Lin, + ThePolygon: HLRBRep_ThePolygonOfInterCSurf, + Surface: None, + Polyhedron: HLRBRep_ThePolyhedronOfInterCSurf, + ) -> None: ... + @overload + def Perform( + self, + Curve: gp_Lin, + ThePolygon: HLRBRep_ThePolygonOfInterCSurf, + Surface: None, + Polyhedron: HLRBRep_ThePolyhedronOfInterCSurf, + BndBSB: Bnd_BoundSortBox, + ) -> None: ... + @overload + def Perform( + self, + Curve: gp_Lin, + Surface: None, + Polyhedron: HLRBRep_ThePolyhedronOfInterCSurf, + ) -> None: ... + +class HLRBRep_InternalAlgo(Standard_Transient): + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, A: HLRBRep_InternalAlgo) -> None: ... + def DataStructure(self) -> HLRBRep_Data: ... + @overload + def Debug(self, deb: bool) -> None: ... + @overload + def Debug(self) -> bool: ... + @overload + def Hide(self) -> None: ... + @overload + def Hide(self, I: int) -> None: ... + @overload + def Hide(self, I: int, J: int) -> None: ... + @overload + def HideAll(self) -> None: ... + @overload + def HideAll(self, I: int) -> None: ... + def Index(self, S: HLRTopoBRep_OutLiner) -> int: ... + def InitEdgeStatus(self) -> None: ... + @overload + def Load( + self, + S: HLRTopoBRep_OutLiner, + SData: Standard_Transient, + nbIso: Optional[int] = 0, + ) -> None: ... + @overload + def Load(self, S: HLRTopoBRep_OutLiner, nbIso: Optional[int] = 0) -> None: ... + def NbShapes(self) -> int: ... + def PartialHide(self) -> None: ... + @overload + def Projector(self, P: HLRAlgo_Projector) -> None: ... + @overload + def Projector(self) -> HLRAlgo_Projector: ... + def Remove(self, I: int) -> None: ... + @overload + def Select(self) -> None: ... + @overload + def Select(self, I: int) -> None: ... + def SelectEdge(self, I: int) -> None: ... + def SelectFace(self, I: int) -> None: ... + def SeqOfShapeBounds(self) -> HLRBRep_SeqOfShapeBounds: ... + def ShapeBounds(self, I: int) -> HLRBRep_ShapeBounds: ... + def ShapeData(self, I: int, SData: Standard_Transient) -> None: ... + @overload + def ShowAll(self) -> None: ... + @overload + def ShowAll(self, I: int) -> None: ... + def Update(self) -> None: ... + +class HLRBRep_Intersector: + def __init__(self) -> None: ... + def CSPoint(self, N: int) -> IntCurveSurface_IntersectionPoint: ... + def CSSegment(self, N: int) -> IntCurveSurface_IntersectionSegment: ... + def Destroy(self) -> None: ... + def IsDone(self) -> bool: ... + def Load(self, A: None) -> None: ... + def NbPoints(self) -> int: ... + def NbSegments(self) -> int: ... + @overload + def Perform(self, A1: None, da1: float, db1: float) -> None: ... + @overload + def Perform( + self, + nA: int, + A1: None, + da1: float, + db1: float, + nB: int, + A2: None, + da2: float, + db2: float, + NoBound: bool, + ) -> None: ... + @overload + def Perform(self, L: gp_Lin, P: float) -> None: ... + def Point(self, N: int) -> IntRes2d_IntersectionPoint: ... + def Segment(self, N: int) -> IntRes2d_IntersectionSegment: ... + def SimulateOnePoint(self, A1: None, U: float, A2: None, V: float) -> None: ... + +class HLRBRep_LineTool: + @staticmethod + def BSpline(C: gp_Lin) -> Geom_BSplineCurve: ... + @staticmethod + def Bezier(C: gp_Lin) -> Geom_BezierCurve: ... + @staticmethod + def Circle(C: gp_Lin) -> gp_Circ: ... + @staticmethod + def Continuity(C: gp_Lin) -> GeomAbs_Shape: ... + @staticmethod + def D0(C: gp_Lin, U: float, P: gp_Pnt) -> None: ... + @staticmethod + def D1(C: gp_Lin, U: float, P: gp_Pnt, V: gp_Vec) -> None: ... + @staticmethod + def D2(C: gp_Lin, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec) -> None: ... + @staticmethod + def D3( + C: gp_Lin, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec + ) -> None: ... + @staticmethod + def DN(C: gp_Lin, U: float, N: int) -> gp_Vec: ... + @staticmethod + def Degree(C: gp_Lin) -> int: ... + @staticmethod + def Ellipse(C: gp_Lin) -> gp_Elips: ... + @staticmethod + def FirstParameter(C: gp_Lin) -> float: ... + @staticmethod + def GetType(C: gp_Lin) -> GeomAbs_CurveType: ... + @staticmethod + def Hyperbola(C: gp_Lin) -> gp_Hypr: ... + @staticmethod + def IntervalContinuity(C: gp_Lin) -> GeomAbs_Shape: ... + @staticmethod + def IntervalFirst(C: gp_Lin) -> float: ... + @staticmethod + def IntervalLast(C: gp_Lin) -> float: ... + @staticmethod + def Intervals(C: gp_Lin, T: TColStd_Array1OfReal, Sh: GeomAbs_Shape) -> None: ... + @staticmethod + def IsClosed(C: gp_Lin) -> bool: ... + @staticmethod + def IsPeriodic(C: gp_Lin) -> bool: ... + @staticmethod + def IsRational(C: gp_Lin) -> bool: ... + @staticmethod + def KnotsAndMultiplicities( + C: gp_Lin, TK: TColStd_Array1OfReal, TM: TColStd_Array1OfInteger + ) -> None: ... + @staticmethod + def LastParameter(C: gp_Lin) -> float: ... + @staticmethod + def Line(C: gp_Lin) -> gp_Lin: ... + @staticmethod + def NbIntervals(C: gp_Lin, S: GeomAbs_Shape) -> int: ... + @staticmethod + def NbKnots(C: gp_Lin) -> int: ... + @staticmethod + def NbPoles(C: gp_Lin) -> int: ... + @staticmethod + def NbSamples(C: gp_Lin, U0: float, U1: float) -> int: ... + @staticmethod + def Parabola(C: gp_Lin) -> gp_Parab: ... + @staticmethod + def Period(C: gp_Lin) -> float: ... + @staticmethod + def Poles(C: gp_Lin, TP: TColgp_Array1OfPnt) -> None: ... + @staticmethod + def PolesAndWeights( + C: gp_Lin, TP: TColgp_Array1OfPnt, TW: TColStd_Array1OfReal + ) -> None: ... + @staticmethod + def Resolution(C: gp_Lin, R3d: float) -> float: ... + @staticmethod + def SamplePars( + C: gp_Lin, + U0: float, + U1: float, + Defl: float, + NbMin: int, + Pars: TColStd_HArray1OfReal, + ) -> None: ... + @staticmethod + def Value(C: gp_Lin, U: float) -> gp_Pnt: ... + +class HLRBRep_MyImpParToolOfTheIntersectorOfTheIntConicCurveOfCInter( + math_FunctionWithDerivative +): + def __init__(self, IT: IntCurve_IConicTool, PC: None) -> None: ... + def Derivative(self, Param: float) -> Tuple[bool, float]: ... + def Value(self, Param: float) -> Tuple[bool, float]: ... + def Values(self, Param: float) -> Tuple[bool, float, float]: ... + +class HLRBRep_PCLocFOfTheLocateExtPCOfTheProjPCurOfCInter(math_FunctionWithDerivative): + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, P: gp_Pnt2d, C: None) -> None: ... + def Derivative(self, U: float) -> Tuple[bool, float]: ... + def GetStateNumber(self) -> int: ... + def Initialize(self, C: None) -> None: ... + def IsMin(self, N: int) -> bool: ... + def NbExt(self) -> int: ... + def Point(self, N: int) -> Extrema_POnCurv2d: ... + def SearchOfTolerance(self) -> float: ... + def SetPoint(self, P: gp_Pnt2d) -> None: ... + def SquareDistance(self, N: int) -> float: ... + def SubIntervalInitialize(self, theUfirst: float, theUlast: float) -> None: ... + def Value(self, U: float) -> Tuple[bool, float]: ... + def Values(self, U: float) -> Tuple[bool, float, float]: ... + +class HLRBRep_PolyAlgo(Standard_Transient): + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, A: HLRBRep_PolyAlgo) -> None: ... + @overload + def __init__(self, S: TopoDS_Shape) -> None: ... + def Algo(self) -> HLRAlgo_PolyAlgo: ... + @overload + def Debug(self) -> bool: ... + @overload + def Debug(self, theDebug: bool) -> None: ... + def Hide( + self, status: HLRAlgo_EdgeStatus, S: TopoDS_Shape + ) -> Tuple[False, bool, bool, bool, bool]: ... + def Index(self, S: TopoDS_Shape) -> int: ... + def InitHide(self) -> None: ... + def InitShow(self) -> None: ... + def Load(self, theShape: TopoDS_Shape) -> None: ... + def MoreHide(self) -> bool: ... + def MoreShow(self) -> bool: ... + def NbShapes(self) -> int: ... + def NextHide(self) -> None: ... + def NextShow(self) -> None: ... + def OutLinedShape(self, S: TopoDS_Shape) -> TopoDS_Shape: ... + @overload + def Projector(self) -> HLRAlgo_Projector: ... + @overload + def Projector(self, theProj: HLRAlgo_Projector) -> None: ... + def Remove(self, I: int) -> None: ... + def Shape(self, I: int) -> TopoDS_Shape: ... + def Show(self, S: TopoDS_Shape) -> Tuple[False, bool, bool, bool, bool]: ... + @overload + def TolAngular(self) -> float: ... + @overload + def TolAngular(self, theTol: float) -> None: ... + @overload + def TolCoef(self) -> float: ... + @overload + def TolCoef(self, theTol: float) -> None: ... + def Update(self) -> None: ... + +class HLRBRep_PolyHLRToShape: + def __init__(self) -> None: ... + @overload + def HCompound(self) -> TopoDS_Shape: ... + @overload + def HCompound(self, S: TopoDS_Shape) -> TopoDS_Shape: ... + def Hide(self) -> None: ... + @overload + def OutLineHCompound(self) -> TopoDS_Shape: ... + @overload + def OutLineHCompound(self, S: TopoDS_Shape) -> TopoDS_Shape: ... + @overload + def OutLineVCompound(self) -> TopoDS_Shape: ... + @overload + def OutLineVCompound(self, S: TopoDS_Shape) -> TopoDS_Shape: ... + @overload + def Rg1LineHCompound(self) -> TopoDS_Shape: ... + @overload + def Rg1LineHCompound(self, S: TopoDS_Shape) -> TopoDS_Shape: ... + @overload + def Rg1LineVCompound(self) -> TopoDS_Shape: ... + @overload + def Rg1LineVCompound(self, S: TopoDS_Shape) -> TopoDS_Shape: ... + @overload + def RgNLineHCompound(self) -> TopoDS_Shape: ... + @overload + def RgNLineHCompound(self, S: TopoDS_Shape) -> TopoDS_Shape: ... + @overload + def RgNLineVCompound(self) -> TopoDS_Shape: ... + @overload + def RgNLineVCompound(self, S: TopoDS_Shape) -> TopoDS_Shape: ... + def Show(self) -> None: ... + def Update(self, A: HLRBRep_PolyAlgo) -> None: ... + @overload + def VCompound(self) -> TopoDS_Shape: ... + @overload + def VCompound(self, S: TopoDS_Shape) -> TopoDS_Shape: ... + +class HLRBRep_SLProps: + @overload + def __init__( + self, S: None, U: float, V: float, N: int, Resolution: float + ) -> None: ... + @overload + def __init__(self, S: None, N: int, Resolution: float) -> None: ... + @overload + def __init__(self, N: int, Resolution: float) -> None: ... + def CurvatureDirections(self, MaxD: gp_Dir, MinD: gp_Dir) -> None: ... + def D1U(self) -> gp_Vec: ... + def D1V(self) -> gp_Vec: ... + def D2U(self) -> gp_Vec: ... + def D2V(self) -> gp_Vec: ... + def DUV(self) -> gp_Vec: ... + def GaussianCurvature(self) -> float: ... + def IsCurvatureDefined(self) -> bool: ... + def IsNormalDefined(self) -> bool: ... + def IsTangentUDefined(self) -> bool: ... + def IsTangentVDefined(self) -> bool: ... + def IsUmbilic(self) -> bool: ... + def MaxCurvature(self) -> float: ... + def MeanCurvature(self) -> float: ... + def MinCurvature(self) -> float: ... + def Normal(self) -> gp_Dir: ... + def SetParameters(self, U: float, V: float) -> None: ... + def SetSurface(self, S: None) -> None: ... + def TangentU(self, D: gp_Dir) -> None: ... + def TangentV(self, D: gp_Dir) -> None: ... + def Value(self) -> gp_Pnt: ... + +class HLRBRep_SLPropsATool: + @staticmethod + def Bounds(A: None) -> Tuple[float, float, float, float]: ... + @staticmethod + def Continuity(A: None) -> int: ... + @staticmethod + def D1( + A: None, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec + ) -> None: ... + @staticmethod + def D2( + A: None, + U: float, + V: float, + P: gp_Pnt, + D1U: gp_Vec, + D1V: gp_Vec, + D2U: gp_Vec, + D2V: gp_Vec, + DUV: gp_Vec, + ) -> None: ... + @staticmethod + def DN(A: None, U: float, V: float, Nu: int, Nv: int) -> gp_Vec: ... + @staticmethod + def Value(A: None, U: float, V: float, P: gp_Pnt) -> None: ... + +class HLRBRep_ShapeBounds: + @overload + def __init__(self) -> None: ... + @overload + def __init__( + self, + S: HLRTopoBRep_OutLiner, + SData: Standard_Transient, + nbIso: int, + V1: int, + V2: int, + E1: int, + E2: int, + F1: int, + F2: int, + ) -> None: ... + @overload + def __init__( + self, + S: HLRTopoBRep_OutLiner, + nbIso: int, + V1: int, + V2: int, + E1: int, + E2: int, + F1: int, + F2: int, + ) -> None: ... + def Bounds(self) -> Tuple[int, int, int, int, int, int]: ... + def MinMax(self) -> False: ... + @overload + def NbOfIso(self, nbIso: int) -> None: ... + @overload + def NbOfIso(self) -> int: ... + @overload + def Shape(self, S: HLRTopoBRep_OutLiner) -> None: ... + @overload + def Shape(self) -> HLRTopoBRep_OutLiner: ... + @overload + def ShapeData(self, SD: Standard_Transient) -> None: ... + @overload + def ShapeData(self) -> Standard_Transient: ... + def Sizes(self) -> Tuple[int, int, int]: ... + def Translate(self, NV: int, NE: int, NF: int) -> None: ... + +class HLRBRep_ShapeToHLR: + @staticmethod + def Load( + S: HLRTopoBRep_OutLiner, + P: HLRAlgo_Projector, + MST: BRepTopAdaptor_MapOfShapeTool, + nbIso: Optional[int] = 0, + ) -> HLRBRep_Data: ... + +class HLRBRep_SurfaceTool: + @staticmethod + def AxeOfRevolution(S: None) -> gp_Ax1: ... + @staticmethod + def BSpline(S: None) -> Geom_BSplineSurface: ... + @staticmethod + def BasisCurve(S: None) -> Adaptor3d_Curve: ... + @staticmethod + def BasisSurface(S: None) -> Adaptor3d_Surface: ... + @staticmethod + def Bezier(S: None) -> Geom_BezierSurface: ... + @staticmethod + def Cone(S: None) -> gp_Cone: ... + @staticmethod + def Cylinder(S: None) -> gp_Cylinder: ... + @staticmethod + def D0(S: None, u: float, v: float, P: gp_Pnt) -> None: ... + @staticmethod + def D1( + S: None, u: float, v: float, P: gp_Pnt, D1u: gp_Vec, D1v: gp_Vec + ) -> None: ... + @staticmethod + def D2( + S: None, + u: float, + v: float, + P: gp_Pnt, + D1U: gp_Vec, + D1V: gp_Vec, + D2U: gp_Vec, + D2V: gp_Vec, + D2UV: gp_Vec, + ) -> None: ... + @staticmethod + def D3( + S: None, + u: float, + v: float, + P: gp_Pnt, + D1U: gp_Vec, + D1V: gp_Vec, + D2U: gp_Vec, + D2V: gp_Vec, + D2UV: gp_Vec, + D3U: gp_Vec, + D3V: gp_Vec, + D3UUV: gp_Vec, + D3UVV: gp_Vec, + ) -> None: ... + @staticmethod + def DN(S: None, u: float, v: float, Nu: int, Nv: int) -> gp_Vec: ... + @staticmethod + def Direction(S: None) -> gp_Dir: ... + @staticmethod + def FirstUParameter(S: None) -> float: ... + @staticmethod + def FirstVParameter(S: None) -> float: ... + @staticmethod + def GetType(S: None) -> GeomAbs_SurfaceType: ... + @staticmethod + def IsUClosed(S: None) -> bool: ... + @staticmethod + def IsUPeriodic(S: None) -> bool: ... + @staticmethod + def IsVClosed(S: None) -> bool: ... + @staticmethod + def IsVPeriodic(S: None) -> bool: ... + @staticmethod + def LastUParameter(S: None) -> float: ... + @staticmethod + def LastVParameter(S: None) -> float: ... + @overload + @staticmethod + def NbSamplesU(S: None) -> int: ... + @overload + @staticmethod + def NbSamplesU(S: None, u1: float, u2: float) -> int: ... + @overload + @staticmethod + def NbSamplesV(S: None) -> int: ... + @overload + @staticmethod + def NbSamplesV(S: None, v1: float, v2: float) -> int: ... + @staticmethod + def NbUIntervals(S: None, Sh: GeomAbs_Shape) -> int: ... + @staticmethod + def NbVIntervals(S: None, Sh: GeomAbs_Shape) -> int: ... + @staticmethod + def OffsetValue(S: None) -> float: ... + @staticmethod + def Plane(S: None) -> gp_Pln: ... + @staticmethod + def Sphere(S: None) -> gp_Sphere: ... + @staticmethod + def Torus(S: None) -> gp_Torus: ... + @staticmethod + def UIntervals(S: None, T: TColStd_Array1OfReal, Sh: GeomAbs_Shape) -> None: ... + @staticmethod + def UPeriod(S: None) -> float: ... + @staticmethod + def UResolution(S: None, R3d: float) -> float: ... + @staticmethod + def UTrim(S: None, First: float, Last: float, Tol: float) -> Adaptor3d_Surface: ... + @staticmethod + def VIntervals(S: None, T: TColStd_Array1OfReal, Sh: GeomAbs_Shape) -> None: ... + @staticmethod + def VPeriod(S: None) -> float: ... + @staticmethod + def VResolution(S: None, R3d: float) -> float: ... + @staticmethod + def VTrim(S: None, First: float, Last: float, Tol: float) -> Adaptor3d_Surface: ... + @staticmethod + def Value(S: None, u: float, v: float) -> gp_Pnt: ... + +class HLRBRep_TheCSFunctionOfInterCSurf(math_FunctionSetWithDerivatives): + def __init__(self, S: None, C: gp_Lin) -> None: ... + def AuxillarCurve(self) -> gp_Lin: ... + def AuxillarSurface(self) -> None: ... + def Derivatives(self, X: math_Vector, D: math_Matrix) -> bool: ... + def NbEquations(self) -> int: ... + def NbVariables(self) -> int: ... + def Point(self) -> gp_Pnt: ... + def Root(self) -> float: ... + def Value(self, X: math_Vector, F: math_Vector) -> bool: ... + def Values(self, X: math_Vector, F: math_Vector, D: math_Matrix) -> bool: ... + +class HLRBRep_TheDistBetweenPCurvesOfTheIntPCurvePCurveOfCInter( + math_FunctionSetWithDerivatives +): + def __init__(self, curve1: None, curve2: None) -> None: ... + def Derivatives(self, X: math_Vector, D: math_Matrix) -> bool: ... + def NbEquations(self) -> int: ... + def NbVariables(self) -> int: ... + def Value(self, X: math_Vector, F: math_Vector) -> bool: ... + def Values(self, X: math_Vector, F: math_Vector, D: math_Matrix) -> bool: ... + +class HLRBRep_TheExactInterCSurf: + @overload + def __init__( + self, + U: float, + V: float, + W: float, + F: HLRBRep_TheCSFunctionOfInterCSurf, + TolTangency: float, + MarginCoef: Optional[float] = 0.0, + ) -> None: ... + @overload + def __init__( + self, F: HLRBRep_TheCSFunctionOfInterCSurf, TolTangency: float + ) -> None: ... + def Function(self) -> HLRBRep_TheCSFunctionOfInterCSurf: ... + def IsDone(self) -> bool: ... + def IsEmpty(self) -> bool: ... + def ParameterOnCurve(self) -> float: ... + def ParameterOnSurface(self) -> Tuple[float, float]: ... + def Perform( + self, + U: float, + V: float, + W: float, + Rsnld: math_FunctionSetRoot, + u0: float, + v0: float, + u1: float, + v1: float, + w0: float, + w1: float, + ) -> None: ... + def Point(self) -> gp_Pnt: ... + +class HLRBRep_TheIntConicCurveOfCInter(IntRes2d_Intersection): + @overload + def __init__(self) -> None: ... + @overload + def __init__( + self, + L: gp_Lin2d, + D1: IntRes2d_Domain, + PCurve: None, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def __init__( + self, + C: gp_Circ2d, + D1: IntRes2d_Domain, + PCurve: None, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def __init__( + self, + E: gp_Elips2d, + D1: IntRes2d_Domain, + PCurve: None, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def __init__( + self, + Prb: gp_Parab2d, + D1: IntRes2d_Domain, + PCurve: None, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def __init__( + self, + H: gp_Hypr2d, + D1: IntRes2d_Domain, + PCurve: None, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + L: gp_Lin2d, + D1: IntRes2d_Domain, + PCurve: None, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + C: gp_Circ2d, + D1: IntRes2d_Domain, + PCurve: None, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + E: gp_Elips2d, + D1: IntRes2d_Domain, + PCurve: None, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + Prb: gp_Parab2d, + D1: IntRes2d_Domain, + PCurve: None, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, + H: gp_Hypr2d, + D1: IntRes2d_Domain, + PCurve: None, + D2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + +class HLRBRep_TheIntPCurvePCurveOfCInter(IntRes2d_Intersection): + def __init__(self) -> None: ... + def GetMinNbSamples(self) -> int: ... + @overload + def Perform( + self, + Curve1: None, + Domain1: IntRes2d_Domain, + Curve2: None, + Domain2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + @overload + def Perform( + self, Curve1: None, Domain1: IntRes2d_Domain, TolConf: float, Tol: float + ) -> None: ... + def SetMinNbSamples(self, theMinNbSamples: int) -> None: ... + +class HLRBRep_TheInterferenceOfInterCSurf(Intf_Interference): + @overload + def __init__(self) -> None: ... + @overload + def __init__( + self, + thePolyg: HLRBRep_ThePolygonOfInterCSurf, + thePolyh: HLRBRep_ThePolyhedronOfInterCSurf, + ) -> None: ... + @overload + def __init__( + self, theLin: gp_Lin, thePolyh: HLRBRep_ThePolyhedronOfInterCSurf + ) -> None: ... + @overload + def __init__( + self, theLins: Intf_Array1OfLin, thePolyh: HLRBRep_ThePolyhedronOfInterCSurf + ) -> None: ... + @overload + def __init__( + self, + thePolyg: HLRBRep_ThePolygonOfInterCSurf, + thePolyh: HLRBRep_ThePolyhedronOfInterCSurf, + theBoundSB: Bnd_BoundSortBox, + ) -> None: ... + @overload + def __init__( + self, + theLin: gp_Lin, + thePolyh: HLRBRep_ThePolyhedronOfInterCSurf, + theBoundSB: Bnd_BoundSortBox, + ) -> None: ... + @overload + def __init__( + self, + theLins: Intf_Array1OfLin, + thePolyh: HLRBRep_ThePolyhedronOfInterCSurf, + theBoundSB: Bnd_BoundSortBox, + ) -> None: ... + @overload + def Interference( + self, + thePolyg: HLRBRep_ThePolygonOfInterCSurf, + thePolyh: HLRBRep_ThePolyhedronOfInterCSurf, + theBoundSB: Bnd_BoundSortBox, + ) -> None: ... + @overload + def Interference( + self, + thePolyg: HLRBRep_ThePolygonOfInterCSurf, + thePolyh: HLRBRep_ThePolyhedronOfInterCSurf, + ) -> None: ... + @overload + def Perform( + self, + thePolyg: HLRBRep_ThePolygonOfInterCSurf, + thePolyh: HLRBRep_ThePolyhedronOfInterCSurf, + ) -> None: ... + @overload + def Perform( + self, theLin: gp_Lin, thePolyh: HLRBRep_ThePolyhedronOfInterCSurf + ) -> None: ... + @overload + def Perform( + self, theLins: Intf_Array1OfLin, thePolyh: HLRBRep_ThePolyhedronOfInterCSurf + ) -> None: ... + @overload + def Perform( + self, + thePolyg: HLRBRep_ThePolygonOfInterCSurf, + thePolyh: HLRBRep_ThePolyhedronOfInterCSurf, + theBoundSB: Bnd_BoundSortBox, + ) -> None: ... + @overload + def Perform( + self, + theLin: gp_Lin, + thePolyh: HLRBRep_ThePolyhedronOfInterCSurf, + theBoundSB: Bnd_BoundSortBox, + ) -> None: ... + @overload + def Perform( + self, + theLins: Intf_Array1OfLin, + thePolyh: HLRBRep_ThePolyhedronOfInterCSurf, + theBoundSB: Bnd_BoundSortBox, + ) -> None: ... + +class HLRBRep_TheIntersectorOfTheIntConicCurveOfCInter(IntRes2d_Intersection): + @overload + def __init__(self) -> None: ... + @overload + def __init__( + self, + ITool: IntCurve_IConicTool, + Dom1: IntRes2d_Domain, + PCurve: None, + Dom2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + def And_Domaine_Objet1_Intersections( + self, + TheImpTool: IntCurve_IConicTool, + TheParCurve: None, + TheImpCurveDomain: IntRes2d_Domain, + TheParCurveDomain: IntRes2d_Domain, + Inter2_And_Domain2: TColStd_Array1OfReal, + Inter1: TColStd_Array1OfReal, + Resultat1: TColStd_Array1OfReal, + Resultat2: TColStd_Array1OfReal, + EpsNul: float, + ) -> int: ... + def FindU( + self, + parameter: float, + point: gp_Pnt2d, + TheParCurev: None, + TheImpTool: IntCurve_IConicTool, + ) -> float: ... + def FindV( + self, + parameter: float, + point: gp_Pnt2d, + TheImpTool: IntCurve_IConicTool, + ParCurve: None, + TheParCurveDomain: IntRes2d_Domain, + V0: float, + V1: float, + Tolerance: float, + ) -> float: ... + def Perform( + self, + ITool: IntCurve_IConicTool, + Dom1: IntRes2d_Domain, + PCurve: None, + Dom2: IntRes2d_Domain, + TolConf: float, + Tol: float, + ) -> None: ... + +class HLRBRep_TheLocateExtPCOfTheProjPCurOfCInter: + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, P: gp_Pnt2d, C: None, U0: float, TolU: float) -> None: ... + @overload + def __init__( + self, P: gp_Pnt2d, C: None, U0: float, Umin: float, Usup: float, TolU: float + ) -> None: ... + def Initialize(self, C: None, Umin: float, Usup: float, TolU: float) -> None: ... + def IsDone(self) -> bool: ... + def IsMin(self) -> bool: ... + def Perform(self, P: gp_Pnt2d, U0: float) -> None: ... + def Point(self) -> Extrema_POnCurv2d: ... + def SquareDistance(self) -> float: ... + +class HLRBRep_ThePolygon2dOfTheIntPCurvePCurveOfCInter(Intf_Polygon2d): + def __init__( + self, Curve: None, NbPnt: int, Domain: IntRes2d_Domain, Tol: float + ) -> None: ... + def ApproxParamOnCurve(self, Index: int, ParamOnLine: float) -> float: ... + def AutoIntersectionIsPossible(self) -> bool: ... + def CalculRegion( + self, x: float, y: float, x1: float, x2: float, y1: float, y2: float + ) -> int: ... + @overload + def Closed(self, clos: bool) -> None: ... + @overload + def Closed(self) -> bool: ... + def ComputeWithBox(self, Curve: None, OtherBox: Bnd_Box2d) -> None: ... + def DeflectionOverEstimation(self) -> float: ... + def Dump(self) -> None: ... + def InfParameter(self) -> float: ... + def NbSegments(self) -> int: ... + def Segment(self, theIndex: int, theBegin: gp_Pnt2d, theEnd: gp_Pnt2d) -> None: ... + def SetDeflectionOverEstimation(self, x: float) -> None: ... + def SupParameter(self) -> float: ... + +class HLRBRep_ThePolygonOfInterCSurf: + @overload + def __init__(self, Curve: gp_Lin, NbPnt: int) -> None: ... + @overload + def __init__(self, Curve: gp_Lin, U1: float, U2: float, NbPnt: int) -> None: ... + @overload + def __init__(self, Curve: gp_Lin, Upars: TColStd_Array1OfReal) -> None: ... + def ApproxParamOnCurve(self, Index: int, ParamOnLine: float) -> float: ... + def BeginOfSeg(self, theIndex: int) -> gp_Pnt: ... + def Bounding(self) -> Bnd_Box: ... + @overload + def Closed(self, flag: bool) -> None: ... + @overload + def Closed(self) -> bool: ... + def DeflectionOverEstimation(self) -> float: ... + def Dump(self) -> None: ... + def EndOfSeg(self, theIndex: int) -> gp_Pnt: ... + def InfParameter(self) -> float: ... + def NbSegments(self) -> int: ... + def SetDeflectionOverEstimation(self, x: float) -> None: ... + def SupParameter(self) -> float: ... + +class HLRBRep_ThePolygonToolOfInterCSurf: + @staticmethod + def BeginOfSeg( + thePolygon: HLRBRep_ThePolygonOfInterCSurf, Index: int + ) -> gp_Pnt: ... + @staticmethod + def Bounding(thePolygon: HLRBRep_ThePolygonOfInterCSurf) -> Bnd_Box: ... + @staticmethod + def Closed(thePolygon: HLRBRep_ThePolygonOfInterCSurf) -> bool: ... + @staticmethod + def DeflectionOverEstimation( + thePolygon: HLRBRep_ThePolygonOfInterCSurf, + ) -> float: ... + @staticmethod + def Dump(thePolygon: HLRBRep_ThePolygonOfInterCSurf) -> None: ... + @staticmethod + def EndOfSeg(thePolygon: HLRBRep_ThePolygonOfInterCSurf, Index: int) -> gp_Pnt: ... + @staticmethod + def NbSegments(thePolygon: HLRBRep_ThePolygonOfInterCSurf) -> int: ... + +class HLRBRep_ThePolyhedronToolOfInterCSurf: + @staticmethod + def Bounding(thePolyh: HLRBRep_ThePolyhedronOfInterCSurf) -> Bnd_Box: ... + @staticmethod + def ComponentsBounding( + thePolyh: HLRBRep_ThePolyhedronOfInterCSurf, + ) -> Bnd_HArray1OfBox: ... + @staticmethod + def DeflectionOverEstimation( + thePolyh: HLRBRep_ThePolyhedronOfInterCSurf, + ) -> float: ... + @staticmethod + def Dump(thePolyh: HLRBRep_ThePolyhedronOfInterCSurf) -> None: ... + @staticmethod + def GetBorderDeflection(thePolyh: HLRBRep_ThePolyhedronOfInterCSurf) -> float: ... + @staticmethod + def IsOnBound( + thePolyh: HLRBRep_ThePolyhedronOfInterCSurf, Index1: int, Index2: int + ) -> bool: ... + @staticmethod + def NbTriangles(thePolyh: HLRBRep_ThePolyhedronOfInterCSurf) -> int: ... + @staticmethod + def Point(thePolyh: HLRBRep_ThePolyhedronOfInterCSurf, Index: int) -> gp_Pnt: ... + @staticmethod + def TriConnex( + thePolyh: HLRBRep_ThePolyhedronOfInterCSurf, Triang: int, Pivot: int, Pedge: int + ) -> Tuple[int, int, int]: ... + @staticmethod + def Triangle( + thePolyh: HLRBRep_ThePolyhedronOfInterCSurf, Index: int + ) -> Tuple[int, int, int]: ... + +class HLRBRep_TheProjPCurOfCInter: + @overload + @staticmethod + def FindParameter(C: None, Pnt: gp_Pnt2d, Tol: float) -> float: ... + @overload + @staticmethod + def FindParameter( + C: None, Pnt: gp_Pnt2d, LowParameter: float, HighParameter: float, Tol: float + ) -> float: ... + +class HLRBRep_TheQuadCurvExactInterCSurf: + def __init__(self, S: None, C: gp_Lin) -> None: ... + def Intervals(self, Index: int) -> Tuple[float, float]: ... + def IsDone(self) -> bool: ... + def NbIntervals(self) -> int: ... + def NbRoots(self) -> int: ... + def Root(self, Index: int) -> float: ... + +class HLRBRep_TheQuadCurvFuncOfTheQuadCurvExactInterCSurf(math_FunctionWithDerivative): + def __init__(self, Q: IntSurf_Quadric, C: gp_Lin) -> None: ... + def Derivative(self, Param: float) -> Tuple[bool, float]: ... + def Value(self, Param: float) -> Tuple[bool, float]: ... + def Values(self, Param: float) -> Tuple[bool, float, float]: ... + +class HLRBRep_VertexList: + def __init__( + self, T: HLRBRep_EdgeInterferenceTool, I: HLRAlgo_ListIteratorOfInterferenceList + ) -> None: ... + def BoundaryTransition(self) -> TopAbs_Orientation: ... + def Current(self) -> HLRAlgo_Intersection: ... + def IsBoundary(self) -> bool: ... + def IsInterference(self) -> bool: ... + def IsPeriodic(self) -> bool: ... + def More(self) -> bool: ... + def Next(self) -> None: ... + def Orientation(self) -> TopAbs_Orientation: ... + def Transition(self) -> TopAbs_Orientation: ... + +class HLRBRep_Algo(HLRBRep_InternalAlgo): + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, A: HLRBRep_Algo) -> None: ... + @overload + def Add( + self, S: TopoDS_Shape, SData: Standard_Transient, nbIso: Optional[int] = 0 + ) -> None: ... + @overload + def Add(self, S: TopoDS_Shape, nbIso: Optional[int] = 0) -> None: ... + def Index(self, S: TopoDS_Shape) -> int: ... + def OutLinedShapeNullify(self) -> None: ... + +# classnotwrapped +class HLRBRep_ThePolyhedronOfInterCSurf: ... + +# classnotwrapped +class HLRBRep_BSurfaceTool: ... + +# classnotwrapped +class HLRBRep_Surface: ... + +# classnotwrapped +class HLRBRep_TheCurveLocatorOfTheProjPCurOfCInter: ... + +# harray1 classes +# harray2 classes +# hsequence classes diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/HLRTopoBRep.pyi b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/HLRTopoBRep.pyi new file mode 100644 index 0000000000000000000000000000000000000000..e6664be62310d49d7a754e2b2efdd36dcbdf628b --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/HLRTopoBRep.pyi @@ -0,0 +1,134 @@ +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.Contap import * +from OCC.Core.BRepTopAdaptor import * +from OCC.Core.TopTools import * +from OCC.Core.Geom2d import * +from OCC.Core.gp import * +from OCC.Core.HLRAlgo import * + +class HLRTopoBRep_ListOfVData: + def Append(self, theItem: HLRTopoBRep_VData) -> HLRTopoBRep_VData: ... + def Assign(self, theItem: HLRTopoBRep_ListOfVData) -> HLRTopoBRep_ListOfVData: ... + def Clear(self) -> None: ... + def First(self) -> HLRTopoBRep_VData: ... + def Last(self) -> HLRTopoBRep_VData: ... + def Prepend(self, theItem: HLRTopoBRep_VData) -> HLRTopoBRep_VData: ... + def RemoveFirst(self) -> None: ... + def Reverse(self) -> None: ... + def Size(self) -> int: ... + def __init__(self) -> None: ... + def __len__(self) -> int: ... + def __iter__(self) -> HLRTopoBRep_VData: ... + +class HLRTopoBRep_DSFiller: + @staticmethod + def Insert( + S: TopoDS_Shape, + FO: Contap_Contour, + DS: HLRTopoBRep_Data, + MST: BRepTopAdaptor_MapOfShapeTool, + nbIso: int, + ) -> None: ... + +class HLRTopoBRep_Data: + def __init__(self) -> None: ... + def AddIntL(self, F: TopoDS_Face) -> TopTools_ListOfShape: ... + def AddIntV(self, V: TopoDS_Vertex) -> None: ... + def AddIsoL(self, F: TopoDS_Face) -> TopTools_ListOfShape: ... + def AddOldS(self, NewS: TopoDS_Shape, OldS: TopoDS_Shape) -> None: ... + def AddOutL(self, F: TopoDS_Face) -> TopTools_ListOfShape: ... + def AddOutV(self, V: TopoDS_Vertex) -> None: ... + def AddSplE(self, E: TopoDS_Edge) -> TopTools_ListOfShape: ... + def Append(self, V: TopoDS_Vertex, P: float) -> None: ... + def Clean(self) -> None: ... + def Clear(self) -> None: ... + def Edge(self) -> TopoDS_Edge: ... + def EdgeHasSplE(self, E: TopoDS_Edge) -> bool: ... + def EdgeSplE(self, E: TopoDS_Edge) -> TopTools_ListOfShape: ... + def FaceHasIntL(self, F: TopoDS_Face) -> bool: ... + def FaceHasIsoL(self, F: TopoDS_Face) -> bool: ... + def FaceHasOutL(self, F: TopoDS_Face) -> bool: ... + def FaceIntL(self, F: TopoDS_Face) -> TopTools_ListOfShape: ... + def FaceIsoL(self, F: TopoDS_Face) -> TopTools_ListOfShape: ... + def FaceOutL(self, F: TopoDS_Face) -> TopTools_ListOfShape: ... + def InitEdge(self) -> None: ... + def InitVertex(self, E: TopoDS_Edge) -> None: ... + def InsertBefore(self, V: TopoDS_Vertex, P: float) -> None: ... + def IsIntLFaceEdge(self, F: TopoDS_Face, E: TopoDS_Edge) -> bool: ... + def IsIntV(self, V: TopoDS_Vertex) -> bool: ... + def IsIsoLFaceEdge(self, F: TopoDS_Face, E: TopoDS_Edge) -> bool: ... + def IsOutLFaceEdge(self, F: TopoDS_Face, E: TopoDS_Edge) -> bool: ... + def IsOutV(self, V: TopoDS_Vertex) -> bool: ... + def IsSplEEdgeEdge(self, E1: TopoDS_Edge, E2: TopoDS_Edge) -> bool: ... + def MoreEdge(self) -> bool: ... + def MoreVertex(self) -> bool: ... + def NewSOldS(self, New: TopoDS_Shape) -> TopoDS_Shape: ... + def NextEdge(self) -> None: ... + def NextVertex(self) -> None: ... + def Parameter(self) -> float: ... + def Vertex(self) -> TopoDS_Vertex: ... + +class HLRTopoBRep_FaceData: + def __init__(self) -> None: ... + def AddIntL(self) -> TopTools_ListOfShape: ... + def AddIsoL(self) -> TopTools_ListOfShape: ... + def AddOutL(self) -> TopTools_ListOfShape: ... + def FaceIntL(self) -> TopTools_ListOfShape: ... + def FaceIsoL(self) -> TopTools_ListOfShape: ... + def FaceOutL(self) -> TopTools_ListOfShape: ... + +class HLRTopoBRep_FaceIsoLiner: + @staticmethod + def MakeIsoLine( + F: TopoDS_Face, + Iso: Geom2d_Line, + V1: TopoDS_Vertex, + V2: TopoDS_Vertex, + U1: float, + U2: float, + Tol: float, + DS: HLRTopoBRep_Data, + ) -> None: ... + @staticmethod + def MakeVertex( + E: TopoDS_Edge, P: gp_Pnt, Par: float, Tol: float, DS: HLRTopoBRep_Data + ) -> TopoDS_Vertex: ... + @staticmethod + def Perform(FI: int, F: TopoDS_Face, DS: HLRTopoBRep_Data, nbIsos: int) -> None: ... + +class HLRTopoBRep_OutLiner(Standard_Transient): + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, OriSh: TopoDS_Shape) -> None: ... + @overload + def __init__(self, OriS: TopoDS_Shape, OutS: TopoDS_Shape) -> None: ... + def DataStructure(self) -> HLRTopoBRep_Data: ... + def Fill( + self, P: HLRAlgo_Projector, MST: BRepTopAdaptor_MapOfShapeTool, nbIso: int + ) -> None: ... + @overload + def OriginalShape(self, OriS: TopoDS_Shape) -> None: ... + @overload + def OriginalShape(self) -> TopoDS_Shape: ... + @overload + def OutLinedShape(self, OutS: TopoDS_Shape) -> None: ... + @overload + def OutLinedShape(self) -> TopoDS_Shape: ... + +class HLRTopoBRep_VData: + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, P: float, V: TopoDS_Shape) -> None: ... + def Parameter(self) -> float: ... + def Vertex(self) -> TopoDS_Shape: ... + +# harray1 classes +# harray2 classes +# hsequence classes diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/HeaderSection.pyi b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/HeaderSection.pyi new file mode 100644 index 0000000000000000000000000000000000000000..649d228a5d29399947397759fe9cd8803cafe859 --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/HeaderSection.pyi @@ -0,0 +1,83 @@ +from enum import IntEnum +from typing import overload, NewType, Optional, Tuple + +from OCC.Core.Standard import * +from OCC.Core.NCollection import * +from OCC.Core.Interface import * +from OCC.Core.TCollection import * +from OCC.Core.StepData import * + +class headersection: + @staticmethod + def Protocol() -> HeaderSection_Protocol: ... + +class HeaderSection_FileDescription(Standard_Transient): + def __init__(self) -> None: ... + def Description(self) -> Interface_HArray1OfHAsciiString: ... + def DescriptionValue(self, num: int) -> TCollection_HAsciiString: ... + def ImplementationLevel(self) -> TCollection_HAsciiString: ... + def Init( + self, + aDescription: Interface_HArray1OfHAsciiString, + aImplementationLevel: TCollection_HAsciiString, + ) -> None: ... + def NbDescription(self) -> int: ... + def SetDescription(self, aDescription: Interface_HArray1OfHAsciiString) -> None: ... + def SetImplementationLevel( + self, aImplementationLevel: TCollection_HAsciiString + ) -> None: ... + +class HeaderSection_FileName(Standard_Transient): + def __init__(self) -> None: ... + def Author(self) -> Interface_HArray1OfHAsciiString: ... + def AuthorValue(self, num: int) -> TCollection_HAsciiString: ... + def Authorisation(self) -> TCollection_HAsciiString: ... + def Init( + self, + aName: TCollection_HAsciiString, + aTimeStamp: TCollection_HAsciiString, + aAuthor: Interface_HArray1OfHAsciiString, + aOrganization: Interface_HArray1OfHAsciiString, + aPreprocessorVersion: TCollection_HAsciiString, + aOriginatingSystem: TCollection_HAsciiString, + aAuthorisation: TCollection_HAsciiString, + ) -> None: ... + def Name(self) -> TCollection_HAsciiString: ... + def NbAuthor(self) -> int: ... + def NbOrganization(self) -> int: ... + def Organization(self) -> Interface_HArray1OfHAsciiString: ... + def OrganizationValue(self, num: int) -> TCollection_HAsciiString: ... + def OriginatingSystem(self) -> TCollection_HAsciiString: ... + def PreprocessorVersion(self) -> TCollection_HAsciiString: ... + def SetAuthor(self, aAuthor: Interface_HArray1OfHAsciiString) -> None: ... + def SetAuthorisation(self, aAuthorisation: TCollection_HAsciiString) -> None: ... + def SetName(self, aName: TCollection_HAsciiString) -> None: ... + def SetOrganization( + self, aOrganization: Interface_HArray1OfHAsciiString + ) -> None: ... + def SetOriginatingSystem( + self, aOriginatingSystem: TCollection_HAsciiString + ) -> None: ... + def SetPreprocessorVersion( + self, aPreprocessorVersion: TCollection_HAsciiString + ) -> None: ... + def SetTimeStamp(self, aTimeStamp: TCollection_HAsciiString) -> None: ... + def TimeStamp(self) -> TCollection_HAsciiString: ... + +class HeaderSection_FileSchema(Standard_Transient): + def __init__(self) -> None: ... + def Init(self, aSchemaIdentifiers: Interface_HArray1OfHAsciiString) -> None: ... + def NbSchemaIdentifiers(self) -> int: ... + def SchemaIdentifiers(self) -> Interface_HArray1OfHAsciiString: ... + def SchemaIdentifiersValue(self, num: int) -> TCollection_HAsciiString: ... + def SetSchemaIdentifiers( + self, aSchemaIdentifiers: Interface_HArray1OfHAsciiString + ) -> None: ... + +class HeaderSection_Protocol(StepData_Protocol): + def __init__(self) -> None: ... + def TypeNumber(self, atype: Standard_Type) -> int: ... + +# harray1 classes +# harray2 classes +# hsequence classes diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/IFSelect.py b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/IFSelect.py new file mode 100644 index 0000000000000000000000000000000000000000..1cdfcbbfa331fab082cc7b5c9ecc79b38b9c95ad --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/IFSelect.py @@ -0,0 +1,15755 @@ +# 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. + +""" +IFSelect module, see official documentation at +https://dev.opencascade.org/doc/occt-7.9.0/refman/html/package_ifselect.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 _IFSelect +else: + import _IFSelect + +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__ = _IFSelect.delete_SwigPyIterator + + def value(self): + return _IFSelect.SwigPyIterator_value(self) + + def incr(self, n=1): + return _IFSelect.SwigPyIterator_incr(self, n) + + def decr(self, n=1): + return _IFSelect.SwigPyIterator_decr(self, n) + + def distance(self, x): + return _IFSelect.SwigPyIterator_distance(self, x) + + def equal(self, x): + return _IFSelect.SwigPyIterator_equal(self, x) + + def copy(self): + return _IFSelect.SwigPyIterator_copy(self) + + def next(self): + return _IFSelect.SwigPyIterator_next(self) + + def __next__(self): + return _IFSelect.SwigPyIterator___next__(self) + + def previous(self): + return _IFSelect.SwigPyIterator_previous(self) + + def advance(self, n): + return _IFSelect.SwigPyIterator_advance(self, n) + + def __eq__(self, x): + return _IFSelect.SwigPyIterator___eq__(self, x) + + def __ne__(self, x): + return _IFSelect.SwigPyIterator___ne__(self, x) + + def __iadd__(self, n): + return _IFSelect.SwigPyIterator___iadd__(self, n) + + def __isub__(self, n): + return _IFSelect.SwigPyIterator___isub__(self, n) + + def __add__(self, n): + return _IFSelect.SwigPyIterator___add__(self, n) + + def __sub__(self, *args): + return _IFSelect.SwigPyIterator___sub__(self, *args) + def __iter__(self): + return self + +# Register SwigPyIterator in _IFSelect: +_IFSelect.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 = " gives the name of the File to be used (this avoids to export the class SessionFile). + + """ + return _IFSelect.ifselect_RestoreSession(*args) + + @staticmethod + def SaveSession(*args): + r""" + + Parameters + ---------- + WS: IFSelect_WorkSession + file: str + + Return + ------- + bool + + Description + ----------- + Saves the state of a WorkSession from IFSelect, by using a SessionFile from IFSelect. Returns True if Done, False in case of Error on Writing. gives the name of the File to be produced (this avoids to export the class SessionFile). + + """ + return _IFSelect.ifselect_SaveSession(*args) + + __repr__ = _dumps_object + + + def __init__(self): + _IFSelect.ifselect_swiginit(self, _IFSelect.new_ifselect()) + __swig_destroy__ = _IFSelect.delete_ifselect + +# Register ifselect in _IFSelect: +_IFSelect.ifselect_swigregister(ifselect) +class IFSelect_Activator(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 Add(self, *args): + r""" + + Parameters + ---------- + number: int + command: str + + Return + ------- + None + + Description + ----------- + Allows a self-definition by an Activator of the Commands it processes, call the class method Adding (mode 0). + + """ + return _IFSelect.IFSelect_Activator_Add(self, *args) + + def AddSet(self, *args): + r""" + + Parameters + ---------- + number: int + command: str + + Return + ------- + None + + Description + ----------- + Same as Add but specifies that this command is candidate for xset (creation of items, xset: named items; mode 1). + + """ + return _IFSelect.IFSelect_Activator_AddSet(self, *args) + + @staticmethod + def Adding(*args): + r""" + + Parameters + ---------- + actor: IFSelect_Activator + number: int + command: str + mode: int + + Return + ------- + None + + Description + ----------- + Records, in a Dictionary available for all the Activators, the command title an Activator can process, attached with its number, proper for this Activator allows to distinguish various execution modes 0: default mode; 1: for xset. + + """ + return _IFSelect.IFSelect_Activator_Adding(*args) + + @staticmethod + def Commands(*args): + r""" + + Parameters + ---------- + mode: int (optional, default to -1) + command: str (optional, default to ) + + Return + ------- + opencascade::handle + + Description + ----------- + Returns, for a root of command title, the list of possible commands. : -1 (D) for all commands if is empty -1 + command: about a Group , >= 0 see Adding By default, it returns the whole list of known commands. + + """ + return _IFSelect.IFSelect_Activator_Commands(*args) + + def Do(self, *args): + r""" + + Parameters + ---------- + number: int + pilot: IFSelect_SessionPilot + + Return + ------- + IFSelect_ReturnStatus + + Description + ----------- + Tries to execute a Command Line. is the number of the command for this Activator. It Must forecast to record the result of the execution, for need of Undo-Redo Must Returns: 0 for a void command (not to be recorded), 1 if execution OK, -1 if command incorrect, -2 if error on execution. + + """ + return _IFSelect.IFSelect_Activator_Do(self, *args) + + def File(self, *args): + r""" + Return + ------- + str + + Description + ----------- + No available documentation. + + """ + return _IFSelect.IFSelect_Activator_File(self, *args) + + def Group(self, *args): + r""" + Return + ------- + str + + Description + ----------- + No available documentation. + + """ + return _IFSelect.IFSelect_Activator_Group(self, *args) + + def Help(self, *args): + r""" + + Parameters + ---------- + number: int + + Return + ------- + str + + Description + ----------- + Sends a short help message for a given command identified by it number for this Activator (must take one line max). + + """ + return _IFSelect.IFSelect_Activator_Help(self, *args) + + @staticmethod + def Mode(*args): + r""" + + Parameters + ---------- + command: str + + Return + ------- + int + + Description + ----------- + Returns mode recorded for a command. -1 if not found. + + """ + return _IFSelect.IFSelect_Activator_Mode(*args) + + @staticmethod + def Remove(*args): + r""" + + Parameters + ---------- + command: str + + Return + ------- + None + + Description + ----------- + Removes a Command, if it is recorded (else, does nothing). + + """ + return _IFSelect.IFSelect_Activator_Remove(*args) + + @staticmethod + def Select(*args): + r""" + + Parameters + ---------- + command: str + actor: IFSelect_Activator + + Return + ------- + number: int + + Description + ----------- + Selects, for a Command given by its title, an actor with its command number. Returns True if found, False else. + + """ + return _IFSelect.IFSelect_Activator_Select(*args) + + def SetForGroup(self, *args): + r""" + + Parameters + ---------- + group: str + file: str (optional, default to ) + + Return + ------- + None + + Description + ----------- + Group and SetGroup define a 'Group of commands' which correspond to an Activator. Default is 'XSTEP' Also a file may be attached. + + """ + return _IFSelect.IFSelect_Activator_SetForGroup(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_IFSelect_Activator_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _IFSelect.delete_IFSelect_Activator + +# Register IFSelect_Activator in _IFSelect: +_IFSelect.IFSelect_Activator_swigregister(IFSelect_Activator) +class IFSelect_AppliedModifiers(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 + ---------- + nbmax: int + nbent: int + + Return + ------- + None + + Description + ----------- + Creates an AppliedModifiers, ready to record up to modifiers, on a model of entities. + + """ + _IFSelect.IFSelect_AppliedModifiers_swiginit(self, _IFSelect.new_IFSelect_AppliedModifiers(*args)) + + def AddModif(self, *args): + r""" + + Parameters + ---------- + modif: IFSelect_GeneralModifier + + Return + ------- + bool + + Description + ----------- + Records a modifier. By default, it is to apply on all a produced file. Further calls to AddNum will restrict this. Returns True if done, False if too many modifiers are already recorded. + + """ + return _IFSelect.IFSelect_AppliedModifiers_AddModif(self, *args) + + def AddNum(self, *args): + r""" + + Parameters + ---------- + nument: int + + Return + ------- + bool + + Description + ----------- + Adds a number of entity of the output file to be applied on. If a sequence of AddNum is called after AddModif, this Modifier will be applied on the list of designated entities. Else, it will be applied on all the file Returns True if done, False if no modifier has yet been added. + + """ + return _IFSelect.IFSelect_AppliedModifiers_AddNum(self, *args) + + def Count(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Returns the count of recorded modifiers. + + """ + return _IFSelect.IFSelect_AppliedModifiers_Count(self, *args) + + def IsForAll(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True if the applied modifier queried by last call to Item is to be applied to all the produced file. Else, returned by Item gives the count of entity numbers, each one is queried by ItemNum. + + """ + return _IFSelect.IFSelect_AppliedModifiers_IsForAll(self, *args) + + def Item(self, *args): + r""" + + Parameters + ---------- + num: int + modif: IFSelect_GeneralModifier + + Return + ------- + entcount: int + + Description + ----------- + Returns the description for applied modifier n0 : the modifier itself, and the count of entities to be applied on. If no specific list of number has been defined, returns the total count of entities of the file If this count is zero, then the modifier applies to all the file (see below). Else, the numbers are then queried by calls to ItemNum between 1 and Returns True if OK, False if is out of range. + + """ + return _IFSelect.IFSelect_AppliedModifiers_Item(self, *args) + + def ItemList(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the list of entities to be applied on (see Item) as a HSequence (IsForAll produces the complete list of all the entity numbers of the file. + + """ + return _IFSelect.IFSelect_AppliedModifiers_ItemList(self, *args) + + def ItemNum(self, *args): + r""" + + Parameters + ---------- + nument: int + + Return + ------- + int + + Description + ----------- + Returns a numero of entity to be applied on, given its rank in the list. If no list is defined (i.e. for all the file), returns itself, to give all the entities of the file Returns 0 if out of range. + + """ + return _IFSelect.IFSelect_AppliedModifiers_ItemNum(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_IFSelect_AppliedModifiers_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _IFSelect.delete_IFSelect_AppliedModifiers + +# Register IFSelect_AppliedModifiers in _IFSelect: +_IFSelect.IFSelect_AppliedModifiers_swigregister(IFSelect_AppliedModifiers) +class IFSelect_ContextModif(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 + ---------- + graph: Interface_Graph + TC: Interface_CopyTool + filename: str (optional, default to ) + + Return + ------- + None + + Description + ----------- + Prepares a ContextModif with these information: - the graph established from original model (target passed directly to Modifier) - the CopyTool which detains the CopyControl, which maps starting (in original) and result (in target) entities - an optional file name (for file output) //! Such a ContextModif is considered to be applied on all transferred entities (no filter active). + + Parameters + ---------- + graph: Interface_Graph + filename: str (optional, default to ) + + Return + ------- + None + + Description + ----------- + Prepares a ContextModif with these information: - the graph established from original model (target passed directly to Modifier) - an optional file name (for file output) Here, no CopyControl, hence all entities are considered equal as starting and result //! Such a ContextModif is considered to be applied on all transferred entities (no filter active). + + """ + _IFSelect.IFSelect_ContextModif_swiginit(self, _IFSelect.new_IFSelect_ContextModif(*args)) + + def AddCheck(self, *args): + r""" + + Parameters + ---------- + check: Interface_Check + + Return + ------- + None + + Description + ----------- + Adds a Check to the CheckList. If it is empty, nothing is done If it concerns an Entity from the Original Model (by SetEntity) to which another Check is attached, it is merged to it. Else, it is added or merged as to GlobalCheck. + + """ + return _IFSelect.IFSelect_ContextModif_AddCheck(self, *args) + + def AddFail(self, *args): + r""" + + Parameters + ---------- + start: Standard_Transient + mess: str + orig: str (optional, default to ) + + Return + ------- + None + + Description + ----------- + Adds a Fail Message for an Entity from the original Model If is not an Entity from the original model (e.g. the model itself) this message is added to Global Check. + + """ + return _IFSelect.IFSelect_ContextModif_AddFail(self, *args) + + def AddWarning(self, *args): + r""" + + Parameters + ---------- + start: Standard_Transient + mess: str + orig: str (optional, default to ) + + Return + ------- + None + + Description + ----------- + Adds a Warning Message for an Entity from the original Model If is not an Entity from the original model (e.g. the model itself) this message is added to Global Check. + + """ + return _IFSelect.IFSelect_ContextModif_AddWarning(self, *args) + + def CCheck(self, *args): + r""" + + Parameters + ---------- + num: int (optional, default to 0) + + Return + ------- + opencascade::handle + + Description + ----------- + Returns a Check given an Entity number (in the original Model) by default a Global Check. Creates it the first time. It can then be acknowledged on the spot, in condition that the caller works by reference ('Interface_Check& check = ...'). + + Parameters + ---------- + start: Standard_Transient + + Return + ------- + opencascade::handle + + Description + ----------- + Returns a Check attached to an Entity from the original Model It can then be acknowledged on the spot, in condition that the caller works by reference ('Interface_Check& check = ...'). + + """ + return _IFSelect.IFSelect_ContextModif_CCheck(self, *args) + + def CheckList(self, *args): + r""" + Return + ------- + Interface_CheckIterator + + Description + ----------- + Returns the complete CheckList. + + """ + return _IFSelect.IFSelect_ContextModif_CheckList(self, *args) + + def Control(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the map for a direct use, if required. + + """ + return _IFSelect.IFSelect_ContextModif_Control(self, *args) + + def FileName(self, *args): + r""" + Return + ------- + str + + Description + ----------- + Returns File Name (can be empty). + + """ + return _IFSelect.IFSelect_ContextModif_FileName(self, *args) + + def HasFileName(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True if a non empty file name has been defined. + + """ + return _IFSelect.IFSelect_ContextModif_HasFileName(self, *args) + + def IsForAll(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True if no filter is defined: a Modifier has to work on all entities of the resulting (target) model. + + """ + return _IFSelect.IFSelect_ContextModif_IsForAll(self, *args) + + def IsForNone(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True if Select has determined that a Modifier may not be run (filter defined and empty). + + """ + return _IFSelect.IFSelect_ContextModif_IsForNone(self, *args) + + def IsSelected(self, *args): + r""" + + Parameters + ---------- + ent: Standard_Transient + + Return + ------- + bool + + Description + ----------- + Returns True if a starting item has been transferred and selected. + + """ + return _IFSelect.IFSelect_ContextModif_IsSelected(self, *args) + + def IsTransferred(self, *args): + r""" + + Parameters + ---------- + ent: Standard_Transient + + Return + ------- + bool + + Description + ----------- + Returns True if a starting item has been transferred. + + """ + return _IFSelect.IFSelect_ContextModif_IsTransferred(self, *args) + + def More(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True until the iteration has finished. + + """ + return _IFSelect.IFSelect_ContextModif_More(self, *args) + + def Next(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Advances the iteration. + + """ + return _IFSelect.IFSelect_ContextModif_Next(self, *args) + + def OriginalGraph(self, *args): + r""" + Return + ------- + Interface_Graph + + Description + ----------- + Returns the original Graph (compared to OriginalModel, it gives more query capabilitites). + + """ + return _IFSelect.IFSelect_ContextModif_OriginalGraph(self, *args) + + def OriginalModel(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the original model. + + """ + return _IFSelect.IFSelect_ContextModif_OriginalModel(self, *args) + + def Protocol(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the Protocol (Null if not set). + + """ + return _IFSelect.IFSelect_ContextModif_Protocol(self, *args) + + def Select(self, *args): + r""" + + Parameters + ---------- + list: Interface_EntityIterator + + Return + ------- + None + + Description + ----------- + This method requires ContextModif to be applied with a filter. If a ModelModifier is defined with a Selection criterium, the result of this Selection is used as a filter: - if none of its items has been transferred, the modification does not apply at all - else, the Modifier can query for what entities were selected and what are their results - if this method is not called before working, the Modifier has to work on the whole Model. + + """ + return _IFSelect.IFSelect_ContextModif_Select(self, *args) + + def SelectedCount(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Returns the count of selected and transferred items. + + """ + return _IFSelect.IFSelect_ContextModif_SelectedCount(self, *args) + + def SelectedOriginal(self, *args): + r""" + Return + ------- + Interface_EntityIterator + + Description + ----------- + Returns the list of original selected items. See also the iteration. + + """ + return _IFSelect.IFSelect_ContextModif_SelectedOriginal(self, *args) + + def SelectedResult(self, *args): + r""" + Return + ------- + Interface_EntityIterator + + Description + ----------- + Returns the list of resulting counterparts of selected items. See also the iteration. + + """ + return _IFSelect.IFSelect_ContextModif_SelectedResult(self, *args) + + def SetProtocol(self, *args): + r""" + + Parameters + ---------- + proto: Interface_Protocol + + Return + ------- + None + + Description + ----------- + Allows to transmit a Protocol as part of a ContextModif. + + """ + return _IFSelect.IFSelect_ContextModif_SetProtocol(self, *args) + + def Start(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Starts an iteration on selected items. It takes into account IsForAll/IsForNone, by really iterating on all selected items. + + """ + return _IFSelect.IFSelect_ContextModif_Start(self, *args) + + def Trace(self, *args): + r""" + + Parameters + ---------- + mess: str (optional, default to ) + + Return + ------- + None + + Description + ----------- + Traces the modification of the current entity (see above, ValueOriginal and ValueResult) for default trace level >= 2. To be called on each individual entity really modified is an optional additional message. + + """ + return _IFSelect.IFSelect_ContextModif_Trace(self, *args) + + def TraceModifier(self, *args): + r""" + + Parameters + ---------- + modif: IFSelect_GeneralModifier + + Return + ------- + None + + Description + ----------- + Traces the application of a Modifier. Works with default trace File and Level. Fills the trace if default trace level is at least 1. Traces the Modifier (its Label) and its Selection if there is one (its Label). To be called after Select (because status IsForAll is printed) Worths to trace a global modification. See also Trace below. + + """ + return _IFSelect.IFSelect_ContextModif_TraceModifier(self, *args) + + def ValueOriginal(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the current selected item in the original model. + + """ + return _IFSelect.IFSelect_ContextModif_ValueOriginal(self, *args) + + def ValueResult(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the result counterpart of current selected item (in the target model). + + """ + return _IFSelect.IFSelect_ContextModif_ValueResult(self, *args) + + __repr__ = _dumps_object + + @methodnotwrapped + def Search(self): + pass + + __swig_destroy__ = _IFSelect.delete_IFSelect_ContextModif + +# Register IFSelect_ContextModif in _IFSelect: +_IFSelect.IFSelect_ContextModif_swigregister(IFSelect_ContextModif) +class IFSelect_ContextWrite(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 + ---------- + model: Interface_InterfaceModel + proto: Interface_Protocol + applieds: IFSelect_AppliedModifiers + filename: str + + Return + ------- + None + + Description + ----------- + Prepares a ContextWrite with these information: - the model which is to be written - the protocol to be used - the filename - an object AppliedModifiers to work. It gives a list of FileModifiers to be ran, and for each one it can give a restricted list of entities (in the model), else all the model is considered. + + Parameters + ---------- + hgraph: Interface_HGraph + proto: Interface_Protocol + applieds: IFSelect_AppliedModifiers + filename: str + + Return + ------- + None + + Description + ----------- + Same as above but with an already computed Graph. + + """ + _IFSelect.IFSelect_ContextWrite_swiginit(self, _IFSelect.new_IFSelect_ContextWrite(*args)) + + def AddCheck(self, *args): + r""" + + Parameters + ---------- + check: Interface_Check + + Return + ------- + None + + Description + ----------- + Adds a Check to the CheckList. If it is empty, nothing is done If it concerns an Entity from the Model (by SetEntity) to which another Check is attached, it is merged to it. Else, it is added or merged as to GlobalCheck. + + """ + return _IFSelect.IFSelect_ContextWrite_AddCheck(self, *args) + + def AddFail(self, *args): + r""" + + Parameters + ---------- + start: Standard_Transient + mess: str + orig: str (optional, default to ) + + Return + ------- + None + + Description + ----------- + Adds a Fail Message for an Entity from the Model If is not an Entity from the model (e.g. the model itself) this message is added to Global Check. + + """ + return _IFSelect.IFSelect_ContextWrite_AddFail(self, *args) + + def AddWarning(self, *args): + r""" + + Parameters + ---------- + start: Standard_Transient + mess: str + orig: str (optional, default to ) + + Return + ------- + None + + Description + ----------- + Adds a Warning Message for an Entity from the Model If is not an Entity from the model (e.g. the model itself) this message is added to Global Check. + + """ + return _IFSelect.IFSelect_ContextWrite_AddWarning(self, *args) + + def AppliedModifiers(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the object AppliedModifiers. + + """ + return _IFSelect.IFSelect_ContextWrite_AppliedModifiers(self, *args) + + def CCheck(self, *args): + r""" + + Parameters + ---------- + num: int (optional, default to 0) + + Return + ------- + opencascade::handle + + Description + ----------- + Returns a Check given an Entity number (in the Model) by default a Global Check. Creates it the first time. It can then be acknowledged on the spot, in condition that the caller works by reference ('Interface_Check& check = ...'). + + Parameters + ---------- + start: Standard_Transient + + Return + ------- + opencascade::handle + + Description + ----------- + Returns a Check attached to an Entity from the Model It can then be acknowledged on the spot, in condition that the caller works by reference ('Interface_Check& check = ...'). + + """ + return _IFSelect.IFSelect_ContextWrite_CCheck(self, *args) + + def CheckList(self, *args): + r""" + Return + ------- + Interface_CheckIterator + + Description + ----------- + Returns the complete CheckList. + + """ + return _IFSelect.IFSelect_ContextWrite_CheckList(self, *args) + + def FileModifier(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the currently active File Modifier. Cast to be done Null if not properly set: must be test IsNull after casting. + + """ + return _IFSelect.IFSelect_ContextWrite_FileModifier(self, *args) + + def FileName(self, *args): + r""" + Return + ------- + str + + Description + ----------- + Returns the File Name. + + """ + return _IFSelect.IFSelect_ContextWrite_FileName(self, *args) + + def Graph(self, *args): + r""" + Return + ------- + Interface_Graph + + Description + ----------- + Returns the Graph, either given when created, else created the first time it is queried. + + """ + return _IFSelect.IFSelect_ContextWrite_Graph(self, *args) + + def IsForAll(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True if the current modifier is to be applied to the whole model. Else, a restricted list of selected entities is defined, it can be exploited by the File Modifier. + + """ + return _IFSelect.IFSelect_ContextWrite_IsForAll(self, *args) + + def IsForNone(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True if no modifier is currently set. + + """ + return _IFSelect.IFSelect_ContextWrite_IsForNone(self, *args) + + def Model(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the Model. + + """ + return _IFSelect.IFSelect_ContextWrite_Model(self, *args) + + def More(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True until the iteration has finished. + + """ + return _IFSelect.IFSelect_ContextWrite_More(self, *args) + + def NbEntities(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Returns the total count of selected entities. + + """ + return _IFSelect.IFSelect_ContextWrite_NbEntities(self, *args) + + def NbModifiers(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Returns the count of recorded File Modifiers. + + """ + return _IFSelect.IFSelect_ContextWrite_NbModifiers(self, *args) + + def Next(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Advances the iteration. + + """ + return _IFSelect.IFSelect_ContextWrite_Next(self, *args) + + def Protocol(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the Protocol;. + + """ + return _IFSelect.IFSelect_ContextWrite_Protocol(self, *args) + + def SetModifier(self, *args): + r""" + + Parameters + ---------- + numod: int + + Return + ------- + bool + + Description + ----------- + Sets active the File Modifier n0 Then, it prepares the list of entities to consider, if any Returns False if out of range. + + """ + return _IFSelect.IFSelect_ContextWrite_SetModifier(self, *args) + + def Start(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Starts an iteration on selected items. It takes into account IsForAll/IsForNone, by really iterating on all selected items. + + """ + return _IFSelect.IFSelect_ContextWrite_Start(self, *args) + + def Value(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the current selected entity in the model. + + """ + return _IFSelect.IFSelect_ContextWrite_Value(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _IFSelect.delete_IFSelect_ContextWrite + +# Register IFSelect_ContextWrite in _IFSelect: +_IFSelect.IFSelect_ContextWrite_swigregister(IFSelect_ContextWrite) +class IFSelect_Dispatch(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 CanHaveRemainder(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True if a Dispatch can have a Remainder, i.e. if its criterium can let entities apart. It is a potential answer, remainder can be empty at run-time even if answer is True. (to attach a RemainderFromDispatch Selection is not allowed if answer is True). Default answer given here is False (can be redefined). + + """ + return _IFSelect.IFSelect_Dispatch_CanHaveRemainder(self, *args) + + def FinalSelection(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the Final Selection of a Dispatch we 'd like: C++: return const &. + + """ + return _IFSelect.IFSelect_Dispatch_FinalSelection(self, *args) + + def GetEntities(self, *args): + r""" + + Parameters + ---------- + G: Interface_Graph + + Return + ------- + Interface_EntityIterator + + Description + ----------- + Gets Unique Root Entities from the Final Selection, given an input Graph This the starting step for an Evaluation (Packets - Remainder). + + """ + return _IFSelect.IFSelect_Dispatch_GetEntities(self, *args) + + def HasRootName(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True if a specific Root Name has been set (else, the Default Root Name has to be used). + + """ + return _IFSelect.IFSelect_Dispatch_HasRootName(self, *args) + + def Label(self, *args): + r""" + Return + ------- + TCollection_AsciiString + + Description + ----------- + Returns a text which defines the way a Dispatch produces packets (which will become files) from its Input. + + """ + return _IFSelect.IFSelect_Dispatch_Label(self, *args) + + def LimitedMax(self, *args): + r""" + + Parameters + ---------- + nbent: int + + Return + ------- + max: int + + Description + ----------- + Returns True if a Dispatch generates a count of Packets always less than or equal to a maximum value: it can be computed from the total count of Entities to be dispatched: . If answer is False, no limited maximum is expected for account If answer is True, expected maximum is given in argument Default answer given here is False (can be redefined). + + """ + return _IFSelect.IFSelect_Dispatch_LimitedMax(self, *args) + + def Packeted(self, *args): + r""" + + Parameters + ---------- + G: Interface_Graph + + Return + ------- + Interface_EntityIterator + + Description + ----------- + Returns the list of all Input Entities (see GetEntities) which are put in a Packet. That is, Entities listed in GetEntities but not in Remainder (see below). Input is given as a Graph. + + """ + return _IFSelect.IFSelect_Dispatch_Packeted(self, *args) + + def Packets(self, *args): + r""" + + Parameters + ---------- + G: Interface_Graph + packs: IFGraph_SubPartsIterator + + Return + ------- + None + + Description + ----------- + Returns the list of produced Packets into argument . Each Packet corresponds to a Part, the Entities listed are the Roots given by the Selection. Input is given as a Graph. Thus, to create a file from a packet, it suffices to take the entities listed in a Part of Packets (that is, a Packet) without worrying about Shared entities This method can raise an Exception if data are not coherent. + + """ + return _IFSelect.IFSelect_Dispatch_Packets(self, *args) + + def Remainder(self, *args): + r""" + + Parameters + ---------- + G: Interface_Graph + + Return + ------- + Interface_EntityIterator + + Description + ----------- + Returns Remainder which is a set of Entities. Can be empty. Default evaluation is empty (has to be redefined if CanHaveRemainder is redefined to return True). + + """ + return _IFSelect.IFSelect_Dispatch_Remainder(self, *args) + + def RootName(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the Root Name for files produced by this dispatch It is empty if it has not been set or if it has been reset. + + """ + return _IFSelect.IFSelect_Dispatch_RootName(self, *args) + + def Selections(self, *args): + r""" + Return + ------- + IFSelect_SelectionIterator + + Description + ----------- + Returns the complete list of source Selections (starting from FinalSelection). + + """ + return _IFSelect.IFSelect_Dispatch_Selections(self, *args) + + def SetFinalSelection(self, *args): + r""" + + Parameters + ---------- + sel: IFSelect_Selection + + Return + ------- + None + + Description + ----------- + Stores (or Changes) the Final Selection for a Dispatch. + + """ + return _IFSelect.IFSelect_Dispatch_SetFinalSelection(self, *args) + + def SetRootName(self, *args): + r""" + + Parameters + ---------- + name: TCollection_HAsciiString + + Return + ------- + None + + Description + ----------- + Sets a Root Name as an HAsciiString To reset it, give a Null Handle (then, a ShareOut will have to define the Default Root Name). + + """ + return _IFSelect.IFSelect_Dispatch_SetRootName(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_IFSelect_Dispatch_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _IFSelect.delete_IFSelect_Dispatch + +# Register IFSelect_Dispatch in _IFSelect: +_IFSelect.IFSelect_Dispatch_swigregister(IFSelect_Dispatch) +class IFSelect_EditForm(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 + ---------- + editor: IFSelect_Editor + readonly: bool + undoable: bool + label: str (optional, default to ) + + Return + ------- + None + + Description + ----------- + Creates a complete EditForm from an Editor A specific Label can be given. + + Parameters + ---------- + editor: IFSelect_Editor + nums: TColStd_SequenceOfInteger + readonly: bool + undoable: bool + label: str (optional, default to ) + + Return + ------- + None + + Description + ----------- + Creates an extracted EditForm from an Editor, limited to the values identified in A specific Label can be given. + + """ + _IFSelect.IFSelect_EditForm_swiginit(self, _IFSelect.new_IFSelect_EditForm(*args)) + + def Apply(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Applies modifications to own data Calls ApplyData then Clears Status according EditKeepStatus. + + """ + return _IFSelect.IFSelect_EditForm_Apply(self, *args) + + def ApplyData(self, *args): + r""" + + Parameters + ---------- + ent: Standard_Transient + model: Interface_InterfaceModel + + Return + ------- + bool + + Description + ----------- + Applies modifications to data Default uses Editor. Can be redefined. + + """ + return _IFSelect.IFSelect_EditForm_ApplyData(self, *args) + + def ClearData(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _IFSelect.IFSelect_EditForm_ClearData(self, *args) + + def ClearEdit(self, *args): + r""" + + Parameters + ---------- + num: int (optional, default to 0) + + Return + ------- + None + + Description + ----------- + Clears modification status: by default all, or one by its numbers (in the Editor). + + """ + return _IFSelect.IFSelect_EditForm_ClearEdit(self, *args) + + def GetEditKeepStatus(self): + r"""GetEditKeepStatus(IFSelect_EditForm self) -> Standard_Boolean""" + return _IFSelect.IFSelect_EditForm_GetEditKeepStatus(self) + + def SetEditKeepStatus(self, value): + r"""SetEditKeepStatus(IFSelect_EditForm self, Standard_Boolean value)""" + return _IFSelect.IFSelect_EditForm_SetEditKeepStatus(self, value) + + def EditedList(self, *args): + r""" + + Parameters + ---------- + num: int + + Return + ------- + opencascade::handle + + Description + ----------- + Returns the Edited Value as a list If IsModified is False, returns OriginalValue Null with IsModified True: means that this value is not defined or has been removed For a single parameter, gives a Null Handle. + + """ + return _IFSelect.IFSelect_EditForm_EditedList(self, *args) + + def EditedValue(self, *args): + r""" + + Parameters + ---------- + num: int + + Return + ------- + opencascade::handle + + Description + ----------- + Returns the Edited (i.e. Modified) Value (string for single) reports to the EditForm If IsModified is False, returns OriginalValue Null with IsModified True: means that this value is not defined or has been removed It is for a single parameter. For a list, gives a Null Handle. + + """ + return _IFSelect.IFSelect_EditForm_EditedValue(self, *args) + + def Editor(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _IFSelect.IFSelect_EditForm_Editor(self, *args) + + def Entity(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _IFSelect.IFSelect_EditForm_Entity(self, *args) + + def IsComplete(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Tells if an EditForm is complete or is an extract from Editor. + + """ + return _IFSelect.IFSelect_EditForm_IsComplete(self, *args) + + def IsLoaded(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Tells if the EditForm is loaded now. + + """ + return _IFSelect.IFSelect_EditForm_IsLoaded(self, *args) + + def IsModified(self, *args): + r""" + + Parameters + ---------- + num: int + + Return + ------- + bool + + Description + ----------- + Tells if a Value (of the EditForm) is modified (directly or through touching by Update). + + """ + return _IFSelect.IFSelect_EditForm_IsModified(self, *args) + + def IsTouched(self, *args): + r""" + + Parameters + ---------- + num: int + + Return + ------- + bool + + Description + ----------- + Tells if a Value (of the EditForm) has been touched, i.e. not modified directly but by the modification of another one (by method Update from the Editor). + + """ + return _IFSelect.IFSelect_EditForm_IsTouched(self, *args) + + def Label(self, *args): + r""" + Return + ------- + str + + Description + ----------- + No available documentation. + + """ + return _IFSelect.IFSelect_EditForm_Label(self, *args) + + def ListEditor(self, *args): + r""" + + Parameters + ---------- + num: int + + Return + ------- + opencascade::handle + + Description + ----------- + Returns a ListEditor to edit the parameter of the EditForm, if it is a List The Editor created it (by ListEditor) then loads it (by ListValue) For a single parameter, returns a Null Handle ... + + """ + return _IFSelect.IFSelect_EditForm_ListEditor(self, *args) + + def LoadData(self, *args): + r""" + + Parameters + ---------- + ent: Standard_Transient + model: Interface_InterfaceModel + + Return + ------- + bool + + Description + ----------- + Loads modifications to data Default uses Editor. Can be redefined Remark that and/or may be null, according to the kind of Editor. Shortcuts are available for these cases, but they finally call LoadData (hence, just ignore non-used args). + Return + ------- + bool + + Description + ----------- + Shortcut when both and are not used (when the Editor works on fully static or global data). + + """ + return _IFSelect.IFSelect_EditForm_LoadData(self, *args) + + def LoadDefault(self, *args): + r""" + Return + ------- + None + + Description + ----------- + For a read-write undoable EditForm, loads original values from defaults stored in the Editor. + + """ + return _IFSelect.IFSelect_EditForm_LoadDefault(self, *args) + + def LoadEntity(self, *args): + r""" + + Parameters + ---------- + ent: Standard_Transient + + Return + ------- + bool + + Description + ----------- + Shortcut for LoadData when is not used. + + """ + return _IFSelect.IFSelect_EditForm_LoadEntity(self, *args) + + def LoadList(self, *args): + r""" + + Parameters + ---------- + num: int + list: TColStd_HSequenceOfHAsciiString + + Return + ------- + None + + Description + ----------- + Loads an original value as a list. Called by the Editor only. + + """ + return _IFSelect.IFSelect_EditForm_LoadList(self, *args) + + def LoadModel(self, *args): + r""" + + Parameters + ---------- + model: Interface_InterfaceModel + + Return + ------- + bool + + Description + ----------- + Shortcut for LoadData when only the model is concerned. + + """ + return _IFSelect.IFSelect_EditForm_LoadModel(self, *args) + + def LoadValue(self, *args): + r""" + + Parameters + ---------- + num: int + val: TCollection_HAsciiString + + Return + ------- + None + + Description + ----------- + Loads an original value (single). Called by the Editor only. + + """ + return _IFSelect.IFSelect_EditForm_LoadValue(self, *args) + + def Model(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _IFSelect.IFSelect_EditForm_Model(self, *args) + + def Modify(self, *args): + r""" + + Parameters + ---------- + num: int + newval: TCollection_HAsciiString + enforce: bool (optional, default to Standard_False) + + Return + ------- + bool + + Description + ----------- + Gives a new value for the item of the EditForm, if it is a single parameter (for a list, just returns False) Null means to Remove it True to overpass Protected or Computed Access Mode Calls the method Update from the Editor, which can touch other parameters (see NbTouched) Returns True if well recorded, False if this value is not allowed Warning: Does not apply immediately: will be applied by the method Apply. + + """ + return _IFSelect.IFSelect_EditForm_Modify(self, *args) + + def ModifyList(self, *args): + r""" + + Parameters + ---------- + num: int + edited: IFSelect_ListEditor + enforce: bool (optional, default to Standard_False) + + Return + ------- + bool + + Description + ----------- + Changes the value of an item of the EditForm, if it is a List (else, just returns False) The ListEditor contains the edited values of the list If no edition was recorded, just returns False Calls the method Update from the Editor, which can touch other parameters (see NbTouched) Returns True if well recorded, False if this value is not allowed Warning: Does not apply immediately: will be applied by the method Apply. + + """ + return _IFSelect.IFSelect_EditForm_ModifyList(self, *args) + + def ModifyListValue(self, *args): + r""" + + Parameters + ---------- + num: int + list: TColStd_HSequenceOfHAsciiString + enforce: bool (optional, default to Standard_False) + + Return + ------- + bool + + Description + ----------- + As ModifyList but the new value is given as such Creates a ListEditor, Loads it, then calls ModifyList. + + """ + return _IFSelect.IFSelect_EditForm_ModifyListValue(self, *args) + + def NameNumber(self, *args): + r""" + + Parameters + ---------- + name: str + + Return + ------- + int + + Description + ----------- + Returns the Value Number in the Editor for a given Name i.e. the true ValueNumber which can be used in various methods of EditForm If it is not complete, for a recorded (in the Editor) but non-loaded name, returns negative value (- number). + + """ + return _IFSelect.IFSelect_EditForm_NameNumber(self, *args) + + def NameRank(self, *args): + r""" + + Parameters + ---------- + name: str + + Return + ------- + int + + Description + ----------- + Returns the Rank of Value in the EditForm for a given Name i.e. if it is not complete, for a recorded (in the Editor) but non-loaded name, returns 0. + + """ + return _IFSelect.IFSelect_EditForm_NameRank(self, *args) + + def NbValues(self, *args): + r""" + + Parameters + ---------- + editable: bool + + Return + ------- + int + + Description + ----------- + Returns the count of values True: count of editable values, i.e. For a complete EditForm, it is given by the Editor Else, it is the length of the extraction map False: all the values from the Editor. + + """ + return _IFSelect.IFSelect_EditForm_NbValues(self, *args) + + def NumberFromRank(self, *args): + r""" + + Parameters + ---------- + rank: int + + Return + ------- + int + + Description + ----------- + Returns the Value Number in the Editor from a given Rank in the EditForm For a complete EditForm, both are equal Else, it is given by the extraction map Returns 0 if exceeds the count of editable values,. + + """ + return _IFSelect.IFSelect_EditForm_NumberFromRank(self, *args) + + def OriginalList(self, *args): + r""" + + Parameters + ---------- + num: int + + Return + ------- + opencascade::handle + + Description + ----------- + Returns an original value, as a list is for the EditForm, not the Editor For a single parameter, gives a Null Handle. + + """ + return _IFSelect.IFSelect_EditForm_OriginalList(self, *args) + + def OriginalValue(self, *args): + r""" + + Parameters + ---------- + num: int + + Return + ------- + opencascade::handle + + Description + ----------- + From an edited value, returns its ... value (original one) Null means that this value is not defined is for the EditForm, not the Editor It is for a single parameter. For a list, gives a Null Handle. + + """ + return _IFSelect.IFSelect_EditForm_OriginalValue(self, *args) + + def PrintDefs(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + S: Standard_OStream + + Description + ----------- + Prints Definitions, relative to the Editor. + + """ + return _IFSelect.IFSelect_EditForm_PrintDefs(self, *args) + + def PrintValues(self, *args): + r""" + + Parameters + ---------- + what: int + names: bool + alsolist: bool (optional, default to Standard_False) + + Return + ------- + S: Standard_OStream + + Description + ----------- + Prints Values, according to what and alsolist True: prints Long Names; False: prints Short Names < 0: prints Original Values (+ flag Modified) > 0: prints Final Values (+flag Modified) = 0: prints Modified Values (Original + Edited) False (D): lists are printed only as their count True: lists are printed for all their items. + + """ + return _IFSelect.IFSelect_EditForm_PrintValues(self, *args) + + def RankFromNumber(self, *args): + r""" + + Parameters + ---------- + number: int + + Return + ------- + int + + Description + ----------- + Returns the Rank in the EditForm from a given Number of Value for the Editor For a complete EditForm, both are equal Else, it is given by the extraction map Returns 0 if is not forecast to be edited, or is out of range. + + """ + return _IFSelect.IFSelect_EditForm_RankFromNumber(self, *args) + + def Recognize(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Tells if this EditForm can work with its Editor and its actual Data (Entity and Model) Default uses Editor. Can be redefined. + + """ + return _IFSelect.IFSelect_EditForm_Recognize(self, *args) + + def SetData(self, *args): + r""" + + Parameters + ---------- + ent: Standard_Transient + model: Interface_InterfaceModel + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _IFSelect.IFSelect_EditForm_SetData(self, *args) + + def SetEntity(self, *args): + r""" + + Parameters + ---------- + ent: Standard_Transient + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _IFSelect.IFSelect_EditForm_SetEntity(self, *args) + + def SetModel(self, *args): + r""" + + Parameters + ---------- + model: Interface_InterfaceModel + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _IFSelect.IFSelect_EditForm_SetModel(self, *args) + + def Touch(self, *args): + r""" + + Parameters + ---------- + num: int + newval: TCollection_HAsciiString + + Return + ------- + bool + + Description + ----------- + Gives a new value computed by the Editor, if another parameter commands the value of It is generally the case for a Computed Parameter for instance Increments the counter of touched parameters Warning: it gives no protection for ReadOnly etc... while it is the internal way of touching parameters Does not work (returns False) if is for a list. + + """ + return _IFSelect.IFSelect_EditForm_Touch(self, *args) + + def TouchList(self, *args): + r""" + + Parameters + ---------- + num: int + newlist: TColStd_HSequenceOfHAsciiString + + Return + ------- + bool + + Description + ----------- + Acts as Touch but for a list Does not work (returns False) if is for a single param. + + """ + return _IFSelect.IFSelect_EditForm_TouchList(self, *args) + + def Undo(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + For an undoable EditForm, Applies ... origibal values ! and clears modified ones Can be run only once. + + """ + return _IFSelect.IFSelect_EditForm_Undo(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_IFSelect_EditForm_DownCast(t) + + + __repr__ = _dumps_object + + @methodnotwrapped + def NbTouched(self): + pass + + __swig_destroy__ = _IFSelect.delete_IFSelect_EditForm + +# Register IFSelect_EditForm in _IFSelect: +_IFSelect.IFSelect_EditForm_swigregister(IFSelect_EditForm) +class IFSelect_Editor(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 Apply(self, *args): + r""" + + Parameters + ---------- + form: IFSelect_EditForm + ent: Standard_Transient + model: Interface_InterfaceModel + + Return + ------- + bool + + Description + ----------- + Applies modified values of the EditForm with some data Remark: may be Null, this means all is concerned Also may be Null, if no context applies for And both and may be Null, for a full static editor. + + """ + return _IFSelect.IFSelect_Editor_Apply(self, *args) + + def EditMode(self, *args): + r""" + + Parameters + ---------- + num: int + + Return + ------- + IFSelect_EditValue + + Description + ----------- + Returns the edit mode of a Value. + + """ + return _IFSelect.IFSelect_Editor_EditMode(self, *args) + + def Form(self, *args): + r""" + + Parameters + ---------- + readonly: bool + undoable: bool (optional, default to Standard_True) + + Return + ------- + opencascade::handle + + Description + ----------- + Builds and Returns an EditForm, empty (no data yet) Can be redefined to return a specific type of EditForm. + + """ + return _IFSelect.IFSelect_Editor_Form(self, *args) + + def IsList(self, *args): + r""" + + Parameters + ---------- + num: int + + Return + ------- + bool + + Description + ----------- + Tells if a parameter is a list. + + """ + return _IFSelect.IFSelect_Editor_IsList(self, *args) + + def Label(self, *args): + r""" + Return + ------- + TCollection_AsciiString + + Description + ----------- + Returns the specific label. + + """ + return _IFSelect.IFSelect_Editor_Label(self, *args) + + def ListEditor(self, *args): + r""" + + Parameters + ---------- + num: int + + Return + ------- + opencascade::handle + + Description + ----------- + Returns a ListEditor for a parameter which is a List Default returns a basic ListEditor for a List, a Null Handle if is not for a List. Can be redefined. + + """ + return _IFSelect.IFSelect_Editor_ListEditor(self, *args) + + def ListValue(self, *args): + r""" + + Parameters + ---------- + form: IFSelect_EditForm + num: int + + Return + ------- + opencascade::handle + + Description + ----------- + Returns the value of an EditForm as a List, for a given item If not a list, a Null Handle should be returned Default returns a Null Handle, because many Editors have no list to edit. To be redefined as required. + + """ + return _IFSelect.IFSelect_Editor_ListValue(self, *args) + + def Load(self, *args): + r""" + + Parameters + ---------- + form: IFSelect_EditForm + ent: Standard_Transient + model: Interface_InterfaceModel + + Return + ------- + bool + + Description + ----------- + Loads original values from some data, to an EditForm Remark: may be Null, this means all is concerned Also may be Null, if no context applies for And both and may be Null, for a full static editor. + + """ + return _IFSelect.IFSelect_Editor_Load(self, *args) + + def MaxList(self, *args): + r""" + + Parameters + ---------- + num: int + + Return + ------- + int + + Description + ----------- + Returns max length allowed for a list = 0 means: list with no limit < 0 means: not a list. + + """ + return _IFSelect.IFSelect_Editor_MaxList(self, *args) + + def MaxNameLength(self, *args): + r""" + + Parameters + ---------- + what: int + + Return + ------- + int + + Description + ----------- + Returns the MaxLength of, according to what: = -1: length of short names = 0: length of complete names = 1: length of values labels. + + """ + return _IFSelect.IFSelect_Editor_MaxNameLength(self, *args) + + def Name(self, *args): + r""" + + Parameters + ---------- + num: int + isshort: bool (optional, default to Standard_False) + + Return + ------- + str + + Description + ----------- + Returns the name of a Value (complete or short) from its ident Short Name can be empty. + + """ + return _IFSelect.IFSelect_Editor_Name(self, *args) + + def NameNumber(self, *args): + r""" + + Parameters + ---------- + name: str + + Return + ------- + int + + Description + ----------- + Returns the number (ident) of a Value, from its name, short or complete. If not found, returns 0. + + """ + return _IFSelect.IFSelect_Editor_NameNumber(self, *args) + + def NbValues(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Returns the count of Typed Values. + + """ + return _IFSelect.IFSelect_Editor_NbValues(self, *args) + + def PrintDefs(self, *args): + r""" + + Parameters + ---------- + labels: bool (optional, default to Standard_False) + + Return + ------- + S: Standard_OStream + + Description + ----------- + No available documentation. + + """ + return _IFSelect.IFSelect_Editor_PrintDefs(self, *args) + + def PrintNames(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + S: Standard_OStream + + Description + ----------- + No available documentation. + + """ + return _IFSelect.IFSelect_Editor_PrintNames(self, *args) + + def Recognize(self, *args): + r""" + + Parameters + ---------- + form: IFSelect_EditForm + + Return + ------- + bool + + Description + ----------- + Tells if this Editor can work on this EditForm and its content (model, entity ?). + + """ + return _IFSelect.IFSelect_Editor_Recognize(self, *args) + + def SetList(self, *args): + r""" + + Parameters + ---------- + num: int + max: int (optional, default to 0) + + Return + ------- + None + + Description + ----------- + Sets a parameter to be a List max < 0: not for a list (set when starting) max = 0: list with no length limit (default for SetList) max > 0: list limited to items. + + """ + return _IFSelect.IFSelect_Editor_SetList(self, *args) + + def SetValue(self, *args): + r""" + + Parameters + ---------- + num: int + typval: Interface_TypedValue + shortname: str (optional, default to ) + accessmode: IFSelect_EditValue (optional, default to IFSelect_Editable) + + Return + ------- + None + + Description + ----------- + Sets a Typed Value for a given ident and short name, with an Edit Mode. + + """ + return _IFSelect.IFSelect_Editor_SetValue(self, *args) + + def StringValue(self, *args): + r""" + + Parameters + ---------- + form: IFSelect_EditForm + num: int + + Return + ------- + opencascade::handle + + Description + ----------- + Returns the value of an EditForm, for a given item (if not a list. for a list, a Null String may be returned). + + """ + return _IFSelect.IFSelect_Editor_StringValue(self, *args) + + def TypedValue(self, *args): + r""" + + Parameters + ---------- + num: int + + Return + ------- + opencascade::handle + + Description + ----------- + Returns a Typed Value from its ident. + + """ + return _IFSelect.IFSelect_Editor_TypedValue(self, *args) + + def Update(self, *args): + r""" + + Parameters + ---------- + form: IFSelect_EditForm + num: int + newval: TCollection_HAsciiString + enforce: bool + + Return + ------- + bool + + Description + ----------- + Updates the EditForm when a parameter is modified I.E. default does nothing, can be redefined, as follows: Returns True when done (even if does nothing), False in case of refuse (for instance, if the new value is not suitable) is the rank of the parameter for the EDITOR itself True means that protected parameters can be touched //! If a parameter commands the value of other ones, when it is modified, it is necessary to touch them by Touch from EditForm. + + """ + return _IFSelect.IFSelect_Editor_Update(self, *args) + + def UpdateList(self, *args): + r""" + + Parameters + ---------- + form: IFSelect_EditForm + num: int + newlist: TColStd_HSequenceOfHAsciiString + enforce: bool + + Return + ------- + bool + + Description + ----------- + Acts as Update, but when the value is a list. + + """ + return _IFSelect.IFSelect_Editor_UpdateList(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_IFSelect_Editor_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _IFSelect.delete_IFSelect_Editor + +# Register IFSelect_Editor in _IFSelect: +_IFSelect.IFSelect_Editor_swigregister(IFSelect_Editor) +class IFSelect_Functions(object): + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") + __repr__ = _swig_repr + + @staticmethod + def GiveDispatch(*args): + r""" + + Parameters + ---------- + WS: IFSelect_WorkSession + name: str + mode: bool (optional, default to Standard_True) + + Return + ------- + opencascade::handle + + Description + ----------- + Evaluates and returns a Dispatch, from data of a WorkSession if is False, searches for exact name of Dispatch in WS Else (D), allows a parameter between brackets: ex.: dispatch_name(parameter) The parameter can be: an integer for DispPerCount or DispPerFiles or the name of a Signature for DispPerSignature Returns Null Handle if not found not well evaluated. + + """ + return _IFSelect.IFSelect_Functions_GiveDispatch(*args) + + @staticmethod + def GiveEntity(*args): + r""" + + Parameters + ---------- + WS: IFSelect_WorkSession + name: str (optional, default to ) + + Return + ------- + opencascade::handle + + Description + ----------- + Takes the name of an entity, either as argument, or (if is empty) on keyboard, and returns the entity name can be a label or a number (in alphanumeric), it is searched by NumberFromLabel from WorkSession. If doesn't match en entity, a Null Handle is returned. + + """ + return _IFSelect.IFSelect_Functions_GiveEntity(*args) + + @staticmethod + def GiveEntityNumber(*args): + r""" + + Parameters + ---------- + WS: IFSelect_WorkSession + name: str (optional, default to ) + + Return + ------- + int + + Description + ----------- + Same as GetEntity, but returns the number in the model of the entity. Returns 0 for null handle. + + """ + return _IFSelect.IFSelect_Functions_GiveEntityNumber(*args) + + @staticmethod + def GiveList(*args): + r""" + + Parameters + ---------- + WS: IFSelect_WorkSession + first: str (optional, default to ) + second: str (optional, default to ) + + Return + ------- + opencascade::handle + + Description + ----------- + Computes a List of entities from a WorkSession and two idents, first and second, as follows: if is a Number or Label of an entity: this entity if is the name of a Selection in , and not defined, the standard result of this Selection if is for a Selection and is defined, the standard result of this selection from the list computed with (an entity or a selection) If is erroneous, it is ignored. + + """ + return _IFSelect.IFSelect_Functions_GiveList(*args) + + @staticmethod + def Init(*args): + r""" + Return + ------- + None + + Description + ----------- + Defines and loads all basic functions (as ActFunc). + + """ + return _IFSelect.IFSelect_Functions_Init(*args) + + __repr__ = _dumps_object + + + def __init__(self): + _IFSelect.IFSelect_Functions_swiginit(self, _IFSelect.new_IFSelect_Functions()) + __swig_destroy__ = _IFSelect.delete_IFSelect_Functions + +# Register IFSelect_Functions in _IFSelect: +_IFSelect.IFSelect_Functions_swigregister(IFSelect_Functions) +class IFSelect_GeneralModifier(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 Applies(self, *args): + r""" + + Parameters + ---------- + disp: IFSelect_Dispatch + + Return + ------- + bool + + Description + ----------- + Returns True if a Model obtained from the Dispatch is to be treated (apart from the Selection criterium) If Dispatch(me) is Null, returns True. Else, checks . + + """ + return _IFSelect.IFSelect_GeneralModifier_Applies(self, *args) + + def Dispatch(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the Dispatch to be matched, Null if not set. + + """ + return _IFSelect.IFSelect_GeneralModifier_Dispatch(self, *args) + + def HasSelection(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True if a Selection is set as an additional criterium. + + """ + return _IFSelect.IFSelect_GeneralModifier_HasSelection(self, *args) + + def Label(self, *args): + r""" + Return + ------- + TCollection_AsciiString + + Description + ----------- + Returns a short text which defines the operation performed. + + """ + return _IFSelect.IFSelect_GeneralModifier_Label(self, *args) + + def MayChangeGraph(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True if this modifier may change the graph of dependences (acknowledged at creation time). + + """ + return _IFSelect.IFSelect_GeneralModifier_MayChangeGraph(self, *args) + + def ResetSelection(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Resets the Selection: this criterium is not longer active. + + """ + return _IFSelect.IFSelect_GeneralModifier_ResetSelection(self, *args) + + def Selection(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the Selection, or a Null Handle if not set. + + """ + return _IFSelect.IFSelect_GeneralModifier_Selection(self, *args) + + def SetDispatch(self, *args): + r""" + + Parameters + ---------- + disp: IFSelect_Dispatch + + Return + ------- + None + + Description + ----------- + Attaches to a Dispatch. If is Null, Resets it (to apply the Modifier on every Dispatch). + + """ + return _IFSelect.IFSelect_GeneralModifier_SetDispatch(self, *args) + + def SetSelection(self, *args): + r""" + + Parameters + ---------- + sel: IFSelect_Selection + + Return + ------- + None + + Description + ----------- + Sets a Selection: a Model is treated if it contains one or more Entities designated by the Selection. + + """ + return _IFSelect.IFSelect_GeneralModifier_SetSelection(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_IFSelect_GeneralModifier_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _IFSelect.delete_IFSelect_GeneralModifier + +# Register IFSelect_GeneralModifier in _IFSelect: +_IFSelect.IFSelect_GeneralModifier_swigregister(IFSelect_GeneralModifier) +class IFSelect_IntParam(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 IntParam. Initial value is set to zer. + + """ + _IFSelect.IFSelect_IntParam_swiginit(self, _IFSelect.new_IFSelect_IntParam(*args)) + + def SetStaticName(self, *args): + r""" + + Parameters + ---------- + statname: str + + Return + ------- + None + + Description + ----------- + Commands this IntParam to be bound to a Static Hence, Value will return the value if this Static if it is set Else, Value works on the locally stored value SetValue also will set the value of the Static This works only for a present static of type integer or enum Else, it is ignored //! If is empty, disconnects the IntParam from Static. + + """ + return _IFSelect.IFSelect_IntParam_SetStaticName(self, *args) + + def SetValue(self, *args): + r""" + + Parameters + ---------- + val: int + + Return + ------- + None + + Description + ----------- + Sets a new Integer Value for the IntParam. If a StaticName is defined and the Static is set, also sets the value of the static. + + """ + return _IFSelect.IFSelect_IntParam_SetValue(self, *args) + + def Value(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Reads Integer Value of the IntParam. If a StaticName is defined and the Static is set, looks in priority the value of the static. + + """ + return _IFSelect.IFSelect_IntParam_Value(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_IFSelect_IntParam_DownCast(t) + + + __repr__ = _dumps_object + + @methodnotwrapped + def StaticName(self): + pass + + __swig_destroy__ = _IFSelect.delete_IFSelect_IntParam + +# Register IFSelect_IntParam in _IFSelect: +_IFSelect.IFSelect_IntParam_swigregister(IFSelect_IntParam) +class IFSelect_ListEditor(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 a ListEditor with absolutely no constraint. + + Parameters + ---------- + def: Interface_TypedValue + max: int (optional, default to 0) + + Return + ------- + None + + Description + ----------- + Creates a ListEditor, for which items of the list to edit are defined by , and describes max length: 0 (D) means no limit value > 0 means: no more the items are allowed. + + """ + _IFSelect.IFSelect_ListEditor_swiginit(self, _IFSelect.new_IFSelect_ListEditor(*args)) + + def AddValue(self, *args): + r""" + + Parameters + ---------- + val: TCollection_HAsciiString + atnum: int (optional, default to 0) + + Return + ------- + bool + + Description + ----------- + Adds a new item. By default appends (at the end of the list) Can insert before a given rank , if positive Returns True when done. False if MaxLength may be overpassed or if does not satisfy the definition. + + """ + return _IFSelect.IFSelect_ListEditor_AddValue(self, *args) + + def ClearEdit(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Clears all editions already recorded. + + """ + return _IFSelect.IFSelect_ListEditor_ClearEdit(self, *args) + + def EditedValues(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the result of the edition. + + """ + return _IFSelect.IFSelect_ListEditor_EditedValues(self, *args) + + def IsAdded(self, *args): + r""" + + Parameters + ---------- + num: int + + Return + ------- + bool + + Description + ----------- + Tells if a value (in edited list) has been added (new one). + + """ + return _IFSelect.IFSelect_ListEditor_IsAdded(self, *args) + + def IsChanged(self, *args): + r""" + + Parameters + ---------- + num: int + + Return + ------- + bool + + Description + ----------- + Tells if a value (in edited list) has been changed, i.e. either modified-value, or added. + + """ + return _IFSelect.IFSelect_ListEditor_IsChanged(self, *args) + + def IsModified(self, *args): + r""" + + Parameters + ---------- + num: int + + Return + ------- + bool + + Description + ----------- + Tells if a value (in edited list) has been modified-value (not added). + + """ + return _IFSelect.IFSelect_ListEditor_IsModified(self, *args) + + def IsTouched(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Tells if at least one edition (SetValue-AddValue-Remove) has been recorded. + + """ + return _IFSelect.IFSelect_ListEditor_IsTouched(self, *args) + + def LoadEdited(self, *args): + r""" + + Parameters + ---------- + list: TColStd_HSequenceOfHAsciiString + + Return + ------- + bool + + Description + ----------- + Loads a new list to replace the older one, in once ! By default (can be redefined) checks the length of the list and the value of each item according to the def Items are all recorded as Modified //! If no def has been given at creation time, no check is done Returns True when done, False if checks have failed ... a specialisation may also lock it by returning always False ... + + """ + return _IFSelect.IFSelect_ListEditor_LoadEdited(self, *args) + + def LoadModel(self, *args): + r""" + + Parameters + ---------- + model: Interface_InterfaceModel + + Return + ------- + None + + Description + ----------- + Loads a Model. It is used to check items of type Entity(Ident). + + """ + return _IFSelect.IFSelect_ListEditor_LoadModel(self, *args) + + def LoadValues(self, *args): + r""" + + Parameters + ---------- + vals: TColStd_HSequenceOfHAsciiString + + Return + ------- + None + + Description + ----------- + Loads the original values for the list. Remark: If its length is more then MaxLength, editions remain allowed, except Add. + + """ + return _IFSelect.IFSelect_ListEditor_LoadValues(self, *args) + + def NbValues(self, *args): + r""" + + Parameters + ---------- + edited: bool (optional, default to Standard_True) + + Return + ------- + int + + Description + ----------- + Returns count of values, edited (D) or original. + + """ + return _IFSelect.IFSelect_ListEditor_NbValues(self, *args) + + def OriginalValues(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the value from which the edition started. + + """ + return _IFSelect.IFSelect_ListEditor_OriginalValues(self, *args) + + def Remove(self, *args): + r""" + + Parameters + ---------- + num: int (optional, default to 0) + howmany: int (optional, default to 1) + + Return + ------- + bool + + Description + ----------- + Removes items from the list By default removes one item. Else, count given by Remove from rank included. By default, from the end Returns True when done, False (and does not work) if case of out of range of if is greater than current length. + + """ + return _IFSelect.IFSelect_ListEditor_Remove(self, *args) + + def SetTouched(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Declares this ListEditor to have been touched (whatever action). + + """ + return _IFSelect.IFSelect_ListEditor_SetTouched(self, *args) + + def SetValue(self, *args): + r""" + + Parameters + ---------- + num: int + val: TCollection_HAsciiString + + Return + ------- + bool + + Description + ----------- + Sets a new value for the item (in edited list) may be a Null Handle, then the value will be cleared but not removed Returns True when done. False if is out of range or if does not satisfy the definition. + + """ + return _IFSelect.IFSelect_ListEditor_SetValue(self, *args) + + def Value(self, *args): + r""" + + Parameters + ---------- + num: int + edited: bool (optional, default to Standard_True) + + Return + ------- + opencascade::handle + + Description + ----------- + Returns a value given its rank. Edited (D) or Original A Null String means the value is cleared but not removed. + + """ + return _IFSelect.IFSelect_ListEditor_Value(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_IFSelect_ListEditor_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _IFSelect.delete_IFSelect_ListEditor + +# Register IFSelect_ListEditor in _IFSelect: +_IFSelect.IFSelect_ListEditor_swigregister(IFSelect_ListEditor) +class IFSelect_ModelCopier(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 ModelCopier. + + """ + _IFSelect.IFSelect_ModelCopier_swiginit(self, _IFSelect.new_IFSelect_ModelCopier(*args)) + + def AddFile(self, *args): + r""" + + Parameters + ---------- + filename: str + content: Interface_InterfaceModel + + Return + ------- + bool + + Description + ----------- + Records a new File to be sent, as a couple (Name as AsciiString, Content as InterfaceModel) Returns True if Done, False if is already attached to another File. + + """ + return _IFSelect.IFSelect_ModelCopier_AddFile(self, *args) + + def AddSentFile(self, *args): + r""" + + Parameters + ---------- + filename: str + + Return + ------- + None + + Description + ----------- + Adds the name of a just sent file, if BeginSentFiles has commanded recording; else does nothing It is called by methods SendCopied Sending. + + """ + return _IFSelect.IFSelect_ModelCopier_AddSentFile(self, *args) + + def AppliedModifiers(self, *args): + r""" + + Parameters + ---------- + num: int + + Return + ------- + opencascade::handle + + Description + ----------- + Returns the list of File Modifiers to be applied on a file when it will be sent, as computed by CopiedModel: If it is a null handle, no File Modifier has to be applied. + + """ + return _IFSelect.IFSelect_ModelCopier_AppliedModifiers(self, *args) + + def BeginSentFiles(self, *args): + r""" + + Parameters + ---------- + sho: IFSelect_ShareOut + record: bool + + Return + ------- + None + + Description + ----------- + Begins a sequence of recording the really sent files : the default file numbering is cleared If is False, clears the list and stops recording If is True, clears the list and commands recording Creation time corresponds to 'stop recording'. + + """ + return _IFSelect.IFSelect_ModelCopier_BeginSentFiles(self, *args) + + def ClearAppliedModifiers(self, *args): + r""" + + Parameters + ---------- + num: int + + Return + ------- + bool + + Description + ----------- + Clears the list of File Modifiers to be applied on a file. + + """ + return _IFSelect.IFSelect_ModelCopier_ClearAppliedModifiers(self, *args) + + def ClearFile(self, *args): + r""" + + Parameters + ---------- + num: int + + Return + ------- + bool + + Description + ----------- + Clears the Name attached to a File which was formerly defined by a call to AddFile. This Clearing can be undone by a call to NameFile (with same ) Returns True if Done, False else: if is out of range. + + """ + return _IFSelect.IFSelect_ModelCopier_ClearFile(self, *args) + + def ClearResult(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Clears the list of produced Models. + + """ + return _IFSelect.IFSelect_ModelCopier_ClearResult(self, *args) + + def CopiedRemaining(self, *args): + r""" + + Parameters + ---------- + G: Interface_Graph + WL: IFSelect_WorkLibrary + TC: Interface_CopyTool + newmod: Interface_InterfaceModel + + Return + ------- + None + + Description + ----------- + Produces a Model copied from the Remaining List as is a Null Handle if this list is empty performs the copy by using is assumed to have been defined with the starting model same as defined by . + + """ + return _IFSelect.IFSelect_ModelCopier_CopiedRemaining(self, *args) + + def Copy(self, *args): + r""" + + Parameters + ---------- + eval: IFSelect_ShareOutResult + WL: IFSelect_WorkLibrary + protocol: Interface_Protocol + + Return + ------- + Interface_CheckIterator + + Description + ----------- + Performs the Copy Operations, which include the Modifications defined by the list of Modifiers. Memorizes the result, as a list of InterfaceModels with the corresponding FileNames They can then be sent, by the method Send, or queried Copy calls internal method Copying. Returns the produced CheckList. + + """ + return _IFSelect.IFSelect_ModelCopier_Copy(self, *args) + + def FileModel(self, *args): + r""" + + Parameters + ---------- + num: int + + Return + ------- + opencascade::handle + + Description + ----------- + Returns the content of a file before sending, under the form of an InterfaceModel, given its rank. + + """ + return _IFSelect.IFSelect_ModelCopier_FileModel(self, *args) + + def FileName(self, *args): + r""" + + Parameters + ---------- + num: int + + Return + ------- + TCollection_AsciiString + + Description + ----------- + Returns the File Name for a file given its rank It is empty after a call to ClearFile on same . + + """ + return _IFSelect.IFSelect_ModelCopier_FileName(self, *args) + + def NameFile(self, *args): + r""" + + Parameters + ---------- + num: int + filename: str + + Return + ------- + bool + + Description + ----------- + Changes the Name attached to a File which was formerly defined by a call to AddFile Returns True if Done, False else: if out of range or if the new is already attached to another File Remark: Giving an empty File Name is equivalent to ClearFile. + + """ + return _IFSelect.IFSelect_ModelCopier_NameFile(self, *args) + + def NbFiles(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Returns the count of Files produced, i.e. the count of Models memorized (produced by the mmethod Copy) with their file names. + + """ + return _IFSelect.IFSelect_ModelCopier_NbFiles(self, *args) + + def Send(self, *args): + r""" + + Parameters + ---------- + eval: IFSelect_ShareOutResult + WL: IFSelect_WorkLibrary + protocol: Interface_Protocol + + Return + ------- + Interface_CheckIterator + + Description + ----------- + Performs the Copy Operations (which include the Modifications) and Sends the result on files, without memorizing it. (the memorized result is ignored: neither queried not filled). + + """ + return _IFSelect.IFSelect_ModelCopier_Send(self, *args) + + def SendAll(self, *args): + r""" + + Parameters + ---------- + filename: str + G: Interface_Graph + WL: IFSelect_WorkLibrary + protocol: Interface_Protocol + + Return + ------- + Interface_CheckIterator + + Description + ----------- + Sends a model (defined in ) into one file, without managing remaining data, already sent files, etc. Applies the Model and File Modifiers. Returns True if well done, False else. + + """ + return _IFSelect.IFSelect_ModelCopier_SendAll(self, *args) + + def SendCopied(self, *args): + r""" + + Parameters + ---------- + WL: IFSelect_WorkLibrary + protocol: Interface_Protocol + + Return + ------- + Interface_CheckIterator + + Description + ----------- + Sends the formerly defined results (see method Copy) to files, then clears it Remark: A Null File Name cause file to be not produced. + + """ + return _IFSelect.IFSelect_ModelCopier_SendCopied(self, *args) + + def SendSelected(self, *args): + r""" + + Parameters + ---------- + filename: str + G: Interface_Graph + WL: IFSelect_WorkLibrary + protocol: Interface_Protocol + iter: Interface_EntityIterator + + Return + ------- + Interface_CheckIterator + + Description + ----------- + Sends a part of a model into one file. Model is gotten from , the part is defined in . Remaining data are managed and can be later be worked on. Returns True if well done, False else. + + """ + return _IFSelect.IFSelect_ModelCopier_SendSelected(self, *args) + + def SentFiles(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the list of recorded names of sent files. Can be empty (if no file has been sent). Returns a Null Handle if BeginSentFiles has stopped recording. + + """ + return _IFSelect.IFSelect_ModelCopier_SentFiles(self, *args) + + def SetAppliedModifiers(self, *args): + r""" + + Parameters + ---------- + num: int + applied: IFSelect_AppliedModifiers + + Return + ------- + bool + + Description + ----------- + Sets a list of File Modifiers to be applied on a file. + + """ + return _IFSelect.IFSelect_ModelCopier_SetAppliedModifiers(self, *args) + + def SetRemaining(self, *args): + r""" + + Parameters + ---------- + CG: Interface_Graph + + Return + ------- + bool + + Description + ----------- + Updates Graph status for remaining data, for each entity: - Entities just Sent to file or Copied (by CopiedRemaining) have their status set to 1 - the other keep their former status (1 for Send/Copied, 0 for Remaining) These status are computed by Copying/Sending/CopiedRemaining Then, SetRemaining updates graph status, and mustr be called just after one of these method has been called Returns True if done, False if remaining info if not in phase which the Graph (not same counts of items). + + """ + return _IFSelect.IFSelect_ModelCopier_SetRemaining(self, *args) + + def SetShareOut(self, *args): + r""" + + Parameters + ---------- + sho: IFSelect_ShareOut + + Return + ------- + None + + Description + ----------- + Sets the ShareOut, which is used to define Modifiers to apply. + + """ + return _IFSelect.IFSelect_ModelCopier_SetShareOut(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_IFSelect_ModelCopier_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _IFSelect.delete_IFSelect_ModelCopier + +# Register IFSelect_ModelCopier in _IFSelect: +_IFSelect.IFSelect_ModelCopier_swigregister(IFSelect_ModelCopier) +class IFSelect_PacketList(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 + ---------- + model: Interface_InterfaceModel + + Return + ------- + None + + Description + ----------- + Creates a PackList, empty, ready to receive entities from a given Model. + + """ + _IFSelect.IFSelect_PacketList_swiginit(self, _IFSelect.new_IFSelect_PacketList(*args)) + + def Add(self, *args): + r""" + + Parameters + ---------- + ent: Standard_Transient + + Return + ------- + None + + Description + ----------- + Adds an entity from the Model into the current packet for Add. + + """ + return _IFSelect.IFSelect_PacketList_Add(self, *args) + + def AddList(self, *args): + r""" + + Parameters + ---------- + list: TColStd_HSequenceOfTransient + + Return + ------- + None + + Description + ----------- + Adds an list of entities into the current packet for Add. + + """ + return _IFSelect.IFSelect_PacketList_AddList(self, *args) + + def AddPacket(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Declares a new Packet, ready to be filled The entities to be added will be added to this Packet. + + """ + return _IFSelect.IFSelect_PacketList_AddPacket(self, *args) + + def Duplicated(self, *args): + r""" + + Parameters + ---------- + count: int + andmore: bool + + Return + ------- + Interface_EntityIterator + + Description + ----------- + Returns a list of entities duplicated: times, if is False, or or more times, if is True Hence, count=2 & andmore=True gives all duplicated entities count=1 gives non-duplicated entities (in only one packet) count=0 gives remaining entities (in no packet at all). + + """ + return _IFSelect.IFSelect_PacketList_Duplicated(self, *args) + + def Entities(self, *args): + r""" + + Parameters + ---------- + numpack: int + + Return + ------- + Interface_EntityIterator + + Description + ----------- + Returns the content of a Packet given its rank Null Handle if is out of range. + + """ + return _IFSelect.IFSelect_PacketList_Entities(self, *args) + + def HighestDuplicationCount(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Returns the highest number of packets which know a same entity For no duplication, should be one. + + """ + return _IFSelect.IFSelect_PacketList_HighestDuplicationCount(self, *args) + + def Model(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the Model of reference. + + """ + return _IFSelect.IFSelect_PacketList_Model(self, *args) + + def Name(self, *args): + r""" + Return + ------- + str + + Description + ----------- + Returns the recorded name for a packet list. + + """ + return _IFSelect.IFSelect_PacketList_Name(self, *args) + + def NbDuplicated(self, *args): + r""" + + Parameters + ---------- + count: int + andmore: bool + + Return + ------- + int + + Description + ----------- + Returns the count of entities duplicated: times, if is False, or or more times, if is True See Duplicated for more details. + + """ + return _IFSelect.IFSelect_PacketList_NbDuplicated(self, *args) + + def NbEntities(self, *args): + r""" + + Parameters + ---------- + numpack: int + + Return + ------- + int + + Description + ----------- + Returns the count of entities in a Packet given its rank, or 0. + + """ + return _IFSelect.IFSelect_PacketList_NbEntities(self, *args) + + def NbPackets(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Returns the count of non-empty packets. + + """ + return _IFSelect.IFSelect_PacketList_NbPackets(self, *args) + + def SetName(self, *args): + r""" + + Parameters + ---------- + name: str + + Return + ------- + None + + Description + ----------- + Sets a name to a packet list: this makes easier a general routine to print it. Default is 'Packets'. + + """ + return _IFSelect.IFSelect_PacketList_SetName(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_IFSelect_PacketList_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _IFSelect.delete_IFSelect_PacketList + +# Register IFSelect_PacketList in _IFSelect: +_IFSelect.IFSelect_PacketList_swigregister(IFSelect_PacketList) +class IFSelect_Selection(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 CompleteResult(self, *args): + r""" + + Parameters + ---------- + G: Interface_Graph + + Return + ------- + Interface_EntityIterator + + Description + ----------- + Returns the list of entities involved by a Selection, i.e. UniqueResult plus the shared entities (directly or not). + + """ + return _IFSelect.IFSelect_Selection_CompleteResult(self, *args) + + def FillIterator(self, *args): + r""" + + Parameters + ---------- + iter: IFSelect_SelectionIterator + + Return + ------- + None + + Description + ----------- + Puts in an Iterator the Selections from which 'me' depends (there can be zero, or one, or a list). Specific to each class of Selection. + + """ + return _IFSelect.IFSelect_Selection_FillIterator(self, *args) + + def Label(self, *args): + r""" + Return + ------- + TCollection_AsciiString + + Description + ----------- + Returns a text which defines the criterium applied by a Selection (can be used to be printed, displayed ...) Specific to each class. + + """ + return _IFSelect.IFSelect_Selection_Label(self, *args) + + def RootResult(self, *args): + r""" + + Parameters + ---------- + G: Interface_Graph + + Return + ------- + Interface_EntityIterator + + Description + ----------- + Returns the list of selected entities, computed from Input given as a Graph. Specific to each class of Selection Note that uniqueness of each entity is not required here This method can raise an exception as necessary. + + """ + return _IFSelect.IFSelect_Selection_RootResult(self, *args) + + def UniqueResult(self, *args): + r""" + + Parameters + ---------- + G: Interface_Graph + + Return + ------- + Interface_EntityIterator + + Description + ----------- + Returns the list of selected entities, each of them being unique. Default definition works from RootResult. According HasUniqueResult, UniqueResult returns directly RootResult, or build a Unique Result from it with a Graph. + + """ + return _IFSelect.IFSelect_Selection_UniqueResult(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_IFSelect_Selection_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _IFSelect.delete_IFSelect_Selection + +# Register IFSelect_Selection in _IFSelect: +_IFSelect.IFSelect_Selection_swigregister(IFSelect_Selection) +class IFSelect_SelectionIterator(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 + ----------- + Creates an empty iterator, ready to be filled. + + Parameters + ---------- + sel: IFSelect_Selection + + Return + ------- + None + + Description + ----------- + Creates an iterator from a Selection: it lists the Selections from which depends (given by its method FillIterator). + + """ + _IFSelect.IFSelect_SelectionIterator_swiginit(self, _IFSelect.new_IFSelect_SelectionIterator(*args)) + + def AddFromIter(self, *args): + r""" + + Parameters + ---------- + iter: IFSelect_SelectionIterator + + Return + ------- + None + + Description + ----------- + Adds to an iterator the content of another one (each selection is present only once in the result). + + """ + return _IFSelect.IFSelect_SelectionIterator_AddFromIter(self, *args) + + def AddItem(self, *args): + r""" + + Parameters + ---------- + sel: IFSelect_Selection + + Return + ------- + None + + Description + ----------- + Adds a Selection to an iterator (if not yet noted). + + """ + return _IFSelect.IFSelect_SelectionIterator_AddItem(self, *args) + + def AddList(self, *args): + r""" + + Parameters + ---------- + list: IFSelect_TSeqOfSelection + + Return + ------- + None + + Description + ----------- + Adds a list of Selections to an iterator (this list comes from the description of a Selection or a Dispatch, etc...). + + """ + return _IFSelect.IFSelect_SelectionIterator_AddList(self, *args) + + def More(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True if there are more Selections to get. + + """ + return _IFSelect.IFSelect_SelectionIterator_More(self, *args) + + def Next(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Sets iterator to the next item. + + """ + return _IFSelect.IFSelect_SelectionIterator_Next(self, *args) + + def Value(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the current Selection being iterated Error if count of Selection has been passed. + + """ + return _IFSelect.IFSelect_SelectionIterator_Value(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _IFSelect.delete_IFSelect_SelectionIterator + +# Register IFSelect_SelectionIterator in _IFSelect: +_IFSelect.IFSelect_SelectionIterator_swigregister(IFSelect_SelectionIterator) +class IFSelect_SessionDumper(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 + + @staticmethod + def First(*args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the First item of the Library of Dumper. The Next ones are then obtained by Next on the returned items. + + """ + return _IFSelect.IFSelect_SessionDumper_First(*args) + + def Next(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the Next SesionDumper in the Library. Returns a Null Handle at the End. + + """ + return _IFSelect.IFSelect_SessionDumper_Next(self, *args) + + def ReadOwn(self, *args): + r""" + + Parameters + ---------- + file: IFSelect_SessionFile + type: str + item: Standard_Transient + + Return + ------- + bool + + Description + ----------- + Recognizes a Type (given as ) then Creates an Item of this Type with the Own Parameter, as required. Returns True if it has recognized the Type (in this case, it is assumed to have created the Item, returned as ), False else: in that case, SessionFile will try another SessionDumper in the Library. ReadOwn can use these methods from SessionFile to access Own Parameters: NbOwnParams, IsVoid, IsText, TextValue, ItemValue. + + """ + return _IFSelect.IFSelect_SessionDumper_ReadOwn(self, *args) + + def WriteOwn(self, *args): + r""" + + Parameters + ---------- + file: IFSelect_SessionFile + item: Standard_Transient + + Return + ------- + bool + + Description + ----------- + Writes the Own Parameters of a given Item, if it forecast to manage its Type. Returns True if it has recognized the Type of the Item (in this case, it is assumed to have written the Own Parameters if there are some), False else: in that case, SessionFile will try another SessionDumper in the Library. WriteOwn can use these methods from SessionFile: SendVoid, SendItem, SendText, and if necessary, WorkSession. + + """ + return _IFSelect.IFSelect_SessionDumper_WriteOwn(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_IFSelect_SessionDumper_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _IFSelect.delete_IFSelect_SessionDumper + +# Register IFSelect_SessionDumper in _IFSelect: +_IFSelect.IFSelect_SessionDumper_swigregister(IFSelect_SessionDumper) +class IFSelect_SessionFile(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 + ---------- + WS: IFSelect_WorkSession + + Return + ------- + None + + Description + ----------- + Creates a SessionFile, ready to read Files in order to load them into a given WorkSession. The following Read Operations must then be called. It is also possible to perform a Write, which produces a complete File of all the content of the WorkSession. + + Parameters + ---------- + WS: IFSelect_WorkSession + filename: str + + Return + ------- + None + + Description + ----------- + Creates a SessionFile which Writes the content of a WorkSession to a File (directly calls Write) Then, IsDone acknowledges on the result of the Operation. But such a SessionFile may not Read a File to a WorkSession. + + """ + _IFSelect.IFSelect_SessionFile_swiginit(self, _IFSelect.new_IFSelect_SessionFile(*args)) + + def AddItem(self, *args): + r""" + + Parameters + ---------- + item: Standard_Transient + active: bool (optional, default to Standard_True) + + Return + ------- + None + + Description + ----------- + Adds an Item to the WorkSession, taken as Name the first item of the read Line. If this Name is not a Name but a Number or if this Name is already recorded in the WorkSession, it adds the Item but with no Name. Then the Name is recorded in order to be used by the method ItemValue commands to make active or not in the session. + + """ + return _IFSelect.IFSelect_SessionFile_AddItem(self, *args) + + def AddLine(self, *args): + r""" + + Parameters + ---------- + line: str + + Return + ------- + None + + Description + ----------- + Adds a line to the list of recorded lines. + + """ + return _IFSelect.IFSelect_SessionFile_AddLine(self, *args) + + def ClearLines(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Clears the lines recorded whatever for writing or for reading. + + """ + return _IFSelect.IFSelect_SessionFile_ClearLines(self, *args) + + def Destroy(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Specific Destructor (closes the File if not yet done). + + """ + return _IFSelect.IFSelect_SessionFile_Destroy(self, *args) + + def IsDone(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True if the last Read or Write operation has been correctly performed. Else returns False. + + """ + return _IFSelect.IFSelect_SessionFile_IsDone(self, *args) + + def IsText(self, *args): + r""" + + Parameters + ---------- + num: int + + Return + ------- + bool + + Description + ----------- + Returns True if a Parameter, in the Own List (see NbOwnParams) is a Text (between '...'). Else it is an Item (Parameter, Selection, Dispatch ...), which can be Void. + + """ + return _IFSelect.IFSelect_SessionFile_IsText(self, *args) + + def IsVoid(self, *args): + r""" + + Parameters + ---------- + num: int + + Return + ------- + bool + + Description + ----------- + Returns True if a Parameter, given its rank in the Own List (see NbOwnParams), is Void. Returns also True if is out of range (undefined parameters). + + """ + return _IFSelect.IFSelect_SessionFile_IsVoid(self, *args) + + def ItemValue(self, *args): + r""" + + Parameters + ---------- + num: int + + Return + ------- + opencascade::handle + + Description + ----------- + Returns a Parameter as an Item. Returns a Null Handle if the Parameter is a Text, or if it is defined as Void. + + """ + return _IFSelect.IFSelect_SessionFile_ItemValue(self, *args) + + def Line(self, *args): + r""" + + Parameters + ---------- + num: int + + Return + ------- + TCollection_AsciiString + + Description + ----------- + Returns a line given its rank in the list of recorded lines. + + """ + return _IFSelect.IFSelect_SessionFile_Line(self, *args) + + def NbLines(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Returns the count of recorded lines. + + """ + return _IFSelect.IFSelect_SessionFile_NbLines(self, *args) + + def NbParams(self, *args): + r""" + Return + ------- + int + + Description + ----------- + During a Read operation, SessionFile processes sequentially the Items to read. For each one, it gives access to the list of its Parameters: they were defined by calls to SendVoid/SendParam/SendText during Writing the File. NbParams returns the count of Parameters for the line currently read. + + """ + return _IFSelect.IFSelect_SessionFile_NbParams(self, *args) + + def NewItem(self, *args): + r""" + + Parameters + ---------- + ident: int + par: Standard_Transient + + Return + ------- + None + + Description + ----------- + At beginning of writing an Item, writes its basics: - either its name in the session if it has one - or its relative number of item in the file, else (preceded by a '_') - then, its Dynamic Type (in the sense of cdl: pk_class) This basic description can be followed by the parameters which are used in the definition of the item. + + """ + return _IFSelect.IFSelect_SessionFile_NewItem(self, *args) + + def ParamValue(self, *args): + r""" + + Parameters + ---------- + num: int + + Return + ------- + TCollection_AsciiString + + Description + ----------- + Returns a Parameter (alphanumeric item of a line) as it has been read. + + """ + return _IFSelect.IFSelect_SessionFile_ParamValue(self, *args) + + def Read(self, *args): + r""" + + Parameters + ---------- + filename: str + + Return + ------- + int + + Description + ----------- + Performs a Read Operation from a file to a WorkSession i.e. calls ReadFile, then ReadSession and ReadEnd Returned Value is: 0 for OK, -1 File could not be opened, >0 Error during Read (see WriteSession) IsDone can be called too (will return True for OK). + + """ + return _IFSelect.IFSelect_SessionFile_Read(self, *args) + + def ReadEnd(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Reads the end of a file (its last line). Returns 0 if OK, status >0 in case of error (not a suitable end line). + + """ + return _IFSelect.IFSelect_SessionFile_ReadEnd(self, *args) + + def ReadFile(self, *args): + r""" + + Parameters + ---------- + name: str + + Return + ------- + bool + + Description + ----------- + Reads the recorded lines from a file named , after having cleared the list (stops if RecognizeFile fails) Returns False (with no clearing) if the file could not be read. + + """ + return _IFSelect.IFSelect_SessionFile_ReadFile(self, *args) + + def ReadLine(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Reads a Line and splits it into a set of alphanumeric items, which can then be queried by NbParams/ParamValue ... + + """ + return _IFSelect.IFSelect_SessionFile_ReadLine(self, *args) + + def ReadOwn(self, *args): + r""" + + Parameters + ---------- + item: Standard_Transient + + Return + ------- + bool + + Description + ----------- + Tries to Read an Item, by calling the Library of Dumpers Sets the list of parameters of the line to be read from the first own one. + + """ + return _IFSelect.IFSelect_SessionFile_ReadOwn(self, *args) + + def ReadSession(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Performs a Read Operation from a File to a WorkSession, i.e. reads the list of line (which must have already been loaded, by ReadFile or by calls to AddLine) Important Remark: this excludes the reading of the last line, which is performed by ReadEnd Returns 0 for OK, >0 status for Read Error (not a suitable File, or WorkSession given as Immutable at Creation Time) IsDone can be called too (will return True for OK). + + """ + return _IFSelect.IFSelect_SessionFile_ReadSession(self, *args) + + def RecognizeFile(self, *args): + r""" + + Parameters + ---------- + headerline: str + + Return + ------- + bool + + Description + ----------- + Recognizes the header line. returns True if OK, False else. + + """ + return _IFSelect.IFSelect_SessionFile_RecognizeFile(self, *args) + + def RemoveLastLine(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Removes the last line. Can be called recursively. Does nothing if the list is empty. + + """ + return _IFSelect.IFSelect_SessionFile_RemoveLastLine(self, *args) + + def SendItem(self, *args): + r""" + + Parameters + ---------- + par: Standard_Transient + + Return + ------- + None + + Description + ----------- + During a Write action, commands to send the identification of a Parameter: if it is Null (undefined) it is send as Void ($) if it is Named in the WorkSession, its Name is sent preceded by ':', else a relative Ident Number is sent preceded by '#' (relative to the present Write, i.e. starting at one, without skip, and counted part from Named Items). + + """ + return _IFSelect.IFSelect_SessionFile_SendItem(self, *args) + + def SendText(self, *args): + r""" + + Parameters + ---------- + text: str + + Return + ------- + None + + Description + ----------- + During a Write action, commands to send a Text without interpretation. It will be sent as well. + + """ + return _IFSelect.IFSelect_SessionFile_SendText(self, *args) + + def SendVoid(self, *args): + r""" + Return + ------- + None + + Description + ----------- + During a Write action, commands to send a Void Parameter i.e. a Parameter which is present but undefined Its form will be the dollar sign: $. + + """ + return _IFSelect.IFSelect_SessionFile_SendVoid(self, *args) + + def SetLastGeneral(self, *args): + r""" + + Parameters + ---------- + lastgen: int + + Return + ------- + None + + Description + ----------- + Sets the rank of Last General Parameter to a new value. It is followed by the Fist Own Parameter of the item. Used by SessionFile after reading general parameters. + + """ + return _IFSelect.IFSelect_SessionFile_SetLastGeneral(self, *args) + + def SetOwn(self, *args): + r""" + + Parameters + ---------- + mode: bool + + Return + ------- + None + + Description + ----------- + Sets Parameters to be sent as Own if is True (their Name or Number or Void Mark or Text Value is preceded by a Column sign ':') else they are sent normally Hence, the Own Parameter are clearly identified in the File. + + """ + return _IFSelect.IFSelect_SessionFile_SetOwn(self, *args) + + def SplitLine(self, *args): + r""" + + Parameters + ---------- + line: str + + Return + ------- + None + + Description + ----------- + Internal routine which processes a line into words and prepares its exploration. + + """ + return _IFSelect.IFSelect_SessionFile_SplitLine(self, *args) + + def TextValue(self, *args): + r""" + + Parameters + ---------- + num: int + + Return + ------- + TCollection_AsciiString + + Description + ----------- + Returns the content of a Text Parameter (without the quotes). Returns an empty string if the Parameter is not a Text. + + """ + return _IFSelect.IFSelect_SessionFile_TextValue(self, *args) + + def WorkSession(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the WorkSession on which a SessionFile works. Remark that it is returned as Immutable. + + """ + return _IFSelect.IFSelect_SessionFile_WorkSession(self, *args) + + def Write(self, *args): + r""" + + Parameters + ---------- + filename: str + + Return + ------- + int + + Description + ----------- + Performs a Write Operation from a WorkSession to a File i.e. calls WriteSession then WriteEnd, and WriteFile Returned Value is: 0 for OK, -1 File could not be created, >0 Error during Write (see WriteSession) IsDone can be called too (will return True for OK). + + """ + return _IFSelect.IFSelect_SessionFile_Write(self, *args) + + def WriteEnd(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Writes the trailing line. It is separate from WriteSession, in order to allow to redefine WriteSession without touching WriteEnd (WriteSession defines the body of the file) WriteEnd fills the list of lines. Returns a status of error, 0 if OK, >0 else. + + """ + return _IFSelect.IFSelect_SessionFile_WriteEnd(self, *args) + + def WriteFile(self, *args): + r""" + + Parameters + ---------- + name: str + + Return + ------- + bool + + Description + ----------- + Writes the recorded lines to a file named then clears the list of lines. Returns False (with no clearing) if the file could not be created. + + """ + return _IFSelect.IFSelect_SessionFile_WriteFile(self, *args) + + def WriteLine(self, *args): + r""" + + Parameters + ---------- + line: str + follow: Standard_Character (optional, default to 0) + + Return + ------- + None + + Description + ----------- + Writes a line to the File. If is given, it is added at the following of the line. A newline must be added for the end. + + """ + return _IFSelect.IFSelect_SessionFile_WriteLine(self, *args) + + def WriteOwn(self, *args): + r""" + + Parameters + ---------- + item: Standard_Transient + + Return + ------- + bool + + Description + ----------- + Writes the Parameters own to each type of Item. Uses the Library of SessionDumpers Returns True if Done, False if could not be treated (hence it remains written with no Own Parameter). + + """ + return _IFSelect.IFSelect_SessionFile_WriteOwn(self, *args) + + def WriteSession(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Prepares the Write operation from a WorkSession (IFSelect) to a File, i.e. fills the list of lines (the file itself remains to be written; or NbLines/Line may be called) Important Remark: this excludes the reading of the last line, which is performed by WriteEnd Returns 0 if OK, status > 0 in case of error. + + """ + return _IFSelect.IFSelect_SessionFile_WriteSession(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _IFSelect.delete_IFSelect_SessionFile + +# Register IFSelect_SessionFile in _IFSelect: +_IFSelect.IFSelect_SessionFile_swigregister(IFSelect_SessionFile) +class IFSelect_ShareOut(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 ShareOut. + + """ + _IFSelect.IFSelect_ShareOut_swiginit(self, _IFSelect.new_IFSelect_ShareOut(*args)) + + def AddDispatch(self, *args): + r""" + + Parameters + ---------- + disp: IFSelect_Dispatch + + Return + ------- + None + + Description + ----------- + Adds a Dispatch to the list. + + """ + return _IFSelect.IFSelect_ShareOut_AddDispatch(self, *args) + + def AddModif(self, *args): + r""" + + Parameters + ---------- + modifier: IFSelect_GeneralModifier + formodel: bool + atnum: int (optional, default to 0) + + Return + ------- + None + + Description + ----------- + Adds a Modifier to the list of Modifiers: Model Modifiers if is True, File Modifiers else (internal). + + """ + return _IFSelect.IFSelect_ShareOut_AddModif(self, *args) + + def AddModifier(self, *args): + r""" + + Parameters + ---------- + modifier: IFSelect_GeneralModifier + atnum: int + + Return + ------- + None + + Description + ----------- + Sets a Modifier to be applied on all Dispatches to be run If is a ModelModifier, adds it to the list of Model Modifiers; else to the list of File Modifiers By default (atnum = 0) at the end of the list, else at Each Modifier is used, after each copy of a packet of Entities into a Model: its criteria are checked and if they are OK, the method Perform of this Modifier is run. + + Parameters + ---------- + modifier: IFSelect_GeneralModifier + dispnum: int + atnum: int + + Return + ------- + None + + Description + ----------- + Sets a Modifier to be applied on the Dispatch If is a ModelModifier, adds it to the list of Model Modifiers; else to the list of File Modifiers This is the same list as for all Dispatches, but the Modifier is qualified to be applied to one Dispatch only Then, refers to the entire list By default (atnum = 0) at the end of the list, else at Remark: if the Modifier was already in the list and if = 0, the Modifier is not moved, but only qualified for a Dispatch. + + """ + return _IFSelect.IFSelect_ShareOut_AddModifier(self, *args) + + def ChangeModifierRank(self, *args): + r""" + + Parameters + ---------- + formodel: bool + befor: int + after: int + + Return + ------- + bool + + Description + ----------- + Changes the rank of a modifier in the list: Model Modifiers if is True, File Modifiers else from to Returns True if done, False else (before or after out of range). + + """ + return _IFSelect.IFSelect_ShareOut_ChangeModifierRank(self, *args) + + def Clear(self, *args): + r""" + + Parameters + ---------- + onlydisp: bool + + Return + ------- + None + + Description + ----------- + Removes in one operation all the Dispatches with their Idents Also clears all information about Names, and all Results but naming information which are: - kept if is True. - cleared if is False (complete clearing) If is True, that's all. Else, clears also Modifiers. + + """ + return _IFSelect.IFSelect_ShareOut_Clear(self, *args) + + def ClearResult(self, *args): + r""" + + Parameters + ---------- + alsoname: bool + + Return + ------- + None + + Description + ----------- + Clears all data produced (apart from Dispatches, etc...) if is True, all is cleared. Else, information about produced Names are kept (to maintain unicity of naming across clearings). + + """ + return _IFSelect.IFSelect_ShareOut_ClearResult(self, *args) + + def DefaultRootName(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the Default Root Name. Can be empty. + + """ + return _IFSelect.IFSelect_ShareOut_DefaultRootName(self, *args) + + def Dispatch(self, *args): + r""" + + Parameters + ---------- + num: int + + Return + ------- + opencascade::handle + + Description + ----------- + Returns a Dispatch, given its rank in the list. + + """ + return _IFSelect.IFSelect_ShareOut_Dispatch(self, *args) + + def DispatchRank(self, *args): + r""" + + Parameters + ---------- + disp: IFSelect_Dispatch + + Return + ------- + int + + Description + ----------- + Returns the Rank of a Dispatch, given its Value (Handle). Returns 0 if the Dispatch is unknown in the ShareOut. + + """ + return _IFSelect.IFSelect_ShareOut_DispatchRank(self, *args) + + def Extension(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the general Extension. Can be empty (not recommended). + + """ + return _IFSelect.IFSelect_ShareOut_Extension(self, *args) + + def FileName(self, *args): + r""" + + Parameters + ---------- + dnum: int + pnum: int + nbpack: int (optional, default to 0) + + Return + ------- + TCollection_AsciiString + + Description + ----------- + Computes the complete file name for a Packet of a Dispatch, given Dispatch Number (Rank), Packet Number, and Count of Packets generated by this Dispatch (0 if unknown) //! File Name is made of following strings, concatenated: General Prefix, Root Name for Dispatch, Packet Suffix, and General Extension. If no Root Name is specified for a Dispatch, DefaultRootName is considered (and pnum is not used, but is incremented and used Error if no Root is defined for this . + + """ + return _IFSelect.IFSelect_ShareOut_FileName(self, *args) + + def GeneralModifier(self, *args): + r""" + + Parameters + ---------- + formodel: bool + num: int + + Return + ------- + opencascade::handle + + Description + ----------- + Returns a Modifier of the list, given its rank: Model Modifiers if is True, File Modifiers else. + + """ + return _IFSelect.IFSelect_ShareOut_GeneralModifier(self, *args) + + def HasRootName(self, *args): + r""" + + Parameters + ---------- + num: int + + Return + ------- + bool + + Description + ----------- + Returns True if the Dispatch of rank has an attached Root Name. False else, or if num is out of range. + + """ + return _IFSelect.IFSelect_ShareOut_HasRootName(self, *args) + + def LastRun(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Returns the rank of last run item (ClearResult resets it to 0). + + """ + return _IFSelect.IFSelect_ShareOut_LastRun(self, *args) + + def ModelModifier(self, *args): + r""" + + Parameters + ---------- + num: int + + Return + ------- + opencascade::handle + + Description + ----------- + Returns a Modifier of the list of Model Modifiers, duely casted. + + """ + return _IFSelect.IFSelect_ShareOut_ModelModifier(self, *args) + + def ModifierRank(self, *args): + r""" + + Parameters + ---------- + modifier: IFSelect_GeneralModifier + + Return + ------- + int + + Description + ----------- + Gives the rank of a Modifier in the list, 0 if not in the list Model Modifiers if is kind of ModelModifer, File Modifiers else. + + """ + return _IFSelect.IFSelect_ShareOut_ModifierRank(self, *args) + + def NbDispatches(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Returns the count of Dispatches. + + """ + return _IFSelect.IFSelect_ShareOut_NbDispatches(self, *args) + + def NbModifiers(self, *args): + r""" + + Parameters + ---------- + formodel: bool + + Return + ------- + int + + Description + ----------- + Returns count of Modifiers (which apply to complete Models): Model Modifiers if is True, File Modifiers else. + + """ + return _IFSelect.IFSelect_ShareOut_NbModifiers(self, *args) + + def Prefix(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the general Prefix. Can be empty. + + """ + return _IFSelect.IFSelect_ShareOut_Prefix(self, *args) + + def RemoveDispatch(self, *args): + r""" + + Parameters + ---------- + rank: int + + Return + ------- + bool + + Description + ----------- + Removes a Dispatch, given its rank in the list Returns True if done, False if rank is not between (LastRun + 1) and (NbDispatches). + + """ + return _IFSelect.IFSelect_ShareOut_RemoveDispatch(self, *args) + + def RemoveItem(self, *args): + r""" + + Parameters + ---------- + item: Standard_Transient + + Return + ------- + bool + + Description + ----------- + Removes an item, which can be, either a Dispatch (removed from the list of Dispatches), or a GeneralModifier (removed from the list of Model Modifiers or from the list of File Modifiers according to its type). Returns True if done, False if has not been found or if it is neither a Dispatch, nor a Modifier. + + """ + return _IFSelect.IFSelect_ShareOut_RemoveItem(self, *args) + + def RemoveModifier(self, *args): + r""" + + Parameters + ---------- + formodel: bool + num: int + + Return + ------- + bool + + Description + ----------- + Removes a Modifier, given it rank in the list: Model Modifiers if is True, File Modifiers else Returns True if done, False if is out of range. + + """ + return _IFSelect.IFSelect_ShareOut_RemoveModifier(self, *args) + + def RootName(self, *args): + r""" + + Parameters + ---------- + num: int + + Return + ------- + opencascade::handle + + Description + ----------- + Returns the Root bound to a Dispatch, given its rank Returns a Null Handle if not defined. + + """ + return _IFSelect.IFSelect_ShareOut_RootName(self, *args) + + def RootNumber(self, *args): + r""" + + Parameters + ---------- + name: TCollection_HAsciiString + + Return + ------- + int + + Description + ----------- + Returns an integer value about a given root name: - positive: it's the rank of the Dispatch which has this name - null: this root name is unknown - negative (-1): this root name is the default root name. + + """ + return _IFSelect.IFSelect_ShareOut_RootNumber(self, *args) + + def SetDefaultRootName(self, *args): + r""" + + Parameters + ---------- + defrt: TCollection_HAsciiString + + Return + ------- + bool + + Description + ----------- + Defines or Changes the Default Root Name to a new value (which is used for dispatches which have no attached root name). If this method is not called, DefaultRootName remains empty Returns True if OK, False if this Name is already attached, for a Dispatch or for Default. + + """ + return _IFSelect.IFSelect_ShareOut_SetDefaultRootName(self, *args) + + def SetExtension(self, *args): + r""" + + Parameters + ---------- + ext: TCollection_HAsciiString + + Return + ------- + None + + Description + ----------- + Defines or Changes the general Extension (which is appended to complete file name generated). If this method is not call, Extension remains empty. + + """ + return _IFSelect.IFSelect_ShareOut_SetExtension(self, *args) + + def SetLastRun(self, *args): + r""" + + Parameters + ---------- + last: int + + Return + ------- + None + + Description + ----------- + Records a new value for the rank of last run item. + + """ + return _IFSelect.IFSelect_ShareOut_SetLastRun(self, *args) + + def SetPrefix(self, *args): + r""" + + Parameters + ---------- + pref: TCollection_HAsciiString + + Return + ------- + None + + Description + ----------- + Defines or Changes the general Prefix (which is prepended to complete file name generated). If this method is not call, Prefix remains empty. + + """ + return _IFSelect.IFSelect_ShareOut_SetPrefix(self, *args) + + def SetRootName(self, *args): + r""" + + Parameters + ---------- + num: int + name: TCollection_HAsciiString + + Return + ------- + bool + + Description + ----------- + Attaches a Root Name to a Dispatch given its rank, as an HAsciiString (standard form). A Null Handle resets this name. Returns True if OK, False if this Name is already attached, for a Dispatch or for Default, or out of range. + + """ + return _IFSelect.IFSelect_ShareOut_SetRootName(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_IFSelect_ShareOut_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _IFSelect.delete_IFSelect_ShareOut + +# Register IFSelect_ShareOut in _IFSelect: +_IFSelect.IFSelect_ShareOut_swigregister(IFSelect_ShareOut) +class IFSelect_ShareOutResult(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 + ---------- + sho: IFSelect_ShareOut + mod: Interface_InterfaceModel + + Return + ------- + None + + Description + ----------- + Creates a ShareOutResult from a ShareOut, to work on a Model (without any more precision; uses Active Protocol). + + Parameters + ---------- + sho: IFSelect_ShareOut + G: Interface_Graph + + Return + ------- + None + + Description + ----------- + Creates a ShareOutResult from a ShareOut, to work on a Graph already computed, which defines the Input Model and can specialize some Entities. + + Parameters + ---------- + disp: IFSelect_Dispatch + mod: Interface_InterfaceModel + + Return + ------- + None + + Description + ----------- + Creates a ShareOutResult from a unique Dispatch, to work on a Model. As if it was a ShareOut with only one Dispatch (without any more precision; uses Active Protocol) Allows to compute the effect of a single Dispatch. + + Parameters + ---------- + disp: IFSelect_Dispatch + G: Interface_Graph + + Return + ------- + None + + Description + ----------- + Creates a ShareOutResult from a unique Dispatch, to work on a Graph. As if it was a ShareOut with only one Dispatch Allows to compute the effect of a single Dispatch. + + """ + _IFSelect.IFSelect_ShareOutResult_swiginit(self, _IFSelect.new_IFSelect_ShareOutResult(*args)) + + def Dispatch(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the current Dispatch. + + """ + return _IFSelect.IFSelect_ShareOutResult_Dispatch(self, *args) + + def DispatchRank(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Returns the Rank of the current Dispatch in the ShareOut Returns Zero if there is none (iteration finished). + + """ + return _IFSelect.IFSelect_ShareOutResult_DispatchRank(self, *args) + + def Evaluate(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Evaluates the result of a ShareOut: determines Entities to be forgotten by the ShareOut, Entities to be transferred several times (duplicated), prepares an iteration on the packets to be produced Called the first time anyone question is asked, or after a call to Reset. Works by calling the method Prepare. + + """ + return _IFSelect.IFSelect_ShareOutResult_Evaluate(self, *args) + + def FileName(self, *args): + r""" + Return + ------- + TCollection_AsciiString + + Description + ----------- + Returns the File Name which corresponds to current Packet (computed by ShareOut) If current Packet has no associated name (see ShareOut), the returned value is Null. + + """ + return _IFSelect.IFSelect_ShareOutResult_FileName(self, *args) + + def Graph(self, *args): + r""" + Return + ------- + Interface_Graph + + Description + ----------- + Returns the Graph used to create theShareOutResult. + + """ + return _IFSelect.IFSelect_ShareOutResult_Graph(self, *args) + + def More(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True if there is more packets in the current Dispatch, else if there is more Dispatch in the ShareOut. + + """ + return _IFSelect.IFSelect_ShareOutResult_More(self, *args) + + def NbPackets(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Returns the total count of produced non empty packets (in out: calls Evaluate as necessary). + + """ + return _IFSelect.IFSelect_ShareOutResult_NbPackets(self, *args) + + def Next(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Passes to the next Packet in the current Dispatch, or if there is none, to the next Dispatch in the ShareOut. + + """ + return _IFSelect.IFSelect_ShareOutResult_Next(self, *args) + + def NextDispatch(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Passes to the next Dispatch, regardless about remaining packets. + + """ + return _IFSelect.IFSelect_ShareOutResult_NextDispatch(self, *args) + + def PacketContent(self, *args): + r""" + Return + ------- + Interface_EntityIterator + + Description + ----------- + Returns the complete content of the current Packet (i.e. with shared entities, which will also be put in the file). + + """ + return _IFSelect.IFSelect_ShareOutResult_PacketContent(self, *args) + + def PacketRoot(self, *args): + r""" + Return + ------- + Interface_EntityIterator + + Description + ----------- + Returns the list of Roots of the current Packet (never empty) (i.e. the Entities to be themselves asked for transfer) Error if there is none (iteration finished). + + """ + return _IFSelect.IFSelect_ShareOutResult_PacketRoot(self, *args) + + def Packets(self, *args): + r""" + + Parameters + ---------- + complete: bool (optional, default to Standard_True) + + Return + ------- + opencascade::handle + + Description + ----------- + Returns the list of recorded Packets, under two modes: - = False, the strict definition of Packets, i.e. for each one, the Root Entities, to be explicitly sent - = True (Default), the completely evaluated list, i.e. which really gives the destination of each entity: this mode allows to evaluate duplications Remark that to send packets, iteration remains preferable (file names are managed). + + """ + return _IFSelect.IFSelect_ShareOutResult_Packets(self, *args) + + def PacketsInDispatch(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + numpack: int + nbpacks: int + + Description + ----------- + Returns Number (rank) of current Packet in current Dispatch, and total count of Packets in current Dispatch, as arguments. + + """ + return _IFSelect.IFSelect_ShareOutResult_PacketsInDispatch(self, *args) + + def Prepare(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Prepares the iteration on the packets This method is called by Evaluate, but can be called anytime The iteration consists in taking each Dispatch of the ShareOut beginning by the first one, compute its packets, then iterate on these packets. Once all these packets are iterated, the iteration passes to the next Dispatch, or stops. For a creation from a unique Dispatch, same but with only this Dispatch. Each packet can be listed, or really transferred (producing a derived Model, from which a file can be generated) //! Prepare sets the iteration to the first Dispatch, first Packet. + + """ + return _IFSelect.IFSelect_ShareOutResult_Prepare(self, *args) + + def Reset(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Erases computed data, in order to command a new Evaluation. + + """ + return _IFSelect.IFSelect_ShareOutResult_Reset(self, *args) + + def ShareOut(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the ShareOut used to create the ShareOutResult if creation from a Dispatch, returns a Null Handle. + + """ + return _IFSelect.IFSelect_ShareOutResult_ShareOut(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _IFSelect.delete_IFSelect_ShareOutResult + +# Register IFSelect_ShareOutResult in _IFSelect: +_IFSelect.IFSelect_ShareOutResult_swigregister(IFSelect_ShareOutResult) +class IFSelect_Signature(OCC.Core.Interface.Interface_SignType): + 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 AddCase(self, *args): + r""" + + Parameters + ---------- + acase: str + + Return + ------- + None + + Description + ----------- + Adds a possible case To be called when creating, IF the list of possible cases for Value is known when starting For instance, for CDL types, rather do not fill this, but for a specific enumeration (such as a status), can be used. + + """ + return _IFSelect.IFSelect_Signature_AddCase(self, *args) + + def CaseList(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the predefined list of possible cases, filled by AddCase Null Handle if no predefined list (hence, to be counted) Useful to filter on really possible vase, for instance, or for a help. + + """ + return _IFSelect.IFSelect_Signature_CaseList(self, *args) + + @staticmethod + def IntValue(*args): + r""" + + Parameters + ---------- + val: int + + Return + ------- + str + + Description + ----------- + This procedure converts an Integer to a CString It is a convenient way when the value of a signature has the form of a simple integer value The value is to be used immediately (one buffer only, no copy). + + """ + return _IFSelect.IFSelect_Signature_IntValue(*args) + + def IsIntCase(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + hasmin: bool + valmin: int + hasmax: bool + valmax: int + + Description + ----------- + Tells if this Signature gives integer values and returns values from SetIntCase if True. + + """ + return _IFSelect.IFSelect_Signature_IsIntCase(self, *args) + + def Label(self, *args): + r""" + Return + ------- + TCollection_AsciiString + + Description + ----------- + The label of a Signature uses its name as follow: 'Signature: '. + + """ + return _IFSelect.IFSelect_Signature_Label(self, *args) + + @staticmethod + def MatchValue(*args): + r""" + + Parameters + ---------- + val: str + text: str + exact: bool + + Return + ------- + bool + + Description + ----------- + Default procedure to tell if a value matches a text with a criterium . = True requires equality, else only contained (no reg-exp). + + """ + return _IFSelect.IFSelect_Signature_MatchValue(*args) + + def Matches(self, *args): + r""" + + Parameters + ---------- + ent: Standard_Transient + model: Interface_InterfaceModel + text: str + exact: bool + + Return + ------- + bool + + Description + ----------- + Tells if the value for in matches a text, with a criterium . The default definition calls MatchValue Can be redefined. + + """ + return _IFSelect.IFSelect_Signature_Matches(self, *args) + + def SetIntCase(self, *args): + r""" + + Parameters + ---------- + hasmin: bool + valmin: int + hasmax: bool + valmax: int + + Return + ------- + None + + Description + ----------- + Sets the information data to tell 'integer cases' with possible min and max values To be called when creating. + + """ + return _IFSelect.IFSelect_Signature_SetIntCase(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_IFSelect_Signature_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _IFSelect.delete_IFSelect_Signature + +# Register IFSelect_Signature in _IFSelect: +_IFSelect.IFSelect_Signature_swigregister(IFSelect_Signature) +class IFSelect_SignatureList(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 + ---------- + withlist: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + Creates a SignatureList. If is True, entities will be not only counted per signature, but also listed. + + """ + _IFSelect.IFSelect_SignatureList_swiginit(self, _IFSelect.new_IFSelect_SignatureList(*args)) + + def Add(self, *args): + r""" + + Parameters + ---------- + ent: Standard_Transient + sign: str + + Return + ------- + None + + Description + ----------- + Adds an entity with its signature, i.e.: - counts an item more for - if record-list status is set, records the entity Accepts a null entity (the signature is then for the global model). But if the string is empty, counts a Null item. //! If SignOnly Mode is set, this work is replaced by just setting LastValue. + + """ + return _IFSelect.IFSelect_SignatureList_Add(self, *args) + + def Clear(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _IFSelect.IFSelect_SignatureList_Clear(self, *args) + + def Entities(self, *args): + r""" + + Parameters + ---------- + sign: str + + Return + ------- + opencascade::handle + + Description + ----------- + Returns the list of entities attached to a signature It is empty if has not been recorded It is a Null Handle if the list of entities is not known. + + """ + return _IFSelect.IFSelect_SignatureList_Entities(self, *args) + + def HasEntities(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True if the list of Entities is acknowledged, else the method Entities will always return a Null Handle. + + """ + return _IFSelect.IFSelect_SignatureList_HasEntities(self, *args) + + def Init(self, *args): + r""" + + Parameters + ---------- + name: str + count: NCollection_IndexedDataMap + list: Standard_Transient + nbnuls: int + + Return + ------- + None + + Description + ----------- + Aknowledges the list in once. Name identifies the Signature. + + """ + return _IFSelect.IFSelect_SignatureList_Init(self, *args) + + def LastValue(self, *args): + r""" + Return + ------- + str + + Description + ----------- + Returns the last value recorded by Add (only if SignMode set) Cleared by Clear or Init. + + """ + return _IFSelect.IFSelect_SignatureList_LastValue(self, *args) + + def List(self, *args): + r""" + + Parameters + ---------- + root: str (optional, default to ) + + Return + ------- + opencascade::handle + + Description + ----------- + Returns the list of signatures, as a sequence of strings (but without their respective counts). It is ordered. By default, for all the signatures. If is given non empty, for the signatures which begin by . + + """ + return _IFSelect.IFSelect_SignatureList_List(self, *args) + + def GetModeSignOnly(self): + r"""GetModeSignOnly(IFSelect_SignatureList self) -> Standard_Boolean""" + return _IFSelect.IFSelect_SignatureList_GetModeSignOnly(self) + + def SetModeSignOnly(self, value): + r"""SetModeSignOnly(IFSelect_SignatureList self, Standard_Boolean value)""" + return _IFSelect.IFSelect_SignatureList_SetModeSignOnly(self, value) + + def Name(self, *args): + r""" + Return + ------- + str + + Description + ----------- + Returns the recorded Name. Remark: default is '...' (no SetName called). + + """ + return _IFSelect.IFSelect_SignatureList_Name(self, *args) + + def NbNulls(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Returns the count of null entities. + + """ + return _IFSelect.IFSelect_SignatureList_NbNulls(self, *args) + + def NbTimes(self, *args): + r""" + + Parameters + ---------- + sign: str + + Return + ------- + int + + Description + ----------- + Returns the number of times a signature was counted, 0 if it has not been recorded at all. + + """ + return _IFSelect.IFSelect_SignatureList_NbTimes(self, *args) + + def PrintCount(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + S: Standard_OStream + + Description + ----------- + Prints the counts of items (not the list). + + """ + return _IFSelect.IFSelect_SignatureList_PrintCount(self, *args) + + def PrintList(self, *args): + r""" + + Parameters + ---------- + model: Interface_InterfaceModel + mod: IFSelect_PrintCount (optional, default to IFSelect_ListByItem) + + Return + ------- + S: Standard_OStream + + Description + ----------- + Prints the lists of items, if they are present (else, prints a message 'no list available') Uses to determine for each entity to be listed, its number, and its specific identifier (by PrintLabel) gives a mode for printing: - CountByItem: just count (as PrintCount) - ShortByItem: minimum i.e. count plus 5 first entity numbers - ShortByItem(D) complete list of entity numbers (0: 'Global') - EntitiesByItem: list of (entity number/PrintLabel from the model) other modes are ignored. + + """ + return _IFSelect.IFSelect_SignatureList_PrintList(self, *args) + + def PrintSum(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + S: Standard_OStream + + Description + ----------- + Prints a summary Item which has the greatest count of entities For items which are numeric values: their count, maximum, minimum values, cumul, average. + + """ + return _IFSelect.IFSelect_SignatureList_PrintSum(self, *args) + + def SetList(self, *args): + r""" + + Parameters + ---------- + withlist: bool + + Return + ------- + None + + Description + ----------- + Changes the record-list status. The list is not cleared but its use changes. + + """ + return _IFSelect.IFSelect_SignatureList_SetList(self, *args) + + def SetName(self, *args): + r""" + + Parameters + ---------- + name: str + + Return + ------- + None + + Description + ----------- + Defines a name for a SignatureList (used to print it). + + """ + return _IFSelect.IFSelect_SignatureList_SetName(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_IFSelect_SignatureList_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _IFSelect.delete_IFSelect_SignatureList + +# Register IFSelect_SignatureList in _IFSelect: +_IFSelect.IFSelect_SignatureList_swigregister(IFSelect_SignatureList) +class IFSelect_Transformer(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 ChangeProtocol(self, *args): + r""" + + Parameters + ---------- + newproto: Interface_Protocol + + Return + ------- + bool + + Description + ----------- + This methods allows to declare that the Protocol applied to the new Model has changed. It applies to the last call to Perform. //! Returns True if the Protocol has changed, False else. The provided default keeps the starting Protocol. This method should be redefined as required by the effect of Perform. + + """ + return _IFSelect.IFSelect_Transformer_ChangeProtocol(self, *args) + + def Label(self, *args): + r""" + Return + ------- + TCollection_AsciiString + + Description + ----------- + Returns a text which defines the way a Transformer works (to identify the transformation it performs). + + """ + return _IFSelect.IFSelect_Transformer_Label(self, *args) + + def Perform(self, *args): + r""" + + Parameters + ---------- + G: Interface_Graph + protocol: Interface_Protocol + checks: Interface_CheckIterator + newmod: Interface_InterfaceModel + + Return + ------- + bool + + Description + ----------- + Performs a Transformation (defined by each sub-class): gives the input data (especially the starting model) and can be used for queries (by Selections, etc...) allows to work with General Services as necessary (it applies to input data) If the change corresponds to a conversion to a new protocol, see also the method ChangeProtocol stores produced checks messages if any gives the result of the transformation: - if it is Null (i.e. has not been affected), the transformation has been made on the spot, it is assumed to cause no change to the graph of dependances - if it equates the starting Model, it has been transformed on the spot (possibiliy some entities were replaced inside it) - if it is new, it corresponds to a new data set which replaces the starting one //! is mutable to allow results for ChangeProtocol to be memorized if needed, and to store information useful for the method Updated //! Returns True if Done, False if an Error occurred: in this case, if a new data set has been produced, the transformation is ignored, else data may be corrupted. + + """ + return _IFSelect.IFSelect_Transformer_Perform(self, *args) + + def Updated(self, *args): + r""" + + Parameters + ---------- + entfrom: Standard_Transient + entto: Standard_Transient + + Return + ------- + bool + + Description + ----------- + This method allows to know what happened to a starting entity after the last Perform. If (from starting model) has one and only one known item which corresponds in the new produced model, this method must return True and fill the argument . Else, it returns False. + + """ + return _IFSelect.IFSelect_Transformer_Updated(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_IFSelect_Transformer_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _IFSelect.delete_IFSelect_Transformer + +# Register IFSelect_Transformer in _IFSelect: +_IFSelect.IFSelect_Transformer_swigregister(IFSelect_Transformer) +class IFSelect_WorkLibrary(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 CopyModel(self, *args): + r""" + + Parameters + ---------- + original: Interface_InterfaceModel + newmodel: Interface_InterfaceModel + list: Interface_EntityIterator + TC: Interface_CopyTool + + Return + ------- + bool + + Description + ----------- + Performs the copy of entities from an original model to a new one. It must also copy headers if any. Returns True when done. The provided default works by copying the individual entities designated in the list, by using the general service class CopyTool. It can be redefined for a norm which, either implements Copy by another way (do not forget to Bind each copied result with its original entity in TC) and returns True, or does not know how to copy and returns False. + + """ + return _IFSelect.IFSelect_WorkLibrary_CopyModel(self, *args) + + def DumpEntity(self, *args): + r""" + + Parameters + ---------- + model: Interface_InterfaceModel + protocol: Interface_Protocol + entity: Standard_Transient + level: int + + Return + ------- + S: Standard_OStream + + Description + ----------- + Gives the way of dumping an entity under a form comprehensive for each norm. helps to identify, number ... entities. is to be interpreted for each norm (because of the formats which can be very different). + + Parameters + ---------- + model: Interface_InterfaceModel + protocol: Interface_Protocol + entity: Standard_Transient + + Return + ------- + S: Standard_OStream + + Description + ----------- + Calls deferred DumpEntity with the recorded default level. + + """ + return _IFSelect.IFSelect_WorkLibrary_DumpEntity(self, *args) + + def DumpHelp(self, *args): + r""" + + Parameters + ---------- + level: int + + Return + ------- + str + + Description + ----------- + Returns the help line recorded for , or an empty string. + + """ + return _IFSelect.IFSelect_WorkLibrary_DumpHelp(self, *args) + + def DumpLevels(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + def: int + max: int + + Description + ----------- + Returns the recorded default and maximum dump levels If none was recorded, max is returned negative, def as zero. + + """ + return _IFSelect.IFSelect_WorkLibrary_DumpLevels(self, *args) + + def ReadFile(self, *args): + r""" + + Parameters + ---------- + name: str + model: Interface_InterfaceModel + protocol: Interface_Protocol + + Return + ------- + int + + Description + ----------- + Gives the way to Read a File and transfer it to a Model is the resulting Model, which has to be created by this method. In case of error, must be returned Null Return value is a status with free values. Simply, 0 is for 'Execution OK' The Protocol can be used to work (e.g. create the Model, read and recognize the Entities). + + """ + return _IFSelect.IFSelect_WorkLibrary_ReadFile(self, *args) + + def ReadStream(self, *args): + r""" + + Parameters + ---------- + theName: str + theIStream: str + model: Interface_InterfaceModel + protocol: Interface_Protocol + + Return + ------- + int + + Description + ----------- + Interface to read a data from the specified stream. + Parameter model is the resulting Model, which has to be created by this method. In case of error, model must be returned Null Return value is a status: 0 - OK, 1 - read failure, -1 - stream failure. //! Default implementation returns 1 (error). + + """ + return _IFSelect.IFSelect_WorkLibrary_ReadStream(self, *args) + + def SetDumpHelp(self, *args): + r""" + + Parameters + ---------- + level: int + help: str + + Return + ------- + None + + Description + ----------- + Records a short line of help for a level (0 - max). + + """ + return _IFSelect.IFSelect_WorkLibrary_SetDumpHelp(self, *args) + + def SetDumpLevels(self, *args): + r""" + + Parameters + ---------- + def: int + max: int + + Return + ------- + None + + Description + ----------- + Records a default level and a maximum value for level level for DumpEntity can go between 0 and default value will be . + + """ + return _IFSelect.IFSelect_WorkLibrary_SetDumpLevels(self, *args) + + def WriteFile(self, *args): + r""" + + Parameters + ---------- + ctx: IFSelect_ContextWrite + + Return + ------- + bool + + Description + ----------- + Gives the way to Write a File from a Model. contains all necessary information: the model, the protocol, the file name, and the list of File Modifiers to be applied, also with restricted list of selected entities for each one, if required. In return, it brings the produced check-list //! The WorkLibrary has to query to get then run the ContextWrite by looping like this (example): for (numap = 1; numap <= ctx.NbModifiers(); numap ++) { ctx.SetModifier (numap); cast ctx.FileModifier() to specific type -> variable filemod if (!filemod.IsNull()) filemod->Perform (ctx,writer); filemod then works with ctx. It can, either act on the model itself (for instance on its header), or iterate on selected entities (Start/Next/More/Value) it can call AddFail or AddWarning, as necessary }. + + """ + return _IFSelect.IFSelect_WorkLibrary_WriteFile(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_IFSelect_WorkLibrary_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _IFSelect.delete_IFSelect_WorkLibrary + +# Register IFSelect_WorkLibrary in _IFSelect: +_IFSelect.IFSelect_WorkLibrary_swigregister(IFSelect_WorkLibrary) +class IFSelect_WorkSession(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 a Work Session It provides default, empty ShareOut and ModelCopier, which can be replaced (if required, should be done just after creation). + + """ + _IFSelect.IFSelect_WorkSession_swiginit(self, _IFSelect.new_IFSelect_WorkSession(*args)) + + def AddItem(self, *args): + r""" + + Parameters + ---------- + item: Standard_Transient + active: bool (optional, default to Standard_True) + + Return + ------- + int + + Description + ----------- + Adds an Item and returns its attached Ident. Does nothing if is already recorded (and returns its attached Ident) if True commands call to SetActive (see below) Remark: the determined Ident is used if is a Dispatch, to fill the ShareOut. + + """ + return _IFSelect.IFSelect_WorkSession_AddItem(self, *args) + + def AddNamedItem(self, *args): + r""" + + Parameters + ---------- + name: str + item: Standard_Transient + active: bool (optional, default to Standard_True) + + Return + ------- + int + + Description + ----------- + Adds an Item with an attached Name. If the Name is already known in the WorkSession, the older item losts it Returns Ident if Done, 0 else, i.e. if is null If is empty, works as AddItem (i.e. with no name) If is already known but with no attached Name, this method tries to attached a Name to it if True commands call to SetActive (see below). + + """ + return _IFSelect.IFSelect_WorkSession_AddNamedItem(self, *args) + + def AppliedDispatches(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the ordered list of dispatches stored by the ShareOut. + + """ + return _IFSelect.IFSelect_WorkSession_AppliedDispatches(self, *args) + + def BeginSentFiles(self, *args): + r""" + + Parameters + ---------- + record: bool + + Return + ------- + None + + Description + ----------- + Commands file sending to clear the list of already sent files, commands to record a new one if is True This list is managed by the ModelCopier when SendSplit is called It allows a global exploitation of the set of sent files. + + """ + return _IFSelect.IFSelect_WorkSession_BeginSentFiles(self, *args) + + def CategoryName(self, *args): + r""" + + Parameters + ---------- + ent: Standard_Transient + + Return + ------- + str + + Description + ----------- + Returns the Category Name determined for an entity it is computed by the class Category Remark: an unknown entity gives an empty string. + + """ + return _IFSelect.IFSelect_WorkSession_CategoryName(self, *args) + + def CategoryNumber(self, *args): + r""" + + Parameters + ---------- + ent: Standard_Transient + + Return + ------- + int + + Description + ----------- + Returns the Category Number determined for an entity it is computed by the class Category An unknown entity (number 0) gives a value -1. + + """ + return _IFSelect.IFSelect_WorkSession_CategoryNumber(self, *args) + + def ChangeModifierRank(self, *args): + r""" + + Parameters + ---------- + formodel: bool + before: int + after: int + + Return + ------- + bool + + Description + ----------- + Changes the Rank of a Modifier in the Session: Model Modifiers if is True, File Modifiers else the Modifier n0 is put to n0 Return True if Done, False if or out of range. + + """ + return _IFSelect.IFSelect_WorkSession_ChangeModifierRank(self, *args) + + def CheckOne(self, *args): + r""" + + Parameters + ---------- + ent: Standard_Transient + complete: bool (optional, default to Standard_True) + + Return + ------- + Interface_CheckIterator + + Description + ----------- + Returns a Check for a single entity, under the form of a CheckIterator (this gives only one form for the user) if is Null or equates the current Model, it gives the Global Check, else the Check for the given entity as for ModelCheckList. + + """ + return _IFSelect.IFSelect_WorkSession_CheckOne(self, *args) + + def ClearData(self, *args): + r""" + + Parameters + ---------- + mode: int + + Return + ------- + None + + Description + ----------- + Clears recorded data (not the items) according mode: 1: all Data: Model, Graph, CheckList, + ClearData 4 2: Graph and CheckList (they will then be recomputed later) 3: CheckList (it will be recomputed by ComputeCheck) 4: just content of SelectPointed and Counters Plus 0: does nothing but called by SetModel ClearData is virtual, hence it can be redefined to clear other data of a specialised Work Session. + + """ + return _IFSelect.IFSelect_WorkSession_ClearData(self, *args) + + def ClearFile(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Erases all stored data from the File Evaluation (i.e. ALL former naming information are lost). + + """ + return _IFSelect.IFSelect_WorkSession_ClearFile(self, *args) + + def ClearFinalModifiers(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Removes all the Modifiers active in the ModelCopier: they become inactive and they are removed from the Session. + + """ + return _IFSelect.IFSelect_WorkSession_ClearFinalModifiers(self, *args) + + def ClearItems(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Clears all the recorded Items: Selections, Dispatches, Modifiers, and Strings & IntParams, with their Idents & Names. Remark that if a Model has been loaded, it is not cleared. + + """ + return _IFSelect.IFSelect_WorkSession_ClearItems(self, *args) + + def ClearShareOut(self, *args): + r""" + + Parameters + ---------- + onlydisp: bool + + Return + ------- + None + + Description + ----------- + Clears the list of Dispatches recorded by the ShareOut if disp is True, tha's all. Else, clears also the lists of Modifiers recorded by the ShareOut. + + """ + return _IFSelect.IFSelect_WorkSession_ClearShareOut(self, *args) + + def CombineAdd(self, *args): + r""" + + Parameters + ---------- + selcomb: IFSelect_Selection + seladd: IFSelect_Selection + atnum: int (optional, default to 0) + + Return + ------- + int + + Description + ----------- + Adds an input selection to a SelectCombine (Union or Inters.). Returns new count of inputs for this SelectCombine if Done or 0 if is not kind of SelectCombine, or if or is not in the WorkSession By default, adding is done at the end of the list Else, it is an insertion to rank (useful for Un-ReDo). + + """ + return _IFSelect.IFSelect_WorkSession_CombineAdd(self, *args) + + def CombineRemove(self, *args): + r""" + + Parameters + ---------- + selcomb: IFSelect_Selection + selrem: IFSelect_Selection + + Return + ------- + bool + + Description + ----------- + Removes an input selection from a SelectCombine (Union or Intersection). Returns True if done, False if is not kind of SelectCombine or is not source of . + + """ + return _IFSelect.IFSelect_WorkSession_CombineRemove(self, *args) + + def ComputeCheck(self, *args): + r""" + + Parameters + ---------- + enforce: bool (optional, default to Standard_False) + + Return + ------- + bool + + Description + ----------- + Computes the CheckList for the Model currently loaded It can then be used for displays, queries ... Returns True if OK, False else (i.e. no Protocol set, or Model absent). If is False, works only if not already done or if a new Model has been loaded from last call. Remark: computation is enforced by every call to SetModel or RunTransformer. + + """ + return _IFSelect.IFSelect_WorkSession_ComputeCheck(self, *args) + + def ComputeCounter(self, *args): + r""" + + Parameters + ---------- + counter: IFSelect_SignCounter + forced: bool (optional, default to Standard_False) + + Return + ------- + bool + + Description + ----------- + Computes the content of a SignCounter when it is defined with a Selection, then returns True Returns False if the SignCounter is not defined with a Selection, or if its Selection Mode is inhibited to work around optimisations. + + """ + return _IFSelect.IFSelect_WorkSession_ComputeCounter(self, *args) + + def ComputeCounterFromList(self, *args): + r""" + + Parameters + ---------- + counter: IFSelect_SignCounter + list: TColStd_HSequenceOfTransient + clear: bool (optional, default to Standard_True) + + Return + ------- + bool + + Description + ----------- + Computes the content of a SignCounter from an input list If is Null, uses internal definition of the Counter: a Selection, else the whole Model (recomputation forced) If is True (D), starts from scratch Else, cumulates computations. + + """ + return _IFSelect.IFSelect_WorkSession_ComputeCounterFromList(self, *args) + + def ComputeGraph(self, *args): + r""" + + Parameters + ---------- + enforce: bool (optional, default to Standard_False) + + Return + ------- + bool + + Description + ----------- + Computes the Graph used for Selections, Displays ... If a HGraph is already set, with same model as given by method Model, does nothing. Else, computes a new Graph. If is given True, computes a new Graph anyway. Remark that a call to ClearGraph will cause ComputeGraph to really compute a new Graph Returns True if Graph is OK, False else (i.e. if no Protocol is set, or if Model is absent or empty). + + """ + return _IFSelect.IFSelect_WorkSession_ComputeGraph(self, *args) + + def DefaultFileRoot(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the defined Default File Root. It is used for Dispatches which have no specific root attached. Null Handle if not defined. + + """ + return _IFSelect.IFSelect_WorkSession_DefaultFileRoot(self, *args) + + def Dispatch(self, *args): + r""" + + Parameters + ---------- + id: int + + Return + ------- + opencascade::handle + + Description + ----------- + Returns a Dispatch, given its Ident in the Session Null result if is not suitable for a Dispatch (undefined, or defined for another kind of variable). + + """ + return _IFSelect.IFSelect_WorkSession_Dispatch(self, *args) + + def DispatchRank(self, *args): + r""" + + Parameters + ---------- + disp: IFSelect_Dispatch + + Return + ------- + int + + Description + ----------- + Returns the rank of a Dispatch in the ShareOut, or 0 if is not in the ShareOut or not in the WorkSession. + + """ + return _IFSelect.IFSelect_WorkSession_DispatchRank(self, *args) + + def DumpEntity(self, *args): + r""" + + Parameters + ---------- + ent: Standard_Transient + level: int + + Return + ------- + S: Standard_OStream + + Description + ----------- + Dumps a starting entity according to the current norm. To do this, it calls DumpEntity from WorkLibrary. is to be interpreted for each norm: see specific classes of WorkLibrary for it. Generally, 0 if for very basic (only type ...), greater values give more and more details. + + """ + return _IFSelect.IFSelect_WorkSession_DumpEntity(self, *args) + + def DumpModel(self, *args): + r""" + + Parameters + ---------- + level: int + + Return + ------- + S: Standard_OStream + + Description + ----------- + Lists the content of the Input Model (if there is one) According level: 0 -> gives only count of Entities and Roots 1 -> Lists also Roots; 2 -> Lists all Entities (by TraceType) 3 -> Performs a call to CheckList (Fails) and lists the result 4 -> as 3 but all CheckList (Fails + Warnings) 5,6,7: as 3 but resp. Count,List,Labels by Fail 8,9,10: as 4 but resp. Count,List,Labels by message. + + """ + return _IFSelect.IFSelect_WorkSession_DumpModel(self, *args) + + def DumpSelection(self, *args): + r""" + + Parameters + ---------- + sel: IFSelect_Selection + + Return + ------- + None + + Description + ----------- + Lists a Selection and its Sources (see SelectionIterator), given its rank in the list. + + """ + return _IFSelect.IFSelect_WorkSession_DumpSelection(self, *args) + + def DumpShare(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Dumps contents of the ShareOut (on 'cout'). + + """ + return _IFSelect.IFSelect_WorkSession_DumpShare(self, *args) + + def EntityLabel(self, *args): + r""" + + Parameters + ---------- + ent: Standard_Transient + + Return + ------- + opencascade::handle + + Description + ----------- + Returns the label for , as the Model does If is not in the Model or if no Model is loaded, a Null Handle is returned. + + """ + return _IFSelect.IFSelect_WorkSession_EntityLabel(self, *args) + + def EntityName(self, *args): + r""" + + Parameters + ---------- + ent: Standard_Transient + + Return + ------- + opencascade::handle + + Description + ----------- + Returns the Name of an Entity This Name is computed by the general service Name Returns a Null Handle if fails. + + """ + return _IFSelect.IFSelect_WorkSession_EntityName(self, *args) + + def ErrorHandle(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns the Error Handler status. + + """ + return _IFSelect.IFSelect_WorkSession_ErrorHandle(self, *args) + + def EvalSelection(self, *args): + r""" + + Parameters + ---------- + sel: IFSelect_Selection + + Return + ------- + Interface_EntityIterator + + Description + ----------- + Evaluates the effect of a Selection applied on the input Model Returned Result remains empty if no input Model has been set. + + """ + return _IFSelect.IFSelect_WorkSession_EvalSelection(self, *args) + + def EvalSplit(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns an Evaluation of the whole ShareOut definition: i.e. how the entities of the starting model are forecast to be sent to various files: list of packets according the dispatches, effective lists of roots for each packet (which determine the content of the corresponding file); plus evaluation of which entities are: forgotten (sent into no file), duplicated (sent into more than one file), sent into a given file. See the class PacketList for more details. + + """ + return _IFSelect.IFSelect_WorkSession_EvalSplit(self, *args) + + def EvaluateComplete(self, *args): + r""" + + Parameters + ---------- + mode: int (optional, default to 0) + + Return + ------- + None + + Description + ----------- + Displays the effect of applying the ShareOut on the input Model. = 0 (default): displays only roots for each packet, = 1: displays all entities for each packet, plus duplicated entities = 2: same as = 1, plus displays forgotten entities (which are in no packet at all). + + """ + return _IFSelect.IFSelect_WorkSession_EvaluateComplete(self, *args) + + def EvaluateDispatch(self, *args): + r""" + + Parameters + ---------- + disp: IFSelect_Dispatch + mode: int (optional, default to 0) + + Return + ------- + None + + Description + ----------- + Displays the result of applying a Dispatch on the input Model (also shows Remainder if there is) = 0 (default), displays nothing else = 1: displays also duplicated entities (because of this dispatch) = 2: displays the entities of the starting Model which are not taken by this dispatch (forgotten entities) = 3: displays both duplicated and forgotten entities Remark: EvaluateComplete displays these data evaluated for for all the dispatches, if there are several. + + """ + return _IFSelect.IFSelect_WorkSession_EvaluateDispatch(self, *args) + + def EvaluateFile(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Performs and stores a File Evaluation. The Results are a List of produced Models and a List of names (Strings), in parallel Fills LastRunCheckList. + + """ + return _IFSelect.IFSelect_WorkSession_EvaluateFile(self, *args) + + def EvaluateSelection(self, *args): + r""" + + Parameters + ---------- + sel: IFSelect_Selection + + Return + ------- + None + + Description + ----------- + Displays the list of Entities selected by a Selection (i.e. the result of EvalSelection). + + """ + return _IFSelect.IFSelect_WorkSession_EvaluateSelection(self, *args) + + def FileExtension(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the defined File Extension. Null Handle if not defined. + + """ + return _IFSelect.IFSelect_WorkSession_FileExtension(self, *args) + + def FileModel(self, *args): + r""" + + Parameters + ---------- + num: int + + Return + ------- + opencascade::handle + + Description + ----------- + Returns a Model, given its rank in the Evaluation List. + + """ + return _IFSelect.IFSelect_WorkSession_FileModel(self, *args) + + def FileName(self, *args): + r""" + + Parameters + ---------- + num: int + + Return + ------- + TCollection_AsciiString + + Description + ----------- + Returns the name of a file corresponding to a produced Model, given its rank in the Evaluation List. + + """ + return _IFSelect.IFSelect_WorkSession_FileName(self, *args) + + def FilePrefix(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the defined File Prefix. Null Handle if not defined. + + """ + return _IFSelect.IFSelect_WorkSession_FilePrefix(self, *args) + + def FileRoot(self, *args): + r""" + + Parameters + ---------- + disp: IFSelect_Dispatch + + Return + ------- + opencascade::handle + + Description + ----------- + Returns the File Root defined for a Dispatch. Null if no Root Name is defined for it (hence, no File will be produced). + + """ + return _IFSelect.IFSelect_WorkSession_FileRoot(self, *args) + + def FinalModifierIdents(self, *args): + r""" + + Parameters + ---------- + formodel: bool + + Return + ------- + opencascade::handle + + Description + ----------- + Fills a Sequence with a list of Idents, those attached to the Modifiers applied to final sending. Model Modifiers if is True, File Modifiers else This list is given in the order in which they will be applied (which takes into account the Changes to Modifier Ranks). + + """ + return _IFSelect.IFSelect_WorkSession_FinalModifierIdents(self, *args) + + def GeneralModifier(self, *args): + r""" + + Parameters + ---------- + id: int + + Return + ------- + opencascade::handle + + Description + ----------- + Returns a Modifier, given its Ident in the Session Null result if is not suitable for a Modifier (undefined, or defined for another kind of variable). + + """ + return _IFSelect.IFSelect_WorkSession_GeneralModifier(self, *args) + + def GetModeStat(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Return value of mode defining of filling selection during loading. + + """ + return _IFSelect.IFSelect_WorkSession_GetModeStat(self, *args) + + def GiveFileComplete(self, *args): + r""" + + Parameters + ---------- + file: str + + Return + ------- + str + + Description + ----------- + Completes a file name as required, with Prefix and Extension (if defined; for a non-defined item, completes nothing). + + """ + return _IFSelect.IFSelect_WorkSession_GiveFileComplete(self, *args) + + def GiveFileRoot(self, *args): + r""" + + Parameters + ---------- + file: str + + Return + ------- + str + + Description + ----------- + Extracts File Root Name from a given complete file name (uses OSD_Path). + + """ + return _IFSelect.IFSelect_WorkSession_GiveFileRoot(self, *args) + + def GiveList(self, *args): + r""" + + Parameters + ---------- + obj: Standard_Transient + + Return + ------- + opencascade::handle + + Description + ----------- + Determines a list of entities from an object: already HSequenceOfTransient: returned itself Selection: its Result of Evaluation is returned an entity of the Model: a HSequence which contains it else, an empty HSequence the Model it self: ALL its content (not only the roots). + + Parameters + ---------- + first: str + second: str (optional, default to ) + + Return + ------- + opencascade::handle + + Description + ----------- + Computes a List of entities from two alphanums, first and second, as follows: if is a Number or Label of an entity: this entity if is a list of Numbers/Labels: the list of entities if is the name of a Selection in , and not defined, the standard result of this Selection else, let's consider 'first second': this whole phrase is split by blanks, as follows (RECURSIVE CALL): - the leftest term is the final selection - the other terms define the result of the selection - and so on (the 'leftest minus one' is a selection, of which the input is given by the remaining ...). + + """ + return _IFSelect.IFSelect_WorkSession_GiveList(self, *args) + + def GiveListCombined(self, *args): + r""" + + Parameters + ---------- + l1: TColStd_HSequenceOfTransient + l2: TColStd_HSequenceOfTransient + mode: int + + Return + ------- + opencascade::handle + + Description + ----------- + Combines two lists and returns the result, according to mode: < 0: entities in AND NOT in = 0: entities in AND in > 0: entities in OR in . + + """ + return _IFSelect.IFSelect_WorkSession_GiveListCombined(self, *args) + + def GiveListFromList(self, *args): + r""" + + Parameters + ---------- + selname: str + ent: Standard_Transient + + Return + ------- + opencascade::handle + + Description + ----------- + Computes a List of entities from the model as follows being a Selection or a combination of Selections, being an entity or a list of entities (as a HSequenceOfTransient): the standard result of this selection applied to this list if is Null, the standard definition of the selection is used (which contains a default input selection) if is erroneous, a null handle is returned //! REMARK: selname is processed as of preceding GiveList. + + """ + return _IFSelect.IFSelect_WorkSession_GiveListFromList(self, *args) + + def GiveSelection(self, *args): + r""" + + Parameters + ---------- + selname: str + + Return + ------- + opencascade::handle + + Description + ----------- + Returns a Selection from a Name: - the name of a Selection: this Selection - the name of a Signature + criteria between (..): a new Selection from this Signature - an entity or a list of entities: a new SelectPointed Else, returns a Null Handle. + + """ + return _IFSelect.IFSelect_WorkSession_GiveSelection(self, *args) + + def Graph(self, *args): + r""" + Return + ------- + Interface_Graph + + Description + ----------- + Returns the Computed Graph, for Read only. + + """ + return _IFSelect.IFSelect_WorkSession_Graph(self, *args) + + def HGraph(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the Computed Graph as HGraph (Null Handle if not set). + + """ + return _IFSelect.IFSelect_WorkSession_HGraph(self, *args) + + def HasModel(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True is a Model has been set. + + """ + return _IFSelect.IFSelect_WorkSession_HasModel(self, *args) + + def HasName(self, *args): + r""" + + Parameters + ---------- + item: Standard_Transient + + Return + ------- + bool + + Description + ----------- + Returns True if an Item of the WorkSession has an attached Name. + + """ + return _IFSelect.IFSelect_WorkSession_HasName(self, *args) + + def IntParam(self, *args): + r""" + + Parameters + ---------- + id: int + + Return + ------- + opencascade::handle + + Description + ----------- + Returns an IntParam, given its Ident in the Session Null result if is not suitable for an IntParam (undefined, or defined for another kind of variable). + + """ + return _IFSelect.IFSelect_WorkSession_IntParam(self, *args) + + def IntValue(self, *args): + r""" + + Parameters + ---------- + it: IFSelect_IntParam + + Return + ------- + int + + Description + ----------- + Returns Integer Value of an IntParam. + + """ + return _IFSelect.IFSelect_WorkSession_IntValue(self, *args) + + def IsLoaded(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True if a Model is defined and really loaded (not empty), a Protocol is set and a Graph has been computed. In this case, the WorkSession can start to work. + + """ + return _IFSelect.IFSelect_WorkSession_IsLoaded(self, *args) + + def IsReversedSelectExtract(self, *args): + r""" + + Parameters + ---------- + sel: IFSelect_Selection + + Return + ------- + bool + + Description + ----------- + Returns True if a Reversed SelectExtract, False else. + + """ + return _IFSelect.IFSelect_WorkSession_IsReversedSelectExtract(self, *args) + + def Item(self, *args): + r""" + + Parameters + ---------- + id: int + + Return + ------- + opencascade::handle + + Description + ----------- + Returns an Item, given its Ident. Returns a Null Handle if no Item corresponds to this Ident. + + """ + return _IFSelect.IFSelect_WorkSession_Item(self, *args) + + def ItemIdent(self, *args): + r""" + + Parameters + ---------- + item: Standard_Transient + + Return + ------- + int + + Description + ----------- + Returns the Ident attached to an Item in the WorkSession, or Zero if it is unknown. + + """ + return _IFSelect.IFSelect_WorkSession_ItemIdent(self, *args) + + def ItemIdents(self, *args): + r""" + + Parameters + ---------- + type: Standard_Type + + Return + ------- + opencascade::handle + + Description + ----------- + Fills a Sequence with the List of Idents attached to the Items of which Type complies with (IsKind) (alphabetic order) Remark: = TYPE(Standard_Transient) gives all the Idents which are suitable in the WorkSession. + + """ + return _IFSelect.IFSelect_WorkSession_ItemIdents(self, *args) + + def ItemLabel(self, *args): + r""" + + Parameters + ---------- + id: int + + Return + ------- + opencascade::handle + + Description + ----------- + Returns a Label which illustrates the content of an Item, given its Ident. This Label is: - for a Text Parameter, 'Text:' - for an Integer Parameter, 'Integer:' - for a Selection, a Dispatch or a Modifier, its Label (see these classes) - for any other kind of Variable, its cdl type. + + """ + return _IFSelect.IFSelect_WorkSession_ItemLabel(self, *args) + + def ItemNames(self, *args): + r""" + + Parameters + ---------- + type: Standard_Type + + Return + ------- + opencascade::handle + + Description + ----------- + Fills a Sequence with the list of the Names attached to Items of which Type complies with (IsKind) (alphabetic order) Remark: = TYPE(Standard_Transient) gives all the Names. + + """ + return _IFSelect.IFSelect_WorkSession_ItemNames(self, *args) + + def ItemNamesForLabel(self, *args): + r""" + + Parameters + ---------- + label: str + + Return + ------- + opencascade::handle + + Description + ----------- + Fills a Sequence with the NAMES of the control items, of which the label matches

* This method nullifies the argument node if its member myScene differs * from that one of the current instance. */. + + """ + return _VrmlData.VrmlData_Node_Clone(self, *args) + + @staticmethod + def GlobalIndent(*args): + r""" + Return + ------- + int + + Description + ----------- + /** * Define the common Indent in spaces, for writing all nodes. */. + + """ + return _VrmlData.VrmlData_Node_GlobalIndent(*args) + + def IsDefault(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + /** * Returns True if the node is default, then it would not be written. */. + + """ + return _VrmlData.VrmlData_Node_IsDefault(self, *args) + + def Name(self, *args): + r""" + Return + ------- + char * + + Description + ----------- + /** * Query the name */. + + """ + return _VrmlData.VrmlData_Node_Name(self, *args) + + @staticmethod + def OK(*args): + r""" + + Parameters + ---------- + theStat: VrmlData_ErrorStatus + + Return + ------- + bool + + Description + ----------- + No available documentation. + + Parameters + ---------- + theStat: VrmlData_ErrorStatus + + Return + ------- + outStat: VrmlData_ErrorStatus + + Description + ----------- + No available documentation. + + """ + return _VrmlData.VrmlData_Node_OK(*args) + + def Read(self, *args): + r""" + + Parameters + ---------- + theBuffer: VrmlData_InBuffer + + Return + ------- + VrmlData_ErrorStatus + + Description + ----------- + /** * Read the Node from input stream. */. + + """ + return _VrmlData.VrmlData_Node_Read(self, *args) + + @staticmethod + def ReadBoolean(*args): + r""" + + Parameters + ---------- + theBuffer: VrmlData_InBuffer + + Return + ------- + theResult: bool + + Description + ----------- + /** * Read one boolean value (True or False). */. + + """ + return _VrmlData.VrmlData_Node_ReadBoolean(*args) + + @staticmethod + def ReadInteger(*args): + r""" + + Parameters + ---------- + theBuffer: VrmlData_InBuffer + theResult: long + + Return + ------- + VrmlData_ErrorStatus + + Description + ----------- + /** * Read one integer value. */. + + """ + return _VrmlData.VrmlData_Node_ReadInteger(*args) + + @staticmethod + def ReadMultiString(*args): + r""" + + Parameters + ---------- + theBuffer: VrmlData_InBuffer + theRes: NCollection_List + + Return + ------- + VrmlData_ErrorStatus + + Description + ----------- + /** * Read one quoted string, the quotes are removed. */. + + """ + return _VrmlData.VrmlData_Node_ReadMultiString(*args) + + def ReadNode(self, *args): + r""" + + Parameters + ---------- + theBuffer: VrmlData_InBuffer + theNode: VrmlData_Node + Type: Standard_Type (optional, default to NULL) + + Return + ------- + VrmlData_ErrorStatus + + Description + ----------- + /** * Read a complete node definition from VRML stream * + Parameter theBuffer * Buffer receiving the input data. * + Parameter theNode * [out] Node restored from the buffer data * + Parameter Type * Node type to be checked. If it is NULL(default) no type checking is done. * Otherwise the created node is matched and an error is returned if * no match detected. */. + + """ + return _VrmlData.VrmlData_Node_ReadNode(self, *args) + + @staticmethod + def ReadString(*args): + r""" + + Parameters + ---------- + theBuffer: VrmlData_InBuffer + theRes: str + + Return + ------- + VrmlData_ErrorStatus + + Description + ----------- + /** * Read one quoted string, the quotes are removed. */. + + """ + return _VrmlData.VrmlData_Node_ReadString(*args) + + def Scene(self, *args): + r""" + Return + ------- + VrmlData_Scene + + Description + ----------- + /** * Query the Scene that contains this Node */. + + """ + return _VrmlData.VrmlData_Node_Scene(self, *args) + + def Write(self, *args): + r""" + + Parameters + ---------- + thePrefix: char * + + Return + ------- + VrmlData_ErrorStatus + + Description + ----------- + /** * Write the Node to output stream. */. + + """ + return _VrmlData.VrmlData_Node_Write(self, *args) + + def WriteClosing(self, *args): + r""" + Return + ------- + VrmlData_ErrorStatus + + Description + ----------- + /** * Write the closing brace in the end of a node output. */. + + """ + return _VrmlData.VrmlData_Node_WriteClosing(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_VrmlData_Node_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _VrmlData.delete_VrmlData_Node + +# Register VrmlData_Node in _VrmlData: +_VrmlData.VrmlData_Node_swigregister(VrmlData_Node) +class VrmlData_Scene(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 + ---------- + &: NCollection_IncAllocator (optional, default to 0) + + Return + ------- + None + + Description + ----------- + /** * Constructor. */. + + """ + _VrmlData.VrmlData_Scene_swiginit(self, _VrmlData.new_VrmlData_Scene(*args)) + + def AddNode(self, *args): + r""" + + Parameters + ---------- + theN: VrmlData_Node + isTopLevel: bool (optional, default to Standard_True) + + Return + ------- + opencascade::handle + + Description + ----------- + /** * Add a Node. If theN belongs to another Scene, it is cloned. *

VrmlData_WorldInfo cannot be added, in this case the method * returns a NULL handle. */. + + """ + return _VrmlData.VrmlData_Scene_AddNode(self, *args) + + def Allocator(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + /** * Allocator used by all nodes contained in the Scene. */. + + """ + return _VrmlData.VrmlData_Scene_Allocator(self, *args) + + def Dump(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + theStream: Standard_OStream + + Description + ----------- + /** * Diagnostic dump of the contents */. + + """ + return _VrmlData.VrmlData_Scene_Dump(self, *args) + + def FindNode(self, *args): + r""" + + Parameters + ---------- + theName: char * + theType: Standard_Type (optional, default to 0) + + Return + ------- + opencascade::handle + + Description + ----------- + /** * Find a node by its name. * + Parameter theName * Name of the node to find. * + Parameter theType * Type to match. If this value is NULL, the first found node with the * given name is returned. If theType is given, only the node that has * that type is returned. */. + + Parameters + ---------- + theName: char * + theLocation: gp_Trsf + + Return + ------- + opencascade::handle + + Description + ----------- + /** * Find a node by its name. * + Parameter theName * Name of the node to search for. * + Parameter theLocation * Location of the found node with respect to the whole VRML shape. */. + + """ + return _VrmlData.VrmlData_Scene_FindNode(self, *args) + + def GetIterator(self, *args): + r""" + Return + ------- + Iterator + + Description + ----------- + /** * Iterator of Nodes */. + + """ + return _VrmlData.VrmlData_Scene_GetIterator(self, *args) + + def GetLineError(self, *args): + r""" + Return + ------- + int + + Description + ----------- + /** * Query the line where the error occurred (if the status is not OK) */. + + """ + return _VrmlData.VrmlData_Scene_GetLineError(self, *args) + + def GetShape(self, *args): + r""" + + Parameters + ---------- + M: VrmlData_DataMapOfShapeAppearance + + Return + ------- + TopoDS_Shape + + Description + ----------- + /** * Convert the scene to a Shape, with the information on materials defined * for each sub-shape. This method should be used instead of TopoDS_Shape * explicit conversion operator when you need to retrieve the material * aspect for each face or edge in the returned topological object. * + Parameter M * Data Map that binds an Appearance instance to each created TFace or * TEdge if the Appearance node is defined in VRML scene for that geometry. * + Return: * TopoDS_Shape (Compound) holding all the scene, similar to the result of * explicit TopoDS_Shape conversion operator. */. + + """ + return _VrmlData.VrmlData_Scene_GetShape(self, *args) + + def IsDummyWrite(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + /** * Query if the current write operation is dummy, i.e., for the purpose of * collecting information before the real write is commenced. */. + + """ + return _VrmlData.VrmlData_Scene_IsDummyWrite(self, *args) + + def NamedNodesIterator(self, *args): + r""" + Return + ------- + VrmlData_MapOfNode::Iterator + + Description + ----------- + /** * Get the iterator of named nodes. */. + + """ + return _VrmlData.VrmlData_Scene_NamedNodesIterator(self, *args) + + def ReadArrIndex(self, *args): + r""" + + Parameters + ---------- + theBuffer: VrmlData_InBuffer + theArr: int * * + theNBl: Standard_Size + + Return + ------- + VrmlData_ErrorStatus + + Description + ----------- + /** * Read an array of integer indices, for IndexedfaceSet and IndexedLineSet. */. + + """ + return _VrmlData.VrmlData_Scene_ReadArrIndex(self, *args) + + @staticmethod + def ReadLine(*args): + r""" + + Parameters + ---------- + theBuffer: VrmlData_InBuffer + + Return + ------- + VrmlData_ErrorStatus + + Description + ----------- + /** * Read a VRML line. Empty lines and comments are skipped. * The processing starts here from theBuffer.LinePtr; if there is at least * one non-empty character (neither space nor comment), this line is used * without reading the next one. * + Parameter theLine * Buffer receiving the input line * + Parameter theInput * Input stream * + Parameter theLen * Length of the input buffer (maximal line length) */. + + """ + return _VrmlData.VrmlData_Scene_ReadLine(*args) + + def ReadReal(self, *args): + r""" + + Parameters + ---------- + theBuffer: VrmlData_InBuffer + isApplyScale: bool + isOnlyPositive: bool + + Return + ------- + theResult: float + + Description + ----------- + /** * Read one real value. */. + + """ + return _VrmlData.VrmlData_Scene_ReadReal(self, *args) + + @staticmethod + def ReadWord(*args): + r""" + + Parameters + ---------- + theBuffer: VrmlData_InBuffer + theStr: str + + Return + ------- + VrmlData_ErrorStatus + + Description + ----------- + /** * Read a single word from the input stream, delimited by whitespace. */. + + """ + return _VrmlData.VrmlData_Scene_ReadWord(*args) + + def ReadXY(self, *args): + r""" + + Parameters + ---------- + theBuffer: VrmlData_InBuffer + theXYZ: gp_XY + isApplyScale: bool + isOnlyPositive: bool + + Return + ------- + VrmlData_ErrorStatus + + Description + ----------- + /** * Read one doublet of real values. */. + + """ + return _VrmlData.VrmlData_Scene_ReadXY(self, *args) + + def ReadXYZ(self, *args): + r""" + + Parameters + ---------- + theBuffer: VrmlData_InBuffer + theXYZ: gp_XYZ + isApplyScale: bool + isOnlyPositive: bool + + Return + ------- + VrmlData_ErrorStatus + + Description + ----------- + /** * Read one triplet of real values. */. + + """ + return _VrmlData.VrmlData_Scene_ReadXYZ(self, *args) + + def SetIndent(self, *args): + r""" + + Parameters + ---------- + nSpc: int + + Return + ------- + None + + Description + ----------- + /** * Store the indentation for VRML output. * + Parameter nSpc * number of spaces to insert at every indentation level */. + + """ + return _VrmlData.VrmlData_Scene_SetIndent(self, *args) + + def SetLinearScale(self, *args): + r""" + + Parameters + ---------- + theScale: float + + Return + ------- + None + + Description + ----------- + /** * Set the scale factor that would be further used in methods * ReadReal, ReadXYZ and ReadXY. All coordinates, distances and sized are * multiplied by this factor during reading the data. */. + + """ + return _VrmlData.VrmlData_Scene_SetLinearScale(self, *args) + + def SetVrmlDir(self, *args): + r""" + + Parameters + ---------- + &: str + + Return + ------- + None + + Description + ----------- + /** * Add the given directory path to the list of VRML file search directories. * This method forms the list of directories ordered according to the * sequence of this method calls. When an Inline node is found, the URLs * in that node are matched with these directories. * The last (implicit) search directory is the current process directory * ('.'). It takes effect if the list is empty or if there is no match with * existing directories. */. + + """ + return _VrmlData.VrmlData_Scene_SetVrmlDir(self, *args) + + def Status(self, *args): + r""" + Return + ------- + VrmlData_ErrorStatus + + Description + ----------- + /** * Query the status of the previous operation. * Normally it should be equal to VrmlData_StatusOK (no error). */. + + """ + return _VrmlData.VrmlData_Scene_Status(self, *args) + + def VrmlDirIterator(self, *args): + r""" + Return + ------- + NCollection_List::Iterator + + Description + ----------- + /** * Returns the directory iterator, to check the presence of requested VRML * file in each iterated directory. */. + + """ + return _VrmlData.VrmlData_Scene_VrmlDirIterator(self, *args) + + def WorldInfo(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + /** * Query the WorldInfo member. */. + + """ + return _VrmlData.VrmlData_Scene_WorldInfo(self, *args) + + def WriteArrIndex(self, *args): + r""" + + Parameters + ---------- + thePrefix: char * + theArr: int * * + theNbBl: Standard_Size + + Return + ------- + VrmlData_ErrorStatus + + Description + ----------- + /** * Write an array of integer indices, for IndexedFaceSet and IndexedLineSet. */. + + """ + return _VrmlData.VrmlData_Scene_WriteArrIndex(self, *args) + + def WriteLine(self, *args): + r""" + + Parameters + ---------- + theLine0: char * + theLine1: char * (optional, default to 0) + theIndent: int (optional, default to 0) + + Return + ------- + VrmlData_ErrorStatus + + Description + ----------- + /** * Write a string to the output stream respecting the indentation. The string * can be defined as two substrings that will be separated by a space. * Each of the substrings can be NULL, then it is ignored. If both * are NULL, then a single newline is output (without indent). * + Parameter theLine0 * The first part of string to output * + Parameter theLine1 * The second part of string to output * + Parameter theIndent * - 0 value ignored. * - negative decreases the current indent and then outputs. * - positive outputs and then increases the current indent. * + Return: * Error status of the stream, or a special error if myOutput == NULL. */. + + """ + return _VrmlData.VrmlData_Scene_WriteLine(self, *args) + + def WriteNode(self, *args): + r""" + + Parameters + ---------- + thePrefix: char * + &: VrmlData_Node + + Return + ------- + VrmlData_ErrorStatus + + Description + ----------- + /** * Write the given node to output stream 'myOutput'. */. + + """ + return _VrmlData.VrmlData_Scene_WriteNode(self, *args) + + def WriteXYZ(self, *args): + r""" + + Parameters + ---------- + theXYZ: gp_XYZ + isScale: bool + thePostfix: char * (optional, default to 0) + + Return + ------- + VrmlData_ErrorStatus + + Description + ----------- + /** * Write a triplet of real values on a separate line. * + Parameter theXYZ * The value to be output. * + Parameter isScale * If True, then each component is divided by myLinearScale. * + Parameter thePostfix * Optional string that is added before the end of the line. */. + + """ + return _VrmlData.VrmlData_Scene_WriteXYZ(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _VrmlData.delete_VrmlData_Scene + +# Register VrmlData_Scene in _VrmlData: +_VrmlData.VrmlData_Scene_swigregister(VrmlData_Scene) +class VrmlData_ShapeConvert(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 + ---------- + theScene: VrmlData_Scene + theScale: float (optional, default to 1) + + Return + ------- + None + + Description + ----------- + /** * Constructor. * + Parameter theScene * Scene receiving all Vrml data. * + Parameter theScale * Scale factor, considering that VRML standard specifies coordinates in * meters. So if your data are in mm, you should provide theScale=0.001 */. + + """ + _VrmlData.VrmlData_ShapeConvert_swiginit(self, _VrmlData.new_VrmlData_ShapeConvert(*args)) + + def AddShape(self, *args): + r""" + + Parameters + ---------- + theShape: TopoDS_Shape + theName: char * (optional, default to 0) + + Return + ------- + None + + Description + ----------- + /** * Add one shape to the internal list, may be called several times with * different shapes. */. + + """ + return _VrmlData.VrmlData_ShapeConvert_AddShape(self, *args) + + def Convert(self, *args): + r""" + + Parameters + ---------- + theExtractFaces: bool + theExtractEdges: bool + theDeflection: float (optional, default to 0.01) + theDeflAngle: float (optional, default to 20*M_PI/180) + + Return + ------- + None + + Description + ----------- + /** * Convert all accumulated shapes and store them in myScene. * The internal data structures are cleared in the end of conversion. * + Parameter theExtractFaces * If True, converter extracst faces from the shapes. * + Parameter theExtractEdges * If True, converter extracts edges from the shapes. * + Parameter theDeflection * Deflection for tessellation of geometrical lines/surfaces. Existing mesh * is used if its deflection is smaller than the one given by this * parameter. * + Parameter theDeflAngle * Angular deflection for tessellation of geometrical lines. */. + + """ + return _VrmlData.VrmlData_ShapeConvert_Convert(self, *args) + + def ConvertDocument(self, *args): + r""" + + Parameters + ---------- + theDoc: TDocStd_Document + + Return + ------- + None + + Description + ----------- + /** * Add all shapes start from given document with colors and names to the internal structure */. + + """ + return _VrmlData.VrmlData_ShapeConvert_ConvertDocument(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _VrmlData.delete_VrmlData_ShapeConvert + +# Register VrmlData_ShapeConvert in _VrmlData: +_VrmlData.VrmlData_ShapeConvert_swigregister(VrmlData_ShapeConvert) +class VrmlData_Appearance(VrmlData_Node): + 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 + ----------- + /** * Empty constructor */. + + Parameters + ---------- + theScene: VrmlData_Scene + theName: char * + + Return + ------- + None + + Description + ----------- + /** * Constructor */. + + """ + _VrmlData.VrmlData_Appearance_swiginit(self, _VrmlData.new_VrmlData_Appearance(*args)) + + def Material(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + /** * Query the Material */. + + """ + return _VrmlData.VrmlData_Appearance_Material(self, *args) + + def SetMaterial(self, *args): + r""" + + Parameters + ---------- + theMat: VrmlData_Material + + Return + ------- + None + + Description + ----------- + /** * Set the Material */. + + """ + return _VrmlData.VrmlData_Appearance_SetMaterial(self, *args) + + def SetTexture(self, *args): + r""" + + Parameters + ---------- + theTexture: VrmlData_Texture + + Return + ------- + None + + Description + ----------- + /** * Set the Texture */. + + """ + return _VrmlData.VrmlData_Appearance_SetTexture(self, *args) + + def SetTextureTransform(self, *args): + r""" + + Parameters + ---------- + theTT: VrmlData_TextureTransform + + Return + ------- + None + + Description + ----------- + /** * Set the Texture Transform */. + + """ + return _VrmlData.VrmlData_Appearance_SetTextureTransform(self, *args) + + def Texture(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + /** * Query the Texture */. + + """ + return _VrmlData.VrmlData_Appearance_Texture(self, *args) + + def TextureTransform(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + /** * Query the TextureTransform */. + + """ + return _VrmlData.VrmlData_Appearance_TextureTransform(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_VrmlData_Appearance_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _VrmlData.delete_VrmlData_Appearance + +# Register VrmlData_Appearance in _VrmlData: +_VrmlData.VrmlData_Appearance_swigregister(VrmlData_Appearance) +class VrmlData_Geometry(VrmlData_Node): + 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 TShape(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + /** * Query the shape. This method checks the flag myIsModified; if True it * should rebuild the shape presentation. */. + + """ + return _VrmlData.VrmlData_Geometry_TShape(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_VrmlData_Geometry_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _VrmlData.delete_VrmlData_Geometry + +# Register VrmlData_Geometry in _VrmlData: +_VrmlData.VrmlData_Geometry_swigregister(VrmlData_Geometry) +class VrmlData_Group(VrmlData_Node): + 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 + ---------- + isTransform: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + /** * Empty constructor. * + Parameter isTransform * True if the group of type Transform is defined * + Parameter theAlloc * Allocator used for the list of children */. + + Parameters + ---------- + theScene: VrmlData_Scene + theName: char * + isTransform: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + /** * Constructor. * + Parameter theName * Name of the Group node * + Parameter isTransform * True if the group of type Transform is defined * + Parameter theAlloc * Allocator used for the list of children */. + + """ + _VrmlData.VrmlData_Group_swiginit(self, _VrmlData.new_VrmlData_Group(*args)) + + def AddNode(self, *args): + r""" + + Parameters + ---------- + theNode: VrmlData_Node + + Return + ------- + opencascade::handle + + Description + ----------- + /** * Add one node to the Group. */. + + """ + return _VrmlData.VrmlData_Group_AddNode(self, *args) + + def Box(self, *args): + r""" + Return + ------- + Bnd_B3f + + Description + ----------- + /** * Query the bounding box. */. + + """ + return _VrmlData.VrmlData_Group_Box(self, *args) + + def FindNode(self, *args): + r""" + + Parameters + ---------- + theName: char * + theLocation: gp_Trsf + + Return + ------- + opencascade::handle + + Description + ----------- + /** * Find a node by its name, inside this Group * + Parameter theName * Name of the node to search for. * + Parameter theLocation * Location of the found node with respect to this Group. */. + + """ + return _VrmlData.VrmlData_Group_FindNode(self, *args) + + def GetTransform(self, *args): + r""" + Return + ------- + gp_Trsf + + Description + ----------- + /** * Query the transform value. * For group without transformation this always returns Identity */. + + """ + return _VrmlData.VrmlData_Group_GetTransform(self, *args) + + def IsTransform(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + /** * Query if the node is Transform type. */. + + """ + return _VrmlData.VrmlData_Group_IsTransform(self, *args) + + def NodeIterator(self, *args): + r""" + Return + ------- + Iterator + + Description + ----------- + /** * Create iterator on nodes belonging to the Group. */. + + """ + return _VrmlData.VrmlData_Group_NodeIterator(self, *args) + + def RemoveNode(self, *args): + r""" + + Parameters + ---------- + theNode: VrmlData_Node + + Return + ------- + bool + + Description + ----------- + /** * Remove one node from the Group. * + Return: * True if the node was located and removed, False if none removed. */. + + """ + return _VrmlData.VrmlData_Group_RemoveNode(self, *args) + + def SetBox(self, *args): + r""" + + Parameters + ---------- + theBox: Bnd_B3f + + Return + ------- + None + + Description + ----------- + /** * Set the bounding box. */. + + """ + return _VrmlData.VrmlData_Group_SetBox(self, *args) + + def SetTransform(self, *args): + r""" + + Parameters + ---------- + theTrsf: gp_Trsf + + Return + ------- + bool + + Description + ----------- + /** * Set the transformation. Returns True if the group is Transform type, * otherwise do nothing and return False. */. + + """ + return _VrmlData.VrmlData_Group_SetTransform(self, *args) + + def Shape(self, *args): + r""" + + Parameters + ---------- + theShape: TopoDS_Shape + pMapApp: VrmlData_DataMapOfShapeAppearance * + + Return + ------- + None + + Description + ----------- + /** * Get the shape representing the group geometry. */. + + """ + return _VrmlData.VrmlData_Group_Shape(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_VrmlData_Group_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _VrmlData.delete_VrmlData_Group + +# Register VrmlData_Group in _VrmlData: +_VrmlData.VrmlData_Group_swigregister(VrmlData_Group) +class VrmlData_Material(VrmlData_Node): + 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 + ----------- + /** * Empty constructor */. + + Parameters + ---------- + theScene: VrmlData_Scene + theName: char * + theAmbientIntensity: float (optional, default to -1) + theShininess: float (optional, default to -1) + theTransparency: float (optional, default to -1) + + Return + ------- + None + + Description + ----------- + /** * Constructor */. + + """ + _VrmlData.VrmlData_Material_swiginit(self, _VrmlData.new_VrmlData_Material(*args)) + + def AmbientColor(self, *args): + r""" + Return + ------- + Quantity_Color + + Description + ----------- + /** * Query the Ambient color */. + + """ + return _VrmlData.VrmlData_Material_AmbientColor(self, *args) + + def AmbientIntensity(self, *args): + r""" + Return + ------- + float + + Description + ----------- + /** * Query the Ambient Intensity value */. + + """ + return _VrmlData.VrmlData_Material_AmbientIntensity(self, *args) + + def DiffuseColor(self, *args): + r""" + Return + ------- + Quantity_Color + + Description + ----------- + /** * Query the Diffuse color */. + + """ + return _VrmlData.VrmlData_Material_DiffuseColor(self, *args) + + def EmissiveColor(self, *args): + r""" + Return + ------- + Quantity_Color + + Description + ----------- + /** * Query the Emissive color */. + + """ + return _VrmlData.VrmlData_Material_EmissiveColor(self, *args) + + def SetAmbientColor(self, *args): + r""" + + Parameters + ---------- + theColor: Quantity_Color + + Return + ------- + None + + Description + ----------- + /** * Query the Ambient color */. + + """ + return _VrmlData.VrmlData_Material_SetAmbientColor(self, *args) + + def SetAmbientIntensity(self, *args): + r""" + + Parameters + ---------- + theAmbientIntensity: float + + Return + ------- + None + + Description + ----------- + /** * Set the Ambient Intensity value */. + + """ + return _VrmlData.VrmlData_Material_SetAmbientIntensity(self, *args) + + def SetDiffuseColor(self, *args): + r""" + + Parameters + ---------- + theColor: Quantity_Color + + Return + ------- + None + + Description + ----------- + /** * Query the Diffuse color */. + + """ + return _VrmlData.VrmlData_Material_SetDiffuseColor(self, *args) + + def SetEmissiveColor(self, *args): + r""" + + Parameters + ---------- + theColor: Quantity_Color + + Return + ------- + None + + Description + ----------- + /** * Query the Emissive color */. + + """ + return _VrmlData.VrmlData_Material_SetEmissiveColor(self, *args) + + def SetShininess(self, *args): + r""" + + Parameters + ---------- + theShininess: float + + Return + ------- + None + + Description + ----------- + /** * Set the Shininess value */. + + """ + return _VrmlData.VrmlData_Material_SetShininess(self, *args) + + def SetSpecularColor(self, *args): + r""" + + Parameters + ---------- + theColor: Quantity_Color + + Return + ------- + None + + Description + ----------- + /** * Query the Specular color */. + + """ + return _VrmlData.VrmlData_Material_SetSpecularColor(self, *args) + + def SetTransparency(self, *args): + r""" + + Parameters + ---------- + theTransparency: float + + Return + ------- + None + + Description + ----------- + /** * Set the Transparency value */. + + """ + return _VrmlData.VrmlData_Material_SetTransparency(self, *args) + + def Shininess(self, *args): + r""" + Return + ------- + float + + Description + ----------- + /** * Query the Shininess value */. + + """ + return _VrmlData.VrmlData_Material_Shininess(self, *args) + + def SpecularColor(self, *args): + r""" + Return + ------- + Quantity_Color + + Description + ----------- + /** * Query the Specular color */. + + """ + return _VrmlData.VrmlData_Material_SpecularColor(self, *args) + + def Transparency(self, *args): + r""" + Return + ------- + float + + Description + ----------- + /** * Query the Transparency value */. + + """ + return _VrmlData.VrmlData_Material_Transparency(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_VrmlData_Material_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _VrmlData.delete_VrmlData_Material + +# Register VrmlData_Material in _VrmlData: +_VrmlData.VrmlData_Material_swigregister(VrmlData_Material) +class VrmlData_ShapeNode(VrmlData_Node): + 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 + ----------- + /** * Empty constructor */. + + Parameters + ---------- + theScene: VrmlData_Scene + theName: char * + + Return + ------- + None + + Description + ----------- + /** * Constructor */. + + """ + _VrmlData.VrmlData_ShapeNode_swiginit(self, _VrmlData.new_VrmlData_ShapeNode(*args)) + + def Appearance(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + /** * Query the Appearance. */. + + """ + return _VrmlData.VrmlData_ShapeNode_Appearance(self, *args) + + def Geometry(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + /** * Query the Geometry. */. + + """ + return _VrmlData.VrmlData_ShapeNode_Geometry(self, *args) + + def SetAppearance(self, *args): + r""" + + Parameters + ---------- + theAppear: VrmlData_Appearance + + Return + ------- + None + + Description + ----------- + /** * Set the Appearance */. + + """ + return _VrmlData.VrmlData_ShapeNode_SetAppearance(self, *args) + + def SetGeometry(self, *args): + r""" + + Parameters + ---------- + theGeometry: VrmlData_Geometry + + Return + ------- + None + + Description + ----------- + /** * Set the Geometry */. + + """ + return _VrmlData.VrmlData_ShapeNode_SetGeometry(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_VrmlData_ShapeNode_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _VrmlData.delete_VrmlData_ShapeNode + +# Register VrmlData_ShapeNode in _VrmlData: +_VrmlData.VrmlData_ShapeNode_swigregister(VrmlData_ShapeNode) +class VrmlData_TextureCoordinate(VrmlData_Node): + 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 + ----------- + /** * Empty constructor */. + + Parameters + ---------- + theScene: VrmlData_Scene + theName: char * + nPoints: size_t (optional, default to 0) + arrPoints: gp_XY * (optional, default to 0) + + Return + ------- + None + + Description + ----------- + /** * Constructor */. + + """ + _VrmlData.VrmlData_TextureCoordinate_swiginit(self, _VrmlData.new_VrmlData_TextureCoordinate(*args)) + + def AllocateValues(self, *args): + r""" + + Parameters + ---------- + theLength: Standard_Size + + Return + ------- + bool + + Description + ----------- + /** * Create a data array and assign the field myArray. * + Return: * True if allocation was successful. */. + + """ + return _VrmlData.VrmlData_TextureCoordinate_AllocateValues(self, *args) + + def Length(self, *args): + r""" + Return + ------- + size_t + + Description + ----------- + /** * Query the number of points */. + + """ + return _VrmlData.VrmlData_TextureCoordinate_Length(self, *args) + + def Points(self, *args): + r""" + Return + ------- + gp_XY * + + Description + ----------- + /** * Query the points */. + + """ + return _VrmlData.VrmlData_TextureCoordinate_Points(self, *args) + + def SetPoints(self, *args): + r""" + + Parameters + ---------- + nPoints: size_t + arrPoints: gp_XY * + + Return + ------- + None + + Description + ----------- + /** * Set the points array */. + + """ + return _VrmlData.VrmlData_TextureCoordinate_SetPoints(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_VrmlData_TextureCoordinate_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _VrmlData.delete_VrmlData_TextureCoordinate + +# Register VrmlData_TextureCoordinate in _VrmlData: +_VrmlData.VrmlData_TextureCoordinate_swigregister(VrmlData_TextureCoordinate) +class VrmlData_UnknownNode(VrmlData_Node): + 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 + ----------- + /** * Empty Constructor. */. + + Parameters + ---------- + theScene: VrmlData_Scene + theName: char * (optional, default to 0) + theTitle: char * (optional, default to 0) + + Return + ------- + None + + Description + ----------- + /** * Constructor. */. + + """ + _VrmlData.VrmlData_UnknownNode_swiginit(self, _VrmlData.new_VrmlData_UnknownNode(*args)) + + def GetTitle(self, *args): + r""" + Return + ------- + TCollection_AsciiString + + Description + ----------- + /** * Query the title of the unknown node. */. + + """ + return _VrmlData.VrmlData_UnknownNode_GetTitle(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_VrmlData_UnknownNode_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _VrmlData.delete_VrmlData_UnknownNode + +# Register VrmlData_UnknownNode in _VrmlData: +_VrmlData.VrmlData_UnknownNode_swigregister(VrmlData_UnknownNode) +class VrmlData_WorldInfo(VrmlData_Node): + 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 + ----------- + /** * Empty Constructor. */. + + Parameters + ---------- + theScene: VrmlData_Scene + theName: char * (optional, default to 0) + theTitle: char * (optional, default to 0) + + Return + ------- + None + + Description + ----------- + /** * Constructor. */. + + """ + _VrmlData.VrmlData_WorldInfo_swiginit(self, _VrmlData.new_VrmlData_WorldInfo(*args)) + + def AddInfo(self, *args): + r""" + + Parameters + ---------- + theString: char * + + Return + ------- + None + + Description + ----------- + /** * Add a string to the list of info strings. */. + + """ + return _VrmlData.VrmlData_WorldInfo_AddInfo(self, *args) + + def InfoIterator(self, *args): + r""" + Return + ------- + NCollection_List< char * >::Iterator + + Description + ----------- + /** * Return the iterator of Info strings. */. + + """ + return _VrmlData.VrmlData_WorldInfo_InfoIterator(self, *args) + + def SetTitle(self, *args): + r""" + + Parameters + ---------- + theString: char * + + Return + ------- + None + + Description + ----------- + /** * Set or modify the title. */. + + """ + return _VrmlData.VrmlData_WorldInfo_SetTitle(self, *args) + + def Title(self, *args): + r""" + Return + ------- + char * + + Description + ----------- + /** * Query the title string. */. + + """ + return _VrmlData.VrmlData_WorldInfo_Title(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_VrmlData_WorldInfo_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _VrmlData.delete_VrmlData_WorldInfo + +# Register VrmlData_WorldInfo in _VrmlData: +_VrmlData.VrmlData_WorldInfo_swigregister(VrmlData_WorldInfo) +class VrmlData_Box(VrmlData_Geometry): + 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 + ----------- + /** * Empty constructor */. + + Parameters + ---------- + theScene: VrmlData_Scene + theName: char * + sizeX: float (optional, default to 2) + sizeY: float (optional, default to 2) + sizeZ: float (optional, default to 2) + + Return + ------- + None + + Description + ----------- + /** * Constructor */. + + """ + _VrmlData.VrmlData_Box_swiginit(self, _VrmlData.new_VrmlData_Box(*args)) + + def SetSize(self, *args): + r""" + + Parameters + ---------- + theSize: gp_XYZ + + Return + ------- + None + + Description + ----------- + /** * Set the Box Size */. + + """ + return _VrmlData.VrmlData_Box_SetSize(self, *args) + + def Size(self, *args): + r""" + Return + ------- + gp_XYZ + + Description + ----------- + /** * Query the Box size */. + + """ + return _VrmlData.VrmlData_Box_Size(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_VrmlData_Box_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _VrmlData.delete_VrmlData_Box + +# Register VrmlData_Box in _VrmlData: +_VrmlData.VrmlData_Box_swigregister(VrmlData_Box) +class VrmlData_Color(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 + ----------- + /** * Empty constructor. */. + + Parameters + ---------- + theScene: VrmlData_Scene + theName: char * + nColors: size_t (optional, default to 0) + arrColors: gp_XYZ * (optional, default to 0) + + Return + ------- + None + + Description + ----------- + /** * Constructor. */. + + """ + _VrmlData.VrmlData_Color_swiginit(self, _VrmlData.new_VrmlData_Color(*args)) + + def Clone(self, *args): + r""" + + Parameters + ---------- + theOther: VrmlData_Node + + Return + ------- + opencascade::handle + + Description + ----------- + /** * Create a copy of this node. * If the parameter is null, a new copied node is created. Otherwise new node * is not created, but rather the given one is modified.

*/. + + """ + return _VrmlData.VrmlData_Color_Clone(self, *args) + + def Color(self, *args): + r""" + + Parameters + ---------- + i: int + + Return + ------- + Quantity_Color + + Description + ----------- + /** * Query one color * + Parameter i * index in the array of colors [0 .. N-1] * + Return: * the color value for the index. If index irrelevant, returns (0., 0., 0.) */. + + """ + return _VrmlData.VrmlData_Color_Color(self, *args) + + def Read(self, *args): + r""" + + Parameters + ---------- + theBuffer: VrmlData_InBuffer + + Return + ------- + VrmlData_ErrorStatus + + Description + ----------- + /** * Read the Node from input stream. */. + + """ + return _VrmlData.VrmlData_Color_Read(self, *args) + + def SetColors(self, *args): + r""" + + Parameters + ---------- + nColors: size_t + arrColors: gp_XYZ * + + Return + ------- + None + + Description + ----------- + /** * Set the array data */. + + """ + return _VrmlData.VrmlData_Color_SetColors(self, *args) + + def Write(self, *args): + r""" + + Parameters + ---------- + thePrefix: char * + + Return + ------- + VrmlData_ErrorStatus + + Description + ----------- + /** * Write the Node to the Scene output. */. + + """ + return _VrmlData.VrmlData_Color_Write(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_VrmlData_Color_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _VrmlData.delete_VrmlData_Color + +# Register VrmlData_Color in _VrmlData: +_VrmlData.VrmlData_Color_swigregister(VrmlData_Color) +class VrmlData_Cone(VrmlData_Geometry): + 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 + ----------- + /** * Empty constructor */. + + Parameters + ---------- + theScene: VrmlData_Scene + theName: char * + theBottomRadius: float (optional, default to 1) + theHeight: float (optional, default to 2) + + Return + ------- + None + + Description + ----------- + /** * Constructor */. + + """ + _VrmlData.VrmlData_Cone_swiginit(self, _VrmlData.new_VrmlData_Cone(*args)) + + def BottomRadius(self, *args): + r""" + Return + ------- + float + + Description + ----------- + /** * Query the Bottom Radius */. + + """ + return _VrmlData.VrmlData_Cone_BottomRadius(self, *args) + + def HasBottom(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + /** * Query if the bottom circle is included */. + + """ + return _VrmlData.VrmlData_Cone_HasBottom(self, *args) + + def HasSide(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + /** * Query if the side surface is included */. + + """ + return _VrmlData.VrmlData_Cone_HasSide(self, *args) + + def Height(self, *args): + r""" + Return + ------- + float + + Description + ----------- + /** * Query the Height */. + + """ + return _VrmlData.VrmlData_Cone_Height(self, *args) + + def SetBottomRadius(self, *args): + r""" + + Parameters + ---------- + theRadius: float + + Return + ------- + None + + Description + ----------- + /** * Set the Bottom Radius */. + + """ + return _VrmlData.VrmlData_Cone_SetBottomRadius(self, *args) + + def SetFaces(self, *args): + r""" + + Parameters + ---------- + hasBottom: bool + hasSide: bool + + Return + ------- + None + + Description + ----------- + /** * Set which faces are included */. + + """ + return _VrmlData.VrmlData_Cone_SetFaces(self, *args) + + def SetHeight(self, *args): + r""" + + Parameters + ---------- + theHeight: float + + Return + ------- + None + + Description + ----------- + /** * Set the Height */. + + """ + return _VrmlData.VrmlData_Cone_SetHeight(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_VrmlData_Cone_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _VrmlData.delete_VrmlData_Cone + +# Register VrmlData_Cone in _VrmlData: +_VrmlData.VrmlData_Cone_swigregister(VrmlData_Cone) +class VrmlData_Coordinate(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 + ----------- + /** * Empty Constructor */. + + Parameters + ---------- + theScene: VrmlData_Scene + theName: char * + nPoints: size_t (optional, default to 0) + arrPoints: gp_XYZ * (optional, default to 0) + + Return + ------- + None + + Description + ----------- + /** * Constructor */. + + """ + _VrmlData.VrmlData_Coordinate_swiginit(self, _VrmlData.new_VrmlData_Coordinate(*args)) + + def Clone(self, *args): + r""" + + Parameters + ---------- + theOther: VrmlData_Node + + Return + ------- + opencascade::handle + + Description + ----------- + /** * Create a copy of this node. * If the parameter is null, a new copied node is created. Otherwise new node * is not created, but rather the given one is modified. */. + + """ + return _VrmlData.VrmlData_Coordinate_Clone(self, *args) + + def Coordinate(self, *args): + r""" + + Parameters + ---------- + i: int + + Return + ------- + gp_XYZ + + Description + ----------- + /** * Query one point * + Parameter i * index in the array of points [0 .. N-1] * + Return: * the coordinate for the index. If index irrelevant, returns (0., 0., 0.) */. + + """ + return _VrmlData.VrmlData_Coordinate_Coordinate(self, *args) + + def Read(self, *args): + r""" + + Parameters + ---------- + theBuffer: VrmlData_InBuffer + + Return + ------- + VrmlData_ErrorStatus + + Description + ----------- + /** * Read the Node from input stream. */. + + """ + return _VrmlData.VrmlData_Coordinate_Read(self, *args) + + def Write(self, *args): + r""" + + Parameters + ---------- + thePrefix: char * + + Return + ------- + VrmlData_ErrorStatus + + Description + ----------- + /** * Write the Node to the Scene output. */. + + """ + return _VrmlData.VrmlData_Coordinate_Write(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_VrmlData_Coordinate_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _VrmlData.delete_VrmlData_Coordinate + +# Register VrmlData_Coordinate in _VrmlData: +_VrmlData.VrmlData_Coordinate_swigregister(VrmlData_Coordinate) +class VrmlData_Cylinder(VrmlData_Geometry): + 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 + ----------- + /** * Empty constructor */. + + Parameters + ---------- + theScene: VrmlData_Scene + theName: char * + theRadius: float (optional, default to 1) + theHeight: float (optional, default to 2) + + Return + ------- + None + + Description + ----------- + /** * Constructor */. + + """ + _VrmlData.VrmlData_Cylinder_swiginit(self, _VrmlData.new_VrmlData_Cylinder(*args)) + + def HasBottom(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + /** * Query if the bottom circle is included */. + + """ + return _VrmlData.VrmlData_Cylinder_HasBottom(self, *args) + + def HasSide(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + /** * Query if the side surface is included */. + + """ + return _VrmlData.VrmlData_Cylinder_HasSide(self, *args) + + def HasTop(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + /** * Query if the top surface is included */. + + """ + return _VrmlData.VrmlData_Cylinder_HasTop(self, *args) + + def Height(self, *args): + r""" + Return + ------- + float + + Description + ----------- + /** * Query the Height */. + + """ + return _VrmlData.VrmlData_Cylinder_Height(self, *args) + + def Radius(self, *args): + r""" + Return + ------- + float + + Description + ----------- + /** * Query the Radius */. + + """ + return _VrmlData.VrmlData_Cylinder_Radius(self, *args) + + def SetFaces(self, *args): + r""" + + Parameters + ---------- + hasBottom: bool + hasSide: bool + hasTop: bool + + Return + ------- + None + + Description + ----------- + /** * Set which faces are included */. + + """ + return _VrmlData.VrmlData_Cylinder_SetFaces(self, *args) + + def SetHeight(self, *args): + r""" + + Parameters + ---------- + theHeight: float + + Return + ------- + None + + Description + ----------- + /** * Set the Height */. + + """ + return _VrmlData.VrmlData_Cylinder_SetHeight(self, *args) + + def SetRadius(self, *args): + r""" + + Parameters + ---------- + theRadius: float + + Return + ------- + None + + Description + ----------- + /** * Set the Radius */. + + """ + return _VrmlData.VrmlData_Cylinder_SetRadius(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_VrmlData_Cylinder_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _VrmlData.delete_VrmlData_Cylinder + +# Register VrmlData_Cylinder in _VrmlData: +_VrmlData.VrmlData_Cylinder_swigregister(VrmlData_Cylinder) +class VrmlData_ImageTexture(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 + ----------- + /** * Empty constructor */. + + Parameters + ---------- + theScene: VrmlData_Scene + theName: char * + theURL: char * (optional, default to 0) + theRepS: bool (optional, default to Standard_False) + theRepT: bool (optional, default to Standard_False) + + Return + ------- + None + + Description + ----------- + /** * Constructor */. + + """ + _VrmlData.VrmlData_ImageTexture_swiginit(self, _VrmlData.new_VrmlData_ImageTexture(*args)) + + def Clone(self, *args): + r""" + + Parameters + ---------- + theOther: VrmlData_Node + + Return + ------- + opencascade::handle + + Description + ----------- + /** * Create a copy of this node. * If the parameter is null, a new copied node is created. Otherwise new node * is not created, but rather the given one is modified. */. + + """ + return _VrmlData.VrmlData_ImageTexture_Clone(self, *args) + + def Read(self, *args): + r""" + + Parameters + ---------- + theBuffer: VrmlData_InBuffer + + Return + ------- + VrmlData_ErrorStatus + + Description + ----------- + /** * Read the Node from input stream. */. + + """ + return _VrmlData.VrmlData_ImageTexture_Read(self, *args) + + def URL(self, *args): + r""" + Return + ------- + NCollection_List + + Description + ----------- + /** * Query the associated URL. */. + + """ + return _VrmlData.VrmlData_ImageTexture_URL(self, *args) + + def Write(self, *args): + r""" + + Parameters + ---------- + thePrefix: char * + + Return + ------- + VrmlData_ErrorStatus + + Description + ----------- + /** * Write the Node to output stream. */. + + """ + return _VrmlData.VrmlData_ImageTexture_Write(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_VrmlData_ImageTexture_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _VrmlData.delete_VrmlData_ImageTexture + +# Register VrmlData_ImageTexture in _VrmlData: +_VrmlData.VrmlData_ImageTexture_swigregister(VrmlData_ImageTexture) +class VrmlData_IndexedLineSet(VrmlData_Geometry): + 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 + ----------- + /** * Empty constructor. */. + + Parameters + ---------- + theScene: VrmlData_Scene + theName: char * + isColorPerVertex: bool (optional, default to Standard_True) + + Return + ------- + None + + Description + ----------- + /** * Constructor. */. + + """ + _VrmlData.VrmlData_IndexedLineSet_swiginit(self, _VrmlData.new_VrmlData_IndexedLineSet(*args)) + + def ArrayColorInd(self, *args): + r""" + + Parameters + ---------- + arrColorInd: int * * + + Return + ------- + size_t + + Description + ----------- + /** * Query the array of color indice * + Parameter arrColorInd * [out] array of colorIndex as it is described in VRML2.0 spec * + Return: * Number of integers in the array arrColorInd. */. + + """ + return _VrmlData.VrmlData_IndexedLineSet_ArrayColorInd(self, *args) + + def Colors(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + /** * Query the Colors. */. + + """ + return _VrmlData.VrmlData_IndexedLineSet_Colors(self, *args) + + def Coordinates(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + /** * Query the Coordinates. */. + + """ + return _VrmlData.VrmlData_IndexedLineSet_Coordinates(self, *args) + + def GetColor(self, *args): + r""" + + Parameters + ---------- + iFace: int + iVertex: int + + Return + ------- + Quantity_Color + + Description + ----------- + /** * Query a color for one node in the given element. The color is * interpreted according to fields myColors, myArrColorInd, * myColorPerVertex, as defined in VRML 2.0. * + Parameter iFace * rank of the polygon [0 .. N-1] * + Parameter iVertex * rank of the vertex in the polygon [0 .. M-1]. This parameter is ignored * if (myColorPerVertex == False) * + Return: * Color value (RGB); if the color is indefinite then returns (0., 0., 0.) */. + + """ + return _VrmlData.VrmlData_IndexedLineSet_GetColor(self, *args) + + def Polygon(self, *args): + r""" + + Parameters + ---------- + iPolygon: int + outIndice: int * + + Return + ------- + int + + Description + ----------- + /** * Query one polygon. * + Parameter iPolygon * rank of the polygon [0 .. N-1] * + Parameter outIndice * [out] array of vertex indice * + Return: * number of vertice in the polygon - the dimension of outIndice array */. + + """ + return _VrmlData.VrmlData_IndexedLineSet_Polygon(self, *args) + + def Polygons(self, *args): + r""" + + Parameters + ---------- + arrPolygons: int * * + + Return + ------- + size_t + + Description + ----------- + /** * Query the array of polygons */. + + """ + return _VrmlData.VrmlData_IndexedLineSet_Polygons(self, *args) + + def SetColorInd(self, *args): + r""" + + Parameters + ---------- + nIndice: Standard_Size + theIndice: int * * + + Return + ------- + None + + Description + ----------- + /** * Set the colors array of indice */. + + """ + return _VrmlData.VrmlData_IndexedLineSet_SetColorInd(self, *args) + + def SetColorPerVertex(self, *args): + r""" + + Parameters + ---------- + isColorPerVertex: bool + + Return + ------- + None + + Description + ----------- + /** * Set the boolean value 'colorPerVertex' */. + + """ + return _VrmlData.VrmlData_IndexedLineSet_SetColorPerVertex(self, *args) + + def SetColors(self, *args): + r""" + + Parameters + ---------- + theColors: VrmlData_Color + + Return + ------- + None + + Description + ----------- + /** * Set the Color node */. + + """ + return _VrmlData.VrmlData_IndexedLineSet_SetColors(self, *args) + + def SetCoordinates(self, *args): + r""" + + Parameters + ---------- + theCoord: VrmlData_Coordinate + + Return + ------- + None + + Description + ----------- + /** * Set the nodes */. + + """ + return _VrmlData.VrmlData_IndexedLineSet_SetCoordinates(self, *args) + + def SetPolygons(self, *args): + r""" + + Parameters + ---------- + nPolygons: Standard_Size + thePolygons: int * * + + Return + ------- + None + + Description + ----------- + /** * Set the polygons */. + + """ + return _VrmlData.VrmlData_IndexedLineSet_SetPolygons(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_VrmlData_IndexedLineSet_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _VrmlData.delete_VrmlData_IndexedLineSet + +# Register VrmlData_IndexedLineSet in _VrmlData: +_VrmlData.VrmlData_IndexedLineSet_swigregister(VrmlData_IndexedLineSet) +class VrmlData_Normal(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 + ----------- + /** * Empty constructor */. + + Parameters + ---------- + theScene: VrmlData_Scene + theName: char * + nVec: size_t (optional, default to 0) + arrVec: gp_XYZ * (optional, default to 0) + + Return + ------- + None + + Description + ----------- + /** * Constructor */. + + """ + _VrmlData.VrmlData_Normal_swiginit(self, _VrmlData.new_VrmlData_Normal(*args)) + + def Clone(self, *args): + r""" + + Parameters + ---------- + theOther: VrmlData_Node + + Return + ------- + opencascade::handle + + Description + ----------- + /** * Create a copy of this node. * If the parameter is null, a new copied node is created. Otherwise new node * is not created, but rather the given one is modified. */. + + """ + return _VrmlData.VrmlData_Normal_Clone(self, *args) + + def Normal(self, *args): + r""" + + Parameters + ---------- + i: int + + Return + ------- + gp_XYZ + + Description + ----------- + /** * Query one normal * + Parameter i * index in the array of normals [0 .. N-1] * + Return: * the normal value for the index. If index irrelevant, returns (0., 0., 0.) */. + + """ + return _VrmlData.VrmlData_Normal_Normal(self, *args) + + def Read(self, *args): + r""" + + Parameters + ---------- + theBuffer: VrmlData_InBuffer + + Return + ------- + VrmlData_ErrorStatus + + Description + ----------- + /** * Read the Node from input stream. */. + + """ + return _VrmlData.VrmlData_Normal_Read(self, *args) + + def Write(self, *args): + r""" + + Parameters + ---------- + thePrefix: char * + + Return + ------- + VrmlData_ErrorStatus + + Description + ----------- + /** * Write the Node to the Scene output. */. + + """ + return _VrmlData.VrmlData_Normal_Write(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_VrmlData_Normal_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _VrmlData.delete_VrmlData_Normal + +# Register VrmlData_Normal in _VrmlData: +_VrmlData.VrmlData_Normal_swigregister(VrmlData_Normal) +class VrmlData_Sphere(VrmlData_Geometry): + 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 + ----------- + /** * Empty constructor */. + + Parameters + ---------- + theScene: VrmlData_Scene + theName: char * + theRadius: float (optional, default to 1) + + Return + ------- + None + + Description + ----------- + /** * Constructor */. + + """ + _VrmlData.VrmlData_Sphere_swiginit(self, _VrmlData.new_VrmlData_Sphere(*args)) + + def Radius(self, *args): + r""" + Return + ------- + float + + Description + ----------- + /** * Query the sphere radius */. + + """ + return _VrmlData.VrmlData_Sphere_Radius(self, *args) + + def SetRadius(self, *args): + r""" + + Parameters + ---------- + theRadius: float + + Return + ------- + None + + Description + ----------- + /** * Set the sphere radius */. + + """ + return _VrmlData.VrmlData_Sphere_SetRadius(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_VrmlData_Sphere_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _VrmlData.delete_VrmlData_Sphere + +# Register VrmlData_Sphere in _VrmlData: +_VrmlData.VrmlData_Sphere_swigregister(VrmlData_Sphere) +class VrmlData_IndexedFaceSet(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 + ----------- + /** * Empty constructor */. + + Parameters + ---------- + theScene: VrmlData_Scene + theName: char * + isCCW: bool (optional, default to Standard_True) + isSolid: bool (optional, default to Standard_True) + isConvex: bool (optional, default to Standard_True) + theCreaseAngle: float (optional, default to 0) + + Return + ------- + None + + Description + ----------- + /** * Constructor */. + + """ + _VrmlData.VrmlData_IndexedFaceSet_swiginit(self, _VrmlData.new_VrmlData_IndexedFaceSet(*args)) + + def ArrayColorInd(self, *args): + r""" + + Parameters + ---------- + arrColorInd: int * * + + Return + ------- + size_t + + Description + ----------- + /** * Query the array of color indice * + Parameter arrColorInd * [out] array of colorIndex as it is described in VRML2.0 spec * + Return: * Number of integers in the array arrColorInd. */. + + """ + return _VrmlData.VrmlData_IndexedFaceSet_ArrayColorInd(self, *args) + + def ArrayNormalInd(self, *args): + r""" + + Parameters + ---------- + arrNormalInd: int * * + + Return + ------- + size_t + + Description + ----------- + /** * Query the array of normal indice * + Parameter arrNormalInd * [out] array of normalIndex as it is described in VRML2.0 spec * + Return: * Number of integers in the array arrNormalInd. */. + + """ + return _VrmlData.VrmlData_IndexedFaceSet_ArrayNormalInd(self, *args) + + def ArrayTextureCoordInd(self, *args): + r""" + + Parameters + ---------- + arrTextureCoordInd: int * * + + Return + ------- + size_t + + Description + ----------- + /** * Query the array of texture coordinate indice * + Parameter arrTextureCoordInd * [out] array of texCoordIndex as it is described in VRML2.0 spec * + Return: * Number of integers in the array texCoordIndex. */. + + """ + return _VrmlData.VrmlData_IndexedFaceSet_ArrayTextureCoordInd(self, *args) + + def Clone(self, *args): + r""" + + Parameters + ---------- + theOther: VrmlData_Node + + Return + ------- + opencascade::handle + + Description + ----------- + /** * Create a copy of this node. * If the parameter is null, a new copied node is created. Otherwise new node * is not created, but rather the given one is modified. */. + + """ + return _VrmlData.VrmlData_IndexedFaceSet_Clone(self, *args) + + def Colors(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + /** * Query the Colors. */. + + """ + return _VrmlData.VrmlData_IndexedFaceSet_Colors(self, *args) + + def Coordinates(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + /** * Query the Coordinates. */. + + """ + return _VrmlData.VrmlData_IndexedFaceSet_Coordinates(self, *args) + + def GetColor(self, *args): + r""" + + Parameters + ---------- + iFace: int + iVertex: int + + Return + ------- + Quantity_Color + + Description + ----------- + /** * Query a color for one node in the given element. The color is * interpreted according to fields myColors, myArrColorInd, * myColorPerVertex, as defined in VRML 2.0. * + Parameter iFace * rank of the polygon [0 .. N-1] * + Parameter iVertex * rank of the vertex in the polygon [0 .. M-1]. This parameter is ignored * if (myColorPerVertex == False) * + Return: * Color value (RGB); if the color is indefinite then returns (0., 0., 0.) */. + + """ + return _VrmlData.VrmlData_IndexedFaceSet_GetColor(self, *args) + + def IndiceNormals(self, *args): + r""" + + Parameters + ---------- + iFace: int + outIndice: int * + + Return + ------- + int + + Description + ----------- + /** * Query normals indice for one face. This method should be called after * checking myArrNormalInd != NULL, otherwise exception will be thrown. * + Parameter iFace * rank of the face [0 .. N-1] * + Parameter outIndice * [out] array of normals indice * + Return: * number of indice in the array - the dimension of outIndice array */. + + """ + return _VrmlData.VrmlData_IndexedFaceSet_IndiceNormals(self, *args) + + def IsDefault(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + /** * Returns True if the node is default, so that it should not be written. */. + + """ + return _VrmlData.VrmlData_IndexedFaceSet_IsDefault(self, *args) + + def Normals(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + /** * Query the Normals. */. + + """ + return _VrmlData.VrmlData_IndexedFaceSet_Normals(self, *args) + + def Polygon(self, *args): + r""" + + Parameters + ---------- + iFace: int + outIndice: int * + + Return + ------- + int + + Description + ----------- + /** * Query one polygon. * + Parameter iFace * rank of the polygon [0 .. N-1] * + Parameter outIndice * [out] array of vertex indice * + Return: * number of vertice in the polygon - the dimension of outIndice array */. + + """ + return _VrmlData.VrmlData_IndexedFaceSet_Polygon(self, *args) + + def Polygons(self, *args): + r""" + + Parameters + ---------- + arrPolygons: int * * + + Return + ------- + size_t + + Description + ----------- + /** * Query the array of polygons */. + + """ + return _VrmlData.VrmlData_IndexedFaceSet_Polygons(self, *args) + + def Read(self, *args): + r""" + + Parameters + ---------- + theBuffer: VrmlData_InBuffer + + Return + ------- + VrmlData_ErrorStatus + + Description + ----------- + /** * Read the Node from input stream. */. + + """ + return _VrmlData.VrmlData_IndexedFaceSet_Read(self, *args) + + def SetColorInd(self, *args): + r""" + + Parameters + ---------- + nIndice: Standard_Size + theIndice: int * * + + Return + ------- + None + + Description + ----------- + /** * Set the colors array of indice */. + + """ + return _VrmlData.VrmlData_IndexedFaceSet_SetColorInd(self, *args) + + def SetColorPerVertex(self, *args): + r""" + + Parameters + ---------- + isColorPerVertex: bool + + Return + ------- + None + + Description + ----------- + /** * Set the boolean value 'colorPerVertex' */. + + """ + return _VrmlData.VrmlData_IndexedFaceSet_SetColorPerVertex(self, *args) + + def SetColors(self, *args): + r""" + + Parameters + ---------- + theColors: VrmlData_Color + + Return + ------- + None + + Description + ----------- + /** * Set the Color node */. + + """ + return _VrmlData.VrmlData_IndexedFaceSet_SetColors(self, *args) + + def SetCoordinates(self, *args): + r""" + + Parameters + ---------- + theCoord: VrmlData_Coordinate + + Return + ------- + None + + Description + ----------- + /** * Set the nodes */. + + """ + return _VrmlData.VrmlData_IndexedFaceSet_SetCoordinates(self, *args) + + def SetNormalInd(self, *args): + r""" + + Parameters + ---------- + nIndice: Standard_Size + theIndice: int * * + + Return + ------- + None + + Description + ----------- + /** * Set the normals array of indice */. + + """ + return _VrmlData.VrmlData_IndexedFaceSet_SetNormalInd(self, *args) + + def SetNormalPerVertex(self, *args): + r""" + + Parameters + ---------- + isNormalPerVertex: bool + + Return + ------- + None + + Description + ----------- + /** * Set the boolean value 'normalPerVertex' */. + + """ + return _VrmlData.VrmlData_IndexedFaceSet_SetNormalPerVertex(self, *args) + + def SetNormals(self, *args): + r""" + + Parameters + ---------- + theNormals: VrmlData_Normal + + Return + ------- + None + + Description + ----------- + /** * Set the normals node */. + + """ + return _VrmlData.VrmlData_IndexedFaceSet_SetNormals(self, *args) + + def SetPolygons(self, *args): + r""" + + Parameters + ---------- + nPolygons: Standard_Size + thePolygons: int * * + + Return + ------- + None + + Description + ----------- + /** * Set the polygons */. + + """ + return _VrmlData.VrmlData_IndexedFaceSet_SetPolygons(self, *args) + + def SetTextureCoordInd(self, *args): + r""" + + Parameters + ---------- + nIndice: Standard_Size + theIndice: int * * + + Return + ------- + None + + Description + ----------- + /** * Set the TexCoordiante array of indice */. + + """ + return _VrmlData.VrmlData_IndexedFaceSet_SetTextureCoordInd(self, *args) + + def SetTextureCoords(self, *args): + r""" + + Parameters + ---------- + tc: VrmlData_TextureCoordinate + + Return + ------- + None + + Description + ----------- + /** * Set the Texture Coordinate node */. + + """ + return _VrmlData.VrmlData_IndexedFaceSet_SetTextureCoords(self, *args) + + def TShape(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + /** * Query the shape. This method checks the flag myIsModified; if True it * should rebuild the shape presentation. */. + + """ + return _VrmlData.VrmlData_IndexedFaceSet_TShape(self, *args) + + def TextureCoords(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + /** * Query the Texture Coordinates. */. + + """ + return _VrmlData.VrmlData_IndexedFaceSet_TextureCoords(self, *args) + + def Write(self, *args): + r""" + + Parameters + ---------- + thePrefix: char * + + Return + ------- + VrmlData_ErrorStatus + + Description + ----------- + /** * Write the Node to output stream. */. + + """ + return _VrmlData.VrmlData_IndexedFaceSet_Write(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_VrmlData_IndexedFaceSet_DownCast(t) + + + __repr__ = _dumps_object + + @methodnotwrapped + def GetNormal(self): + pass + + __swig_destroy__ = _VrmlData.delete_VrmlData_IndexedFaceSet + +# Register VrmlData_IndexedFaceSet in _VrmlData: +_VrmlData.VrmlData_IndexedFaceSet_swigregister(VrmlData_IndexedFaceSet) + +@classnotwrapped +class VrmlData_InBuffer: + pass + +@classnotwrapped +class VrmlData_ArrayVec3d: + pass + +@classnotwrapped +class VrmlData_Texture: + pass + +@classnotwrapped +class VrmlData_TextureTransform: + pass + +@classnotwrapped +class VrmlData_Faceted: + pass + + + + + +@deprecated +def VrmlData_Node_GlobalIndent(*args): + return VrmlData_Node.GlobalIndent(*args) + +@deprecated +def VrmlData_Node_OK(*args): + return VrmlData_Node.OK(*args) + +@deprecated +def VrmlData_Node_OK(*args): + return VrmlData_Node.OK(*args) + +@deprecated +def VrmlData_Node_ReadBoolean(*args): + return VrmlData_Node.ReadBoolean(*args) + +@deprecated +def VrmlData_Node_ReadInteger(*args): + return VrmlData_Node.ReadInteger(*args) + +@deprecated +def VrmlData_Node_ReadMultiString(*args): + return VrmlData_Node.ReadMultiString(*args) + +@deprecated +def VrmlData_Node_ReadString(*args): + return VrmlData_Node.ReadString(*args) + +@deprecated +def VrmlData_Scene_ReadLine(*args): + return VrmlData_Scene.ReadLine(*args) + +@deprecated +def VrmlData_Scene_ReadWord(*args): + return VrmlData_Scene.ReadWord(*args) + + + diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/XBRepMesh.pyi b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/XBRepMesh.pyi new file mode 100644 index 0000000000000000000000000000000000000000..2da335201a67be6c0c2ad522b2ccfdfff766c6f9 --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/XBRepMesh.pyi @@ -0,0 +1,20 @@ +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.BRepMesh import * + +class xbrepmesh: + @staticmethod + def Discret( + theShape: TopoDS_Shape, + theDeflection: float, + theAngle: float, + theAlgo: BRepMesh_DiscretRoot, + ) -> int: ... + +# harray1 classes +# harray2 classes +# hsequence classes diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/XSControl.pyi b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/XSControl.pyi new file mode 100644 index 0000000000000000000000000000000000000000..1bf8f5553fa119c3907342d21ad3ff7157788d01 --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/XSControl.pyi @@ -0,0 +1,484 @@ +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.TopoDS import * +from OCC.Core.Transfer import * +from OCC.Core.TopAbs import * +from OCC.Core.TColStd import * +from OCC.Core.Interface import * +from OCC.Core.TCollection import * +from OCC.Core.Message import * +from OCC.Core.TopTools import * +from OCC.Core.DE import * +from OCC.Core.Geom import * +from OCC.Core.Geom2d import * +from OCC.Core.gp import * + +class xscontrol: + @staticmethod + def Session(pilot: IFSelect_SessionPilot) -> XSControl_WorkSession: ... + @staticmethod + def Vars(pilot: IFSelect_SessionPilot) -> XSControl_Vars: ... + +class XSControl_ConnectedShapes(IFSelect_SelectExplore): + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, TR: XSControl_TransferReader) -> None: ... + @staticmethod + def AdjacentEntities( + ashape: TopoDS_Shape, TP: Transfer_TransientProcess, type: TopAbs_ShapeEnum + ) -> TColStd_HSequenceOfTransient: ... + def Explore( + self, + level: int, + ent: Standard_Transient, + G: Interface_Graph, + explored: Interface_EntityIterator, + ) -> bool: ... + def ExploreLabel(self) -> str: ... + def SetReader(self, TR: XSControl_TransferReader) -> None: ... + +class XSControl_Controller(Standard_Transient): + def ActorRead( + self, model: Interface_InterfaceModel + ) -> Transfer_ActorOfTransientProcess: ... + def ActorWrite(self) -> Transfer_ActorOfFinderProcess: ... + def AdaptorSession(self) -> False: ... + def AddSessionItem( + self, theItem: Standard_Transient, theName: str, toApply: Optional[bool] = False + ) -> None: ... + def AutoRecord(self) -> None: ... + def Customise(self, WS: XSControl_WorkSession) -> None: ... + def IsModeWrite(self, modetrans: int, shape: Optional[bool] = True) -> bool: ... + def ModeWriteBounds( + self, shape: Optional[bool] = True + ) -> Tuple[bool, int, int]: ... + def ModeWriteHelp(self, modetrans: int, shape: Optional[bool] = True) -> str: ... + def Name(self, rsc: Optional[bool] = False) -> str: ... + def NewModel(self) -> Interface_InterfaceModel: ... + def Protocol(self) -> Interface_Protocol: ... + def RecognizeWriteShape( + self, shape: TopoDS_Shape, modetrans: Optional[int] = 0 + ) -> bool: ... + def RecognizeWriteTransient( + self, obj: Standard_Transient, modetrans: Optional[int] = 0 + ) -> bool: ... + def Record(self, name: str) -> None: ... + @staticmethod + def Recorded(name: str) -> XSControl_Controller: ... + def SessionItem(self, theName: str) -> Standard_Transient: ... + def SetModeWrite( + self, modemin: int, modemax: int, shape: Optional[bool] = True + ) -> None: ... + def SetModeWriteHelp( + self, modetrans: int, help: str, shape: Optional[bool] = True + ) -> None: ... + def SetNames(self, theLongName: str, theShortName: str) -> None: ... + def TransferWriteShape( + self, + shape: TopoDS_Shape, + FP: Transfer_FinderProcess, + model: Interface_InterfaceModel, + modetrans: Optional[int] = 0, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> IFSelect_ReturnStatus: ... + def TransferWriteTransient( + self, + obj: Standard_Transient, + FP: Transfer_FinderProcess, + model: Interface_InterfaceModel, + modetrans: Optional[int] = 0, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> IFSelect_ReturnStatus: ... + def WorkLibrary(self) -> IFSelect_WorkLibrary: ... + +class XSControl_FuncShape: + @staticmethod + def FileAndVar( + session: XSControl_WorkSession, + file: str, + var: str, + def_: str, + resfile: str, + resvar: str, + ) -> bool: ... + @staticmethod + def Init() -> None: ... + @staticmethod + def MoreShapes( + session: XSControl_WorkSession, list: TopTools_HSequenceOfShape, name: str + ) -> int: ... + +class XSControl_Functions: + @staticmethod + def Init() -> None: ... + +class XSControl_Reader: + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, norm: str) -> None: ... + @overload + def __init__( + self, WS: XSControl_WorkSession, scratch: Optional[bool] = True + ) -> None: ... + def ClearShapes(self) -> None: ... + def GetShapeFixParameters(self) -> False: ... + def GetShapeProcessFlags(self) -> False: ... + def GetStatsTransfer( + self, list: TColStd_HSequenceOfTransient + ) -> Tuple[int, int, int]: ... + @overload + def GiveList( + self, first: Optional[str] = "", second: Optional[str] = "" + ) -> TColStd_HSequenceOfTransient: ... + @overload + def GiveList( + self, first: str, ent: Standard_Transient + ) -> TColStd_HSequenceOfTransient: ... + def Model(self) -> Interface_InterfaceModel: ... + def NbRootsForTransfer(self) -> int: ... + def NbShapes(self) -> int: ... + def OneShape(self) -> TopoDS_Shape: ... + @overload + def PrintCheckLoad(self, failsonly: bool, mode: IFSelect_PrintCount) -> None: ... + @overload + def PrintCheckLoad(self, failsonly: bool, mode: IFSelect_PrintCount) -> str: ... + @overload + def PrintCheckTransfer( + self, failsonly: bool, mode: IFSelect_PrintCount + ) -> None: ... + @overload + def PrintCheckTransfer(self, failsonly: bool, mode: IFSelect_PrintCount) -> str: ... + @overload + def PrintStatsTransfer(self, what: int, mode: Optional[int] = 0) -> None: ... + @overload + def PrintStatsTransfer(self, what: int, mode: Optional[int] = 0) -> str: ... + def ReadFile(self, filename: str) -> IFSelect_ReturnStatus: ... + def ReadStream(self, theName: str, theIStream: str) -> IFSelect_ReturnStatus: ... + def RootForTransfer(self, num: Optional[int] = 1) -> Standard_Transient: ... + def SetNorm(self, norm: str) -> bool: ... + def SetWS( + self, WS: XSControl_WorkSession, scratch: Optional[bool] = True + ) -> None: ... + def Shape(self, num: Optional[int] = 1) -> TopoDS_Shape: ... + def TransferEntity( + self, + start: Standard_Transient, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... + def TransferList( + self, + list: TColStd_HSequenceOfTransient, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> int: ... + def TransferOne( + self, + num: int, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... + def TransferOneRoot( + self, + num: Optional[int] = 1, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> bool: ... + def TransferRoots( + self, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> int: ... + def WS(self) -> XSControl_WorkSession: ... + +class XSControl_SelectForTransfer(IFSelect_SelectExtract): + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, TR: XSControl_TransferReader) -> None: ... + def Actor(self) -> Transfer_ActorOfTransientProcess: ... + def ExtractLabel(self) -> str: ... + def Reader(self) -> XSControl_TransferReader: ... + def SetActor(self, act: Transfer_ActorOfTransientProcess) -> None: ... + def SetReader(self, TR: XSControl_TransferReader) -> None: ... + def Sort( + self, rank: int, ent: Standard_Transient, model: Interface_InterfaceModel + ) -> bool: ... + +class XSControl_SignTransferStatus(IFSelect_Signature): + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, TR: XSControl_TransferReader) -> None: ... + def Map(self) -> Transfer_TransientProcess: ... + def Reader(self) -> XSControl_TransferReader: ... + def SetMap(self, TP: Transfer_TransientProcess) -> None: ... + def SetReader(self, TR: XSControl_TransferReader) -> None: ... + def Value( + self, ent: Standard_Transient, model: Interface_InterfaceModel + ) -> str: ... + +class XSControl_TransferReader(Standard_Transient): + def __init__(self) -> None: ... + def Actor(self) -> Transfer_ActorOfTransientProcess: ... + def BeginTransfer(self) -> bool: ... + def CheckList( + self, theEnt: Standard_Transient, theLevel: Optional[int] = 0 + ) -> Interface_CheckIterator: ... + def CheckedList( + self, + theEnt: Standard_Transient, + WithCheck: Optional[Interface_CheckStatus] = Interface_CheckAny, + theResult: Optional[bool] = True, + ) -> TColStd_HSequenceOfTransient: ... + def Clear(self, theMode: int) -> None: ... + def ClearResult(self, theEnt: Standard_Transient, theMode: int) -> bool: ... + def Context(self) -> False: ... + def EntitiesFromShapeList( + self, theRes: TopTools_HSequenceOfShape, theMode: Optional[int] = 0 + ) -> TColStd_HSequenceOfTransient: ... + def EntityFromResult( + self, theRes: Standard_Transient, theMode: Optional[int] = 0 + ) -> Standard_Transient: ... + def EntityFromShapeResult( + self, theRes: TopoDS_Shape, theMode: Optional[int] = 0 + ) -> Standard_Transient: ... + def FileName(self) -> str: ... + def FinalEntityLabel(self, theEnt: Standard_Transient) -> str: ... + def FinalEntityNumber(self, theEnt: Standard_Transient) -> int: ... + def FinalResult(self, theEnt: Standard_Transient) -> Transfer_ResultFromModel: ... + def GetContext( + self, theName: str, theType: Standard_Type, theCtx: Standard_Transient + ) -> bool: ... + def HasChecks(self, theEnt: Standard_Transient, FailsOnly: bool) -> bool: ... + def HasResult(self, theEnt: Standard_Transient) -> bool: ... + def IsMarked(self, theEnt: Standard_Transient) -> bool: ... + def IsRecorded(self, theEnt: Standard_Transient) -> bool: ... + def IsSkipped(self, theEnt: Standard_Transient) -> bool: ... + def LastCheckList(self) -> Interface_CheckIterator: ... + def LastTransferList(self, theRoots: bool) -> TColStd_HSequenceOfTransient: ... + def Model(self) -> Interface_InterfaceModel: ... + def PrintStats(self, theWhat: int, theMode: Optional[int] = 0) -> str: ... + @staticmethod + def PrintStatsOnList( + theTP: Transfer_TransientProcess, + theList: TColStd_HSequenceOfTransient, + theWhat: int, + theMode: Optional[int] = 0, + ) -> None: ... + @staticmethod + def PrintStatsProcess( + theTP: Transfer_TransientProcess, theWhat: int, theMode: Optional[int] = 0 + ) -> None: ... + def Recognize(self, theEnt: Standard_Transient) -> bool: ... + def RecordResult(self, theEnt: Standard_Transient) -> bool: ... + def RecordedList(self) -> TColStd_HSequenceOfTransient: ... + def ResultFromNumber(self, theNum: int) -> Transfer_ResultFromModel: ... + def SetActor(self, theActor: Transfer_ActorOfTransientProcess) -> None: ... + def SetContext(self, theName: str, theCtx: Standard_Transient) -> None: ... + def SetController(self, theControl: XSControl_Controller) -> None: ... + def SetFileName(self, theName: str) -> None: ... + def SetGraph(self, theGraph: Interface_HGraph) -> None: ... + def SetModel(self, theModel: Interface_InterfaceModel) -> None: ... + def SetTransientProcess(self, theTP: Transfer_TransientProcess) -> None: ... + def ShapeResult(self, theEnt: Standard_Transient) -> TopoDS_Shape: ... + def ShapeResultList(self, theRec: bool) -> TopTools_HSequenceOfShape: ... + def Skip(self, theEnt: Standard_Transient) -> bool: ... + def TransferClear( + self, theEnt: Standard_Transient, theLevel: Optional[int] = 0 + ) -> None: ... + def TransferList( + self, + theList: TColStd_HSequenceOfTransient, + theRec: Optional[bool] = True, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> int: ... + def TransferOne( + self, + theEnt: Standard_Transient, + theRec: Optional[bool] = True, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> int: ... + def TransferRoots( + self, + theGraph: Interface_Graph, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> int: ... + def TransientProcess(self) -> Transfer_TransientProcess: ... + def TransientResult(self, theEnt: Standard_Transient) -> Standard_Transient: ... + +class XSControl_TransferWriter(Standard_Transient): + def __init__(self) -> None: ... + def CheckList(self) -> Interface_CheckIterator: ... + def Clear(self, theMode: int) -> None: ... + def Controller(self) -> XSControl_Controller: ... + def FinderProcess(self) -> Transfer_FinderProcess: ... + def PrintStats(self, theWhat: int, theMode: Optional[int] = 0) -> None: ... + def RecognizeShape(self, theShape: TopoDS_Shape) -> bool: ... + def RecognizeTransient(self, theObj: Standard_Transient) -> bool: ... + def ResultCheckList( + self, theModel: Interface_InterfaceModel + ) -> Interface_CheckIterator: ... + def SetController(self, theCtl: XSControl_Controller) -> None: ... + def SetFinderProcess(self, theFP: Transfer_FinderProcess) -> None: ... + def SetTransferMode(self, theMode: int) -> None: ... + def TransferMode(self) -> int: ... + def TransferWriteShape( + self, + theModel: Interface_InterfaceModel, + theShape: TopoDS_Shape, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> IFSelect_ReturnStatus: ... + def TransferWriteTransient( + self, + theModel: Interface_InterfaceModel, + theObj: Standard_Transient, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> IFSelect_ReturnStatus: ... + +class XSControl_Utils: + def __init__(self) -> None: ... + def AppendCStr( + self, seqval: TColStd_HSequenceOfHAsciiString, strval: str + ) -> None: ... + def AppendEStr( + self, seqval: TColStd_HSequenceOfHExtendedString, strval: Standard_ExtString + ) -> None: ... + def AppendShape( + self, seqv: TopTools_HSequenceOfShape, shape: TopoDS_Shape + ) -> None: ... + def AppendTra( + self, seqval: TColStd_HSequenceOfTransient, traval: Standard_Transient + ) -> None: ... + def ArrToSeq(self, arr: Standard_Transient) -> Standard_Transient: ... + def AsciiToExtended(self, str: str) -> Standard_ExtString: ... + def BinderShape(self, tr: Standard_Transient) -> TopoDS_Shape: ... + def CStrValue(self, list: Standard_Transient, num: int) -> str: ... + def CompoundFromSeq(self, seqval: TopTools_HSequenceOfShape) -> TopoDS_Shape: ... + def DateString( + self, yy: int, mm: int, dd: int, hh: int, mn: int, ss: int + ) -> str: ... + def DateValues(self, text: str) -> Tuple[int, int, int, int, int, int]: ... + def EStrValue(self, list: Standard_Transient, num: int) -> Standard_ExtString: ... + def ExtendedToAscii(self, str: Standard_ExtString) -> str: ... + def IsAscii(self, str: Standard_ExtString) -> bool: ... + def IsKind(self, item: Standard_Transient, what: Standard_Type) -> bool: ... + def NewSeqCStr(self) -> TColStd_HSequenceOfHAsciiString: ... + def NewSeqEStr(self) -> TColStd_HSequenceOfHExtendedString: ... + def NewSeqShape(self) -> TopTools_HSequenceOfShape: ... + def NewSeqTra(self) -> TColStd_HSequenceOfTransient: ... + def SeqIntValue(self, list: TColStd_HSequenceOfInteger, num: int) -> int: ... + def SeqLength(self, list: Standard_Transient) -> int: ... + def SeqToArr( + self, seq: Standard_Transient, first: Optional[int] = 1 + ) -> Standard_Transient: ... + def ShapeBinder( + self, shape: TopoDS_Shape, hs: Optional[bool] = True + ) -> Standard_Transient: ... + def ShapeType(self, shape: TopoDS_Shape, compound: bool) -> TopAbs_ShapeEnum: ... + def ShapeValue(self, seqv: TopTools_HSequenceOfShape, num: int) -> TopoDS_Shape: ... + def SortedCompound( + self, shape: TopoDS_Shape, type: TopAbs_ShapeEnum, explore: bool, compound: bool + ) -> TopoDS_Shape: ... + def ToAString(self, strcon: str) -> str: ... + @overload + def ToCString(self, strval: TCollection_HAsciiString) -> str: ... + @overload + def ToCString(self, strval: str) -> str: ... + @overload + def ToEString(self, strval: TCollection_HExtendedString) -> Standard_ExtString: ... + @overload + def ToEString(self, strval: str) -> Standard_ExtString: ... + @overload + def ToHString(self, strcon: str) -> TCollection_HAsciiString: ... + @overload + def ToHString(self, strcon: Standard_ExtString) -> TCollection_HExtendedString: ... + def ToXString(self, strcon: Standard_ExtString) -> str: ... + def TraValue(self, list: Standard_Transient, num: int) -> Standard_Transient: ... + def TraceLine(self, line: str) -> None: ... + def TraceLines(self, lines: Standard_Transient) -> None: ... + def TypeName( + self, item: Standard_Transient, nopk: Optional[bool] = False + ) -> str: ... + +class XSControl_Vars(Standard_Transient): + def __init__(self) -> None: ... + def Get(self, name: str) -> Standard_Transient: ... + def GetCurve(self, name: str) -> Geom_Curve: ... + def GetCurve2d(self, name: str) -> Geom2d_Curve: ... + def GetGeom(self, name: str) -> Geom_Geometry: ... + def GetPoint(self, name: str, pnt: gp_Pnt) -> bool: ... + def GetPoint2d(self, name: str, pnt: gp_Pnt2d) -> bool: ... + def GetShape(self, name: str) -> TopoDS_Shape: ... + def GetSurface(self, name: str) -> Geom_Surface: ... + def Set(self, name: str, val: Standard_Transient) -> None: ... + def SetPoint(self, name: str, val: gp_Pnt) -> None: ... + def SetPoint2d(self, name: str, val: gp_Pnt2d) -> None: ... + def SetShape(self, name: str, val: TopoDS_Shape) -> None: ... + +class XSControl_WorkSession(IFSelect_WorkSession): + def __init__(self) -> None: ... + def ClearContext(self) -> None: ... + def ClearData(self, theMode: int) -> None: ... + def Context(self) -> False: ... + def InitTransferReader(self, theMode: int) -> None: ... + def MapReader(self) -> Transfer_TransientProcess: ... + def NewModel(self) -> Interface_InterfaceModel: ... + def NormAdaptor(self) -> XSControl_Controller: ... + def PrintTransferStatus(self, theNum: int, theWri: bool) -> Tuple[bool, str]: ... + def Result( + self, theEnt: Standard_Transient, theMode: int + ) -> Standard_Transient: ... + def SelectNorm(self, theNormName: str) -> bool: ... + def SelectedNorm(self, theRsc: Optional[bool] = False) -> str: ... + def SetController(self, theCtl: XSControl_Controller) -> None: ... + def SetMapReader(self, theTP: Transfer_TransientProcess) -> bool: ... + def SetMapWriter(self, theFP: Transfer_FinderProcess) -> bool: ... + def SetTransferReader(self, theTR: XSControl_TransferReader) -> None: ... + def SetVars(self, theVars: XSControl_Vars) -> None: ... + def TransferReadOne( + self, + theEnts: Standard_Transient, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> int: ... + def TransferReadRoots( + self, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange() + ) -> int: ... + def TransferReader(self) -> XSControl_TransferReader: ... + def TransferWriteCheckList(self) -> Interface_CheckIterator: ... + def TransferWriteShape( + self, + theShape: TopoDS_Shape, + theCompGraph: Optional[bool] = True, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> IFSelect_ReturnStatus: ... + def TransferWriter(self) -> XSControl_TransferWriter: ... + def Vars(self) -> XSControl_Vars: ... + +class XSControl_Writer: + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, norm: str) -> None: ... + @overload + def __init__( + self, WS: XSControl_WorkSession, scratch: Optional[bool] = True + ) -> None: ... + def Model(self, newone: Optional[bool] = False) -> Interface_InterfaceModel: ... + def PrintStatsTransfer(self, what: int, mode: Optional[int] = 0) -> None: ... + def SetNorm(self, norm: str) -> bool: ... + def SetWS( + self, WS: XSControl_WorkSession, scratch: Optional[bool] = True + ) -> None: ... + def TransferShape( + self, + sh: TopoDS_Shape, + mode: Optional[int] = 0, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> IFSelect_ReturnStatus: ... + def WS(self) -> XSControl_WorkSession: ... + def WriteFile(self, filename: str) -> IFSelect_ReturnStatus: ... + +# harray1 classes +# harray2 classes +# hsequence classes diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/XmlLDrivers.py b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/XmlLDrivers.py new file mode 100644 index 0000000000000000000000000000000000000000..19f15e575d827c872ff842e19959145a368abcce --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/XmlLDrivers.py @@ -0,0 +1,906 @@ +# 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. + +""" +XmlLDrivers module, see official documentation at +https://dev.opencascade.org/doc/occt-7.9.0/refman/html/package_xmlldrivers.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 _XmlLDrivers +else: + import _XmlLDrivers + +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__ = _XmlLDrivers.delete_SwigPyIterator + + def value(self): + return _XmlLDrivers.SwigPyIterator_value(self) + + def incr(self, n=1): + return _XmlLDrivers.SwigPyIterator_incr(self, n) + + def decr(self, n=1): + return _XmlLDrivers.SwigPyIterator_decr(self, n) + + def distance(self, x): + return _XmlLDrivers.SwigPyIterator_distance(self, x) + + def equal(self, x): + return _XmlLDrivers.SwigPyIterator_equal(self, x) + + def copy(self): + return _XmlLDrivers.SwigPyIterator_copy(self) + + def next(self): + return _XmlLDrivers.SwigPyIterator_next(self) + + def __next__(self): + return _XmlLDrivers.SwigPyIterator___next__(self) + + def previous(self): + return _XmlLDrivers.SwigPyIterator_previous(self) + + def advance(self, n): + return _XmlLDrivers.SwigPyIterator_advance(self, n) + + def __eq__(self, x): + return _XmlLDrivers.SwigPyIterator___eq__(self, x) + + def __ne__(self, x): + return _XmlLDrivers.SwigPyIterator___ne__(self, x) + + def __iadd__(self, n): + return _XmlLDrivers.SwigPyIterator___iadd__(self, n) + + def __isub__(self, n): + return _XmlLDrivers.SwigPyIterator___isub__(self, n) + + def __add__(self, n): + return _XmlLDrivers.SwigPyIterator___add__(self, n) + + def __sub__(self, *args): + return _XmlLDrivers.SwigPyIterator___sub__(self, *args) + def __iter__(self): + return self + +# Register SwigPyIterator in _XmlLDrivers: +_XmlLDrivers.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 + ----------- + No available documentation. + + """ + return _XmlLDrivers.xmlldrivers_AttributeDrivers(*args) + + @staticmethod + def CreationDate(*args): + r""" + Return + ------- + TCollection_AsciiString + + Description + ----------- + No available documentation. + + """ + return _XmlLDrivers.xmlldrivers_CreationDate(*args) + + @staticmethod + def DefineFormat(*args): + r""" + + Parameters + ---------- + theApp: TDocStd_Application + + Return + ------- + None + + Description + ----------- + Defines format 'XmlLOcaf' and registers its read and write drivers in the specified application. + + """ + return _XmlLDrivers.xmlldrivers_DefineFormat(*args) + + @staticmethod + def Factory(*args): + r""" + + Parameters + ---------- + theGUID: Standard_GUID + + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _XmlLDrivers.xmlldrivers_Factory(*args) + + __repr__ = _dumps_object + + + def __init__(self): + _XmlLDrivers.xmlldrivers_swiginit(self, _XmlLDrivers.new_xmlldrivers()) + __swig_destroy__ = _XmlLDrivers.delete_xmlldrivers + +# Register xmlldrivers in _XmlLDrivers: +_XmlLDrivers.xmlldrivers_swigregister(xmlldrivers) +class XmlLDrivers_DocumentRetrievalDriver(OCC.Core.PCDM.PCDM_RetrievalDriver): + 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. + + """ + _XmlLDrivers.XmlLDrivers_DocumentRetrievalDriver_swiginit(self, _XmlLDrivers.new_XmlLDrivers_DocumentRetrievalDriver(*args)) + + def AttributeDrivers(self, *args): + r""" + + Parameters + ---------- + theMsgDriver: Message_Messenger + + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _XmlLDrivers.XmlLDrivers_DocumentRetrievalDriver_AttributeDrivers(self, *args) + + def Read(self, *args): + r""" + + Parameters + ---------- + theFileName: str + theNewDocument: CDM_Document + theApplication: CDM_Application + theFilter: PCDM_ReaderFilter (optional, default to opencascade::handle()) + theRange: Message_ProgressRange (optional, default to Message_ProgressRange()) + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theIStream: str + theStorageData: Storage_Data + theDoc: CDM_Document + theApplication: CDM_Application + theFilter: PCDM_ReaderFilter (optional, default to opencascade::handle()) + theRange: Message_ProgressRange (optional, default to Message_ProgressRange()) + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _XmlLDrivers.XmlLDrivers_DocumentRetrievalDriver_Read(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_XmlLDrivers_DocumentRetrievalDriver_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _XmlLDrivers.delete_XmlLDrivers_DocumentRetrievalDriver + +# Register XmlLDrivers_DocumentRetrievalDriver in _XmlLDrivers: +_XmlLDrivers.XmlLDrivers_DocumentRetrievalDriver_swigregister(XmlLDrivers_DocumentRetrievalDriver) +class XmlLDrivers_DocumentStorageDriver(OCC.Core.PCDM.PCDM_StorageDriver): + 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 + ---------- + theCopyright: str + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _XmlLDrivers.XmlLDrivers_DocumentStorageDriver_swiginit(self, _XmlLDrivers.new_XmlLDrivers_DocumentStorageDriver(*args)) + + def AttributeDrivers(self, *args): + r""" + + Parameters + ---------- + theMsgDriver: Message_Messenger + + Return + ------- + opencascade::handle + + Description + ----------- + No available documentation. + + """ + return _XmlLDrivers.XmlLDrivers_DocumentStorageDriver_AttributeDrivers(self, *args) + + def Write(self, *args): + r""" + + Parameters + ---------- + theDocument: CDM_Document + theFileName: str + theRange: Message_ProgressRange (optional, default to Message_ProgressRange()) + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theDocument: CDM_Document + theRange: Message_ProgressRange (optional, default to Message_ProgressRange()) + + Return + ------- + theOStream: Standard_OStream + + Description + ----------- + No available documentation. + + """ + return _XmlLDrivers.XmlLDrivers_DocumentStorageDriver_Write(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_XmlLDrivers_DocumentStorageDriver_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _XmlLDrivers.delete_XmlLDrivers_DocumentStorageDriver + +# Register XmlLDrivers_DocumentStorageDriver in _XmlLDrivers: +_XmlLDrivers.XmlLDrivers_DocumentStorageDriver_swigregister(XmlLDrivers_DocumentStorageDriver) +class XmlLDrivers_NamespaceDef(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 + ---------- + thePrefix: str + theURI: str + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _XmlLDrivers.XmlLDrivers_NamespaceDef_swiginit(self, _XmlLDrivers.new_XmlLDrivers_NamespaceDef(*args)) + + def Prefix(self, *args): + r""" + Return + ------- + TCollection_AsciiString + + Description + ----------- + No available documentation. + + """ + return _XmlLDrivers.XmlLDrivers_NamespaceDef_Prefix(self, *args) + + def URI(self, *args): + r""" + Return + ------- + TCollection_AsciiString + + Description + ----------- + No available documentation. + + """ + return _XmlLDrivers.XmlLDrivers_NamespaceDef_URI(self, *args) + + __repr__ = _dumps_object + + __swig_destroy__ = _XmlLDrivers.delete_XmlLDrivers_NamespaceDef + +# Register XmlLDrivers_NamespaceDef in _XmlLDrivers: +_XmlLDrivers.XmlLDrivers_NamespaceDef_swigregister(XmlLDrivers_NamespaceDef) + + + +@deprecated +def xmlldrivers_AttributeDrivers(*args): + return xmlldrivers.AttributeDrivers(*args) + +@deprecated +def xmlldrivers_CreationDate(*args): + return xmlldrivers.CreationDate(*args) + +@deprecated +def xmlldrivers_DefineFormat(*args): + return xmlldrivers.DefineFormat(*args) + +@deprecated +def xmlldrivers_Factory(*args): + return xmlldrivers.Factory(*args) + + + diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/XmlMDF.py b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/XmlMDF.py new file mode 100644 index 0000000000000000000000000000000000000000..415aecc07873bf4aefbbc9fdb9b3265ed8458829 --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/XmlMDF.py @@ -0,0 +1,1195 @@ +# 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. + +""" +XmlMDF module, see official documentation at +https://dev.opencascade.org/doc/occt-7.9.0/refman/html/package_xmlmdf.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 _XmlMDF +else: + import _XmlMDF + +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__ = _XmlMDF.delete_SwigPyIterator + + def value(self): + return _XmlMDF.SwigPyIterator_value(self) + + def incr(self, n=1): + return _XmlMDF.SwigPyIterator_incr(self, n) + + def decr(self, n=1): + return _XmlMDF.SwigPyIterator_decr(self, n) + + def distance(self, x): + return _XmlMDF.SwigPyIterator_distance(self, x) + + def equal(self, x): + return _XmlMDF.SwigPyIterator_equal(self, x) + + def copy(self): + return _XmlMDF.SwigPyIterator_copy(self) + + def next(self): + return _XmlMDF.SwigPyIterator_next(self) + + def __next__(self): + return _XmlMDF.SwigPyIterator___next__(self) + + def previous(self): + return _XmlMDF.SwigPyIterator_previous(self) + + def advance(self, n): + return _XmlMDF.SwigPyIterator_advance(self, n) + + def __eq__(self, x): + return _XmlMDF.SwigPyIterator___eq__(self, x) + + def __ne__(self, x): + return _XmlMDF.SwigPyIterator___ne__(self, x) + + def __iadd__(self, n): + return _XmlMDF.SwigPyIterator___iadd__(self, n) + + def __isub__(self, n): + return _XmlMDF.SwigPyIterator___isub__(self, n) + + def __add__(self, n): + return _XmlMDF.SwigPyIterator___add__(self, n) + + def __sub__(self, *args): + return _XmlMDF.SwigPyIterator___sub__(self, *args) + def __iter__(self): + return self + +# Register SwigPyIterator in _XmlMDF: +_XmlMDF.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 = ". + + """ + return _XmlMDF.xmlmdf_AddDrivers(*args) + + @staticmethod + def FromTo(*args): + r""" + + Parameters + ---------- + aSource: TDF_Data + aTarget: XmlObjMgt_Element + aReloc: XmlObjMgt_SRelocationTable + aDrivers: XmlMDF_ADriverTable + theRange: Message_ProgressRange (optional, default to Message_ProgressRange()) + + Return + ------- + None + + Description + ----------- + Translates a transient into a persistent . + + Parameters + ---------- + aSource: XmlObjMgt_Element + aTarget: TDF_Data + aReloc: XmlObjMgt_RRelocationTable + aDrivers: XmlMDF_ADriverTable + theRange: Message_ProgressRange (optional, default to Message_ProgressRange()) + + Return + ------- + bool + + Description + ----------- + Translates a persistent into a transient . Returns True if completed successfully (False on error). + + """ + return _XmlMDF.xmlmdf_FromTo(*args) + + __repr__ = _dumps_object + + + def __init__(self): + _XmlMDF.xmlmdf_swiginit(self, _XmlMDF.new_xmlmdf()) + __swig_destroy__ = _XmlMDF.delete_xmlmdf + +# Register xmlmdf in _XmlMDF: +_XmlMDF.xmlmdf_swigregister(xmlmdf) +class XmlMDF_ADriver(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 MessageDriver(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the current message driver of this driver. + + """ + return _XmlMDF.XmlMDF_ADriver_MessageDriver(self, *args) + + def Namespace(self, *args): + r""" + Return + ------- + TCollection_AsciiString + + Description + ----------- + Returns the namespace string. + + """ + return _XmlMDF.XmlMDF_ADriver_Namespace(self, *args) + + def NewEmpty(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Creates a new attribute from TDF. + + """ + return _XmlMDF.XmlMDF_ADriver_NewEmpty(self, *args) + + def Paste(self, *args): + r""" + + Parameters + ---------- + aSource: XmlObjMgt_Persistent + aTarget: TDF_Attribute + aRelocTable: XmlObjMgt_RRelocationTable + + Return + ------- + bool + + Description + ----------- + Translate the contents of and put it into , using the relocation table to keep the sharings. + + Parameters + ---------- + aSource: TDF_Attribute + aTarget: XmlObjMgt_Persistent + aRelocTable: XmlObjMgt_SRelocationTable + + Return + ------- + None + + Description + ----------- + Translate the contents of and put it into , using the relocation table to keep the sharings. + + """ + return _XmlMDF.XmlMDF_ADriver_Paste(self, *args) + + def SourceType(self, *args): + r""" + Return + ------- + opencascade::handle + + Description + ----------- + Returns the type of source object, inheriting from Attribute from TDF. + + """ + return _XmlMDF.XmlMDF_ADriver_SourceType(self, *args) + + def TypeName(self, *args): + r""" + Return + ------- + TCollection_AsciiString + + Description + ----------- + Returns the full XML tag name (including NS prefix). + + """ + return _XmlMDF.XmlMDF_ADriver_TypeName(self, *args) + + def VersionNumber(self, *args): + r""" + Return + ------- + int + + Description + ----------- + Returns the version number from which the driver is available. + + """ + return _XmlMDF.XmlMDF_ADriver_VersionNumber(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_XmlMDF_ADriver_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _XmlMDF.delete_XmlMDF_ADriver + +# Register XmlMDF_ADriver in _XmlMDF: +_XmlMDF.XmlMDF_ADriver_swigregister(XmlMDF_ADriver) +class XmlMDF_ADriverTable(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 a mutable ADriverTable from XmlMDF. + + """ + _XmlMDF.XmlMDF_ADriverTable_swiginit(self, _XmlMDF.new_XmlMDF_ADriverTable(*args)) + + def AddDerivedDriver(self, *args): + r""" + + Parameters + ---------- + theInstance: TDF_Attribute + + Return + ------- + None + + Description + ----------- + Adds a translation driver for the derived attribute. The base driver must be already added. + Parameter theInstance is newly created attribute, detached from any label. + + Parameters + ---------- + theDerivedType: str + + Return + ------- + opencascade::handle + + Description + ----------- + Adds a translation driver for the derived attribute. The base driver must be already added. + Parameter theDerivedType is registered attribute type using IMPLEMENT_DERIVED_ATTRIBUTE macro. + + """ + return _XmlMDF.XmlMDF_ADriverTable_AddDerivedDriver(self, *args) + + def AddDriver(self, *args): + r""" + + Parameters + ---------- + anHDriver: XmlMDF_ADriver + + Return + ------- + None + + Description + ----------- + Sets a translation driver: . + + """ + return _XmlMDF.XmlMDF_ADriverTable_AddDriver(self, *args) + + def CreateDrvMap(self, *args): + r""" + + Parameters + ---------- + theDriverMap: XmlMDF_MapOfDriver + + Return + ------- + None + + Description + ----------- + Fills the map by all registered drivers. + + """ + return _XmlMDF.XmlMDF_ADriverTable_CreateDrvMap(self, *args) + + def GetDriver(self, *args): + r""" + + Parameters + ---------- + theType: Standard_Type + theDriver: XmlMDF_ADriver + + Return + ------- + bool + + Description + ----------- + Gets a driver according to //! Returns True if a driver is found; false otherwise. + + """ + return _XmlMDF.XmlMDF_ADriverTable_GetDriver(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_XmlMDF_ADriverTable_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _XmlMDF.delete_XmlMDF_ADriverTable + +# Register XmlMDF_ADriverTable in _XmlMDF: +_XmlMDF.XmlMDF_ADriverTable_swigregister(XmlMDF_ADriverTable) +class XmlMDF_DerivedDriver(XmlMDF_ADriver): + 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 + ---------- + theDerivative: TDF_Attribute + theBaseDriver: XmlMDF_ADriver + + Return + ------- + None + + Description + ----------- + Creates a derivative persistence driver for theDerivative attribute by reusage of theBaseDriver + Parameter theDerivative an instance of the attribute, just created, detached from any label + Parameter theBaseDriver a driver of the base attribute, called by Paste methods. + + """ + _XmlMDF.XmlMDF_DerivedDriver_swiginit(self, _XmlMDF.new_XmlMDF_DerivedDriver(*args)) + + def Paste(self, *args): + r""" + + Parameters + ---------- + theSource: XmlObjMgt_Persistent + theTarget: TDF_Attribute + theRelocTable: XmlObjMgt_RRelocationTable + + Return + ------- + bool + + Description + ----------- + Reuses the base driver to read the base fields. + + Parameters + ---------- + theSource: TDF_Attribute + theTarget: XmlObjMgt_Persistent + theRelocTable: XmlObjMgt_SRelocationTable + + Return + ------- + None + + Description + ----------- + Reuses the base driver to store the base fields. + + """ + return _XmlMDF.XmlMDF_DerivedDriver_Paste(self, *args) + + def TypeName(self, *args): + r""" + Return + ------- + TCollection_AsciiString + + Description + ----------- + Returns the full XML tag name (including NS prefix). + + """ + return _XmlMDF.XmlMDF_DerivedDriver_TypeName(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_XmlMDF_DerivedDriver_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _XmlMDF.delete_XmlMDF_DerivedDriver + +# Register XmlMDF_DerivedDriver in _XmlMDF: +_XmlMDF.XmlMDF_DerivedDriver_swigregister(XmlMDF_DerivedDriver) +class XmlMDF_ReferenceDriver(XmlMDF_ADriver): + 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 + ---------- + theMessageDriver: Message_Messenger + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _XmlMDF.XmlMDF_ReferenceDriver_swiginit(self, _XmlMDF.new_XmlMDF_ReferenceDriver(*args)) + + def Paste(self, *args): + r""" + + Parameters + ---------- + Source: XmlObjMgt_Persistent + Target: TDF_Attribute + RelocTable: XmlObjMgt_RRelocationTable + + Return + ------- + bool + + Description + ----------- + No available documentation. + + Parameters + ---------- + Source: TDF_Attribute + Target: XmlObjMgt_Persistent + RelocTable: XmlObjMgt_SRelocationTable + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _XmlMDF.XmlMDF_ReferenceDriver_Paste(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_XmlMDF_ReferenceDriver_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _XmlMDF.delete_XmlMDF_ReferenceDriver + +# Register XmlMDF_ReferenceDriver in _XmlMDF: +_XmlMDF.XmlMDF_ReferenceDriver_swigregister(XmlMDF_ReferenceDriver) +class XmlMDF_TagSourceDriver(XmlMDF_ADriver): + 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 + ---------- + theMessageDriver: Message_Messenger + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _XmlMDF.XmlMDF_TagSourceDriver_swiginit(self, _XmlMDF.new_XmlMDF_TagSourceDriver(*args)) + + def Paste(self, *args): + r""" + + Parameters + ---------- + Source: XmlObjMgt_Persistent + Target: TDF_Attribute + RelocTable: XmlObjMgt_RRelocationTable + + Return + ------- + bool + + Description + ----------- + No available documentation. + + Parameters + ---------- + Source: TDF_Attribute + Target: XmlObjMgt_Persistent + RelocTable: XmlObjMgt_SRelocationTable + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _XmlMDF.XmlMDF_TagSourceDriver_Paste(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_XmlMDF_TagSourceDriver_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _XmlMDF.delete_XmlMDF_TagSourceDriver + +# Register XmlMDF_TagSourceDriver in _XmlMDF: +_XmlMDF.XmlMDF_TagSourceDriver_swigregister(XmlMDF_TagSourceDriver) + + + +@deprecated +def xmlmdf_AddDrivers(*args): + return xmlmdf.AddDrivers(*args) + +@deprecated +def xmlmdf_FromTo(*args): + return xmlmdf.FromTo(*args) + +@deprecated +def xmlmdf_FromTo(*args): + return xmlmdf.FromTo(*args) + + + diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/XmlMDocStd.pyi b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/XmlMDocStd.pyi new file mode 100644 index 0000000000000000000000000000000000000000..c89d9e605f9c51cf2ccfd26c3d274a0351ce5482 --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/XmlMDocStd.pyi @@ -0,0 +1,37 @@ +from enum import IntEnum +from typing import overload, NewType, Optional, Tuple + +from OCC.Core.Standard import * +from OCC.Core.NCollection import * +from OCC.Core.XmlMDF import * +from OCC.Core.Message import * +from OCC.Core.TDF import * +from OCC.Core.XmlObjMgt import * + +class xmlmdocstd: + @staticmethod + def AddDrivers( + aDriverTable: XmlMDF_ADriverTable, theMessageDriver: Message_Messenger + ) -> None: ... + +class XmlMDocStd_XLinkDriver(XmlMDF_ADriver): + def __init__(self, theMessageDriver: Message_Messenger) -> None: ... + def NewEmpty(self) -> TDF_Attribute: ... + @overload + def Paste( + self, + Source: XmlObjMgt_Persistent, + Target: TDF_Attribute, + RelocTable: XmlObjMgt_RRelocationTable, + ) -> bool: ... + @overload + def Paste( + self, + Source: TDF_Attribute, + Target: XmlObjMgt_Persistent, + RelocTable: XmlObjMgt_SRelocationTable, + ) -> None: ... + +# harray1 classes +# harray2 classes +# hsequence classes diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/XmlTObjDrivers.py b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/XmlTObjDrivers.py new file mode 100644 index 0000000000000000000000000000000000000000..37b123ca55b8fcb4f3279e73cd2c36df630d661d --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/XmlTObjDrivers.py @@ -0,0 +1,1033 @@ +# 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. + +""" +XmlTObjDrivers module, see official documentation at +https://dev.opencascade.org/doc/occt-7.9.0/refman/html/package_xmltobjdrivers.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 _XmlTObjDrivers +else: + import _XmlTObjDrivers + +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__ = _XmlTObjDrivers.delete_SwigPyIterator + + def value(self): + return _XmlTObjDrivers.SwigPyIterator_value(self) + + def incr(self, n=1): + return _XmlTObjDrivers.SwigPyIterator_incr(self, n) + + def decr(self, n=1): + return _XmlTObjDrivers.SwigPyIterator_decr(self, n) + + def distance(self, x): + return _XmlTObjDrivers.SwigPyIterator_distance(self, x) + + def equal(self, x): + return _XmlTObjDrivers.SwigPyIterator_equal(self, x) + + def copy(self): + return _XmlTObjDrivers.SwigPyIterator_copy(self) + + def next(self): + return _XmlTObjDrivers.SwigPyIterator_next(self) + + def __next__(self): + return _XmlTObjDrivers.SwigPyIterator___next__(self) + + def previous(self): + return _XmlTObjDrivers.SwigPyIterator_previous(self) + + def advance(self, n): + return _XmlTObjDrivers.SwigPyIterator_advance(self, n) + + def __eq__(self, x): + return _XmlTObjDrivers.SwigPyIterator___eq__(self, x) + + def __ne__(self, x): + return _XmlTObjDrivers.SwigPyIterator___ne__(self, x) + + def __iadd__(self, n): + return _XmlTObjDrivers.SwigPyIterator___iadd__(self, n) + + def __isub__(self, n): + return _XmlTObjDrivers.SwigPyIterator___isub__(self, n) + + def __add__(self, n): + return _XmlTObjDrivers.SwigPyIterator___add__(self, n) + + def __sub__(self, *args): + return _XmlTObjDrivers.SwigPyIterator___sub__(self, *args) + def __iter__(self): + return self + +# Register SwigPyIterator in _XmlTObjDrivers: +_XmlTObjDrivers.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 a driver corresponding to . Used for plugin. + + """ + return _XmlTObjDrivers.xmltobjdrivers_Factory(*args) + + __repr__ = _dumps_object + + + def __init__(self): + _XmlTObjDrivers.xmltobjdrivers_swiginit(self, _XmlTObjDrivers.new_xmltobjdrivers()) + __swig_destroy__ = _XmlTObjDrivers.delete_xmltobjdrivers + +# Register xmltobjdrivers in _XmlTObjDrivers: +_XmlTObjDrivers.xmltobjdrivers_swigregister(xmltobjdrivers) +class XmlTObjDrivers_DocumentRetrievalDriver(OCC.Core.XmlLDrivers.XmlLDrivers_DocumentRetrievalDriver): + 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. + + """ + _XmlTObjDrivers.XmlTObjDrivers_DocumentRetrievalDriver_swiginit(self, _XmlTObjDrivers.new_XmlTObjDrivers_DocumentRetrievalDriver(*args)) + + + @staticmethod + def DownCast(t): + return Handle_XmlTObjDrivers_DocumentRetrievalDriver_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _XmlTObjDrivers.delete_XmlTObjDrivers_DocumentRetrievalDriver + +# Register XmlTObjDrivers_DocumentRetrievalDriver in _XmlTObjDrivers: +_XmlTObjDrivers.XmlTObjDrivers_DocumentRetrievalDriver_swigregister(XmlTObjDrivers_DocumentRetrievalDriver) +class XmlTObjDrivers_DocumentStorageDriver(OCC.Core.XmlLDrivers.XmlLDrivers_DocumentStorageDriver): + 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 + ---------- + theCopyright: str + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _XmlTObjDrivers.XmlTObjDrivers_DocumentStorageDriver_swiginit(self, _XmlTObjDrivers.new_XmlTObjDrivers_DocumentStorageDriver(*args)) + + + @staticmethod + def DownCast(t): + return Handle_XmlTObjDrivers_DocumentStorageDriver_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _XmlTObjDrivers.delete_XmlTObjDrivers_DocumentStorageDriver + +# Register XmlTObjDrivers_DocumentStorageDriver in _XmlTObjDrivers: +_XmlTObjDrivers.XmlTObjDrivers_DocumentStorageDriver_swigregister(XmlTObjDrivers_DocumentStorageDriver) +class XmlTObjDrivers_IntSparseArrayDriver(OCC.Core.XmlMDF.XmlMDF_ADriver): + 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 + ---------- + theMessageDriver: Message_Messenger + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _XmlTObjDrivers.XmlTObjDrivers_IntSparseArrayDriver_swiginit(self, _XmlTObjDrivers.new_XmlTObjDrivers_IntSparseArrayDriver(*args)) + + def Paste(self, *args): + r""" + + Parameters + ---------- + theSource: XmlObjMgt_Persistent + theTarget: TDF_Attribute + theRelocTable: XmlObjMgt_RRelocationTable + + Return + ------- + bool + + Description + ----------- + No available documentation. + + Parameters + ---------- + theSource: TDF_Attribute + theTarget: XmlObjMgt_Persistent + theRelocTable: XmlObjMgt_SRelocationTable + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _XmlTObjDrivers.XmlTObjDrivers_IntSparseArrayDriver_Paste(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_XmlTObjDrivers_IntSparseArrayDriver_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _XmlTObjDrivers.delete_XmlTObjDrivers_IntSparseArrayDriver + +# Register XmlTObjDrivers_IntSparseArrayDriver in _XmlTObjDrivers: +_XmlTObjDrivers.XmlTObjDrivers_IntSparseArrayDriver_swigregister(XmlTObjDrivers_IntSparseArrayDriver) +class XmlTObjDrivers_ModelDriver(OCC.Core.XmlMDF.XmlMDF_ADriver): + 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 + ---------- + theMessageDriver: Message_Messenger + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _XmlTObjDrivers.XmlTObjDrivers_ModelDriver_swiginit(self, _XmlTObjDrivers.new_XmlTObjDrivers_ModelDriver(*args)) + + def Paste(self, *args): + r""" + + Parameters + ---------- + Source: XmlObjMgt_Persistent + Target: TDF_Attribute + RelocTable: XmlObjMgt_RRelocationTable + + Return + ------- + bool + + Description + ----------- + No available documentation. + + Parameters + ---------- + Source: TDF_Attribute + Target: XmlObjMgt_Persistent + RelocTable: XmlObjMgt_SRelocationTable + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _XmlTObjDrivers.XmlTObjDrivers_ModelDriver_Paste(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_XmlTObjDrivers_ModelDriver_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _XmlTObjDrivers.delete_XmlTObjDrivers_ModelDriver + +# Register XmlTObjDrivers_ModelDriver in _XmlTObjDrivers: +_XmlTObjDrivers.XmlTObjDrivers_ModelDriver_swigregister(XmlTObjDrivers_ModelDriver) +class XmlTObjDrivers_ObjectDriver(OCC.Core.XmlMDF.XmlMDF_ADriver): + 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 + ---------- + theMessageDriver: Message_Messenger + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _XmlTObjDrivers.XmlTObjDrivers_ObjectDriver_swiginit(self, _XmlTObjDrivers.new_XmlTObjDrivers_ObjectDriver(*args)) + + def Paste(self, *args): + r""" + + Parameters + ---------- + Source: XmlObjMgt_Persistent + Target: TDF_Attribute + RelocTable: XmlObjMgt_RRelocationTable + + Return + ------- + bool + + Description + ----------- + No available documentation. + + Parameters + ---------- + Source: TDF_Attribute + Target: XmlObjMgt_Persistent + RelocTable: XmlObjMgt_SRelocationTable + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _XmlTObjDrivers.XmlTObjDrivers_ObjectDriver_Paste(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_XmlTObjDrivers_ObjectDriver_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _XmlTObjDrivers.delete_XmlTObjDrivers_ObjectDriver + +# Register XmlTObjDrivers_ObjectDriver in _XmlTObjDrivers: +_XmlTObjDrivers.XmlTObjDrivers_ObjectDriver_swigregister(XmlTObjDrivers_ObjectDriver) +class XmlTObjDrivers_ReferenceDriver(OCC.Core.XmlMDF.XmlMDF_ADriver): + 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 + ---------- + theMessageDriver: Message_Messenger + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _XmlTObjDrivers.XmlTObjDrivers_ReferenceDriver_swiginit(self, _XmlTObjDrivers.new_XmlTObjDrivers_ReferenceDriver(*args)) + + def Paste(self, *args): + r""" + + Parameters + ---------- + Source: XmlObjMgt_Persistent + Target: TDF_Attribute + RelocTable: XmlObjMgt_RRelocationTable + + Return + ------- + bool + + Description + ----------- + No available documentation. + + Parameters + ---------- + Source: TDF_Attribute + Target: XmlObjMgt_Persistent + RelocTable: XmlObjMgt_SRelocationTable + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _XmlTObjDrivers.XmlTObjDrivers_ReferenceDriver_Paste(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_XmlTObjDrivers_ReferenceDriver_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _XmlTObjDrivers.delete_XmlTObjDrivers_ReferenceDriver + +# Register XmlTObjDrivers_ReferenceDriver in _XmlTObjDrivers: +_XmlTObjDrivers.XmlTObjDrivers_ReferenceDriver_swigregister(XmlTObjDrivers_ReferenceDriver) +class XmlTObjDrivers_XYZDriver(OCC.Core.XmlMDF.XmlMDF_ADriver): + 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 + ---------- + theMessageDriver: Message_Messenger + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + _XmlTObjDrivers.XmlTObjDrivers_XYZDriver_swiginit(self, _XmlTObjDrivers.new_XmlTObjDrivers_XYZDriver(*args)) + + def Paste(self, *args): + r""" + + Parameters + ---------- + Source: XmlObjMgt_Persistent + Target: TDF_Attribute + RelocTable: XmlObjMgt_RRelocationTable + + Return + ------- + bool + + Description + ----------- + No available documentation. + + Parameters + ---------- + Source: TDF_Attribute + Target: XmlObjMgt_Persistent + RelocTable: XmlObjMgt_SRelocationTable + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _XmlTObjDrivers.XmlTObjDrivers_XYZDriver_Paste(self, *args) + + + @staticmethod + def DownCast(t): + return Handle_XmlTObjDrivers_XYZDriver_DownCast(t) + + + __repr__ = _dumps_object + + __swig_destroy__ = _XmlTObjDrivers.delete_XmlTObjDrivers_XYZDriver + +# Register XmlTObjDrivers_XYZDriver in _XmlTObjDrivers: +_XmlTObjDrivers.XmlTObjDrivers_XYZDriver_swigregister(XmlTObjDrivers_XYZDriver) + + + +@deprecated +def xmltobjdrivers_AddDrivers(*args): + return xmltobjdrivers.AddDrivers(*args) + +@deprecated +def xmltobjdrivers_DefineFormat(*args): + return xmltobjdrivers.DefineFormat(*args) + +@deprecated +def xmltobjdrivers_Factory(*args): + return xmltobjdrivers.Factory(*args) + + + diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/XmlXCAFDrivers.pyi b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/XmlXCAFDrivers.pyi new file mode 100644 index 0000000000000000000000000000000000000000..447dc574f085afc0c6255fb21d17831a905c5062 --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/XmlXCAFDrivers.pyi @@ -0,0 +1,32 @@ +from enum import IntEnum +from typing import overload, NewType, Optional, Tuple + +from OCC.Core.Standard import * +from OCC.Core.NCollection import * +from OCC.Core.TDocStd import * +from OCC.Core.XmlDrivers import * +from OCC.Core.Message import * +from OCC.Core.XmlMDF import * +from OCC.Core.TCollection import * + +class xmlxcafdrivers: + @staticmethod + def DefineFormat(theApp: TDocStd_Application) -> None: ... + @staticmethod + def Factory(aGUID: Standard_GUID) -> Standard_Transient: ... + +class XmlXCAFDrivers_DocumentRetrievalDriver(XmlDrivers_DocumentRetrievalDriver): + def __init__(self) -> None: ... + def AttributeDrivers( + self, theMsgDriver: Message_Messenger + ) -> XmlMDF_ADriverTable: ... + +class XmlXCAFDrivers_DocumentStorageDriver(XmlDrivers_DocumentStorageDriver): + def __init__(self, theCopyright: str) -> None: ... + def AttributeDrivers( + self, theMsgDriver: Message_Messenger + ) -> XmlMDF_ADriverTable: ... + +# harray1 classes +# harray2 classes +# hsequence classes diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/gp.py b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/gp.py new file mode 100644 index 0000000000000000000000000000000000000000..9c092b12229af7238a308bd3d02668cedd2f65b4 --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/gp.py @@ -0,0 +1,23689 @@ +# 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. + +""" +gp module, see official documentation at +https://dev.opencascade.org/doc/occt-7.9.0/refman/html/package_gp.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 _gp +else: + import _gp + +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__ = _gp.delete_SwigPyIterator + + def value(self): + return _gp.SwigPyIterator_value(self) + + def incr(self, n=1): + return _gp.SwigPyIterator_incr(self, n) + + def decr(self, n=1): + return _gp.SwigPyIterator_decr(self, n) + + def distance(self, x): + return _gp.SwigPyIterator_distance(self, x) + + def equal(self, x): + return _gp.SwigPyIterator_equal(self, x) + + def copy(self): + return _gp.SwigPyIterator_copy(self) + + def next(self): + return _gp.SwigPyIterator_next(self) + + def __next__(self): + return _gp.SwigPyIterator___next__(self) + + def previous(self): + return _gp.SwigPyIterator_previous(self) + + def advance(self, n): + return _gp.SwigPyIterator_advance(self, n) + + def __eq__(self, x): + return _gp.SwigPyIterator___eq__(self, x) + + def __ne__(self, x): + return _gp.SwigPyIterator___ne__(self, x) + + def __iadd__(self, n): + return _gp.SwigPyIterator___iadd__(self, n) + + def __isub__(self, n): + return _gp.SwigPyIterator___isub__(self, n) + + def __add__(self, n): + return _gp.SwigPyIterator___add__(self, n) + + def __sub__(self, *args): + return _gp.SwigPyIterator___sub__(self, *args) + def __iter__(self): + return self + +# Register SwigPyIterator in _gp: +_gp.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 = ". + + """ + _gp.gp_Ax1_swiginit(self, _gp.new_gp_Ax1(*args)) + + def Angle(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Ax1 + + Return + ------- + float + + Description + ----------- + Computes the angular value, in radians, between this.Direction() and theOther.Direction(). Returns the angle between 0 and 2*PI radians. + + """ + return _gp.gp_Ax1_Angle(self, *args) + + def Direction(self, *args): + r""" + Return + ------- + gp_Dir + + Description + ----------- + Returns the direction of . + + """ + return _gp.gp_Ax1_Direction(self, *args) + + def DumpJson(self, depth=-1): + r""" + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + """ + return _gp.gp_Ax1_DumpJson(self, depth) + + def InitFromJson(self, json_string): + r""" + + Parameters + ---------- + json_string: the string + + Return + ------- + bool + + Description + ----------- + Init the object from a JSON string. + + """ + return _gp.gp_Ax1_InitFromJson(self, json_string) + + def IsCoaxial(self, *args): + r""" + + Parameters + ---------- + Other: gp_Ax1 + AngularTolerance: float + LinearTolerance: float + + Return + ------- + bool + + Description + ----------- + Returns True if: . the angle between and is lower or equal to and . the distance between .Location() and is lower or equal to and . the distance between .Location() and is lower or equal to LinearTolerance. + + """ + return _gp.gp_Ax1_IsCoaxial(self, *args) + + def IsNormal(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Ax1 + theAngularTolerance: float + + Return + ------- + bool + + Description + ----------- + Returns True if the direction of this and another axis are normal to each other. That is, if the angle between the two axes is equal to Pi/2. Note: the tolerance criterion is given by theAngularTolerance. + + """ + return _gp.gp_Ax1_IsNormal(self, *args) + + def IsOpposite(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Ax1 + theAngularTolerance: float + + Return + ------- + bool + + Description + ----------- + Returns True if the direction of this and another axis are parallel with opposite orientation. That is, if the angle between the two axes is equal to Pi. Note: the tolerance criterion is given by theAngularTolerance. + + """ + return _gp.gp_Ax1_IsOpposite(self, *args) + + def IsParallel(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Ax1 + theAngularTolerance: float + + Return + ------- + bool + + Description + ----------- + Returns True if the direction of this and another axis are parallel with same orientation or opposite orientation. That is, if the angle between the two axes is equal to 0 or Pi. Note: the tolerance criterion is given by theAngularTolerance. + + """ + return _gp.gp_Ax1_IsParallel(self, *args) + + def Location(self, *args): + r""" + Return + ------- + gp_Pnt + + Description + ----------- + Returns the location point of . + + """ + return _gp.gp_Ax1_Location(self, *args) + + def Mirror(self, *args): + r""" + + Parameters + ---------- + P: gp_Pnt + + Return + ------- + None + + Description + ----------- + Performs the symmetrical transformation of an axis placement with respect to the point P which is the center of the symmetry and assigns the result to this axis. + + Parameters + ---------- + A1: gp_Ax1 + + Return + ------- + None + + Description + ----------- + Performs the symmetrical transformation of an axis placement with respect to an axis placement which is the axis of the symmetry and assigns the result to this axis. + + Parameters + ---------- + A2: gp_Ax2 + + Return + ------- + None + + Description + ----------- + Performs the symmetrical transformation of an axis placement with respect to a plane. The axis placement locates the plane of the symmetry: (Location, XDirection, YDirection) and assigns the result to this axis. + + """ + return _gp.gp_Ax1_Mirror(self, *args) + + def Mirrored(self, *args): + r""" + + Parameters + ---------- + P: gp_Pnt + + Return + ------- + gp_Ax1 + + Description + ----------- + Performs the symmetrical transformation of an axis placement with respect to the point P which is the center of the symmetry and creates a new axis. + + Parameters + ---------- + A1: gp_Ax1 + + Return + ------- + gp_Ax1 + + Description + ----------- + Performs the symmetrical transformation of an axis placement with respect to an axis placement which is the axis of the symmetry and creates a new axis. + + Parameters + ---------- + A2: gp_Ax2 + + Return + ------- + gp_Ax1 + + Description + ----------- + Performs the symmetrical transformation of an axis placement with respect to a plane. The axis placement locates the plane of the symmetry: (Location, XDirection, YDirection) and creates a new axis. + + """ + return _gp.gp_Ax1_Mirrored(self, *args) + + def Reverse(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Reverses the unit vector of this axis and assigns the result to this axis. + + """ + return _gp.gp_Ax1_Reverse(self, *args) + + def Reversed(self, *args): + r""" + Return + ------- + gp_Ax1 + + Description + ----------- + Reverses the unit vector of this axis and creates a new one. + + """ + return _gp.gp_Ax1_Reversed(self, *args) + + def Rotate(self, *args): + r""" + + Parameters + ---------- + theA1: gp_Ax1 + theAngRad: float + + Return + ------- + None + + Description + ----------- + Rotates this axis at an angle theAngRad (in radians) about the axis theA1 and assigns the result to this axis. + + """ + return _gp.gp_Ax1_Rotate(self, *args) + + def Rotated(self, *args): + r""" + + Parameters + ---------- + theA1: gp_Ax1 + theAngRad: float + + Return + ------- + gp_Ax1 + + Description + ----------- + Rotates this axis at an angle theAngRad (in radians) about the axis theA1 and creates a new one. + + """ + return _gp.gp_Ax1_Rotated(self, *args) + + def Scale(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + theS: float + + Return + ------- + None + + Description + ----------- + Applies a scaling transformation to this axis with: - scale factor theS, and - center theP and assigns the result to this axis. + + """ + return _gp.gp_Ax1_Scale(self, *args) + + def Scaled(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + theS: float + + Return + ------- + gp_Ax1 + + Description + ----------- + Applies a scaling transformation to this axis with: - scale factor theS, and - center theP and creates a new axis. + + """ + return _gp.gp_Ax1_Scaled(self, *args) + + def SetDirection(self, *args): + r""" + + Parameters + ---------- + theV: gp_Dir + + Return + ------- + None + + Description + ----------- + Assigns V as the 'Direction' of this axis. + + """ + return _gp.gp_Ax1_SetDirection(self, *args) + + def SetLocation(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + + Return + ------- + None + + Description + ----------- + Assigns P as the origin of this axis. + + """ + return _gp.gp_Ax1_SetLocation(self, *args) + + def Transform(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf + + Return + ------- + None + + Description + ----------- + Applies the transformation theT to this axis and assigns the result to this axis. + + """ + return _gp.gp_Ax1_Transform(self, *args) + + def Transformed(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf + + Return + ------- + gp_Ax1 + + Description + ----------- + Applies the transformation theT to this axis and creates a new one. //! Translates an axis plaxement in the direction of the vector . The magnitude of the translation is the vector's magnitude. + + """ + return _gp.gp_Ax1_Transformed(self, *args) + + def Translate(self, *args): + r""" + + Parameters + ---------- + theV: gp_Vec + + Return + ------- + None + + Description + ----------- + Translates this axis by the vector theV, and assigns the result to this axis. + + Parameters + ---------- + theP1: gp_Pnt + theP2: gp_Pnt + + Return + ------- + None + + Description + ----------- + Translates this axis by: the vector (theP1, theP2) defined from point theP1 to point theP2. and assigns the result to this axis. + + """ + return _gp.gp_Ax1_Translate(self, *args) + + def Translated(self, *args): + r""" + + Parameters + ---------- + theV: gp_Vec + + Return + ------- + gp_Ax1 + + Description + ----------- + Translates this axis by the vector theV, and creates a new one. + + Parameters + ---------- + theP1: gp_Pnt + theP2: gp_Pnt + + Return + ------- + gp_Ax1 + + Description + ----------- + Translates this axis by: the vector (theP1, theP2) defined from point theP1 to point theP2. and creates a new one. + + """ + return _gp.gp_Ax1_Translated(self, *args) + + def __getstate__(self): + return self.DumpJson() + + + def __setstate__(self, state): + inst = gp_Ax1() + if inst.InitFromJson(state): + self.this = inst.this + else: + raise IOError('Failed to set state of gp_Ax1') + + + __repr__ = _dumps_object + + __swig_destroy__ = _gp.delete_gp_Ax1 + +# Register gp_Ax1 in _gp: +_gp.gp_Ax1_swigregister(gp_Ax1) +class gp_Ax2(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 + ----------- + Creates an object corresponding to the reference coordinate system (OXYZ). + + Parameters + ---------- + P: gp_Pnt + N: gp_Dir + Vx: gp_Dir + + Return + ------- + None + + Description + ----------- + Creates an axis placement with an origin P such that: - N is the Direction, and - the 'X Direction' is normal to N, in the plane defined by the vectors (N, Vx): 'X Direction' = (N ^ Vx) ^ N, Exception: raises ConstructionError if N and Vx are parallel (same or opposite orientation). + + Parameters + ---------- + P: gp_Pnt + V: gp_Dir + + Return + ------- + None + + Description + ----------- + Creates - a coordinate system with an origin P, where V gives the 'main Direction' (here, 'X Direction' and 'Y Direction' are defined automatically). + + """ + _gp.gp_Ax2_swiginit(self, _gp.new_gp_Ax2(*args)) + + def Angle(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Ax2 + + Return + ------- + float + + Description + ----------- + Computes the angular value, in radians, between the main direction of and the main direction of . Returns the angle between 0 and PI in radians. + + """ + return _gp.gp_Ax2_Angle(self, *args) + + def Axis(self, *args): + r""" + Return + ------- + gp_Ax1 + + Description + ----------- + Returns the main axis of . It is the 'Location' point and the main 'Direction'. + + """ + return _gp.gp_Ax2_Axis(self, *args) + + def Direction(self, *args): + r""" + Return + ------- + gp_Dir + + Description + ----------- + Returns the main direction of . + + """ + return _gp.gp_Ax2_Direction(self, *args) + + def DumpJson(self, depth=-1): + r""" + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + """ + return _gp.gp_Ax2_DumpJson(self, depth) + + def InitFromJson(self, json_string): + r""" + + Parameters + ---------- + json_string: the string + + Return + ------- + bool + + Description + ----------- + Init the object from a JSON string. + + """ + return _gp.gp_Ax2_InitFromJson(self, json_string) + + def IsCoplanar(self, *args): + r""" + + Parameters + ---------- + Other: gp_Ax2 + LinearTolerance: float + AngularTolerance: float + + Return + ------- + bool + + Description + ----------- + No available documentation. + + Parameters + ---------- + A1: gp_Ax1 + LinearTolerance: float + AngularTolerance: float + + Return + ------- + bool + + Description + ----------- + Returns True if . the distance between and the 'Location' point of A1 is lower of equal to LinearTolerance and . the main direction of and the direction of A1 are normal. Note: the tolerance criterion for angular equality is given by AngularTolerance. + + """ + return _gp.gp_Ax2_IsCoplanar(self, *args) + + def Location(self, *args): + r""" + Return + ------- + gp_Pnt + + Description + ----------- + Returns the 'Location' point (origin) of . + + """ + return _gp.gp_Ax2_Location(self, *args) + + def Mirror(self, *args): + r""" + + Parameters + ---------- + P: gp_Pnt + + Return + ------- + None + + Description + ----------- + Performs a symmetrical transformation of this coordinate system with respect to: - the point P, and assigns the result to this coordinate system. Warning This transformation is always performed on the origin. In case of a reflection with respect to a point: - the main direction of the coordinate system is not changed, and - the 'X Direction' and the 'Y Direction' are simply reversed In case of a reflection with respect to an axis or a plane: - the transformation is applied to the 'X Direction' and the 'Y Direction', then - the 'main Direction' is recomputed as the cross product 'X Direction' ^ 'Y Direction'. This maintains the right-handed property of the coordinate system. + + Parameters + ---------- + A1: gp_Ax1 + + Return + ------- + None + + Description + ----------- + Performs a symmetrical transformation of this coordinate system with respect to: - the axis A1, and assigns the result to this coordinate systeme. Warning This transformation is always performed on the origin. In case of a reflection with respect to a point: - the main direction of the coordinate system is not changed, and - the 'X Direction' and the 'Y Direction' are simply reversed In case of a reflection with respect to an axis or a plane: - the transformation is applied to the 'X Direction' and the 'Y Direction', then - the 'main Direction' is recomputed as the cross product 'X Direction' ^ 'Y Direction'. This maintains the right-handed property of the coordinate system. + + Parameters + ---------- + A2: gp_Ax2 + + Return + ------- + None + + Description + ----------- + Performs a symmetrical transformation of this coordinate system with respect to: - the plane defined by the origin, 'X Direction' and 'Y Direction' of coordinate system A2 and assigns the result to this coordinate systeme. Warning This transformation is always performed on the origin. In case of a reflection with respect to a point: - the main direction of the coordinate system is not changed, and - the 'X Direction' and the 'Y Direction' are simply reversed In case of a reflection with respect to an axis or a plane: - the transformation is applied to the 'X Direction' and the 'Y Direction', then - the 'main Direction' is recomputed as the cross product 'X Direction' ^ 'Y Direction'. This maintains the right-handed property of the coordinate system. + + """ + return _gp.gp_Ax2_Mirror(self, *args) + + def Mirrored(self, *args): + r""" + + Parameters + ---------- + P: gp_Pnt + + Return + ------- + gp_Ax2 + + Description + ----------- + Performs a symmetrical transformation of this coordinate system with respect to: - the point P, and creates a new one. Warning This transformation is always performed on the origin. In case of a reflection with respect to a point: - the main direction of the coordinate system is not changed, and - the 'X Direction' and the 'Y Direction' are simply reversed In case of a reflection with respect to an axis or a plane: - the transformation is applied to the 'X Direction' and the 'Y Direction', then - the 'main Direction' is recomputed as the cross product 'X Direction' ^ 'Y Direction'. This maintains the right-handed property of the coordinate system. + + Parameters + ---------- + A1: gp_Ax1 + + Return + ------- + gp_Ax2 + + Description + ----------- + Performs a symmetrical transformation of this coordinate system with respect to: - the axis A1, and creates a new one. Warning This transformation is always performed on the origin. In case of a reflection with respect to a point: - the main direction of the coordinate system is not changed, and - the 'X Direction' and the 'Y Direction' are simply reversed In case of a reflection with respect to an axis or a plane: - the transformation is applied to the 'X Direction' and the 'Y Direction', then - the 'main Direction' is recomputed as the cross product 'X Direction' ^ 'Y Direction'. This maintains the right-handed property of the coordinate system. + + Parameters + ---------- + A2: gp_Ax2 + + Return + ------- + gp_Ax2 + + Description + ----------- + Performs a symmetrical transformation of this coordinate system with respect to: - the plane defined by the origin, 'X Direction' and 'Y Direction' of coordinate system A2 and creates a new one. Warning This transformation is always performed on the origin. In case of a reflection with respect to a point: - the main direction of the coordinate system is not changed, and - the 'X Direction' and the 'Y Direction' are simply reversed In case of a reflection with respect to an axis or a plane: - the transformation is applied to the 'X Direction' and the 'Y Direction', then - the 'main Direction' is recomputed as the cross product 'X Direction' ^ 'Y Direction'. This maintains the right-handed property of the coordinate system. + + """ + return _gp.gp_Ax2_Mirrored(self, *args) + + def Rotate(self, *args): + r""" + + Parameters + ---------- + theA1: gp_Ax1 + theAng: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Ax2_Rotate(self, *args) + + def Rotated(self, *args): + r""" + + Parameters + ---------- + theA1: gp_Ax1 + theAng: float + + Return + ------- + gp_Ax2 + + Description + ----------- + Rotates an axis placement. is the axis of the rotation. theAng is the angular value of the rotation in radians. + + """ + return _gp.gp_Ax2_Rotated(self, *args) + + def Scale(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + theS: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Ax2_Scale(self, *args) + + def Scaled(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + theS: float + + Return + ------- + gp_Ax2 + + Description + ----------- + Applies a scaling transformation on the axis placement. The 'Location' point of the axisplacement is modified. Warnings: If the scale is negative: . the main direction of the axis placement is not changed. . The 'XDirection' and the 'YDirection' are reversed. So the axis placement stay right handed. + + """ + return _gp.gp_Ax2_Scaled(self, *args) + + def SetAxis(self, *args): + r""" + + Parameters + ---------- + A1: gp_Ax1 + + Return + ------- + None + + Description + ----------- + Assigns the origin and 'main Direction' of the axis A1 to this coordinate system, then recomputes its 'X Direction' and 'Y Direction'. Note: The new 'X Direction' is computed as follows: new 'X Direction' = V1 ^(previous 'X Direction' ^ V) where V is the 'Direction' of A1. Exceptions Standard_ConstructionError if A1 is parallel to the 'X Direction' of this coordinate system. + + """ + return _gp.gp_Ax2_SetAxis(self, *args) + + def SetDirection(self, *args): + r""" + + Parameters + ---------- + V: gp_Dir + + Return + ------- + None + + Description + ----------- + Changes the 'main Direction' of this coordinate system, then recomputes its 'X Direction' and 'Y Direction'. Note: the new 'X Direction' is computed as follows: new 'X Direction' = V ^ (previous 'X Direction' ^ V) Exceptions Standard_ConstructionError if V is parallel to the 'X Direction' of this coordinate system. + + """ + return _gp.gp_Ax2_SetDirection(self, *args) + + def SetLocation(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + + Return + ------- + None + + Description + ----------- + Changes the 'Location' point (origin) of . + + """ + return _gp.gp_Ax2_SetLocation(self, *args) + + def SetXDirection(self, *args): + r""" + + Parameters + ---------- + theVx: gp_Dir + + Return + ------- + None + + Description + ----------- + Changes the 'Xdirection' of . The main direction 'Direction' is not modified, the 'Ydirection' is modified. If is not normal to the main direction then is computed as follows XDirection = Direction ^ (Vx ^ Direction). Exceptions Standard_ConstructionError if Vx or Vy is parallel to the 'main Direction' of this coordinate system. + + """ + return _gp.gp_Ax2_SetXDirection(self, *args) + + def SetYDirection(self, *args): + r""" + + Parameters + ---------- + theVy: gp_Dir + + Return + ------- + None + + Description + ----------- + Changes the 'Ydirection' of . The main direction is not modified but the 'Xdirection' is changed. If is not normal to the main direction then 'YDirection' is computed as follows YDirection = Direction ^ ( ^ Direction). Exceptions Standard_ConstructionError if Vx or Vy is parallel to the 'main Direction' of this coordinate system. + + """ + return _gp.gp_Ax2_SetYDirection(self, *args) + + def Transform(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Ax2_Transform(self, *args) + + def Transformed(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf + + Return + ------- + gp_Ax2 + + Description + ----------- + Transforms an axis placement with a Trsf. The 'Location' point, the 'XDirection' and the 'YDirection' are transformed with theT. The resulting main 'Direction' of is the cross product between the 'XDirection' and the 'YDirection' after transformation. + + """ + return _gp.gp_Ax2_Transformed(self, *args) + + def Translate(self, *args): + r""" + + Parameters + ---------- + theV: gp_Vec + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theP1: gp_Pnt + theP2: gp_Pnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Ax2_Translate(self, *args) + + def Translated(self, *args): + r""" + + Parameters + ---------- + theV: gp_Vec + + Return + ------- + gp_Ax2 + + Description + ----------- + Translates an axis plaxement in the direction of the vector . The magnitude of the translation is the vector's magnitude. + + Parameters + ---------- + theP1: gp_Pnt + theP2: gp_Pnt + + Return + ------- + gp_Ax2 + + Description + ----------- + Translates an axis placement from the point to the point . + + """ + return _gp.gp_Ax2_Translated(self, *args) + + def XDirection(self, *args): + r""" + Return + ------- + gp_Dir + + Description + ----------- + Returns the 'XDirection' of . + + """ + return _gp.gp_Ax2_XDirection(self, *args) + + def YDirection(self, *args): + r""" + Return + ------- + gp_Dir + + Description + ----------- + Returns the 'YDirection' of . + + """ + return _gp.gp_Ax2_YDirection(self, *args) + + def __getstate__(self): + return self.DumpJson() + + + def __setstate__(self, state): + inst = gp_Ax2() + if inst.InitFromJson(state): + self.this = inst.this + else: + raise IOError('Failed to set state of gp_Ax2') + + + __repr__ = _dumps_object + + __swig_destroy__ = _gp.delete_gp_Ax2 + +# Register gp_Ax2 in _gp: +_gp.gp_Ax2_swigregister(gp_Ax2) +class gp_Ax22d(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 + ----------- + Creates an object representing the reference coordinate system (OXY). + + Parameters + ---------- + theP: gp_Pnt2d + theVx: gp_Dir2d + theVy: gp_Dir2d + + Return + ------- + None + + Description + ----------- + Creates a coordinate system with origin theP and where: - theVx is the 'X Direction', and - the 'Y Direction' is orthogonal to theVx and oriented so that the cross products theVx^'Y Direction' and theVx^theVy have the same sign. Raises ConstructionError if theVx and theVy are parallel (same or opposite orientation). + + Parameters + ---------- + theP: gp_Pnt2d + theV: gp_Dir2d + theIsSense: bool (optional, default to Standard_True) + + Return + ------- + None + + Description + ----------- + Creates - a coordinate system with origin theP and 'X Direction' theV, which is: - right-handed if theIsSense is true (default value), or - left-handed if theIsSense is false. + + Parameters + ---------- + theA: gp_Ax2d + theIsSense: bool (optional, default to Standard_True) + + Return + ------- + None + + Description + ----------- + Creates - a coordinate system where its origin is the origin of theA and its 'X Direction' is the unit vector of theA, which is: - right-handed if theIsSense is true (default value), or - left-handed if theIsSense is false. + + """ + _gp.gp_Ax22d_swiginit(self, _gp.new_gp_Ax22d(*args)) + + def DumpJson(self, depth=-1): + r""" + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + """ + return _gp.gp_Ax22d_DumpJson(self, depth) + + def Location(self, *args): + r""" + Return + ------- + gp_Pnt2d + + Description + ----------- + Returns the 'Location' point (origin) of . + + """ + return _gp.gp_Ax22d_Location(self, *args) + + def Mirror(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theA: gp_Ax2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Ax22d_Mirror(self, *args) + + def Mirrored(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + + Return + ------- + gp_Ax22d + + Description + ----------- + Performs the symmetrical transformation of an axis placement with respect to the point theP which is the center of the symmetry. Warnings: The main direction of the axis placement is not changed. The 'XDirection' and the 'YDirection' are reversed. So the axis placement stay right handed. + + Parameters + ---------- + theA: gp_Ax2d + + Return + ------- + gp_Ax22d + + Description + ----------- + Performs the symmetrical transformation of an axis placement with respect to an axis placement which is the axis of the symmetry. The transformation is performed on the 'Location' point, on the 'XDirection' and 'YDirection'. The resulting main 'Direction' is the cross product between the 'XDirection' and the 'YDirection' after transformation. + + """ + return _gp.gp_Ax22d_Mirrored(self, *args) + + def Rotate(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + theAng: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Ax22d_Rotate(self, *args) + + def Rotated(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + theAng: float + + Return + ------- + gp_Ax22d + + Description + ----------- + Rotates an axis placement. is the axis of the rotation . theAng is the angular value of the rotation in radians. + + """ + return _gp.gp_Ax22d_Rotated(self, *args) + + def Scale(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + theS: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Ax22d_Scale(self, *args) + + def Scaled(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + theS: float + + Return + ------- + gp_Ax22d + + Description + ----------- + Applies a scaling transformation on the axis placement. The 'Location' point of the axisplacement is modified. Warnings: If the scale is negative: . the main direction of the axis placement is not changed. . The 'XDirection' and the 'YDirection' are reversed. So the axis placement stay right handed. + + """ + return _gp.gp_Ax22d_Scaled(self, *args) + + def SetAxis(self, *args): + r""" + + Parameters + ---------- + theA1: gp_Ax22d + + Return + ------- + None + + Description + ----------- + Assigns the origin and the two unit vectors of the coordinate system theA1 to this coordinate system. + + """ + return _gp.gp_Ax22d_SetAxis(self, *args) + + def SetLocation(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + Changes the 'Location' point (origin) of . + + """ + return _gp.gp_Ax22d_SetLocation(self, *args) + + def SetXAxis(self, *args): + r""" + + Parameters + ---------- + theA1: gp_Ax2d + + Return + ------- + None + + Description + ----------- + Changes the XAxis and YAxis ('Location' point and 'Direction') of . The 'YDirection' is recomputed in the same sense as before. + + """ + return _gp.gp_Ax22d_SetXAxis(self, *args) + + def SetXDirection(self, *args): + r""" + + Parameters + ---------- + theVx: gp_Dir2d + + Return + ------- + None + + Description + ----------- + Assigns theVx to the 'X Direction' of this coordinate system. The other unit vector of this coordinate system is recomputed, normal to theVx , without modifying the orientation (right-handed or left-handed) of this coordinate system. + + """ + return _gp.gp_Ax22d_SetXDirection(self, *args) + + def SetYAxis(self, *args): + r""" + + Parameters + ---------- + theA1: gp_Ax2d + + Return + ------- + None + + Description + ----------- + Changes the XAxis and YAxis ('Location' point and 'Direction') of . The 'XDirection' is recomputed in the same sense as before. + + """ + return _gp.gp_Ax22d_SetYAxis(self, *args) + + def SetYDirection(self, *args): + r""" + + Parameters + ---------- + theVy: gp_Dir2d + + Return + ------- + None + + Description + ----------- + Assignsr theVy to the 'Y Direction' of this coordinate system. The other unit vector of this coordinate system is recomputed, normal to theVy, without modifying the orientation (right-handed or left-handed) of this coordinate system. + + """ + return _gp.gp_Ax22d_SetYDirection(self, *args) + + def Transform(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Ax22d_Transform(self, *args) + + def Transformed(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf2d + + Return + ------- + gp_Ax22d + + Description + ----------- + Transforms an axis placement with a Trsf. The 'Location' point, the 'XDirection' and the 'YDirection' are transformed with theT. The resulting main 'Direction' of is the cross product between the 'XDirection' and the 'YDirection' after transformation. + + """ + return _gp.gp_Ax22d_Transformed(self, *args) + + def Translate(self, *args): + r""" + + Parameters + ---------- + theV: gp_Vec2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theP1: gp_Pnt2d + theP2: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Ax22d_Translate(self, *args) + + def Translated(self, *args): + r""" + + Parameters + ---------- + theV: gp_Vec2d + + Return + ------- + gp_Ax22d + + Description + ----------- + Translates an axis plaxement in the direction of the vector . The magnitude of the translation is the vector's magnitude. + + Parameters + ---------- + theP1: gp_Pnt2d + theP2: gp_Pnt2d + + Return + ------- + gp_Ax22d + + Description + ----------- + Translates an axis placement from the point to the point . + + """ + return _gp.gp_Ax22d_Translated(self, *args) + + def XAxis(self, *args): + r""" + Return + ------- + gp_Ax2d + + Description + ----------- + Returns an axis, for which - the origin is that of this coordinate system, and - the unit vector is either the 'X Direction' of this coordinate system. Note: the result is the 'X Axis' of this coordinate system. + + """ + return _gp.gp_Ax22d_XAxis(self, *args) + + def XDirection(self, *args): + r""" + Return + ------- + gp_Dir2d + + Description + ----------- + Returns the 'XDirection' of . + + """ + return _gp.gp_Ax22d_XDirection(self, *args) + + def YAxis(self, *args): + r""" + Return + ------- + gp_Ax2d + + Description + ----------- + Returns an axis, for which - the origin is that of this coordinate system, and - the unit vector is either the 'Y Direction' of this coordinate system. Note: the result is the 'Y Axis' of this coordinate system. + + """ + return _gp.gp_Ax22d_YAxis(self, *args) + + def YDirection(self, *args): + r""" + Return + ------- + gp_Dir2d + + Description + ----------- + Returns the 'YDirection' of . + + """ + return _gp.gp_Ax22d_YDirection(self, *args) + + def __getstate__(self): + return self.DumpJson() + + + def __setstate__(self, state): + inst = gp_Ax22d() + if inst.InitFromJson(state): + self.this = inst.this + else: + raise IOError('Failed to set state of gp_Ax22d') + + + __repr__ = _dumps_object + + __swig_destroy__ = _gp.delete_gp_Ax22d + +# Register gp_Ax22d in _gp: +_gp.gp_Ax22d_swigregister(gp_Ax22d) +class gp_Ax2d(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 + ----------- + Creates an axis object representing X axis of the reference co-ordinate system. + + Parameters + ---------- + theP: gp_Pnt2d + theV: gp_Dir2d + + Return + ------- + None + + Description + ----------- + Creates an Ax2d. is the 'Location' point of the axis placement and theV is the 'Direction' of the axis placement. + + """ + _gp.gp_Ax2d_swiginit(self, _gp.new_gp_Ax2d(*args)) + + def Angle(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Ax2d + + Return + ------- + float + + Description + ----------- + Computes the angle, in radians, between this axis and the axis theOther. The value of the angle is between -Pi and Pi. + + """ + return _gp.gp_Ax2d_Angle(self, *args) + + def Direction(self, *args): + r""" + Return + ------- + gp_Dir2d + + Description + ----------- + Returns the direction of . + + """ + return _gp.gp_Ax2d_Direction(self, *args) + + def DumpJson(self, depth=-1): + r""" + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + """ + return _gp.gp_Ax2d_DumpJson(self, depth) + + def IsCoaxial(self, *args): + r""" + + Parameters + ---------- + Other: gp_Ax2d + AngularTolerance: float + LinearTolerance: float + + Return + ------- + bool + + Description + ----------- + Returns True if: . the angle between and is lower or equal to and . the distance between .Location() and is lower or equal to and . the distance between .Location() and is lower or equal to LinearTolerance. + + """ + return _gp.gp_Ax2d_IsCoaxial(self, *args) + + def IsNormal(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Ax2d + theAngularTolerance: float + + Return + ------- + bool + + Description + ----------- + Returns true if this axis and the axis theOther are normal to each other. That is, if the angle between the two axes is equal to Pi/2 or -Pi/2. Note: the tolerance criterion is given by theAngularTolerance. + + """ + return _gp.gp_Ax2d_IsNormal(self, *args) + + def IsOpposite(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Ax2d + theAngularTolerance: float + + Return + ------- + bool + + Description + ----------- + Returns true if this axis and the axis theOther are parallel, and have opposite orientations. That is, if the angle between the two axes is equal to Pi or -Pi. Note: the tolerance criterion is given by theAngularTolerance. + + """ + return _gp.gp_Ax2d_IsOpposite(self, *args) + + def IsParallel(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Ax2d + theAngularTolerance: float + + Return + ------- + bool + + Description + ----------- + Returns true if this axis and the axis theOther are parallel, and have either the same or opposite orientations. That is, if the angle between the two axes is equal to 0, Pi or -Pi. Note: the tolerance criterion is given by theAngularTolerance. + + """ + return _gp.gp_Ax2d_IsParallel(self, *args) + + def Location(self, *args): + r""" + Return + ------- + gp_Pnt2d + + Description + ----------- + Returns the origin of . + + """ + return _gp.gp_Ax2d_Location(self, *args) + + def Mirror(self, *args): + r""" + + Parameters + ---------- + P: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + A: gp_Ax2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Ax2d_Mirror(self, *args) + + def Mirrored(self, *args): + r""" + + Parameters + ---------- + P: gp_Pnt2d + + Return + ------- + gp_Ax2d + + Description + ----------- + Performs the symmetrical transformation of an axis placement with respect to the point P which is the center of the symmetry. + + Parameters + ---------- + A: gp_Ax2d + + Return + ------- + gp_Ax2d + + Description + ----------- + Performs the symmetrical transformation of an axis placement with respect to an axis placement which is the axis of the symmetry. + + """ + return _gp.gp_Ax2d_Mirrored(self, *args) + + def Reverse(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Reverses the direction of and assigns the result to this axis. + + """ + return _gp.gp_Ax2d_Reverse(self, *args) + + def Reversed(self, *args): + r""" + Return + ------- + gp_Ax2d + + Description + ----------- + Computes a new axis placement with a direction opposite to the direction of . + + """ + return _gp.gp_Ax2d_Reversed(self, *args) + + def Rotate(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + theAng: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Ax2d_Rotate(self, *args) + + def Rotated(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + theAng: float + + Return + ------- + gp_Ax2d + + Description + ----------- + Rotates an axis placement. is the center of the rotation. theAng is the angular value of the rotation in radians. + + """ + return _gp.gp_Ax2d_Rotated(self, *args) + + def Scale(self, *args): + r""" + + Parameters + ---------- + P: gp_Pnt2d + S: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Ax2d_Scale(self, *args) + + def Scaled(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + theS: float + + Return + ------- + gp_Ax2d + + Description + ----------- + Applies a scaling transformation on the axis placement. The 'Location' point of the axisplacement is modified. The 'Direction' is reversed if the scale is negative. + + """ + return _gp.gp_Ax2d_Scaled(self, *args) + + def SetDirection(self, *args): + r""" + + Parameters + ---------- + theV: gp_Dir2d + + Return + ------- + None + + Description + ----------- + Changes the direction of . + + """ + return _gp.gp_Ax2d_SetDirection(self, *args) + + def SetLocation(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + Changes the 'Location' point (origin) of . + + """ + return _gp.gp_Ax2d_SetLocation(self, *args) + + def Transform(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Ax2d_Transform(self, *args) + + def Transformed(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf2d + + Return + ------- + gp_Ax2d + + Description + ----------- + Transforms an axis placement with a Trsf. + + """ + return _gp.gp_Ax2d_Transformed(self, *args) + + def Translate(self, *args): + r""" + + Parameters + ---------- + theV: gp_Vec2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theP1: gp_Pnt2d + theP2: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Ax2d_Translate(self, *args) + + def Translated(self, *args): + r""" + + Parameters + ---------- + theV: gp_Vec2d + + Return + ------- + gp_Ax2d + + Description + ----------- + Translates an axis placement in the direction of the vector theV. The magnitude of the translation is the vector's magnitude. + + Parameters + ---------- + theP1: gp_Pnt2d + theP2: gp_Pnt2d + + Return + ------- + gp_Ax2d + + Description + ----------- + Translates an axis placement from the point theP1 to the point theP2. + + """ + return _gp.gp_Ax2d_Translated(self, *args) + + def __getstate__(self): + return self.DumpJson() + + + def __setstate__(self, state): + inst = gp_Ax2d() + if inst.InitFromJson(state): + self.this = inst.this + else: + raise IOError('Failed to set state of gp_Ax2d') + + + __repr__ = _dumps_object + + __swig_destroy__ = _gp.delete_gp_Ax2d + +# Register gp_Ax2d in _gp: +_gp.gp_Ax2d_swigregister(gp_Ax2d) +class gp_Ax3(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 + ----------- + Creates an object corresponding to the reference coordinate system (OXYZ). + + Parameters + ---------- + theA: gp_Ax2 + + Return + ------- + None + + Description + ----------- + Creates a coordinate system from a right-handed coordinate system. + + Parameters + ---------- + theP: gp_Pnt + theN: gp_Dir + theVx: gp_Dir + + Return + ------- + None + + Description + ----------- + Creates a right handed axis placement with the 'Location' point theP and two directions, theN gives the 'Direction' and theVx gives the 'XDirection'. Raises ConstructionError if theN and theVx are parallel (same or opposite orientation). + + Parameters + ---------- + theP: gp_Pnt + theV: gp_Dir + + Return + ------- + None + + Description + ----------- + Creates an axis placement with the 'Location' point and the normal direction . + + """ + _gp.gp_Ax3_swiginit(self, _gp.new_gp_Ax3(*args)) + + def Angle(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Ax3 + + Return + ------- + float + + Description + ----------- + Computes the angular value between the main direction of and the main direction of . Returns the angle between 0 and PI in radians. + + """ + return _gp.gp_Ax3_Angle(self, *args) + + def Ax2(self, *args): + r""" + Return + ------- + gp_Ax2 + + Description + ----------- + Computes a right-handed coordinate system with the same 'X Direction' and 'Y Direction' as those of this coordinate system, then recomputes the 'main Direction'. If this coordinate system is right-handed, the result returned is the same coordinate system. If this coordinate system is left-handed, the result is reversed. + + """ + return _gp.gp_Ax3_Ax2(self, *args) + + def Axis(self, *args): + r""" + Return + ------- + gp_Ax1 + + Description + ----------- + Returns the main axis of . It is the 'Location' point and the main 'Direction'. + + """ + return _gp.gp_Ax3_Axis(self, *args) + + def Direct(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns True if the coordinate system is right-handed. i.e. XDirection().Crossed(YDirection()).Dot(Direction()) > 0. + + """ + return _gp.gp_Ax3_Direct(self, *args) + + def Direction(self, *args): + r""" + Return + ------- + gp_Dir + + Description + ----------- + Returns the main direction of . + + """ + return _gp.gp_Ax3_Direction(self, *args) + + def DumpJson(self, depth=-1): + r""" + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + """ + return _gp.gp_Ax3_DumpJson(self, depth) + + def InitFromJson(self, json_string): + r""" + + Parameters + ---------- + json_string: the string + + Return + ------- + bool + + Description + ----------- + Init the object from a JSON string. + + """ + return _gp.gp_Ax3_InitFromJson(self, json_string) + + def IsCoplanar(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Ax3 + theLinearTolerance: float + theAngularTolerance: float + + Return + ------- + bool + + Description + ----------- + Returns True if . the distance between the 'Location' point of and is lower or equal to theLinearTolerance and . the distance between the 'Location' point of and is lower or equal to theLinearTolerance and . the main direction of and the main direction of are parallel (same or opposite orientation). + + Parameters + ---------- + theA1: gp_Ax1 + theLinearTolerance: float + theAngularTolerance: float + + Return + ------- + bool + + Description + ----------- + Returns True if . the distance between and the 'Location' point of theA1 is lower of equal to theLinearTolerance and . the distance between theA1 and the 'Location' point of is lower or equal to theLinearTolerance and . the main direction of and the direction of theA1 are normal. + + """ + return _gp.gp_Ax3_IsCoplanar(self, *args) + + def Location(self, *args): + r""" + Return + ------- + gp_Pnt + + Description + ----------- + Returns the 'Location' point (origin) of . + + """ + return _gp.gp_Ax3_Location(self, *args) + + def Mirror(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theA1: gp_Ax1 + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theA2: gp_Ax2 + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Ax3_Mirror(self, *args) + + def Mirrored(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + + Return + ------- + gp_Ax3 + + Description + ----------- + Performs the symmetrical transformation of an axis placement with respect to the point theP which is the center of the symmetry. Warnings: The main direction of the axis placement is not changed. The 'XDirection' and the 'YDirection' are reversed. So the axis placement stay right handed. + + Parameters + ---------- + theA1: gp_Ax1 + + Return + ------- + gp_Ax3 + + Description + ----------- + Performs the symmetrical transformation of an axis placement with respect to an axis placement which is the axis of the symmetry. The transformation is performed on the 'Location' point, on the 'XDirection' and 'YDirection'. The resulting main 'Direction' is the cross product between the 'XDirection' and the 'YDirection' after transformation. + + Parameters + ---------- + theA2: gp_Ax2 + + Return + ------- + gp_Ax3 + + Description + ----------- + Performs the symmetrical transformation of an axis placement with respect to a plane. The axis placement locates the plane of the symmetry: (Location, XDirection, YDirection). The transformation is performed on the 'Location' point, on the 'XDirection' and 'YDirection'. The resulting main 'Direction' is the cross product between the 'XDirection' and the 'YDirection' after transformation. + + """ + return _gp.gp_Ax3_Mirrored(self, *args) + + def Rotate(self, *args): + r""" + + Parameters + ---------- + theA1: gp_Ax1 + theAng: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Ax3_Rotate(self, *args) + + def Rotated(self, *args): + r""" + + Parameters + ---------- + theA1: gp_Ax1 + theAng: float + + Return + ------- + gp_Ax3 + + Description + ----------- + Rotates an axis placement. is the axis of the rotation . theAng is the angular value of the rotation in radians. + + """ + return _gp.gp_Ax3_Rotated(self, *args) + + def Scale(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + theS: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Ax3_Scale(self, *args) + + def Scaled(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + theS: float + + Return + ------- + gp_Ax3 + + Description + ----------- + Applies a scaling transformation on the axis placement. The 'Location' point of the axisplacement is modified. Warnings: If the scale is negative: . the main direction of the axis placement is not changed. . The 'XDirection' and the 'YDirection' are reversed. So the axis placement stay right handed. + + """ + return _gp.gp_Ax3_Scaled(self, *args) + + def SetAxis(self, *args): + r""" + + Parameters + ---------- + theA1: gp_Ax1 + + Return + ------- + None + + Description + ----------- + Assigns the origin and 'main Direction' of the axis theA1 to this coordinate system, then recomputes its 'X Direction' and 'Y Direction'. Note: - The new 'X Direction' is computed as follows: new 'X Direction' = V1 ^(previous 'X Direction' ^ V) where V is the 'Direction' of theA1. - The orientation of this coordinate system (right-handed or left-handed) is not modified. Raises ConstructionError if the 'Direction' of and the 'XDirection' of are parallel (same or opposite orientation) because it is impossible to calculate the new 'XDirection' and the new 'YDirection'. + + """ + return _gp.gp_Ax3_SetAxis(self, *args) + + def SetDirection(self, *args): + r""" + + Parameters + ---------- + theV: gp_Dir + + Return + ------- + None + + Description + ----------- + Changes the main direction of this coordinate system, then recomputes its 'X Direction' and 'Y Direction'. Note: - The new 'X Direction' is computed as follows: new 'X Direction' = theV ^ (previous 'X Direction' ^ theV). - The orientation of this coordinate system (left- or right-handed) is not modified. Raises ConstructionError if and the previous 'XDirection' are parallel because it is impossible to calculate the new 'XDirection' and the new 'YDirection'. + + """ + return _gp.gp_Ax3_SetDirection(self, *args) + + def SetLocation(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + + Return + ------- + None + + Description + ----------- + Changes the 'Location' point (origin) of . + + """ + return _gp.gp_Ax3_SetLocation(self, *args) + + def SetXDirection(self, *args): + r""" + + Parameters + ---------- + theVx: gp_Dir + + Return + ------- + None + + Description + ----------- + Changes the 'Xdirection' of . The main direction 'Direction' is not modified, the 'Ydirection' is modified. If is not normal to the main direction then is computed as follows XDirection = Direction ^ (theVx ^ Direction). Raises ConstructionError if is parallel (same or opposite orientation) to the main direction of . + + """ + return _gp.gp_Ax3_SetXDirection(self, *args) + + def SetYDirection(self, *args): + r""" + + Parameters + ---------- + theVy: gp_Dir + + Return + ------- + None + + Description + ----------- + Changes the 'Ydirection' of . The main direction is not modified but the 'Xdirection' is changed. If is not normal to the main direction then 'YDirection' is computed as follows YDirection = Direction ^ ( ^ Direction). Raises ConstructionError if is parallel to the main direction of . + + """ + return _gp.gp_Ax3_SetYDirection(self, *args) + + def Transform(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Ax3_Transform(self, *args) + + def Transformed(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf + + Return + ------- + gp_Ax3 + + Description + ----------- + Transforms an axis placement with a Trsf. The 'Location' point, the 'XDirection' and the 'YDirection' are transformed with theT. The resulting main 'Direction' of is the cross product between the 'XDirection' and the 'YDirection' after transformation. + + """ + return _gp.gp_Ax3_Transformed(self, *args) + + def Translate(self, *args): + r""" + + Parameters + ---------- + theV: gp_Vec + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theP1: gp_Pnt + theP2: gp_Pnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Ax3_Translate(self, *args) + + def Translated(self, *args): + r""" + + Parameters + ---------- + theV: gp_Vec + + Return + ------- + gp_Ax3 + + Description + ----------- + Translates an axis plaxement in the direction of the vector . The magnitude of the translation is the vector's magnitude. + + Parameters + ---------- + theP1: gp_Pnt + theP2: gp_Pnt + + Return + ------- + gp_Ax3 + + Description + ----------- + Translates an axis placement from the point to the point . + + """ + return _gp.gp_Ax3_Translated(self, *args) + + def XDirection(self, *args): + r""" + Return + ------- + gp_Dir + + Description + ----------- + Returns the 'XDirection' of . + + """ + return _gp.gp_Ax3_XDirection(self, *args) + + def XReverse(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Reverses the X direction of . + + """ + return _gp.gp_Ax3_XReverse(self, *args) + + def YDirection(self, *args): + r""" + Return + ------- + gp_Dir + + Description + ----------- + Returns the 'YDirection' of . + + """ + return _gp.gp_Ax3_YDirection(self, *args) + + def YReverse(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Reverses the Y direction of . + + """ + return _gp.gp_Ax3_YReverse(self, *args) + + def ZReverse(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Reverses the Z direction of . + + """ + return _gp.gp_Ax3_ZReverse(self, *args) + + def __getstate__(self): + return self.DumpJson() + + + def __setstate__(self, state): + inst = gp_Ax3() + if inst.InitFromJson(state): + self.this = inst.this + else: + raise IOError('Failed to set state of gp_Ax3') + + + __repr__ = _dumps_object + + __swig_destroy__ = _gp.delete_gp_Ax3 + +# Register gp_Ax3 in _gp: +_gp.gp_Ax3_swigregister(gp_Ax3) +class gp_Circ(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 + ----------- + Creates an indefinite circle. + + Parameters + ---------- + theA2: gp_Ax2 + theRadius: float + + Return + ------- + None + + Description + ----------- + A2 locates the circle and gives its orientation in 3D space. Warnings: It is not forbidden to create a circle with theRadius = 0.0 Raises ConstructionError if theRadius < 0.0. + + """ + _gp.gp_Circ_swiginit(self, _gp.new_gp_Circ(*args)) + + def Area(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Computes the area of the circle. + + """ + return _gp.gp_Circ_Area(self, *args) + + def Axis(self, *args): + r""" + Return + ------- + gp_Ax1 + + Description + ----------- + Returns the main axis of the circle. It is the axis perpendicular to the plane of the circle, passing through the 'Location' point (center) of the circle. + + """ + return _gp.gp_Circ_Axis(self, *args) + + def Contains(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + theLinearTolerance: float + + Return + ------- + bool + + Description + ----------- + Returns True if the point theP is on the circumference. The distance between and must be lower or equal to theLinearTolerance. + + """ + return _gp.gp_Circ_Contains(self, *args) + + def Distance(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + + Return + ------- + float + + Description + ----------- + Computes the minimum of distance between the point theP and any point on the circumference of the circle. + + """ + return _gp.gp_Circ_Distance(self, *args) + + def Length(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Computes the circumference of the circle. + + """ + return _gp.gp_Circ_Length(self, *args) + + def Location(self, *args): + r""" + Return + ------- + gp_Pnt + + Description + ----------- + Returns the center of the circle. It is the 'Location' point of the local coordinate system of the circle. + + """ + return _gp.gp_Circ_Location(self, *args) + + def Mirror(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theA1: gp_Ax1 + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theA2: gp_Ax2 + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Circ_Mirror(self, *args) + + def Mirrored(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + + Return + ------- + gp_Circ + + Description + ----------- + Performs the symmetrical transformation of a circle with respect to the point theP which is the center of the symmetry. + + Parameters + ---------- + theA1: gp_Ax1 + + Return + ------- + gp_Circ + + Description + ----------- + Performs the symmetrical transformation of a circle with respect to an axis placement which is the axis of the symmetry. + + Parameters + ---------- + theA2: gp_Ax2 + + Return + ------- + gp_Circ + + Description + ----------- + Performs the symmetrical transformation of a circle with respect to a plane. The axis placement theA2 locates the plane of the of the symmetry: (Location, XDirection, YDirection). + + """ + return _gp.gp_Circ_Mirrored(self, *args) + + def Position(self, *args): + r""" + Return + ------- + gp_Ax2 + + Description + ----------- + Returns the position of the circle. It is the local coordinate system of the circle. + + """ + return _gp.gp_Circ_Position(self, *args) + + def Radius(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns the radius of this circle. + + """ + return _gp.gp_Circ_Radius(self, *args) + + def Rotate(self, *args): + r""" + + Parameters + ---------- + theA1: gp_Ax1 + theAng: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Circ_Rotate(self, *args) + + def Rotated(self, *args): + r""" + + Parameters + ---------- + theA1: gp_Ax1 + theAng: float + + Return + ------- + gp_Circ + + Description + ----------- + Rotates a circle. theA1 is the axis of the rotation. theAng is the angular value of the rotation in radians. + + """ + return _gp.gp_Circ_Rotated(self, *args) + + def Scale(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + theS: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Circ_Scale(self, *args) + + def Scaled(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + theS: float + + Return + ------- + gp_Circ + + Description + ----------- + Scales a circle. theS is the scaling value. Warnings: If theS is negative the radius stay positive but the 'XAxis' and the 'YAxis' are reversed as for an ellipse. + + """ + return _gp.gp_Circ_Scaled(self, *args) + + def SetAxis(self, *args): + r""" + + Parameters + ---------- + theA1: gp_Ax1 + + Return + ------- + None + + Description + ----------- + Changes the main axis of the circle. It is the axis perpendicular to the plane of the circle. Raises ConstructionError if the direction of theA1 is parallel to the 'XAxis' of the circle. + + """ + return _gp.gp_Circ_SetAxis(self, *args) + + def SetLocation(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + + Return + ------- + None + + Description + ----------- + Changes the 'Location' point (center) of the circle. + + """ + return _gp.gp_Circ_SetLocation(self, *args) + + def SetPosition(self, *args): + r""" + + Parameters + ---------- + theA2: gp_Ax2 + + Return + ------- + None + + Description + ----------- + Changes the position of the circle. + + """ + return _gp.gp_Circ_SetPosition(self, *args) + + def SetRadius(self, *args): + r""" + + Parameters + ---------- + theRadius: float + + Return + ------- + None + + Description + ----------- + Modifies the radius of this circle. Warning. This class does not prevent the creation of a circle where theRadius is null. Exceptions Standard_ConstructionError if theRadius is negative. + + """ + return _gp.gp_Circ_SetRadius(self, *args) + + def SquareDistance(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + + Return + ------- + float + + Description + ----------- + Computes the square distance between and the point theP. + + """ + return _gp.gp_Circ_SquareDistance(self, *args) + + def Transform(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Circ_Transform(self, *args) + + def Transformed(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf + + Return + ------- + gp_Circ + + Description + ----------- + Transforms a circle with the transformation theT from class Trsf. + + """ + return _gp.gp_Circ_Transformed(self, *args) + + def Translate(self, *args): + r""" + + Parameters + ---------- + theV: gp_Vec + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theP1: gp_Pnt + theP2: gp_Pnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Circ_Translate(self, *args) + + def Translated(self, *args): + r""" + + Parameters + ---------- + theV: gp_Vec + + Return + ------- + gp_Circ + + Description + ----------- + Translates a circle in the direction of the vector theV. The magnitude of the translation is the vector's magnitude. + + Parameters + ---------- + theP1: gp_Pnt + theP2: gp_Pnt + + Return + ------- + gp_Circ + + Description + ----------- + Translates a circle from the point theP1 to the point theP2. + + """ + return _gp.gp_Circ_Translated(self, *args) + + def XAxis(self, *args): + r""" + Return + ------- + gp_Ax1 + + Description + ----------- + Returns the 'XAxis' of the circle. This axis is perpendicular to the axis of the conic. This axis and the 'Yaxis' define the plane of the conic. + + """ + return _gp.gp_Circ_XAxis(self, *args) + + def YAxis(self, *args): + r""" + Return + ------- + gp_Ax1 + + Description + ----------- + Returns the 'YAxis' of the circle. This axis and the 'Xaxis' define the plane of the conic. The 'YAxis' is perpendicular to the 'Xaxis'. + + """ + return _gp.gp_Circ_YAxis(self, *args) + + def __getstate__(self): + return self.DumpJson() + + + def __setstate__(self, state): + inst = gp_Circ() + if inst.InitFromJson(state): + self.this = inst.this + else: + raise IOError('Failed to set state of gp_Circ') + + + __repr__ = _dumps_object + + __swig_destroy__ = _gp.delete_gp_Circ + +# Register gp_Circ in _gp: +_gp.gp_Circ_swigregister(gp_Circ) +class gp_Circ2d(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 + ----------- + creates an indefinite circle. + + Parameters + ---------- + theXAxis: gp_Ax2d + theRadius: float + theIsSense: bool (optional, default to Standard_True) + + Return + ------- + None + + Description + ----------- + The location point of theXAxis is the center of the circle. Warnings: It is not forbidden to create a circle with theRadius = 0.0 Raises ConstructionError if theRadius < 0.0. Raised if theRadius < 0.0. + + Parameters + ---------- + theAxis: gp_Ax22d + theRadius: float + + Return + ------- + None + + Description + ----------- + theAxis defines the Xaxis and Yaxis of the circle which defines the origin and the sense of parametrization. The location point of theAxis is the center of the circle. Warnings: It is not forbidden to create a circle with theRadius = 0.0 Raises ConstructionError if theRadius < 0.0. Raised if theRadius < 0.0. + + """ + _gp.gp_Circ2d_swiginit(self, _gp.new_gp_Circ2d(*args)) + + def Area(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Computes the area of the circle. + + """ + return _gp.gp_Circ2d_Area(self, *args) + + def Axis(self, *args): + r""" + Return + ------- + gp_Ax22d + + Description + ----------- + returns the position of the circle. + + """ + return _gp.gp_Circ2d_Axis(self, *args) + + def Coefficients(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + theA: float + theB: float + theC: float + theD: float + theE: float + theF: float + + Description + ----------- + Returns the normalized coefficients from the implicit equation of the circle: theA * (X**2) + theB * (Y**2) + 2*theC*(X*Y) + 2*theD*X + 2*theE*Y + theF = 0.0. + + """ + return _gp.gp_Circ2d_Coefficients(self, *args) + + def Contains(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + theLinearTolerance: float + + Return + ------- + bool + + Description + ----------- + Does contain theP ? Returns True if the distance between theP and any point on the circumference of the circle is lower of equal to . + + """ + return _gp.gp_Circ2d_Contains(self, *args) + + def Distance(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + + Return + ------- + float + + Description + ----------- + Computes the minimum of distance between the point theP and any point on the circumference of the circle. + + """ + return _gp.gp_Circ2d_Distance(self, *args) + + def IsDirect(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns true if the local coordinate system is direct and false in the other case. + + """ + return _gp.gp_Circ2d_IsDirect(self, *args) + + def Length(self, *args): + r""" + Return + ------- + float + + Description + ----------- + computes the circumference of the circle. + + """ + return _gp.gp_Circ2d_Length(self, *args) + + def Location(self, *args): + r""" + Return + ------- + gp_Pnt2d + + Description + ----------- + Returns the location point (center) of the circle. + + """ + return _gp.gp_Circ2d_Location(self, *args) + + def Mirror(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theA: gp_Ax2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Circ2d_Mirror(self, *args) + + def Mirrored(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + + Return + ------- + gp_Circ2d + + Description + ----------- + Performs the symmetrical transformation of a circle with respect to the point theP which is the center of the symmetry. + + Parameters + ---------- + theA: gp_Ax2d + + Return + ------- + gp_Circ2d + + Description + ----------- + Performs the symmetrical transformation of a circle with respect to an axis placement which is the axis of the symmetry. + + """ + return _gp.gp_Circ2d_Mirrored(self, *args) + + def Position(self, *args): + r""" + Return + ------- + gp_Ax22d + + Description + ----------- + returns the position of the circle. Idem Axis(me). + + """ + return _gp.gp_Circ2d_Position(self, *args) + + def Radius(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns the radius value of the circle. + + """ + return _gp.gp_Circ2d_Radius(self, *args) + + def Reverse(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Reverses the orientation of the local coordinate system of this circle (the 'Y Direction' is reversed) and therefore changes the implicit orientation of this circle. Reverse assigns the result to this circle,. + + """ + return _gp.gp_Circ2d_Reverse(self, *args) + + def Reversed(self, *args): + r""" + Return + ------- + gp_Circ2d + + Description + ----------- + Reverses the orientation of the local coordinate system of this circle (the 'Y Direction' is reversed) and therefore changes the implicit orientation of this circle. Reversed creates a new circle. + + """ + return _gp.gp_Circ2d_Reversed(self, *args) + + def Rotate(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + theAng: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Circ2d_Rotate(self, *args) + + def Rotated(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + theAng: float + + Return + ------- + gp_Circ2d + + Description + ----------- + Rotates a circle. theP is the center of the rotation. Ang is the angular value of the rotation in radians. + + """ + return _gp.gp_Circ2d_Rotated(self, *args) + + def Scale(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + theS: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Circ2d_Scale(self, *args) + + def Scaled(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + theS: float + + Return + ------- + gp_Circ2d + + Description + ----------- + Scales a circle. theS is the scaling value. Warnings: If theS is negative the radius stay positive but the 'XAxis' and the 'YAxis' are reversed as for an ellipse. + + """ + return _gp.gp_Circ2d_Scaled(self, *args) + + def SetAxis(self, *args): + r""" + + Parameters + ---------- + theA: gp_Ax22d + + Return + ------- + None + + Description + ----------- + Changes the X axis of the circle. + + """ + return _gp.gp_Circ2d_SetAxis(self, *args) + + def SetLocation(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + Changes the location point (center) of the circle. + + """ + return _gp.gp_Circ2d_SetLocation(self, *args) + + def SetRadius(self, *args): + r""" + + Parameters + ---------- + theRadius: float + + Return + ------- + None + + Description + ----------- + Modifies the radius of this circle. This class does not prevent the creation of a circle where theRadius is null. Exceptions Standard_ConstructionError if theRadius is negative. + + """ + return _gp.gp_Circ2d_SetRadius(self, *args) + + def SetXAxis(self, *args): + r""" + + Parameters + ---------- + theA: gp_Ax2d + + Return + ------- + None + + Description + ----------- + Changes the X axis of the circle. + + """ + return _gp.gp_Circ2d_SetXAxis(self, *args) + + def SetYAxis(self, *args): + r""" + + Parameters + ---------- + theA: gp_Ax2d + + Return + ------- + None + + Description + ----------- + Changes the Y axis of the circle. + + """ + return _gp.gp_Circ2d_SetYAxis(self, *args) + + def SquareDistance(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + + Return + ------- + float + + Description + ----------- + Computes the square distance between and the point theP. + + """ + return _gp.gp_Circ2d_SquareDistance(self, *args) + + def Transform(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Circ2d_Transform(self, *args) + + def Transformed(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf2d + + Return + ------- + gp_Circ2d + + Description + ----------- + Transforms a circle with the transformation theT from class Trsf2d. + + """ + return _gp.gp_Circ2d_Transformed(self, *args) + + def Translate(self, *args): + r""" + + Parameters + ---------- + theV: gp_Vec2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theP1: gp_Pnt2d + theP2: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Circ2d_Translate(self, *args) + + def Translated(self, *args): + r""" + + Parameters + ---------- + theV: gp_Vec2d + + Return + ------- + gp_Circ2d + + Description + ----------- + Translates a circle in the direction of the vector theV. The magnitude of the translation is the vector's magnitude. + + Parameters + ---------- + theP1: gp_Pnt2d + theP2: gp_Pnt2d + + Return + ------- + gp_Circ2d + + Description + ----------- + Translates a circle from the point theP1 to the point theP2. + + """ + return _gp.gp_Circ2d_Translated(self, *args) + + def XAxis(self, *args): + r""" + Return + ------- + gp_Ax2d + + Description + ----------- + returns the X axis of the circle. + + """ + return _gp.gp_Circ2d_XAxis(self, *args) + + def YAxis(self, *args): + r""" + Return + ------- + gp_Ax2d + + Description + ----------- + Returns the Y axis of the circle. Reverses the direction of the circle. + + """ + return _gp.gp_Circ2d_YAxis(self, *args) + + def __getstate__(self): + return self.DumpJson() + + + def __setstate__(self, state): + inst = gp_Circ2d() + if inst.InitFromJson(state): + self.this = inst.this + else: + raise IOError('Failed to set state of gp_Circ2d') + + + __repr__ = _dumps_object + + __swig_destroy__ = _gp.delete_gp_Circ2d + +# Register gp_Circ2d in _gp: +_gp.gp_Circ2d_swigregister(gp_Circ2d) +class gp_Cone(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 + ----------- + Creates an indefinite Cone. + + Parameters + ---------- + theA3: gp_Ax3 + theAng: float + theRadius: float + + Return + ------- + None + + Description + ----------- + Creates an infinite conical surface. theA3 locates the cone in the space and defines the reference plane of the surface. Ang is the conical surface semi-angle. Its absolute value is in range ]0, PI/2[. theRadius is the radius of the circle in the reference plane of the cone. theRaises ConstructionError * if theRadius is lower than 0.0 * Abs(theAng) < Resolution from gp or Abs(theAng) >= (PI/2) - Resolution. + + """ + _gp.gp_Cone_swiginit(self, _gp.new_gp_Cone(*args)) + + def Apex(self, *args): + r""" + Return + ------- + gp_Pnt + + Description + ----------- + Computes the cone's top. The Apex of the cone is on the negative side of the symmetry axis of the cone. + + """ + return _gp.gp_Cone_Apex(self, *args) + + def Axis(self, *args): + r""" + Return + ------- + gp_Ax1 + + Description + ----------- + returns the symmetry axis of the cone. + + """ + return _gp.gp_Cone_Axis(self, *args) + + def Coefficients(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + theA1: float + theA2: float + theA3: float + theB1: float + theB2: float + theB3: float + theC1: float + theC2: float + theC3: float + theD: float + + Description + ----------- + Computes the coefficients of the implicit equation of the quadric in the absolute cartesian coordinates system: theA1.X**2 + theA2.Y**2 + theA3.Z**2 + 2.(theB1.X.Y + theB2.X.Z + theB3.Y.Z) + 2.(theC1.X + theC2.Y + theC3.Z) + theD = 0.0. + + """ + return _gp.gp_Cone_Coefficients(self, *args) + + def Direct(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns true if the local coordinate system of this cone is right-handed. + + """ + return _gp.gp_Cone_Direct(self, *args) + + def Location(self, *args): + r""" + Return + ------- + gp_Pnt + + Description + ----------- + returns the 'Location' point of the cone. + + """ + return _gp.gp_Cone_Location(self, *args) + + def Mirror(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theA1: gp_Ax1 + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theA2: gp_Ax2 + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Cone_Mirror(self, *args) + + def Mirrored(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + + Return + ------- + gp_Cone + + Description + ----------- + Performs the symmetrical transformation of a cone with respect to the point theP which is the center of the symmetry. + + Parameters + ---------- + theA1: gp_Ax1 + + Return + ------- + gp_Cone + + Description + ----------- + Performs the symmetrical transformation of a cone with respect to an axis placement which is the axis of the symmetry. + + Parameters + ---------- + theA2: gp_Ax2 + + Return + ------- + gp_Cone + + Description + ----------- + Performs the symmetrical transformation of a cone with respect to a plane. The axis placement theA2 locates the plane of the of the symmetry: (Location, XDirection, YDirection). + + """ + return _gp.gp_Cone_Mirrored(self, *args) + + def Position(self, *args): + r""" + Return + ------- + gp_Ax3 + + Description + ----------- + Returns the local coordinates system of the cone. + + """ + return _gp.gp_Cone_Position(self, *args) + + def RefRadius(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns the radius of the cone in the reference plane. + + """ + return _gp.gp_Cone_RefRadius(self, *args) + + def Rotate(self, *args): + r""" + + Parameters + ---------- + theA1: gp_Ax1 + theAng: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Cone_Rotate(self, *args) + + def Rotated(self, *args): + r""" + + Parameters + ---------- + theA1: gp_Ax1 + theAng: float + + Return + ------- + gp_Cone + + Description + ----------- + Rotates a cone. theA1 is the axis of the rotation. Ang is the angular value of the rotation in radians. + + """ + return _gp.gp_Cone_Rotated(self, *args) + + def Scale(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + theS: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Cone_Scale(self, *args) + + def Scaled(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + theS: float + + Return + ------- + gp_Cone + + Description + ----------- + Scales a cone. theS is the scaling value. The absolute value of theS is used to scale the cone. + + """ + return _gp.gp_Cone_Scaled(self, *args) + + def SemiAngle(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns the half-angle at the apex of this cone. Attention! Semi-angle can be negative. + + """ + return _gp.gp_Cone_SemiAngle(self, *args) + + def SetAxis(self, *args): + r""" + + Parameters + ---------- + theA1: gp_Ax1 + + Return + ------- + None + + Description + ----------- + Changes the symmetry axis of the cone. Raises ConstructionError the direction of theA1 is parallel to the 'XDirection' of the coordinate system of the cone. + + """ + return _gp.gp_Cone_SetAxis(self, *args) + + def SetLocation(self, *args): + r""" + + Parameters + ---------- + theLoc: gp_Pnt + + Return + ------- + None + + Description + ----------- + Changes the location of the cone. + + """ + return _gp.gp_Cone_SetLocation(self, *args) + + def SetPosition(self, *args): + r""" + + Parameters + ---------- + theA3: gp_Ax3 + + Return + ------- + None + + Description + ----------- + Changes the local coordinate system of the cone. This coordinate system defines the reference plane of the cone. + + """ + return _gp.gp_Cone_SetPosition(self, *args) + + def SetRadius(self, *args): + r""" + + Parameters + ---------- + theR: float + + Return + ------- + None + + Description + ----------- + Changes the radius of the cone in the reference plane of the cone. Raised if theR < 0.0. + + """ + return _gp.gp_Cone_SetRadius(self, *args) + + def SetSemiAngle(self, *args): + r""" + + Parameters + ---------- + theAng: float + + Return + ------- + None + + Description + ----------- + Changes the semi-angle of the cone. Semi-angle can be negative. Its absolute value Abs(theAng) is in range ]0,PI/2[. Raises ConstructionError if Abs(theAng) < Resolution from gp or Abs(theAng) >= PI/2 - Resolution. + + """ + return _gp.gp_Cone_SetSemiAngle(self, *args) + + def Transform(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Cone_Transform(self, *args) + + def Transformed(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf + + Return + ------- + gp_Cone + + Description + ----------- + Transforms a cone with the transformation theT from class Trsf. + + """ + return _gp.gp_Cone_Transformed(self, *args) + + def Translate(self, *args): + r""" + + Parameters + ---------- + theV: gp_Vec + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theP1: gp_Pnt + theP2: gp_Pnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Cone_Translate(self, *args) + + def Translated(self, *args): + r""" + + Parameters + ---------- + theV: gp_Vec + + Return + ------- + gp_Cone + + Description + ----------- + Translates a cone in the direction of the vector theV. The magnitude of the translation is the vector's magnitude. + + Parameters + ---------- + theP1: gp_Pnt + theP2: gp_Pnt + + Return + ------- + gp_Cone + + Description + ----------- + Translates a cone from the point P1 to the point P2. + + """ + return _gp.gp_Cone_Translated(self, *args) + + def UReverse(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Reverses the U parametrization of the cone reversing the YAxis. + + """ + return _gp.gp_Cone_UReverse(self, *args) + + def VReverse(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Reverses the V parametrization of the cone reversing the ZAxis. + + """ + return _gp.gp_Cone_VReverse(self, *args) + + def XAxis(self, *args): + r""" + Return + ------- + gp_Ax1 + + Description + ----------- + Returns the XAxis of the reference plane. + + """ + return _gp.gp_Cone_XAxis(self, *args) + + def YAxis(self, *args): + r""" + Return + ------- + gp_Ax1 + + Description + ----------- + Returns the YAxis of the reference plane. + + """ + return _gp.gp_Cone_YAxis(self, *args) + + def __getstate__(self): + return self.DumpJson() + + + def __setstate__(self, state): + inst = gp_Cone() + if inst.InitFromJson(state): + self.this = inst.this + else: + raise IOError('Failed to set state of gp_Cone') + + + __repr__ = _dumps_object + + __swig_destroy__ = _gp.delete_gp_Cone + +# Register gp_Cone in _gp: +_gp.gp_Cone_swigregister(gp_Cone) +class gp_Cylinder(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 + ----------- + Creates a indefinite cylinder. + + Parameters + ---------- + theA3: gp_Ax3 + theRadius: float + + Return + ------- + None + + Description + ----------- + Creates a cylinder of radius Radius, whose axis is the 'main Axis' of theA3. theA3 is the local coordinate system of the cylinder. Raises ConstructionErrord if theRadius < 0.0. + + """ + _gp.gp_Cylinder_swiginit(self, _gp.new_gp_Cylinder(*args)) + + def Axis(self, *args): + r""" + Return + ------- + gp_Ax1 + + Description + ----------- + Returns the symmetry axis of the cylinder. + + """ + return _gp.gp_Cylinder_Axis(self, *args) + + def Coefficients(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + theA1: float + theA2: float + theA3: float + theB1: float + theB2: float + theB3: float + theC1: float + theC2: float + theC3: float + theD: float + + Description + ----------- + Computes the coefficients of the implicit equation of the quadric in the absolute cartesian coordinate system: theA1.X**2 + theA2.Y**2 + theA3.Z**2 + 2.(theB1.X.Y + theB2.X.Z + theB3.Y.Z) + 2.(theC1.X + theC2.Y + theC3.Z) + theD = 0.0. + + """ + return _gp.gp_Cylinder_Coefficients(self, *args) + + def Direct(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns true if the local coordinate system of this cylinder is right-handed. + + """ + return _gp.gp_Cylinder_Direct(self, *args) + + def Location(self, *args): + r""" + Return + ------- + gp_Pnt + + Description + ----------- + Returns the 'Location' point of the cylinder. + + """ + return _gp.gp_Cylinder_Location(self, *args) + + def Mirror(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theA1: gp_Ax1 + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theA2: gp_Ax2 + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Cylinder_Mirror(self, *args) + + def Mirrored(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + + Return + ------- + gp_Cylinder + + Description + ----------- + Performs the symmetrical transformation of a cylinder with respect to the point theP which is the center of the symmetry. + + Parameters + ---------- + theA1: gp_Ax1 + + Return + ------- + gp_Cylinder + + Description + ----------- + Performs the symmetrical transformation of a cylinder with respect to an axis placement which is the axis of the symmetry. + + Parameters + ---------- + theA2: gp_Ax2 + + Return + ------- + gp_Cylinder + + Description + ----------- + Performs the symmetrical transformation of a cylinder with respect to a plane. The axis placement theA2 locates the plane of the of the symmetry: (Location, XDirection, YDirection). + + """ + return _gp.gp_Cylinder_Mirrored(self, *args) + + def Position(self, *args): + r""" + Return + ------- + gp_Ax3 + + Description + ----------- + Returns the local coordinate system of the cylinder. + + """ + return _gp.gp_Cylinder_Position(self, *args) + + def Radius(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns the radius of the cylinder. + + """ + return _gp.gp_Cylinder_Radius(self, *args) + + def Rotate(self, *args): + r""" + + Parameters + ---------- + theA1: gp_Ax1 + theAng: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Cylinder_Rotate(self, *args) + + def Rotated(self, *args): + r""" + + Parameters + ---------- + theA1: gp_Ax1 + theAng: float + + Return + ------- + gp_Cylinder + + Description + ----------- + Rotates a cylinder. theA1 is the axis of the rotation. theAng is the angular value of the rotation in radians. + + """ + return _gp.gp_Cylinder_Rotated(self, *args) + + def Scale(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + theS: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Cylinder_Scale(self, *args) + + def Scaled(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + theS: float + + Return + ------- + gp_Cylinder + + Description + ----------- + Scales a cylinder. theS is the scaling value. The absolute value of theS is used to scale the cylinder. + + """ + return _gp.gp_Cylinder_Scaled(self, *args) + + def SetAxis(self, *args): + r""" + + Parameters + ---------- + theA1: gp_Ax1 + + Return + ------- + None + + Description + ----------- + Changes the symmetry axis of the cylinder. Raises ConstructionError if the direction of theA1 is parallel to the 'XDirection' of the coordinate system of the cylinder. + + """ + return _gp.gp_Cylinder_SetAxis(self, *args) + + def SetLocation(self, *args): + r""" + + Parameters + ---------- + theLoc: gp_Pnt + + Return + ------- + None + + Description + ----------- + Changes the location of the surface. + + """ + return _gp.gp_Cylinder_SetLocation(self, *args) + + def SetPosition(self, *args): + r""" + + Parameters + ---------- + theA3: gp_Ax3 + + Return + ------- + None + + Description + ----------- + Change the local coordinate system of the surface. + + """ + return _gp.gp_Cylinder_SetPosition(self, *args) + + def SetRadius(self, *args): + r""" + + Parameters + ---------- + theR: float + + Return + ------- + None + + Description + ----------- + Modifies the radius of this cylinder. Exceptions Standard_ConstructionError if theR is negative. + + """ + return _gp.gp_Cylinder_SetRadius(self, *args) + + def Transform(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Cylinder_Transform(self, *args) + + def Transformed(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf + + Return + ------- + gp_Cylinder + + Description + ----------- + Transforms a cylinder with the transformation theT from class Trsf. + + """ + return _gp.gp_Cylinder_Transformed(self, *args) + + def Translate(self, *args): + r""" + + Parameters + ---------- + theV: gp_Vec + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theP1: gp_Pnt + theP2: gp_Pnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Cylinder_Translate(self, *args) + + def Translated(self, *args): + r""" + + Parameters + ---------- + theV: gp_Vec + + Return + ------- + gp_Cylinder + + Description + ----------- + Translates a cylinder in the direction of the vector theV. The magnitude of the translation is the vector's magnitude. + + Parameters + ---------- + theP1: gp_Pnt + theP2: gp_Pnt + + Return + ------- + gp_Cylinder + + Description + ----------- + Translates a cylinder from the point theP1 to the point theP2. + + """ + return _gp.gp_Cylinder_Translated(self, *args) + + def UReverse(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Reverses the U parametrization of the cylinder reversing the YAxis. + + """ + return _gp.gp_Cylinder_UReverse(self, *args) + + def VReverse(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Reverses the V parametrization of the plane reversing the Axis. + + """ + return _gp.gp_Cylinder_VReverse(self, *args) + + def XAxis(self, *args): + r""" + Return + ------- + gp_Ax1 + + Description + ----------- + Returns the axis X of the cylinder. + + """ + return _gp.gp_Cylinder_XAxis(self, *args) + + def YAxis(self, *args): + r""" + Return + ------- + gp_Ax1 + + Description + ----------- + Returns the axis Y of the cylinder. + + """ + return _gp.gp_Cylinder_YAxis(self, *args) + + def __getstate__(self): + return self.DumpJson() + + + def __setstate__(self, state): + inst = gp_Cylinder() + if inst.InitFromJson(state): + self.this = inst.this + else: + raise IOError('Failed to set state of gp_Cylinder') + + + __repr__ = _dumps_object + + __swig_destroy__ = _gp.delete_gp_Cylinder + +# Register gp_Cylinder in _gp: +_gp.gp_Cylinder_swigregister(gp_Cylinder) +class gp_Dir(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 + ----------- + Creates a direction corresponding to X axis. + + Parameters + ---------- + theV: gp_Vec + + Return + ------- + None + + Description + ----------- + Normalizes the vector theV and creates a direction. Raises ConstructionError if theV.Magnitude() <= Resolution. + + Parameters + ---------- + theCoord: gp_XYZ + + Return + ------- + None + + Description + ----------- + Creates a direction from a triplet of coordinates. Raises ConstructionError if theCoord.Modulus() <= Resolution from gp. + + Parameters + ---------- + theXv: float + theYv: float + theZv: float + + Return + ------- + None + + Description + ----------- + Creates a direction with its 3 cartesian coordinates. Raises ConstructionError if Sqrt(theXv*theXv + theYv*theYv + theZv*theZv) <= Resolution Modification of the direction's coordinates If Sqrt (theXv*theXv + theYv*theYv + theZv*theZv) <= Resolution from gp where theXv, theYv ,theZv are the new coordinates it is not possible to construct the direction and the method raises the exception ConstructionError. + + """ + _gp.gp_Dir_swiginit(self, _gp.new_gp_Dir(*args)) + + def Angle(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Dir + + Return + ------- + float + + Description + ----------- + Computes the angular value in radians between and . This value is always positive in 3D space. Returns the angle in the range [0, PI]. + + """ + return _gp.gp_Dir_Angle(self, *args) + + def AngleWithRef(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Dir + theVRef: gp_Dir + + Return + ------- + float + + Description + ----------- + Computes the angular value between and . is the direction of reference normal to and and its orientation gives the positive sense of rotation. If the cross product ^ has the same orientation as the angular value is positive else negative. Returns the angular value in the range -PI and PI (in radians). Raises DomainError if and are not parallel this exception is raised when is in the same plane as and The tolerance criterion is Resolution from package gp. + + """ + return _gp.gp_Dir_AngleWithRef(self, *args) + + def Coord(self, *args): + r""" + + Parameters + ---------- + theIndex: int + + Return + ------- + float + + Description + ----------- + Returns the coordinate of range theIndex: theIndex = 1 => X is returned Ithendex = 2 => Y is returned theIndex = 3 => Z is returned Exceptions Standard_OutOfRange if theIndex is not 1, 2, or 3. + + Parameters + ---------- + + Return + ------- + theXv: float + theYv: float + theZv: float + + Description + ----------- + Returns for the unit vector its three coordinates theXv, theYv, and theZv. + + """ + return _gp.gp_Dir_Coord(self, *args) + + def Cross(self, *args): + r""" + + Parameters + ---------- + theRight: gp_Dir + + Return + ------- + None + + Description + ----------- + Computes the cross product between two directions Raises the exception ConstructionError if the two directions are parallel because the computed vector cannot be normalized to create a direction. + + """ + return _gp.gp_Dir_Cross(self, *args) + + def CrossCross(self, *args): + r""" + + Parameters + ---------- + theV1: gp_Dir + theV2: gp_Dir + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Dir_CrossCross(self, *args) + + def CrossCrossed(self, *args): + r""" + + Parameters + ---------- + theV1: gp_Dir + theV2: gp_Dir + + Return + ------- + gp_Dir + + Description + ----------- + Computes the double vector product this ^ (theV1 ^ theV2). - CrossCrossed creates a new unit vector. Exceptions Standard_ConstructionError if: - theV1 and theV2 are parallel, or - this unit vector and (theV1 ^ theV2) are parallel. This is because, in these conditions, the computed vector is null and cannot be normalized. + + """ + return _gp.gp_Dir_CrossCrossed(self, *args) + + def Crossed(self, *args): + r""" + + Parameters + ---------- + theRight: gp_Dir + + Return + ------- + gp_Dir + + Description + ----------- + Computes the triple vector product. ^ (V1 ^ V2) Raises the exception ConstructionError if V1 and V2 are parallel or and (V1^V2) are parallel because the computed vector can't be normalized to create a direction. + + """ + return _gp.gp_Dir_Crossed(self, *args) + + def Dot(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Dir + + Return + ------- + float + + Description + ----------- + Computes the scalar product. + + """ + return _gp.gp_Dir_Dot(self, *args) + + def DotCross(self, *args): + r""" + + Parameters + ---------- + theV1: gp_Dir + theV2: gp_Dir + + Return + ------- + float + + Description + ----------- + Computes the triple scalar product * (theV1 ^ theV2). Warnings: The computed vector theV1' = theV1 ^ theV2 is not normalized to create a unitary vector. So this method never raises an exception even if theV1 and theV2 are parallel. + + """ + return _gp.gp_Dir_DotCross(self, *args) + + def DumpJson(self, depth=-1): + r""" + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + """ + return _gp.gp_Dir_DumpJson(self, depth) + + def InitFromJson(self, json_string): + r""" + + Parameters + ---------- + json_string: the string + + Return + ------- + bool + + Description + ----------- + Init the object from a JSON string. + + """ + return _gp.gp_Dir_InitFromJson(self, json_string) + + def IsEqual(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Dir + theAngularTolerance: float + + Return + ------- + bool + + Description + ----------- + Returns True if the angle between the two directions is lower or equal to theAngularTolerance. + + """ + return _gp.gp_Dir_IsEqual(self, *args) + + def IsNormal(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Dir + theAngularTolerance: float + + Return + ------- + bool + + Description + ----------- + Returns True if the angle between this unit vector and the unit vector theOther is equal to Pi/2 (normal). + + """ + return _gp.gp_Dir_IsNormal(self, *args) + + def IsOpposite(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Dir + theAngularTolerance: float + + Return + ------- + bool + + Description + ----------- + Returns True if the angle between this unit vector and the unit vector theOther is equal to Pi (opposite). + + """ + return _gp.gp_Dir_IsOpposite(self, *args) + + def IsParallel(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Dir + theAngularTolerance: float + + Return + ------- + bool + + Description + ----------- + Returns true if the angle between this unit vector and the unit vector theOther is equal to 0 or to Pi. Note: the tolerance criterion is given by theAngularTolerance. + + """ + return _gp.gp_Dir_IsParallel(self, *args) + + def Mirror(self, *args): + r""" + + Parameters + ---------- + theV: gp_Dir + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theA1: gp_Ax1 + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theA2: gp_Ax2 + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Dir_Mirror(self, *args) + + def Mirrored(self, *args): + r""" + + Parameters + ---------- + theV: gp_Dir + + Return + ------- + gp_Dir + + Description + ----------- + Performs the symmetrical transformation of a direction with respect to the direction theV which is the center of the symmetry. + + Parameters + ---------- + theA1: gp_Ax1 + + Return + ------- + gp_Dir + + Description + ----------- + Performs the symmetrical transformation of a direction with respect to an axis placement which is the axis of the symmetry. + + Parameters + ---------- + theA2: gp_Ax2 + + Return + ------- + gp_Dir + + Description + ----------- + Performs the symmetrical transformation of a direction with respect to a plane. The axis placement theA2 locates the plane of the symmetry: (Location, XDirection, YDirection). + + """ + return _gp.gp_Dir_Mirrored(self, *args) + + def Reverse(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Dir_Reverse(self, *args) + + def Reversed(self, *args): + r""" + Return + ------- + gp_Dir + + Description + ----------- + Reverses the orientation of a direction geometric transformations Performs the symmetrical transformation of a direction with respect to the direction V which is the center of the symmetry.]. + + """ + return _gp.gp_Dir_Reversed(self, *args) + + def Rotate(self, *args): + r""" + + Parameters + ---------- + theA1: gp_Ax1 + theAng: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Dir_Rotate(self, *args) + + def Rotated(self, *args): + r""" + + Parameters + ---------- + theA1: gp_Ax1 + theAng: float + + Return + ------- + gp_Dir + + Description + ----------- + Rotates a direction. theA1 is the axis of the rotation. theAng is the angular value of the rotation in radians. + + """ + return _gp.gp_Dir_Rotated(self, *args) + + def SetCoord(self, *args): + r""" + + Parameters + ---------- + theIndex: int + theXi: float + + Return + ------- + None + + Description + ----------- + For this unit vector, assigns the value Xi to: - the X coordinate if theIndex is 1, or - the Y coordinate if theIndex is 2, or - the Z coordinate if theIndex is 3, and then normalizes it. Warning Remember that all the coordinates of a unit vector are implicitly modified when any single one is changed directly. Exceptions Standard_OutOfRange if theIndex is not 1, 2, or 3. Standard_ConstructionError if either of the following is less than or equal to gp::Resolution(): - Sqrt(Xv*Xv + Yv*Yv + Zv*Zv), or - the modulus of the number triple formed by the new value theXi and the two other coordinates of this vector that were not directly modified. + + Parameters + ---------- + theXv: float + theYv: float + theZv: float + + Return + ------- + None + + Description + ----------- + For this unit vector, assigns the values theXv, theYv and theZv to its three coordinates. Remember that all the coordinates of a unit vector are implicitly modified when any single one is changed directly. + + """ + return _gp.gp_Dir_SetCoord(self, *args) + + def SetX(self, *args): + r""" + + Parameters + ---------- + theX: float + + Return + ------- + None + + Description + ----------- + Assigns the given value to the X coordinate of this unit vector. + + """ + return _gp.gp_Dir_SetX(self, *args) + + def SetXYZ(self, *args): + r""" + + Parameters + ---------- + theCoord: gp_XYZ + + Return + ------- + None + + Description + ----------- + Assigns the three coordinates of theCoord to this unit vector. + + """ + return _gp.gp_Dir_SetXYZ(self, *args) + + def SetY(self, *args): + r""" + + Parameters + ---------- + theY: float + + Return + ------- + None + + Description + ----------- + Assigns the given value to the Y coordinate of this unit vector. + + """ + return _gp.gp_Dir_SetY(self, *args) + + def SetZ(self, *args): + r""" + + Parameters + ---------- + theZ: float + + Return + ------- + None + + Description + ----------- + Assigns the given value to the Z coordinate of this unit vector. + + """ + return _gp.gp_Dir_SetZ(self, *args) + + def Transform(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Dir_Transform(self, *args) + + def Transformed(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf + + Return + ------- + gp_Dir + + Description + ----------- + Transforms a direction with a 'Trsf' from gp. Warnings: If the scale factor of the 'Trsf' theT is negative then the direction is reversed. + + """ + return _gp.gp_Dir_Transformed(self, *args) + + def X(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns the X coordinate for a unit vector. + + """ + return _gp.gp_Dir_X(self, *args) + + def XYZ(self, *args): + r""" + Return + ------- + gp_XYZ + + Description + ----------- + for this unit vector, returns its three coordinates as a number triplea. + + """ + return _gp.gp_Dir_XYZ(self, *args) + + def Y(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns the Y coordinate for a unit vector. + + """ + return _gp.gp_Dir_Y(self, *args) + + def Z(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns the Z coordinate for a unit vector. + + """ + return _gp.gp_Dir_Z(self, *args) + + def __mul__(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Dir + + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Dir___mul__(self, *args) + + def __neg__(self, *args): + r""" + Return + ------- + gp_Dir + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Dir___neg__(self, *args) + + def __getstate__(self): + return self.DumpJson() + + + def __setstate__(self, state): + inst = gp_Dir() + if inst.InitFromJson(state): + self.this = inst.this + else: + raise IOError('Failed to set state of gp_Dir') + + + __repr__ = _dumps_object + + __swig_destroy__ = _gp.delete_gp_Dir + +# Register gp_Dir in _gp: +_gp.gp_Dir_swigregister(gp_Dir) +class gp_Dir2d(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 + ----------- + Creates a direction corresponding to X axis. + + Parameters + ---------- + theV: gp_Vec2d + + Return + ------- + None + + Description + ----------- + Normalizes the vector theV and creates a Direction. Raises ConstructionError if theV.Magnitude() <= Resolution from gp. + + Parameters + ---------- + theCoord: gp_XY + + Return + ------- + None + + Description + ----------- + Creates a Direction from a doublet of coordinates. Raises ConstructionError if theCoord.Modulus() <= Resolution from gp. + + Parameters + ---------- + theXv: float + theYv: float + + Return + ------- + None + + Description + ----------- + Creates a Direction with its 2 cartesian coordinates. Raises ConstructionError if Sqrt(theXv*theXv + theYv*theYv) <= Resolution from gp. + + """ + _gp.gp_Dir2d_swiginit(self, _gp.new_gp_Dir2d(*args)) + + def Angle(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Dir2d + + Return + ------- + float + + Description + ----------- + Computes the angular value in radians between and . Returns the angle in the range [-PI, PI]. + + """ + return _gp.gp_Dir2d_Angle(self, *args) + + def Coord(self, *args): + r""" + + Parameters + ---------- + theIndex: int + + Return + ------- + float + + Description + ----------- + For this unit vector returns the coordinate of range theIndex: theIndex = 1 => X is returned theIndex = 2 => Y is returned Raises OutOfRange if theIndex != {1, 2}. + + Parameters + ---------- + + Return + ------- + theXv: float + theYv: float + + Description + ----------- + For this unit vector returns its two coordinates theXv and theYv. Raises OutOfRange if theIndex != {1, 2}. + + """ + return _gp.gp_Dir2d_Coord(self, *args) + + def Crossed(self, *args): + r""" + + Parameters + ---------- + theRight: gp_Dir2d + + Return + ------- + float + + Description + ----------- + Computes the cross product between two directions. + + """ + return _gp.gp_Dir2d_Crossed(self, *args) + + def Dot(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Dir2d + + Return + ------- + float + + Description + ----------- + Computes the scalar product. + + """ + return _gp.gp_Dir2d_Dot(self, *args) + + def DumpJson(self, depth=-1): + r""" + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + """ + return _gp.gp_Dir2d_DumpJson(self, depth) + + def IsEqual(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Dir2d + theAngularTolerance: float + + Return + ------- + bool + + Description + ----------- + Returns True if the two vectors have the same direction i.e. the angle between this unit vector and the unit vector theOther is less than or equal to theAngularTolerance. + + """ + return _gp.gp_Dir2d_IsEqual(self, *args) + + def IsNormal(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Dir2d + theAngularTolerance: float + + Return + ------- + bool + + Description + ----------- + Returns True if the angle between this unit vector and the unit vector theOther is equal to Pi/2 or -Pi/2 (normal) i.e. Abs(Abs(.Angle(theOther)) - PI/2.) <= theAngularTolerance. + + """ + return _gp.gp_Dir2d_IsNormal(self, *args) + + def IsOpposite(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Dir2d + theAngularTolerance: float + + Return + ------- + bool + + Description + ----------- + Returns True if the angle between this unit vector and the unit vector theOther is equal to Pi or -Pi (opposite). i.e. PI - Abs(.Angle(theOther)) <= theAngularTolerance. + + """ + return _gp.gp_Dir2d_IsOpposite(self, *args) + + def IsParallel(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Dir2d + theAngularTolerance: float + + Return + ------- + bool + + Description + ----------- + returns true if the angle between this unit vector and unit vector theOther is equal to 0, Pi or -Pi. i.e. Abs(Angle(, theOther)) <= theAngularTolerance or PI - Abs(Angle(, theOther)) <= theAngularTolerance. + + """ + return _gp.gp_Dir2d_IsParallel(self, *args) + + def Mirror(self, *args): + r""" + + Parameters + ---------- + theV: gp_Dir2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theA: gp_Ax2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Dir2d_Mirror(self, *args) + + def Mirrored(self, *args): + r""" + + Parameters + ---------- + theV: gp_Dir2d + + Return + ------- + gp_Dir2d + + Description + ----------- + Performs the symmetrical transformation of a direction with respect to the direction theV which is the center of the symmetry. + + Parameters + ---------- + theA: gp_Ax2d + + Return + ------- + gp_Dir2d + + Description + ----------- + Performs the symmetrical transformation of a direction with respect to an axis placement which is the axis of the symmetry. + + """ + return _gp.gp_Dir2d_Mirrored(self, *args) + + def Reverse(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Dir2d_Reverse(self, *args) + + def Reversed(self, *args): + r""" + Return + ------- + gp_Dir2d + + Description + ----------- + Reverses the orientation of a direction. + + """ + return _gp.gp_Dir2d_Reversed(self, *args) + + def Rotate(self, *args): + r""" + + Parameters + ---------- + Ang: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Dir2d_Rotate(self, *args) + + def Rotated(self, *args): + r""" + + Parameters + ---------- + theAng: float + + Return + ------- + gp_Dir2d + + Description + ----------- + Rotates a direction. theAng is the angular value of the rotation in radians. + + """ + return _gp.gp_Dir2d_Rotated(self, *args) + + def SetCoord(self, *args): + r""" + + Parameters + ---------- + theIndex: int + theXi: float + + Return + ------- + None + + Description + ----------- + For this unit vector, assigns: the value theXi to: - the X coordinate if theIndex is 1, or - the Y coordinate if theIndex is 2, and then normalizes it. Warning Remember that all the coordinates of a unit vector are implicitly modified when any single one is changed directly. Exceptions Standard_OutOfRange if theIndex is not 1 or 2. Standard_ConstructionError if either of the following is less than or equal to gp::Resolution(): - Sqrt(theXv*theXv + theYv*theYv), or - the modulus of the number pair formed by the new value theXi and the other coordinate of this vector that was not directly modified. Raises OutOfRange if theIndex != {1, 2}. + + Parameters + ---------- + theXv: float + theYv: float + + Return + ------- + None + + Description + ----------- + For this unit vector, assigns: - the values theXv and theYv to its two coordinates, Warning Remember that all the coordinates of a unit vector are implicitly modified when any single one is changed directly. Exceptions Standard_OutOfRange if theIndex is not 1 or 2. Standard_ConstructionError if either of the following is less than or equal to gp::Resolution(): - Sqrt(theXv*theXv + theYv*theYv), or - the modulus of the number pair formed by the new value Xi and the other coordinate of this vector that was not directly modified. Raises OutOfRange if theIndex != {1, 2}. + + """ + return _gp.gp_Dir2d_SetCoord(self, *args) + + def SetX(self, *args): + r""" + + Parameters + ---------- + theX: float + + Return + ------- + None + + Description + ----------- + Assigns the given value to the X coordinate of this unit vector, and then normalizes it. Warning Remember that all the coordinates of a unit vector are implicitly modified when any single one is changed directly. Exceptions Standard_ConstructionError if either of the following is less than or equal to gp::Resolution(): - the modulus of Coord, or - the modulus of the number pair formed from the new X or Y coordinate and the other coordinate of this vector that was not directly modified. + + """ + return _gp.gp_Dir2d_SetX(self, *args) + + def SetXY(self, *args): + r""" + + Parameters + ---------- + theCoord: gp_XY + + Return + ------- + None + + Description + ----------- + Assigns: - the two coordinates of theCoord to this unit vector, and then normalizes it. Warning Remember that all the coordinates of a unit vector are implicitly modified when any single one is changed directly. Exceptions Standard_ConstructionError if either of the following is less than or equal to gp::Resolution(): - the modulus of theCoord, or - the modulus of the number pair formed from the new X or Y coordinate and the other coordinate of this vector that was not directly modified. + + """ + return _gp.gp_Dir2d_SetXY(self, *args) + + def SetY(self, *args): + r""" + + Parameters + ---------- + theY: float + + Return + ------- + None + + Description + ----------- + Assigns the given value to the Y coordinate of this unit vector, and then normalizes it. Warning Remember that all the coordinates of a unit vector are implicitly modified when any single one is changed directly. Exceptions Standard_ConstructionError if either of the following is less than or equal to gp::Resolution(): - the modulus of Coord, or - the modulus of the number pair formed from the new X or Y coordinate and the other coordinate of this vector that was not directly modified. + + """ + return _gp.gp_Dir2d_SetY(self, *args) + + def Transform(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Dir2d_Transform(self, *args) + + def Transformed(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf2d + + Return + ------- + gp_Dir2d + + Description + ----------- + Transforms a direction with the 'Trsf' theT. Warnings: If the scale factor of the 'Trsf' theT is negative then the direction is reversed. + + """ + return _gp.gp_Dir2d_Transformed(self, *args) + + def X(self, *args): + r""" + Return + ------- + float + + Description + ----------- + For this unit vector, returns its X coordinate. + + """ + return _gp.gp_Dir2d_X(self, *args) + + def XY(self, *args): + r""" + Return + ------- + gp_XY + + Description + ----------- + For this unit vector, returns its two coordinates as a number pair. Comparison between Directions The precision value is an input data. + + """ + return _gp.gp_Dir2d_XY(self, *args) + + def Y(self, *args): + r""" + Return + ------- + float + + Description + ----------- + For this unit vector, returns its Y coordinate. + + """ + return _gp.gp_Dir2d_Y(self, *args) + + def __mul__(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Dir2d + + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Dir2d___mul__(self, *args) + + def __neg__(self, *args): + r""" + Return + ------- + gp_Dir2d + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Dir2d___neg__(self, *args) + + def __getstate__(self): + return self.DumpJson() + + + def __setstate__(self, state): + inst = gp_Dir2d() + if inst.InitFromJson(state): + self.this = inst.this + else: + raise IOError('Failed to set state of gp_Dir2d') + + + __repr__ = _dumps_object + + __swig_destroy__ = _gp.delete_gp_Dir2d + +# Register gp_Dir2d in _gp: +_gp.gp_Dir2d_swigregister(gp_Dir2d) +class gp_Elips(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 + ----------- + Creates an indefinite ellipse. + + Parameters + ---------- + theA2: gp_Ax2 + theMajorRadius: float + theMinorRadius: float + + Return + ------- + None + + Description + ----------- + The major radius of the ellipse is on the 'XAxis' and the minor radius is on the 'YAxis' of the ellipse. The 'XAxis' is defined with the 'XDirection' of theA2 and the 'YAxis' is defined with the 'YDirection' of theA2. Warnings: It is not forbidden to create an ellipse with theMajorRadius = theMinorRadius. Raises ConstructionError if theMajorRadius < theMinorRadius or theMinorRadius < 0. + + """ + _gp.gp_Elips_swiginit(self, _gp.new_gp_Elips(*args)) + + def Area(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Computes the area of the Ellipse. + + """ + return _gp.gp_Elips_Area(self, *args) + + def Axis(self, *args): + r""" + Return + ------- + gp_Ax1 + + Description + ----------- + Computes the axis normal to the plane of the ellipse. + + """ + return _gp.gp_Elips_Axis(self, *args) + + def Directrix1(self, *args): + r""" + Return + ------- + gp_Ax1 + + Description + ----------- + Computes the first or second directrix of this ellipse. These are the lines, in the plane of the ellipse, normal to the major axis, at a distance equal to MajorRadius/e from the center of the ellipse, where e is the eccentricity of the ellipse. The first directrix (Directrix1) is on the positive side of the major axis. The second directrix (Directrix2) is on the negative side. The directrix is returned as an axis (gp_Ax1 object), the origin of which is situated on the 'X Axis' of the local coordinate system of this ellipse. Exceptions Standard_ConstructionError if the eccentricity is null (the ellipse has degenerated into a circle). + + """ + return _gp.gp_Elips_Directrix1(self, *args) + + def Directrix2(self, *args): + r""" + Return + ------- + gp_Ax1 + + Description + ----------- + This line is obtained by the symmetrical transformation of 'Directrix1' with respect to the 'YAxis' of the ellipse. Exceptions Standard_ConstructionError if the eccentricity is null (the ellipse has degenerated into a circle). + + """ + return _gp.gp_Elips_Directrix2(self, *args) + + def Eccentricity(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns the eccentricity of the ellipse between 0.0 and 1.0 If f is the distance between the center of the ellipse and the Focus1 then the eccentricity e = f / MajorRadius. Raises ConstructionError if MajorRadius = 0.0. + + """ + return _gp.gp_Elips_Eccentricity(self, *args) + + def Focal(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Computes the focal distance. It is the distance between the two focus focus1 and focus2 of the ellipse. + + """ + return _gp.gp_Elips_Focal(self, *args) + + def Focus1(self, *args): + r""" + Return + ------- + gp_Pnt + + Description + ----------- + Returns the first focus of the ellipse. This focus is on the positive side of the 'XAxis' of the ellipse. + + """ + return _gp.gp_Elips_Focus1(self, *args) + + def Focus2(self, *args): + r""" + Return + ------- + gp_Pnt + + Description + ----------- + Returns the second focus of the ellipse. This focus is on the negative side of the 'XAxis' of the ellipse. + + """ + return _gp.gp_Elips_Focus2(self, *args) + + def Location(self, *args): + r""" + Return + ------- + gp_Pnt + + Description + ----------- + Returns the center of the ellipse. It is the 'Location' point of the coordinate system of the ellipse. + + """ + return _gp.gp_Elips_Location(self, *args) + + def MajorRadius(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns the major radius of the ellipse. + + """ + return _gp.gp_Elips_MajorRadius(self, *args) + + def MinorRadius(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns the minor radius of the ellipse. + + """ + return _gp.gp_Elips_MinorRadius(self, *args) + + def Mirror(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theA1: gp_Ax1 + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theA2: gp_Ax2 + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Elips_Mirror(self, *args) + + def Mirrored(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + + Return + ------- + gp_Elips + + Description + ----------- + Performs the symmetrical transformation of an ellipse with respect to the point theP which is the center of the symmetry. + + Parameters + ---------- + theA1: gp_Ax1 + + Return + ------- + gp_Elips + + Description + ----------- + Performs the symmetrical transformation of an ellipse with respect to an axis placement which is the axis of the symmetry. + + Parameters + ---------- + theA2: gp_Ax2 + + Return + ------- + gp_Elips + + Description + ----------- + Performs the symmetrical transformation of an ellipse with respect to a plane. The axis placement theA2 locates the plane of the symmetry (Location, XDirection, YDirection). + + """ + return _gp.gp_Elips_Mirrored(self, *args) + + def Parameter(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns p = (1 - e * e) * MajorRadius where e is the eccentricity of the ellipse. Returns 0 if MajorRadius = 0. + + """ + return _gp.gp_Elips_Parameter(self, *args) + + def Position(self, *args): + r""" + Return + ------- + gp_Ax2 + + Description + ----------- + Returns the coordinate system of the ellipse. + + """ + return _gp.gp_Elips_Position(self, *args) + + def Rotate(self, *args): + r""" + + Parameters + ---------- + theA1: gp_Ax1 + theAng: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Elips_Rotate(self, *args) + + def Rotated(self, *args): + r""" + + Parameters + ---------- + theA1: gp_Ax1 + theAng: float + + Return + ------- + gp_Elips + + Description + ----------- + Rotates an ellipse. theA1 is the axis of the rotation. theAng is the angular value of the rotation in radians. + + """ + return _gp.gp_Elips_Rotated(self, *args) + + def Scale(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + theS: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Elips_Scale(self, *args) + + def Scaled(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + theS: float + + Return + ------- + gp_Elips + + Description + ----------- + Scales an ellipse. theS is the scaling value. + + """ + return _gp.gp_Elips_Scaled(self, *args) + + def SetAxis(self, *args): + r""" + + Parameters + ---------- + theA1: gp_Ax1 + + Return + ------- + None + + Description + ----------- + Changes the axis normal to the plane of the ellipse. It modifies the definition of this plane. The 'XAxis' and the 'YAxis' are recomputed. The local coordinate system is redefined so that: - its origin and 'main Direction' become those of the axis theA1 (the 'X Direction' and 'Y Direction' are then recomputed in the same way as for any gp_Ax2), or Raises ConstructionError if the direction of theA1 is parallel to the direction of the 'XAxis' of the ellipse. + + """ + return _gp.gp_Elips_SetAxis(self, *args) + + def SetLocation(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + + Return + ------- + None + + Description + ----------- + Modifies this ellipse, by redefining its local coordinate so that its origin becomes theP. + + """ + return _gp.gp_Elips_SetLocation(self, *args) + + def SetMajorRadius(self, *args): + r""" + + Parameters + ---------- + theMajorRadius: float + + Return + ------- + None + + Description + ----------- + The major radius of the ellipse is on the 'XAxis' (major axis) of the ellipse. Raises ConstructionError if theMajorRadius < MinorRadius. + + """ + return _gp.gp_Elips_SetMajorRadius(self, *args) + + def SetMinorRadius(self, *args): + r""" + + Parameters + ---------- + theMinorRadius: float + + Return + ------- + None + + Description + ----------- + The minor radius of the ellipse is on the 'YAxis' (minor axis) of the ellipse. Raises ConstructionError if theMinorRadius > MajorRadius or MinorRadius < 0. + + """ + return _gp.gp_Elips_SetMinorRadius(self, *args) + + def SetPosition(self, *args): + r""" + + Parameters + ---------- + theA2: gp_Ax2 + + Return + ------- + None + + Description + ----------- + Modifies this ellipse, by redefining its local coordinate so that it becomes theA2. + + """ + return _gp.gp_Elips_SetPosition(self, *args) + + def Transform(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Elips_Transform(self, *args) + + def Transformed(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf + + Return + ------- + gp_Elips + + Description + ----------- + Transforms an ellipse with the transformation theT from class Trsf. + + """ + return _gp.gp_Elips_Transformed(self, *args) + + def Translate(self, *args): + r""" + + Parameters + ---------- + theV: gp_Vec + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theP1: gp_Pnt + theP2: gp_Pnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Elips_Translate(self, *args) + + def Translated(self, *args): + r""" + + Parameters + ---------- + theV: gp_Vec + + Return + ------- + gp_Elips + + Description + ----------- + Translates an ellipse in the direction of the vector theV. The magnitude of the translation is the vector's magnitude. + + Parameters + ---------- + theP1: gp_Pnt + theP2: gp_Pnt + + Return + ------- + gp_Elips + + Description + ----------- + Translates an ellipse from the point theP1 to the point theP2. + + """ + return _gp.gp_Elips_Translated(self, *args) + + def XAxis(self, *args): + r""" + Return + ------- + gp_Ax1 + + Description + ----------- + Returns the 'XAxis' of the ellipse whose origin is the center of this ellipse. It is the major axis of the ellipse. + + """ + return _gp.gp_Elips_XAxis(self, *args) + + def YAxis(self, *args): + r""" + Return + ------- + gp_Ax1 + + Description + ----------- + Returns the 'YAxis' of the ellipse whose unit vector is the 'X Direction' or the 'Y Direction' of the local coordinate system of this ellipse. This is the minor axis of the ellipse. + + """ + return _gp.gp_Elips_YAxis(self, *args) + + def __getstate__(self): + return self.DumpJson() + + + def __setstate__(self, state): + inst = gp_Elips() + if inst.InitFromJson(state): + self.this = inst.this + else: + raise IOError('Failed to set state of gp_Elips') + + + __repr__ = _dumps_object + + __swig_destroy__ = _gp.delete_gp_Elips + +# Register gp_Elips in _gp: +_gp.gp_Elips_swigregister(gp_Elips) +class gp_Elips2d(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 + ----------- + Creates an indefinite ellipse. + + Parameters + ---------- + theMajorAxis: gp_Ax2d + theMajorRadius: float + theMinorRadius: float + theIsSense: bool (optional, default to Standard_True) + + Return + ------- + None + + Description + ----------- + Creates an ellipse with the major axis, the major and the minor radius. The location of the theMajorAxis is the center of the ellipse. The sense of parametrization is given by theIsSense. Warnings: It is possible to create an ellipse with theMajorRadius = theMinorRadius. Raises ConstructionError if theMajorRadius < theMinorRadius or theMinorRadius < 0.0. + + Parameters + ---------- + theA: gp_Ax22d + theMajorRadius: float + theMinorRadius: float + + Return + ------- + None + + Description + ----------- + Creates an ellipse with radii MajorRadius and MinorRadius, positioned in the plane by coordinate system theA where: - the origin of theA is the center of the ellipse, - the 'X Direction' of theA defines the major axis of the ellipse, that is, the major radius MajorRadius is measured along this axis, and - the 'Y Direction' of theA defines the minor axis of the ellipse, that is, the minor radius theMinorRadius is measured along this axis, and - the orientation (direct or indirect sense) of theA gives the orientation of the ellipse. Warnings: It is possible to create an ellipse with theMajorRadius = theMinorRadius. Raises ConstructionError if theMajorRadius < theMinorRadius or theMinorRadius < 0.0. + + """ + _gp.gp_Elips2d_swiginit(self, _gp.new_gp_Elips2d(*args)) + + def Area(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Computes the area of the ellipse. + + """ + return _gp.gp_Elips2d_Area(self, *args) + + def Axis(self, *args): + r""" + Return + ------- + gp_Ax22d + + Description + ----------- + Returns the major axis of the ellipse. + + """ + return _gp.gp_Elips2d_Axis(self, *args) + + def Coefficients(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + theA: float + theB: float + theC: float + theD: float + theE: float + theF: float + + Description + ----------- + Returns the coefficients of the implicit equation of the ellipse. theA * (X**2) + theB * (Y**2) + 2*theC*(X*Y) + 2*theD*X + 2*theE*Y + theF = 0. + + """ + return _gp.gp_Elips2d_Coefficients(self, *args) + + def Directrix1(self, *args): + r""" + Return + ------- + gp_Ax2d + + Description + ----------- + This directrix is the line normal to the XAxis of the ellipse in the local plane (Z = 0) at a distance d = MajorRadius / e from the center of the ellipse, where e is the eccentricity of the ellipse. This line is parallel to the 'YAxis'. The intersection point between directrix1 and the 'XAxis' is the location point of the directrix1. This point is on the positive side of the 'XAxis'. //! Raised if Eccentricity = 0.0. (The ellipse degenerates into a circle). + + """ + return _gp.gp_Elips2d_Directrix1(self, *args) + + def Directrix2(self, *args): + r""" + Return + ------- + gp_Ax2d + + Description + ----------- + This line is obtained by the symmetrical transformation of 'Directrix1' with respect to the minor axis of the ellipse. //! Raised if Eccentricity = 0.0. (The ellipse degenerates into a circle). + + """ + return _gp.gp_Elips2d_Directrix2(self, *args) + + def Eccentricity(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns the eccentricity of the ellipse between 0.0 and 1.0 If f is the distance between the center of the ellipse and the Focus1 then the eccentricity e = f / MajorRadius. Returns 0 if MajorRadius = 0. + + """ + return _gp.gp_Elips2d_Eccentricity(self, *args) + + def Focal(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns the distance between the center of the ellipse and focus1 or focus2. + + """ + return _gp.gp_Elips2d_Focal(self, *args) + + def Focus1(self, *args): + r""" + Return + ------- + gp_Pnt2d + + Description + ----------- + Returns the first focus of the ellipse. This focus is on the positive side of the major axis of the ellipse. + + """ + return _gp.gp_Elips2d_Focus1(self, *args) + + def Focus2(self, *args): + r""" + Return + ------- + gp_Pnt2d + + Description + ----------- + Returns the second focus of the ellipse. This focus is on the negative side of the major axis of the ellipse. + + """ + return _gp.gp_Elips2d_Focus2(self, *args) + + def IsDirect(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns true if the local coordinate system is direct and false in the other case. + + """ + return _gp.gp_Elips2d_IsDirect(self, *args) + + def Location(self, *args): + r""" + Return + ------- + gp_Pnt2d + + Description + ----------- + Returns the center of the ellipse. + + """ + return _gp.gp_Elips2d_Location(self, *args) + + def MajorRadius(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns the major radius of the Ellipse. + + """ + return _gp.gp_Elips2d_MajorRadius(self, *args) + + def MinorRadius(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns the minor radius of the Ellipse. + + """ + return _gp.gp_Elips2d_MinorRadius(self, *args) + + def Mirror(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theA: gp_Ax2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Elips2d_Mirror(self, *args) + + def Mirrored(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + + Return + ------- + gp_Elips2d + + Description + ----------- + Performs the symmetrical transformation of a ellipse with respect to the point theP which is the center of the symmetry. + + Parameters + ---------- + theA: gp_Ax2d + + Return + ------- + gp_Elips2d + + Description + ----------- + Performs the symmetrical transformation of a ellipse with respect to an axis placement which is the axis of the symmetry. + + """ + return _gp.gp_Elips2d_Mirrored(self, *args) + + def Parameter(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns p = (1 - e * e) * MajorRadius where e is the eccentricity of the ellipse. Returns 0 if MajorRadius = 0. + + """ + return _gp.gp_Elips2d_Parameter(self, *args) + + def Reverse(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Elips2d_Reverse(self, *args) + + def Reversed(self, *args): + r""" + Return + ------- + gp_Elips2d + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Elips2d_Reversed(self, *args) + + def Rotate(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + theAng: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Elips2d_Rotate(self, *args) + + def Rotated(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + theAng: float + + Return + ------- + gp_Elips2d + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Elips2d_Rotated(self, *args) + + def Scale(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + theS: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Elips2d_Scale(self, *args) + + def Scaled(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + theS: float + + Return + ------- + gp_Elips2d + + Description + ----------- + Scales a ellipse. theS is the scaling value. + + """ + return _gp.gp_Elips2d_Scaled(self, *args) + + def SetAxis(self, *args): + r""" + + Parameters + ---------- + theA: gp_Ax22d + + Return + ------- + None + + Description + ----------- + Modifies this ellipse, by redefining its local coordinate system so that it becomes theA. + + """ + return _gp.gp_Elips2d_SetAxis(self, *args) + + def SetLocation(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + Modifies this ellipse, by redefining its local coordinate system so that - its origin becomes theP. + + """ + return _gp.gp_Elips2d_SetLocation(self, *args) + + def SetMajorRadius(self, *args): + r""" + + Parameters + ---------- + theMajorRadius: float + + Return + ------- + None + + Description + ----------- + Changes the value of the major radius. Raises ConstructionError if theMajorRadius < MinorRadius. + + """ + return _gp.gp_Elips2d_SetMajorRadius(self, *args) + + def SetMinorRadius(self, *args): + r""" + + Parameters + ---------- + theMinorRadius: float + + Return + ------- + None + + Description + ----------- + Changes the value of the minor radius. Raises ConstructionError if MajorRadius < theMinorRadius or MinorRadius < 0.0. + + """ + return _gp.gp_Elips2d_SetMinorRadius(self, *args) + + def SetXAxis(self, *args): + r""" + + Parameters + ---------- + theA: gp_Ax2d + + Return + ------- + None + + Description + ----------- + Modifies this ellipse, by redefining its local coordinate system so that its origin and its 'X Direction' become those of the axis theA. The 'Y Direction' is then recomputed. The orientation of the local coordinate system is not modified. + + """ + return _gp.gp_Elips2d_SetXAxis(self, *args) + + def SetYAxis(self, *args): + r""" + + Parameters + ---------- + theA: gp_Ax2d + + Return + ------- + None + + Description + ----------- + Modifies this ellipse, by redefining its local coordinate system so that its origin and its 'Y Direction' become those of the axis theA. The 'X Direction' is then recomputed. The orientation of the local coordinate system is not modified. + + """ + return _gp.gp_Elips2d_SetYAxis(self, *args) + + def Transform(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Elips2d_Transform(self, *args) + + def Transformed(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf2d + + Return + ------- + gp_Elips2d + + Description + ----------- + Transforms an ellipse with the transformation theT from class Trsf2d. + + """ + return _gp.gp_Elips2d_Transformed(self, *args) + + def Translate(self, *args): + r""" + + Parameters + ---------- + theV: gp_Vec2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theP1: gp_Pnt2d + theP2: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Elips2d_Translate(self, *args) + + def Translated(self, *args): + r""" + + Parameters + ---------- + theV: gp_Vec2d + + Return + ------- + gp_Elips2d + + Description + ----------- + Translates a ellipse in the direction of the vector theV. The magnitude of the translation is the vector's magnitude. + + Parameters + ---------- + theP1: gp_Pnt2d + theP2: gp_Pnt2d + + Return + ------- + gp_Elips2d + + Description + ----------- + Translates a ellipse from the point theP1 to the point theP2. + + """ + return _gp.gp_Elips2d_Translated(self, *args) + + def XAxis(self, *args): + r""" + Return + ------- + gp_Ax2d + + Description + ----------- + Returns the major axis of the ellipse. + + """ + return _gp.gp_Elips2d_XAxis(self, *args) + + def YAxis(self, *args): + r""" + Return + ------- + gp_Ax2d + + Description + ----------- + Returns the minor axis of the ellipse. Reverses the direction of the circle. + + """ + return _gp.gp_Elips2d_YAxis(self, *args) + + def __getstate__(self): + return self.DumpJson() + + + def __setstate__(self, state): + inst = gp_Elips2d() + if inst.InitFromJson(state): + self.this = inst.this + else: + raise IOError('Failed to set state of gp_Elips2d') + + + __repr__ = _dumps_object + + __swig_destroy__ = _gp.delete_gp_Elips2d + +# Register gp_Elips2d in _gp: +_gp.gp_Elips2d_swigregister(gp_Elips2d) +class gp_GTrsf(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 + ----------- + Returns the Identity transformation. + + Parameters + ---------- + theT: gp_Trsf + + Return + ------- + None + + Description + ----------- + Converts the gp_Trsf transformation theT into a general transformation, i.e. Returns a GTrsf with the same matrix of coefficients as the Trsf theT. + + Parameters + ---------- + theM: gp_Mat + theV: gp_XYZ + + Return + ------- + None + + Description + ----------- + Creates a transformation based on the matrix theM and the vector theV where theM defines the vectorial part of the transformation, and V the translation part, or. + + """ + _gp.gp_GTrsf_swiginit(self, _gp.new_gp_GTrsf(*args)) + + def DumpJson(self, depth=-1): + r""" + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + """ + return _gp.gp_GTrsf_DumpJson(self, depth) + + def Form(self, *args): + r""" + Return + ------- + gp_TrsfForm + + Description + ----------- + Returns the nature of the transformation. It can be an identity transformation, a rotation, a translation, a mirror transformation (relative to a point, an axis or a plane), a scaling transformation, a compound transformation or some other type of transformation. + + """ + return _gp.gp_GTrsf_Form(self, *args) + + def Invert(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_GTrsf_Invert(self, *args) + + def Inverted(self, *args): + r""" + Return + ------- + gp_GTrsf + + Description + ----------- + Computes the reverse transformation. Raises an exception if the matrix of the transformation is not inversible. + + """ + return _gp.gp_GTrsf_Inverted(self, *args) + + def IsNegative(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns true if the determinant of the vectorial part of this transformation is negative. + + """ + return _gp.gp_GTrsf_IsNegative(self, *args) + + def IsSingular(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns true if this transformation is singular (and therefore, cannot be inverted). Note: The Gauss LU decomposition is used to invert the transformation matrix. Consequently, the transformation is considered as singular if the largest pivot found is less than or equal to gp::Resolution(). Warning If this transformation is singular, it cannot be inverted. + + """ + return _gp.gp_GTrsf_IsSingular(self, *args) + + def Multiplied(self, *args): + r""" + + Parameters + ---------- + theT: gp_GTrsf + + Return + ------- + gp_GTrsf + + Description + ----------- + Computes the transformation composed from theT and . In a C++ implementation you can also write Tcomposed = * theT. Example: @code gp_GTrsf T1, T2, Tcomp; ............... //composition: Tcomp = T2.Multiplied(T1); // or (Tcomp = T2 * T1) // transformation of a point gp_XYZ P(10.,3.,4.); gp_XYZ P1(P); Tcomp.Transforms(P1); //using Tcomp gp_XYZ P2(P); T1.Transforms(P2); //using T1 then T2 T2.Transforms(P2); // P1 = P2 !!! @endcode. + + """ + return _gp.gp_GTrsf_Multiplied(self, *args) + + def Multiply(self, *args): + r""" + + Parameters + ---------- + theT: gp_GTrsf + + Return + ------- + None + + Description + ----------- + Computes the transformation composed with and theT. = * theT. + + """ + return _gp.gp_GTrsf_Multiply(self, *args) + + def Power(self, *args): + r""" + + Parameters + ---------- + theN: int + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_GTrsf_Power(self, *args) + + def Powered(self, *args): + r""" + + Parameters + ---------- + theN: int + + Return + ------- + gp_GTrsf + + Description + ----------- + Computes: - the product of this transformation multiplied by itself theN times, if theN is positive, or - the product of the inverse of this transformation multiplied by itself |theN| times, if theN is negative. If theN equals zero, the result is equal to the Identity transformation. I.e.: * * .......* , theN time. if theN =0 = Identity if theN < 0 = .Inverse() *...........* .Inverse(). //! Raises an exception if N < 0 and if the matrix of the transformation not inversible. + + """ + return _gp.gp_GTrsf_Powered(self, *args) + + def PreMultiply(self, *args): + r""" + + Parameters + ---------- + theT: gp_GTrsf + + Return + ------- + None + + Description + ----------- + Computes the product of the transformation theT and this transformation and assigns the result to this transformation. this = theT * this. + + """ + return _gp.gp_GTrsf_PreMultiply(self, *args) + + def SetAffinity(self, *args): + r""" + + Parameters + ---------- + theA1: gp_Ax1 + theRatio: float + + Return + ------- + None + + Description + ----------- + Changes this transformation into an affinity of ratio theRatio with respect to the axis theA1. Note: an affinity is a point-by-point transformation that transforms any point P into a point P' such that if H is the orthogonal projection of P on the axis theA1 or the plane A2, the vectors HP and HP' satisfy: HP' = theRatio * HP. + + Parameters + ---------- + theA2: gp_Ax2 + theRatio: float + + Return + ------- + None + + Description + ----------- + Changes this transformation into an affinity of ratio theRatio with respect to the plane defined by the origin, the 'X Direction' and the 'Y Direction' of coordinate system theA2. Note: an affinity is a point-by-point transformation that transforms any point P into a point P' such that if H is the orthogonal projection of P on the axis A1 or the plane theA2, the vectors HP and HP' satisfy: HP' = theRatio * HP. + + """ + return _gp.gp_GTrsf_SetAffinity(self, *args) + + def SetForm(self, *args): + r""" + Return + ------- + None + + Description + ----------- + verify and set the shape of the GTrsf Other or CompoundTrsf Ex: @code myGTrsf.SetValue(row1,col1,val1); myGTrsf.SetValue(row2,col2,val2); ... myGTrsf.SetForm(); @endcode. + + """ + return _gp.gp_GTrsf_SetForm(self, *args) + + def SetTranslationPart(self, *args): + r""" + + Parameters + ---------- + theCoord: gp_XYZ + + Return + ------- + None + + Description + ----------- + Replaces the translation part of this transformation by the coordinates of the number triple theCoord. + + """ + return _gp.gp_GTrsf_SetTranslationPart(self, *args) + + def SetTrsf(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf + + Return + ------- + None + + Description + ----------- + Assigns the vectorial and translation parts of theT to this transformation. + + """ + return _gp.gp_GTrsf_SetTrsf(self, *args) + + def SetValue(self, *args): + r""" + + Parameters + ---------- + theRow: int + theCol: int + theValue: float + + Return + ------- + None + + Description + ----------- + Replaces the coefficient (theRow, theCol) of the matrix representing this transformation by theValue. Raises OutOfRange if theRow < 1 or theRow > 3 or theCol < 1 or theCol > 4. + + """ + return _gp.gp_GTrsf_SetValue(self, *args) + + def SetVectorialPart(self, *args): + r""" + + Parameters + ---------- + theMatrix: gp_Mat + + Return + ------- + None + + Description + ----------- + Replaces the vectorial part of this transformation by theMatrix. + + """ + return _gp.gp_GTrsf_SetVectorialPart(self, *args) + + def Transforms(self, *args): + r""" + + Parameters + ---------- + theCoord: gp_XYZ + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + + Return + ------- + theX: float + theY: float + theZ: float + + Description + ----------- + Transforms a triplet XYZ with a GTrsf. + + """ + return _gp.gp_GTrsf_Transforms(self, *args) + + def TranslationPart(self, *args): + r""" + Return + ------- + gp_XYZ + + Description + ----------- + Returns the translation part of the GTrsf. + + """ + return _gp.gp_GTrsf_TranslationPart(self, *args) + + def Trsf(self, *args): + r""" + Return + ------- + gp_Trsf + + Description + ----------- + No available documentation. + + """ + return _gp.gp_GTrsf_Trsf(self, *args) + + def Value(self, *args): + r""" + + Parameters + ---------- + theRow: int + theCol: int + + Return + ------- + float + + Description + ----------- + Returns the coefficients of the global matrix of transformation. Raises OutOfRange if theRow < 1 or theRow > 3 or theCol < 1 or theCol > 4. + + """ + return _gp.gp_GTrsf_Value(self, *args) + + def VectorialPart(self, *args): + r""" + Return + ------- + gp_Mat + + Description + ----------- + Computes the vectorial part of the GTrsf. The returned Matrix is a 3*3 matrix. + + """ + return _gp.gp_GTrsf_VectorialPart(self, *args) + + def __mul__(self, *args): + r""" + + Parameters + ---------- + theT: gp_GTrsf + + Return + ------- + gp_GTrsf + + Description + ----------- + No available documentation. + + """ + return _gp.gp_GTrsf___mul__(self, *args) + + def __imul_wrapper__(self, other): + return _gp.gp_GTrsf___imul_wrapper__(self, other) + + def __imul__(self, right): + self.__imul_wrapper__(right) + return self + + + def __getstate__(self): + return self.DumpJson() + + + def __setstate__(self, state): + inst = gp_GTrsf() + if inst.InitFromJson(state): + self.this = inst.this + else: + raise IOError('Failed to set state of gp_GTrsf') + + + __repr__ = _dumps_object + + __swig_destroy__ = _gp.delete_gp_GTrsf + +# Register gp_GTrsf in _gp: +_gp.gp_GTrsf_swigregister(gp_GTrsf) +class gp_GTrsf2d(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 + ----------- + returns identity transformation. + + Parameters + ---------- + theT: gp_Trsf2d + + Return + ------- + None + + Description + ----------- + Converts the gp_Trsf2d transformation theT into a general transformation. + + Parameters + ---------- + theM: gp_Mat2d + theV: gp_XY + + Return + ------- + None + + Description + ----------- + Creates a transformation based on the matrix theM and the vector theV where theM defines the vectorial part of the transformation, and theV the translation part. + + """ + _gp.gp_GTrsf2d_swiginit(self, _gp.new_gp_GTrsf2d(*args)) + + def Form(self, *args): + r""" + Return + ------- + gp_TrsfForm + + Description + ----------- + Returns the nature of the transformation. It can be an identity transformation, a rotation, a translation, a mirror transformation (relative to a point or axis), a scaling transformation, a compound transformation or some other type of transformation. + + """ + return _gp.gp_GTrsf2d_Form(self, *args) + + def Invert(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_GTrsf2d_Invert(self, *args) + + def Inverted(self, *args): + r""" + Return + ------- + gp_GTrsf2d + + Description + ----------- + Computes the reverse transformation. Raised an exception if the matrix of the transformation is not inversible. + + """ + return _gp.gp_GTrsf2d_Inverted(self, *args) + + def IsNegative(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns true if the determinant of the vectorial part of this transformation is negative. + + """ + return _gp.gp_GTrsf2d_IsNegative(self, *args) + + def IsSingular(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns true if this transformation is singular (and therefore, cannot be inverted). Note: The Gauss LU decomposition is used to invert the transformation matrix. Consequently, the transformation is considered as singular if the largest pivot found is less than or equal to gp::Resolution(). Warning If this transformation is singular, it cannot be inverted. + + """ + return _gp.gp_GTrsf2d_IsSingular(self, *args) + + def Multiplied(self, *args): + r""" + + Parameters + ---------- + theT: gp_GTrsf2d + + Return + ------- + gp_GTrsf2d + + Description + ----------- + Computes the transformation composed with theT and . In a C++ implementation you can also write Tcomposed = * theT. Example: @code gp_GTrsf2d T1, T2, Tcomp; ............... //composition: Tcomp = T2.Multiplied(T1); // or (Tcomp = T2 * T1) // transformation of a point gp_XY P(10.,3.); gp_XY P1(P); Tcomp.Transforms(P1); //using Tcomp gp_XY P2(P); T1.Transforms(P2); //using T1 then T2 T2.Transforms(P2); // P1 = P2 !!! @endcode. + + """ + return _gp.gp_GTrsf2d_Multiplied(self, *args) + + def Multiply(self, *args): + r""" + + Parameters + ---------- + theT: gp_GTrsf2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_GTrsf2d_Multiply(self, *args) + + def Power(self, *args): + r""" + + Parameters + ---------- + theN: int + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_GTrsf2d_Power(self, *args) + + def Powered(self, *args): + r""" + + Parameters + ---------- + theN: int + + Return + ------- + gp_GTrsf2d + + Description + ----------- + Computes the following composition of transformations * * .......* , theN time. if theN = 0 = Identity if theN < 0 = .Inverse() *...........* .Inverse(). //! Raises an exception if theN < 0 and if the matrix of the transformation is not inversible. + + """ + return _gp.gp_GTrsf2d_Powered(self, *args) + + def PreMultiply(self, *args): + r""" + + Parameters + ---------- + theT: gp_GTrsf2d + + Return + ------- + None + + Description + ----------- + Computes the product of the transformation theT and this transformation, and assigns the result to this transformation: this = theT * this. + + """ + return _gp.gp_GTrsf2d_PreMultiply(self, *args) + + def SetAffinity(self, *args): + r""" + + Parameters + ---------- + theA: gp_Ax2d + theRatio: float + + Return + ------- + None + + Description + ----------- + Changes this transformation into an affinity of ratio theRatio with respect to the axis theA. Note: An affinity is a point-by-point transformation that transforms any point P into a point P' such that if H is the orthogonal projection of P on the axis theA, the vectors HP and HP' satisfy: HP' = theRatio * HP. + + """ + return _gp.gp_GTrsf2d_SetAffinity(self, *args) + + def SetTranslationPart(self, *args): + r""" + + Parameters + ---------- + theCoord: gp_XY + + Return + ------- + None + + Description + ----------- + Replaces the translation part of this transformation by the coordinates of the number pair theCoord. + + """ + return _gp.gp_GTrsf2d_SetTranslationPart(self, *args) + + def SetTrsf2d(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf2d + + Return + ------- + None + + Description + ----------- + Assigns the vectorial and translation parts of theT to this transformation. + + """ + return _gp.gp_GTrsf2d_SetTrsf2d(self, *args) + + def SetValue(self, *args): + r""" + + Parameters + ---------- + theRow: int + theCol: int + theValue: float + + Return + ------- + None + + Description + ----------- + Replaces the coefficient (theRow, theCol) of the matrix representing this transformation by theValue, Raises OutOfRange if theRow < 1 or theRow > 2 or theCol < 1 or theCol > 3. + + """ + return _gp.gp_GTrsf2d_SetValue(self, *args) + + def SetVectorialPart(self, *args): + r""" + + Parameters + ---------- + theMatrix: gp_Mat2d + + Return + ------- + None + + Description + ----------- + Replaces the vectorial part of this transformation by theMatrix. + + """ + return _gp.gp_GTrsf2d_SetVectorialPart(self, *args) + + def Transformed(self, *args): + r""" + + Parameters + ---------- + theCoord: gp_XY + + Return + ------- + gp_XY + + Description + ----------- + No available documentation. + + """ + return _gp.gp_GTrsf2d_Transformed(self, *args) + + def Transforms(self, *args): + r""" + + Parameters + ---------- + theCoord: gp_XY + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + + Return + ------- + theX: float + theY: float + + Description + ----------- + Applies this transformation to the coordinates: - of the number pair Coord, or - X and Y. //! Note: - Transforms modifies theX, theY, or the coordinate pair Coord, while - Transformed creates a new coordinate pair. + + """ + return _gp.gp_GTrsf2d_Transforms(self, *args) + + def TranslationPart(self, *args): + r""" + Return + ------- + gp_XY + + Description + ----------- + Returns the translation part of the GTrsf2d. + + """ + return _gp.gp_GTrsf2d_TranslationPart(self, *args) + + def Trsf2d(self, *args): + r""" + Return + ------- + gp_Trsf2d + + Description + ----------- + Converts this transformation into a gp_Trsf2d transformation. Exceptions Standard_ConstructionError if this transformation cannot be converted, i.e. if its form is gp_Other. + + """ + return _gp.gp_GTrsf2d_Trsf2d(self, *args) + + def Value(self, *args): + r""" + + Parameters + ---------- + theRow: int + theCol: int + + Return + ------- + float + + Description + ----------- + Returns the coefficients of the global matrix of transformation. Raised OutOfRange if theRow < 1 or theRow > 2 or theCol < 1 or theCol > 3. + + """ + return _gp.gp_GTrsf2d_Value(self, *args) + + def VectorialPart(self, *args): + r""" + Return + ------- + gp_Mat2d + + Description + ----------- + Computes the vectorial part of the GTrsf2d. The returned Matrix is a 2*2 matrix. + + """ + return _gp.gp_GTrsf2d_VectorialPart(self, *args) + + def __mul__(self, *args): + r""" + + Parameters + ---------- + theT: gp_GTrsf2d + + Return + ------- + gp_GTrsf2d + + Description + ----------- + No available documentation. + + """ + return _gp.gp_GTrsf2d___mul__(self, *args) + + def __imul_wrapper__(self, other): + return _gp.gp_GTrsf2d___imul_wrapper__(self, other) + + def __imul__(self, right): + self.__imul_wrapper__(right) + return self + + + def __getstate__(self): + return self.DumpJson() + + + def __setstate__(self, state): + inst = gp_GTrsf2d() + if inst.InitFromJson(state): + self.this = inst.this + else: + raise IOError('Failed to set state of gp_GTrsf2d') + + + __repr__ = _dumps_object + + __swig_destroy__ = _gp.delete_gp_GTrsf2d + +# Register gp_GTrsf2d in _gp: +_gp.gp_GTrsf2d_swigregister(gp_GTrsf2d) +class gp_Hypr(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 + ----------- + Creates of an indefinite hyperbola. + + Parameters + ---------- + theA2: gp_Ax2 + theMajorRadius: float + theMinorRadius: float + + Return + ------- + None + + Description + ----------- + Creates a hyperbola with radius theMajorRadius and theMinorRadius, positioned in the space by the coordinate system theA2 such that: - the origin of theA2 is the center of the hyperbola, - the 'X Direction' of theA2 defines the major axis of the hyperbola, that is, the major radius theMajorRadius is measured along this axis, and - the 'Y Direction' of theA2 defines the minor axis of the hyperbola, that is, the minor radius theMinorRadius is measured along this axis. Note: This class does not prevent the creation of a hyperbola where: - theMajorAxis is equal to theMinorAxis, or - theMajorAxis is less than theMinorAxis. Exceptions Standard_ConstructionError if theMajorAxis or theMinorAxis is negative. Raises ConstructionError if theMajorRadius < 0.0 or theMinorRadius < 0.0 Raised if theMajorRadius < 0.0 or theMinorRadius < 0.0. + + """ + _gp.gp_Hypr_swiginit(self, _gp.new_gp_Hypr(*args)) + + def Asymptote1(self, *args): + r""" + Return + ------- + gp_Ax1 + + Description + ----------- + In the local coordinate system of the hyperbola the equation of the hyperbola is (X*X)/(A*A) - (Y*Y)/(B*B) = 1.0 and the equation of the first asymptote is Y = (B/A)*X where A is the major radius and B is the minor radius. Raises ConstructionError if MajorRadius = 0.0. + + """ + return _gp.gp_Hypr_Asymptote1(self, *args) + + def Asymptote2(self, *args): + r""" + Return + ------- + gp_Ax1 + + Description + ----------- + In the local coordinate system of the hyperbola the equation of the hyperbola is (X*X)/(A*A) - (Y*Y)/(B*B) = 1.0 and the equation of the first asymptote is Y = -(B/A)*X. where A is the major radius and B is the minor radius. Raises ConstructionError if MajorRadius = 0.0. + + """ + return _gp.gp_Hypr_Asymptote2(self, *args) + + def Axis(self, *args): + r""" + Return + ------- + gp_Ax1 + + Description + ----------- + Returns the axis passing through the center, and normal to the plane of this hyperbola. + + """ + return _gp.gp_Hypr_Axis(self, *args) + + def ConjugateBranch1(self, *args): + r""" + Return + ------- + gp_Hypr + + Description + ----------- + Computes the branch of hyperbola which is on the positive side of the 'YAxis' of . + + """ + return _gp.gp_Hypr_ConjugateBranch1(self, *args) + + def ConjugateBranch2(self, *args): + r""" + Return + ------- + gp_Hypr + + Description + ----------- + Computes the branch of hyperbola which is on the negative side of the 'YAxis' of . + + """ + return _gp.gp_Hypr_ConjugateBranch2(self, *args) + + def Directrix1(self, *args): + r""" + Return + ------- + gp_Ax1 + + Description + ----------- + This directrix is the line normal to the XAxis of the hyperbola in the local plane (Z = 0) at a distance d = MajorRadius / e from the center of the hyperbola, where e is the eccentricity of the hyperbola. This line is parallel to the 'YAxis'. The intersection point between the directrix1 and the 'XAxis' is the 'Location' point of the directrix1. This point is on the positive side of the 'XAxis'. + + """ + return _gp.gp_Hypr_Directrix1(self, *args) + + def Directrix2(self, *args): + r""" + Return + ------- + gp_Ax1 + + Description + ----------- + This line is obtained by the symmetrical transformation of 'Directrix1' with respect to the 'YAxis' of the hyperbola. + + """ + return _gp.gp_Hypr_Directrix2(self, *args) + + def Eccentricity(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns the eccentricity of the hyperbola (e > 1). If f is the distance between the location of the hyperbola and the Focus1 then the eccentricity e = f / MajorRadius. Raises DomainError if MajorRadius = 0.0. + + """ + return _gp.gp_Hypr_Eccentricity(self, *args) + + def Focal(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Computes the focal distance. It is the distance between the the two focus of the hyperbola. + + """ + return _gp.gp_Hypr_Focal(self, *args) + + def Focus1(self, *args): + r""" + Return + ------- + gp_Pnt + + Description + ----------- + Returns the first focus of the hyperbola. This focus is on the positive side of the 'XAxis' of the hyperbola. + + """ + return _gp.gp_Hypr_Focus1(self, *args) + + def Focus2(self, *args): + r""" + Return + ------- + gp_Pnt + + Description + ----------- + Returns the second focus of the hyperbola. This focus is on the negative side of the 'XAxis' of the hyperbola. + + """ + return _gp.gp_Hypr_Focus2(self, *args) + + def Location(self, *args): + r""" + Return + ------- + gp_Pnt + + Description + ----------- + Returns the location point of the hyperbola. It is the intersection point between the 'XAxis' and the 'YAxis'. + + """ + return _gp.gp_Hypr_Location(self, *args) + + def MajorRadius(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns the major radius of the hyperbola. It is the radius on the 'XAxis' of the hyperbola. + + """ + return _gp.gp_Hypr_MajorRadius(self, *args) + + def MinorRadius(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns the minor radius of the hyperbola. It is the radius on the 'YAxis' of the hyperbola. + + """ + return _gp.gp_Hypr_MinorRadius(self, *args) + + def Mirror(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theA1: gp_Ax1 + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theA2: gp_Ax2 + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Hypr_Mirror(self, *args) + + def Mirrored(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + + Return + ------- + gp_Hypr + + Description + ----------- + Performs the symmetrical transformation of an hyperbola with respect to the point theP which is the center of the symmetry. + + Parameters + ---------- + theA1: gp_Ax1 + + Return + ------- + gp_Hypr + + Description + ----------- + Performs the symmetrical transformation of an hyperbola with respect to an axis placement which is the axis of the symmetry. + + Parameters + ---------- + theA2: gp_Ax2 + + Return + ------- + gp_Hypr + + Description + ----------- + Performs the symmetrical transformation of an hyperbola with respect to a plane. The axis placement theA2 locates the plane of the symmetry (Location, XDirection, YDirection). + + """ + return _gp.gp_Hypr_Mirrored(self, *args) + + def OtherBranch(self, *args): + r""" + Return + ------- + gp_Hypr + + Description + ----------- + Returns the branch of hyperbola obtained by doing the symmetrical transformation of with respect to the 'YAxis' of . + + """ + return _gp.gp_Hypr_OtherBranch(self, *args) + + def Parameter(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns p = (e * e - 1) * MajorRadius where e is the eccentricity of the hyperbola. Raises DomainError if MajorRadius = 0.0. + + """ + return _gp.gp_Hypr_Parameter(self, *args) + + def Position(self, *args): + r""" + Return + ------- + gp_Ax2 + + Description + ----------- + Returns the coordinate system of the hyperbola. + + """ + return _gp.gp_Hypr_Position(self, *args) + + def Rotate(self, *args): + r""" + + Parameters + ---------- + theA1: gp_Ax1 + theAng: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Hypr_Rotate(self, *args) + + def Rotated(self, *args): + r""" + + Parameters + ---------- + theA1: gp_Ax1 + theAng: float + + Return + ------- + gp_Hypr + + Description + ----------- + Rotates an hyperbola. theA1 is the axis of the rotation. theAng is the angular value of the rotation in radians. + + """ + return _gp.gp_Hypr_Rotated(self, *args) + + def Scale(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + theS: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Hypr_Scale(self, *args) + + def Scaled(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + theS: float + + Return + ------- + gp_Hypr + + Description + ----------- + Scales an hyperbola. theS is the scaling value. + + """ + return _gp.gp_Hypr_Scaled(self, *args) + + def SetAxis(self, *args): + r""" + + Parameters + ---------- + theA1: gp_Ax1 + + Return + ------- + None + + Description + ----------- + Modifies this hyperbola, by redefining its local coordinate system so that: - its origin and 'main Direction' become those of the axis theA1 (the 'X Direction' and 'Y Direction' are then recomputed in the same way as for any gp_Ax2). Raises ConstructionError if the direction of theA1 is parallel to the direction of the 'XAxis' of the hyperbola. + + """ + return _gp.gp_Hypr_SetAxis(self, *args) + + def SetLocation(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + + Return + ------- + None + + Description + ----------- + Modifies this hyperbola, by redefining its local coordinate system so that its origin becomes theP. + + """ + return _gp.gp_Hypr_SetLocation(self, *args) + + def SetMajorRadius(self, *args): + r""" + + Parameters + ---------- + theMajorRadius: float + + Return + ------- + None + + Description + ----------- + Modifies the major radius of this hyperbola. Exceptions Standard_ConstructionError if theMajorRadius is negative. + + """ + return _gp.gp_Hypr_SetMajorRadius(self, *args) + + def SetMinorRadius(self, *args): + r""" + + Parameters + ---------- + theMinorRadius: float + + Return + ------- + None + + Description + ----------- + Modifies the minor radius of this hyperbola. Exceptions Standard_ConstructionError if theMinorRadius is negative. + + """ + return _gp.gp_Hypr_SetMinorRadius(self, *args) + + def SetPosition(self, *args): + r""" + + Parameters + ---------- + theA2: gp_Ax2 + + Return + ------- + None + + Description + ----------- + Modifies this hyperbola, by redefining its local coordinate system so that it becomes A2. + + """ + return _gp.gp_Hypr_SetPosition(self, *args) + + def Transform(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Hypr_Transform(self, *args) + + def Transformed(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf + + Return + ------- + gp_Hypr + + Description + ----------- + Transforms an hyperbola with the transformation theT from class Trsf. + + """ + return _gp.gp_Hypr_Transformed(self, *args) + + def Translate(self, *args): + r""" + + Parameters + ---------- + theV: gp_Vec + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theP1: gp_Pnt + theP2: gp_Pnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Hypr_Translate(self, *args) + + def Translated(self, *args): + r""" + + Parameters + ---------- + theV: gp_Vec + + Return + ------- + gp_Hypr + + Description + ----------- + Translates an hyperbola in the direction of the vector theV. The magnitude of the translation is the vector's magnitude. + + Parameters + ---------- + theP1: gp_Pnt + theP2: gp_Pnt + + Return + ------- + gp_Hypr + + Description + ----------- + Translates an hyperbola from the point theP1 to the point theP2. + + """ + return _gp.gp_Hypr_Translated(self, *args) + + def XAxis(self, *args): + r""" + Return + ------- + gp_Ax1 + + Description + ----------- + Computes an axis, whose - the origin is the center of this hyperbola, and - the unit vector is the 'X Direction' of the local coordinate system of this hyperbola. These axes are, the major axis (the 'X Axis') and of this hyperboReturns the 'XAxis' of the hyperbola. + + """ + return _gp.gp_Hypr_XAxis(self, *args) + + def YAxis(self, *args): + r""" + Return + ------- + gp_Ax1 + + Description + ----------- + Computes an axis, whose - the origin is the center of this hyperbola, and - the unit vector is the 'Y Direction' of the local coordinate system of this hyperbola. These axes are the minor axis (the 'Y Axis') of this hyperbola. + + """ + return _gp.gp_Hypr_YAxis(self, *args) + + def __getstate__(self): + return self.DumpJson() + + + def __setstate__(self, state): + inst = gp_Hypr() + if inst.InitFromJson(state): + self.this = inst.this + else: + raise IOError('Failed to set state of gp_Hypr') + + + __repr__ = _dumps_object + + __swig_destroy__ = _gp.delete_gp_Hypr + +# Register gp_Hypr in _gp: +_gp.gp_Hypr_swigregister(gp_Hypr) +class gp_Hypr2d(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 + ----------- + Creates of an indefinite hyperbola. + + Parameters + ---------- + theMajorAxis: gp_Ax2d + theMajorRadius: float + theMinorRadius: float + theIsSense: bool (optional, default to Standard_True) + + Return + ------- + None + + Description + ----------- + Creates a hyperbola with radii theMajorRadius and theMinorRadius, centered on the origin of theMajorAxis and where the unit vector of theMajorAxis is the 'X Direction' of the local coordinate system of the hyperbola. This coordinate system is direct if theIsSense is true (the default value), and indirect if theIsSense is false. Warnings: It is yet possible to create an Hyperbola with theMajorRadius <= theMinorRadius. Raises ConstructionError if theMajorRadius < 0.0 or theMinorRadius < 0.0. + + Parameters + ---------- + theA: gp_Ax22d + theMajorRadius: float + theMinorRadius: float + + Return + ------- + None + + Description + ----------- + a hyperbola with radii theMajorRadius and theMinorRadius, positioned in the plane by coordinate system theA where: - the origin of theA is the center of the hyperbola, - the 'X Direction' of theA defines the major axis of the hyperbola, that is, the major radius theMajorRadius is measured along this axis, and - the 'Y Direction' of theA defines the minor axis of the hyperbola, that is, the minor radius theMinorRadius is measured along this axis, and - the orientation (direct or indirect sense) of theA gives the implicit orientation of the hyperbola. Warnings: It is yet possible to create an Hyperbola with theMajorRadius <= theMinorRadius. Raises ConstructionError if theMajorRadius < 0.0 or theMinorRadius < 0.0. + + """ + _gp.gp_Hypr2d_swiginit(self, _gp.new_gp_Hypr2d(*args)) + + def Asymptote1(self, *args): + r""" + Return + ------- + gp_Ax2d + + Description + ----------- + In the local coordinate system of the hyperbola the equation of the hyperbola is (X*X)/(A*A) - (Y*Y)/(B*B) = 1.0 and the equation of the first asymptote is Y = (B/A)*X where A is the major radius of the hyperbola and B the minor radius of the hyperbola. Raises ConstructionError if MajorRadius = 0.0. + + """ + return _gp.gp_Hypr2d_Asymptote1(self, *args) + + def Asymptote2(self, *args): + r""" + Return + ------- + gp_Ax2d + + Description + ----------- + In the local coordinate system of the hyperbola the equation of the hyperbola is (X*X)/(A*A) - (Y*Y)/(B*B) = 1.0 and the equation of the first asymptote is Y = -(B/A)*X where A is the major radius of the hyperbola and B the minor radius of the hyperbola. Raises ConstructionError if MajorRadius = 0.0. + + """ + return _gp.gp_Hypr2d_Asymptote2(self, *args) + + def Axis(self, *args): + r""" + Return + ------- + gp_Ax22d + + Description + ----------- + Returns the axisplacement of the hyperbola. + + """ + return _gp.gp_Hypr2d_Axis(self, *args) + + def Coefficients(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + theA: float + theB: float + theC: float + theD: float + theE: float + theF: float + + Description + ----------- + Computes the coefficients of the implicit equation of the hyperbola: theA * (X**2) + theB * (Y**2) + 2*theC*(X*Y) + 2*theD*X + 2*theE*Y + theF = 0. + + """ + return _gp.gp_Hypr2d_Coefficients(self, *args) + + def ConjugateBranch1(self, *args): + r""" + Return + ------- + gp_Hypr2d + + Description + ----------- + Computes the branch of hyperbola which is on the positive side of the 'YAxis' of . + + """ + return _gp.gp_Hypr2d_ConjugateBranch1(self, *args) + + def ConjugateBranch2(self, *args): + r""" + Return + ------- + gp_Hypr2d + + Description + ----------- + Computes the branch of hyperbola which is on the negative side of the 'YAxis' of . + + """ + return _gp.gp_Hypr2d_ConjugateBranch2(self, *args) + + def Directrix1(self, *args): + r""" + Return + ------- + gp_Ax2d + + Description + ----------- + Computes the directrix which is the line normal to the XAxis of the hyperbola in the local plane (Z = 0) at a distance d = MajorRadius / e from the center of the hyperbola, where e is the eccentricity of the hyperbola. This line is parallel to the 'YAxis'. The intersection point between the 'Directrix1' and the 'XAxis' is the 'Location' point of the 'Directrix1'. This point is on the positive side of the 'XAxis'. + + """ + return _gp.gp_Hypr2d_Directrix1(self, *args) + + def Directrix2(self, *args): + r""" + Return + ------- + gp_Ax2d + + Description + ----------- + This line is obtained by the symmetrical transformation of 'Directrix1' with respect to the 'YAxis' of the hyperbola. + + """ + return _gp.gp_Hypr2d_Directrix2(self, *args) + + def Eccentricity(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns the eccentricity of the hyperbola (e > 1). If f is the distance between the location of the hyperbola and the Focus1 then the eccentricity e = f / MajorRadius. Raises DomainError if MajorRadius = 0.0. + + """ + return _gp.gp_Hypr2d_Eccentricity(self, *args) + + def Focal(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Computes the focal distance. It is the distance between the 'Location' of the hyperbola and 'Focus1' or 'Focus2'. + + """ + return _gp.gp_Hypr2d_Focal(self, *args) + + def Focus1(self, *args): + r""" + Return + ------- + gp_Pnt2d + + Description + ----------- + Returns the first focus of the hyperbola. This focus is on the positive side of the 'XAxis' of the hyperbola. + + """ + return _gp.gp_Hypr2d_Focus1(self, *args) + + def Focus2(self, *args): + r""" + Return + ------- + gp_Pnt2d + + Description + ----------- + Returns the second focus of the hyperbola. This focus is on the negative side of the 'XAxis' of the hyperbola. + + """ + return _gp.gp_Hypr2d_Focus2(self, *args) + + def IsDirect(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns true if the local coordinate system is direct and false in the other case. + + """ + return _gp.gp_Hypr2d_IsDirect(self, *args) + + def Location(self, *args): + r""" + Return + ------- + gp_Pnt2d + + Description + ----------- + Returns the location point of the hyperbola. It is the intersection point between the 'XAxis' and the 'YAxis'. + + """ + return _gp.gp_Hypr2d_Location(self, *args) + + def MajorRadius(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns the major radius of the hyperbola (it is the radius corresponding to the 'XAxis' of the hyperbola). + + """ + return _gp.gp_Hypr2d_MajorRadius(self, *args) + + def MinorRadius(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns the minor radius of the hyperbola (it is the radius corresponding to the 'YAxis' of the hyperbola). + + """ + return _gp.gp_Hypr2d_MinorRadius(self, *args) + + def Mirror(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theA: gp_Ax2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Hypr2d_Mirror(self, *args) + + def Mirrored(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + + Return + ------- + gp_Hypr2d + + Description + ----------- + Performs the symmetrical transformation of an hyperbola with respect to the point theP which is the center of the symmetry. + + Parameters + ---------- + theA: gp_Ax2d + + Return + ------- + gp_Hypr2d + + Description + ----------- + Performs the symmetrical transformation of an hyperbola with respect to an axis placement which is the axis of the symmetry. + + """ + return _gp.gp_Hypr2d_Mirrored(self, *args) + + def OtherBranch(self, *args): + r""" + Return + ------- + gp_Hypr2d + + Description + ----------- + Returns the branch of hyperbola obtained by doing the symmetrical transformation of with respect to the 'YAxis' of . + + """ + return _gp.gp_Hypr2d_OtherBranch(self, *args) + + def Parameter(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns p = (e * e - 1) * MajorRadius where e is the eccentricity of the hyperbola. Raises DomainError if MajorRadius = 0.0. + + """ + return _gp.gp_Hypr2d_Parameter(self, *args) + + def Reverse(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Hypr2d_Reverse(self, *args) + + def Reversed(self, *args): + r""" + Return + ------- + gp_Hypr2d + + Description + ----------- + Reverses the orientation of the local coordinate system of this hyperbola (the 'Y Axis' is reversed). Therefore, the implicit orientation of this hyperbola is reversed. Note: - Reverse assigns the result to this hyperbola, while - Reversed creates a new one. + + """ + return _gp.gp_Hypr2d_Reversed(self, *args) + + def Rotate(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + theAng: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Hypr2d_Rotate(self, *args) + + def Rotated(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + theAng: float + + Return + ------- + gp_Hypr2d + + Description + ----------- + Rotates an hyperbola. theP is the center of the rotation. theAng is the angular value of the rotation in radians. + + """ + return _gp.gp_Hypr2d_Rotated(self, *args) + + def Scale(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + theS: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Hypr2d_Scale(self, *args) + + def Scaled(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + theS: float + + Return + ------- + gp_Hypr2d + + Description + ----------- + Scales an hyperbola. is the scaling value. If is positive only the location point is modified. But if is negative the 'XAxis' is reversed and the 'YAxis' too. + + """ + return _gp.gp_Hypr2d_Scaled(self, *args) + + def SetAxis(self, *args): + r""" + + Parameters + ---------- + theA: gp_Ax22d + + Return + ------- + None + + Description + ----------- + Modifies this hyperbola, by redefining its local coordinate system so that it becomes theA. + + """ + return _gp.gp_Hypr2d_SetAxis(self, *args) + + def SetLocation(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + Modifies this hyperbola, by redefining its local coordinate system so that its origin becomes theP. + + """ + return _gp.gp_Hypr2d_SetLocation(self, *args) + + def SetMajorRadius(self, *args): + r""" + + Parameters + ---------- + theMajorRadius: float + + Return + ------- + None + + Description + ----------- + Modifies the major or minor radius of this hyperbola. Exceptions Standard_ConstructionError if theMajorRadius or MinorRadius is negative. + + """ + return _gp.gp_Hypr2d_SetMajorRadius(self, *args) + + def SetMinorRadius(self, *args): + r""" + + Parameters + ---------- + theMinorRadius: float + + Return + ------- + None + + Description + ----------- + Modifies the major or minor radius of this hyperbola. Exceptions Standard_ConstructionError if MajorRadius or theMinorRadius is negative. + + """ + return _gp.gp_Hypr2d_SetMinorRadius(self, *args) + + def SetXAxis(self, *args): + r""" + + Parameters + ---------- + theA: gp_Ax2d + + Return + ------- + None + + Description + ----------- + Changes the major axis of the hyperbola. The minor axis is recomputed and the location of the hyperbola too. + + """ + return _gp.gp_Hypr2d_SetXAxis(self, *args) + + def SetYAxis(self, *args): + r""" + + Parameters + ---------- + theA: gp_Ax2d + + Return + ------- + None + + Description + ----------- + Changes the minor axis of the hyperbola.The minor axis is recomputed and the location of the hyperbola too. + + """ + return _gp.gp_Hypr2d_SetYAxis(self, *args) + + def Transform(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Hypr2d_Transform(self, *args) + + def Transformed(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf2d + + Return + ------- + gp_Hypr2d + + Description + ----------- + Transforms an hyperbola with the transformation theT from class Trsf2d. + + """ + return _gp.gp_Hypr2d_Transformed(self, *args) + + def Translate(self, *args): + r""" + + Parameters + ---------- + theV: gp_Vec2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theP1: gp_Pnt2d + theP2: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Hypr2d_Translate(self, *args) + + def Translated(self, *args): + r""" + + Parameters + ---------- + theV: gp_Vec2d + + Return + ------- + gp_Hypr2d + + Description + ----------- + Translates an hyperbola in the direction of the vector theV. The magnitude of the translation is the vector's magnitude. + + Parameters + ---------- + theP1: gp_Pnt2d + theP2: gp_Pnt2d + + Return + ------- + gp_Hypr2d + + Description + ----------- + Translates an hyperbola from the point theP1 to the point theP2. + + """ + return _gp.gp_Hypr2d_Translated(self, *args) + + def XAxis(self, *args): + r""" + Return + ------- + gp_Ax2d + + Description + ----------- + Computes an axis whose - the origin is the center of this hyperbola, and - the unit vector is the 'X Direction' or 'Y Direction' respectively of the local coordinate system of this hyperbola Returns the major axis of the hyperbola. + + """ + return _gp.gp_Hypr2d_XAxis(self, *args) + + def YAxis(self, *args): + r""" + Return + ------- + gp_Ax2d + + Description + ----------- + Computes an axis whose - the origin is the center of this hyperbola, and - the unit vector is the 'X Direction' or 'Y Direction' respectively of the local coordinate system of this hyperbola Returns the minor axis of the hyperbola. + + """ + return _gp.gp_Hypr2d_YAxis(self, *args) + + def __getstate__(self): + return self.DumpJson() + + + def __setstate__(self, state): + inst = gp_Hypr2d() + if inst.InitFromJson(state): + self.this = inst.this + else: + raise IOError('Failed to set state of gp_Hypr2d') + + + __repr__ = _dumps_object + + __swig_destroy__ = _gp.delete_gp_Hypr2d + +# Register gp_Hypr2d in _gp: +_gp.gp_Hypr2d_swigregister(gp_Hypr2d) +class gp_Lin(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 + ----------- + Creates a Line corresponding to Z axis of the reference coordinate system. + + Parameters + ---------- + theA1: gp_Ax1 + + Return + ------- + None + + Description + ----------- + Creates a line defined by axis theA1. + + Parameters + ---------- + theP: gp_Pnt + theV: gp_Dir + + Return + ------- + None + + Description + ----------- + Creates a line passing through point theP and parallel to vector theV (theP and theV are, respectively, the origin and the unit vector of the positioning axis of the line). + + """ + _gp.gp_Lin_swiginit(self, _gp.new_gp_Lin(*args)) + + def Angle(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Lin + + Return + ------- + float + + Description + ----------- + Computes the angle between two lines in radians. + + """ + return _gp.gp_Lin_Angle(self, *args) + + def Contains(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + theLinearTolerance: float + + Return + ------- + bool + + Description + ----------- + Returns true if this line contains the point theP, that is, if the distance between point theP and this line is less than or equal to theLinearTolerance.. + + """ + return _gp.gp_Lin_Contains(self, *args) + + def Direction(self, *args): + r""" + Return + ------- + gp_Dir + + Description + ----------- + Returns the direction of the line. + + """ + return _gp.gp_Lin_Direction(self, *args) + + def Distance(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + + Return + ------- + float + + Description + ----------- + Computes the distance between and the point theP. + + Parameters + ---------- + theOther: gp_Lin + + Return + ------- + float + + Description + ----------- + Computes the distance between two lines. + + """ + return _gp.gp_Lin_Distance(self, *args) + + def Location(self, *args): + r""" + Return + ------- + gp_Pnt + + Description + ----------- + Returns the location point (origin) of the line. + + """ + return _gp.gp_Lin_Location(self, *args) + + def Mirror(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theA1: gp_Ax1 + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theA2: gp_Ax2 + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Lin_Mirror(self, *args) + + def Mirrored(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + + Return + ------- + gp_Lin + + Description + ----------- + Performs the symmetrical transformation of a line with respect to the point theP which is the center of the symmetry. + + Parameters + ---------- + theA1: gp_Ax1 + + Return + ------- + gp_Lin + + Description + ----------- + Performs the symmetrical transformation of a line with respect to an axis placement which is the axis of the symmetry. + + Parameters + ---------- + theA2: gp_Ax2 + + Return + ------- + gp_Lin + + Description + ----------- + Performs the symmetrical transformation of a line with respect to a plane. The axis placement locates the plane of the symmetry: (Location, XDirection, YDirection). + + """ + return _gp.gp_Lin_Mirrored(self, *args) + + def Normal(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + + Return + ------- + gp_Lin + + Description + ----------- + Computes the line normal to the direction of , passing through the point theP. Raises ConstructionError if the distance between and the point theP is lower or equal to Resolution from gp because there is an infinity of solutions in 3D space. + + """ + return _gp.gp_Lin_Normal(self, *args) + + def Position(self, *args): + r""" + Return + ------- + gp_Ax1 + + Description + ----------- + Returns the axis placement one axis with the same location and direction as . + + """ + return _gp.gp_Lin_Position(self, *args) + + def Reverse(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Lin_Reverse(self, *args) + + def Reversed(self, *args): + r""" + Return + ------- + gp_Lin + + Description + ----------- + Reverses the direction of the line. Note: - Reverse assigns the result to this line, while - Reversed creates a new one. + + """ + return _gp.gp_Lin_Reversed(self, *args) + + def Rotate(self, *args): + r""" + + Parameters + ---------- + theA1: gp_Ax1 + theAng: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Lin_Rotate(self, *args) + + def Rotated(self, *args): + r""" + + Parameters + ---------- + theA1: gp_Ax1 + theAng: float + + Return + ------- + gp_Lin + + Description + ----------- + Rotates a line. A1 is the axis of the rotation. Ang is the angular value of the rotation in radians. + + """ + return _gp.gp_Lin_Rotated(self, *args) + + def Scale(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + theS: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Lin_Scale(self, *args) + + def Scaled(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + theS: float + + Return + ------- + gp_Lin + + Description + ----------- + Scales a line. theS is the scaling value. The 'Location' point (origin) of the line is modified. The 'Direction' is reversed if the scale is negative. + + """ + return _gp.gp_Lin_Scaled(self, *args) + + def SetDirection(self, *args): + r""" + + Parameters + ---------- + theV: gp_Dir + + Return + ------- + None + + Description + ----------- + Changes the direction of the line. + + """ + return _gp.gp_Lin_SetDirection(self, *args) + + def SetLocation(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + + Return + ------- + None + + Description + ----------- + Changes the location point (origin) of the line. + + """ + return _gp.gp_Lin_SetLocation(self, *args) + + def SetPosition(self, *args): + r""" + + Parameters + ---------- + theA1: gp_Ax1 + + Return + ------- + None + + Description + ----------- + Complete redefinition of the line. The 'Location' point of is the origin of the line. The 'Direction' of is the direction of the line. + + """ + return _gp.gp_Lin_SetPosition(self, *args) + + def SquareDistance(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + + Return + ------- + float + + Description + ----------- + Computes the square distance between and the point theP. + + Parameters + ---------- + theOther: gp_Lin + + Return + ------- + float + + Description + ----------- + Computes the square distance between two lines. + + """ + return _gp.gp_Lin_SquareDistance(self, *args) + + def Transform(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Lin_Transform(self, *args) + + def Transformed(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf + + Return + ------- + gp_Lin + + Description + ----------- + Transforms a line with the transformation theT from class Trsf. + + """ + return _gp.gp_Lin_Transformed(self, *args) + + def Translate(self, *args): + r""" + + Parameters + ---------- + theV: gp_Vec + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theP1: gp_Pnt + theP2: gp_Pnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Lin_Translate(self, *args) + + def Translated(self, *args): + r""" + + Parameters + ---------- + theV: gp_Vec + + Return + ------- + gp_Lin + + Description + ----------- + Translates a line in the direction of the vector theV. The magnitude of the translation is the vector's magnitude. + + Parameters + ---------- + theP1: gp_Pnt + theP2: gp_Pnt + + Return + ------- + gp_Lin + + Description + ----------- + Translates a line from the point theP1 to the point theP2. + + """ + return _gp.gp_Lin_Translated(self, *args) + + def __getstate__(self): + return self.DumpJson() + + + def __setstate__(self, state): + inst = gp_Lin() + if inst.InitFromJson(state): + self.this = inst.this + else: + raise IOError('Failed to set state of gp_Lin') + + + __repr__ = _dumps_object + + __swig_destroy__ = _gp.delete_gp_Lin + +# Register gp_Lin in _gp: +_gp.gp_Lin_swigregister(gp_Lin) +class gp_Lin2d(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 + ----------- + Creates a Line corresponding to X axis of the reference coordinate system. + + Parameters + ---------- + theA: gp_Ax2d + + Return + ------- + None + + Description + ----------- + Creates a line located with theA. + + Parameters + ---------- + theP: gp_Pnt2d + theV: gp_Dir2d + + Return + ------- + None + + Description + ----------- + is the location point (origin) of the line and is the direction of the line. + + Parameters + ---------- + theA: float + theB: float + theC: float + + Return + ------- + None + + Description + ----------- + Creates the line from the equation theA*X + theB*Y + theC = 0.0 Raises ConstructionError if Sqrt(theA*theA + theB*theB) <= Resolution from gp. Raised if Sqrt(theA*theA + theB*theB) <= Resolution from gp. + + """ + _gp.gp_Lin2d_swiginit(self, _gp.new_gp_Lin2d(*args)) + + def Angle(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Lin2d + + Return + ------- + float + + Description + ----------- + Computes the angle between two lines in radians. + + """ + return _gp.gp_Lin2d_Angle(self, *args) + + def Coefficients(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + theA: float + theB: float + theC: float + + Description + ----------- + Returns the normalized coefficients of the line: theA * X + theB * Y + theC = 0. + + """ + return _gp.gp_Lin2d_Coefficients(self, *args) + + def Contains(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + theLinearTolerance: float + + Return + ------- + bool + + Description + ----------- + Returns true if this line contains the point theP, that is, if the distance between point theP and this line is less than or equal to theLinearTolerance. + + """ + return _gp.gp_Lin2d_Contains(self, *args) + + def Direction(self, *args): + r""" + Return + ------- + gp_Dir2d + + Description + ----------- + Returns the direction of the line. + + """ + return _gp.gp_Lin2d_Direction(self, *args) + + def Distance(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + + Return + ------- + float + + Description + ----------- + Computes the distance between and the point . + + Parameters + ---------- + theOther: gp_Lin2d + + Return + ------- + float + + Description + ----------- + Computes the distance between two lines. + + """ + return _gp.gp_Lin2d_Distance(self, *args) + + def Location(self, *args): + r""" + Return + ------- + gp_Pnt2d + + Description + ----------- + Returns the location point (origin) of the line. + + """ + return _gp.gp_Lin2d_Location(self, *args) + + def Mirror(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theA: gp_Ax2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Lin2d_Mirror(self, *args) + + def Mirrored(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + + Return + ------- + gp_Lin2d + + Description + ----------- + Performs the symmetrical transformation of a line with respect to the point which is the center of the symmetry. + + Parameters + ---------- + theA: gp_Ax2d + + Return + ------- + gp_Lin2d + + Description + ----------- + Performs the symmetrical transformation of a line with respect to an axis placement which is the axis of the symmetry. + + """ + return _gp.gp_Lin2d_Mirrored(self, *args) + + def Normal(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + + Return + ------- + gp_Lin2d + + Description + ----------- + Computes the line normal to the direction of , passing through the point . + + """ + return _gp.gp_Lin2d_Normal(self, *args) + + def Position(self, *args): + r""" + Return + ------- + gp_Ax2d + + Description + ----------- + Returns the axis placement one axis with the same location and direction as . + + """ + return _gp.gp_Lin2d_Position(self, *args) + + def Reverse(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Lin2d_Reverse(self, *args) + + def Reversed(self, *args): + r""" + Return + ------- + gp_Lin2d + + Description + ----------- + Reverses the positioning axis of this line. Note: - Reverse assigns the result to this line, while - Reversed creates a new one. + + """ + return _gp.gp_Lin2d_Reversed(self, *args) + + def Rotate(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + theAng: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Lin2d_Rotate(self, *args) + + def Rotated(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + theAng: float + + Return + ------- + gp_Lin2d + + Description + ----------- + Rotates a line. theP is the center of the rotation. theAng is the angular value of the rotation in radians. + + """ + return _gp.gp_Lin2d_Rotated(self, *args) + + def Scale(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + theS: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Lin2d_Scale(self, *args) + + def Scaled(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + theS: float + + Return + ------- + gp_Lin2d + + Description + ----------- + Scales a line. theS is the scaling value. Only the origin of the line is modified. + + """ + return _gp.gp_Lin2d_Scaled(self, *args) + + def SetDirection(self, *args): + r""" + + Parameters + ---------- + theV: gp_Dir2d + + Return + ------- + None + + Description + ----------- + Changes the direction of the line. + + """ + return _gp.gp_Lin2d_SetDirection(self, *args) + + def SetLocation(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + Changes the origin of the line. + + """ + return _gp.gp_Lin2d_SetLocation(self, *args) + + def SetPosition(self, *args): + r""" + + Parameters + ---------- + theA: gp_Ax2d + + Return + ------- + None + + Description + ----------- + Complete redefinition of the line. The 'Location' point of is the origin of the line. The 'Direction' of is the direction of the line. + + """ + return _gp.gp_Lin2d_SetPosition(self, *args) + + def SquareDistance(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + + Return + ------- + float + + Description + ----------- + Computes the square distance between and the point . + + Parameters + ---------- + theOther: gp_Lin2d + + Return + ------- + float + + Description + ----------- + Computes the square distance between two lines. + + """ + return _gp.gp_Lin2d_SquareDistance(self, *args) + + def Transform(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Lin2d_Transform(self, *args) + + def Transformed(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf2d + + Return + ------- + gp_Lin2d + + Description + ----------- + Transforms a line with the transformation theT from class Trsf2d. + + """ + return _gp.gp_Lin2d_Transformed(self, *args) + + def Translate(self, *args): + r""" + + Parameters + ---------- + theV: gp_Vec2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theP1: gp_Pnt2d + theP2: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Lin2d_Translate(self, *args) + + def Translated(self, *args): + r""" + + Parameters + ---------- + theV: gp_Vec2d + + Return + ------- + gp_Lin2d + + Description + ----------- + Translates a line in the direction of the vector theV. The magnitude of the translation is the vector's magnitude. + + Parameters + ---------- + theP1: gp_Pnt2d + theP2: gp_Pnt2d + + Return + ------- + gp_Lin2d + + Description + ----------- + Translates a line from the point theP1 to the point theP2. + + """ + return _gp.gp_Lin2d_Translated(self, *args) + + def __getstate__(self): + return self.DumpJson() + + + def __setstate__(self, state): + inst = gp_Lin2d() + if inst.InitFromJson(state): + self.this = inst.this + else: + raise IOError('Failed to set state of gp_Lin2d') + + + __repr__ = _dumps_object + + __swig_destroy__ = _gp.delete_gp_Lin2d + +# Register gp_Lin2d in _gp: +_gp.gp_Lin2d_swigregister(gp_Lin2d) +class gp_Mat(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 + ----------- + creates a matrix with null coefficients. + + Parameters + ---------- + theA11: float + theA12: float + theA13: float + theA21: float + theA22: float + theA23: float + theA31: float + theA32: float + theA33: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theCol1: gp_XYZ + theCol2: gp_XYZ + theCol3: gp_XYZ + + Return + ------- + None + + Description + ----------- + Creates a matrix. theCol1, theCol2, theCol3 are the 3 columns of the matrix. + + """ + _gp.gp_Mat_swiginit(self, _gp.new_gp_Mat(*args)) + + def Add(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Mat + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Mat_Add(self, *args) + + def Added(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Mat + + Return + ------- + gp_Mat + + Description + ----------- + Computes the sum of this matrix and the matrix theOther for each coefficient of the matrix: .Coef(i,j) + .Coef(i,j). + + """ + return _gp.gp_Mat_Added(self, *args) + + def GetChangeValue(self, theRow, theCol): + r"""GetChangeValue(gp_Mat self, Standard_Integer const theRow, Standard_Integer const theCol) -> Standard_Real""" + return _gp.gp_Mat_GetChangeValue(self, theRow, theCol) + + def SetChangeValue(self, theRow, theCol, value): + r"""SetChangeValue(gp_Mat self, Standard_Integer const theRow, Standard_Integer const theCol, Standard_Real value)""" + return _gp.gp_Mat_SetChangeValue(self, theRow, theCol, value) + + def Column(self, *args): + r""" + + Parameters + ---------- + theCol: int + + Return + ------- + gp_XYZ + + Description + ----------- + Returns the column of theCol index. Raises OutOfRange if theCol < 1 or theCol > 3. + + """ + return _gp.gp_Mat_Column(self, *args) + + def Determinant(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Computes the determinant of the matrix. + + """ + return _gp.gp_Mat_Determinant(self, *args) + + def Diagonal(self, *args): + r""" + Return + ------- + gp_XYZ + + Description + ----------- + Returns the main diagonal of the matrix. + + """ + return _gp.gp_Mat_Diagonal(self, *args) + + def Divide(self, *args): + r""" + + Parameters + ---------- + theScalar: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Mat_Divide(self, *args) + + def Divided(self, *args): + r""" + + Parameters + ---------- + theScalar: float + + Return + ------- + gp_Mat + + Description + ----------- + Divides all the coefficients of the matrix by Scalar. + + """ + return _gp.gp_Mat_Divided(self, *args) + + def DumpJson(self, depth=-1): + r""" + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + """ + return _gp.gp_Mat_DumpJson(self, depth) + + def Invert(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Mat_Invert(self, *args) + + def Inverted(self, *args): + r""" + Return + ------- + gp_Mat + + Description + ----------- + Inverses the matrix and raises if the matrix is singular. - Invert assigns the result to this matrix, while - Inverted creates a new one. Warning The Gauss LU decomposition is used to invert the matrix. Consequently, the matrix is considered as singular if the largest pivot found is less than or equal to gp::Resolution(). Exceptions Standard_ConstructionError if this matrix is singular, and therefore cannot be inverted. + + """ + return _gp.gp_Mat_Inverted(self, *args) + + def IsSingular(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + The Gauss LU decomposition is used to invert the matrix (see Math package) so the matrix is considered as singular if the largest pivot found is lower or equal to Resolution from gp. + + """ + return _gp.gp_Mat_IsSingular(self, *args) + + def Multiplied(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Mat + + Return + ------- + gp_Mat + + Description + ----------- + Computes the product of two matrices * . + + Parameters + ---------- + theScalar: float + + Return + ------- + gp_Mat + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Mat_Multiplied(self, *args) + + def Multiply(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Mat + + Return + ------- + None + + Description + ----------- + Computes the product of two matrices = * . + + Parameters + ---------- + theScalar: float + + Return + ------- + None + + Description + ----------- + Multiplies all the coefficients of the matrix by Scalar. + + """ + return _gp.gp_Mat_Multiply(self, *args) + + def Power(self, *args): + r""" + + Parameters + ---------- + N: int + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Mat_Power(self, *args) + + def Powered(self, *args): + r""" + + Parameters + ---------- + theN: int + + Return + ------- + gp_Mat + + Description + ----------- + Computes = * * .......* , theN time. if theN = 0 = Identity if theN < 0 = .Invert() *...........* .Invert(). If theN < 0 an exception will be raised if the matrix is not inversible. + + """ + return _gp.gp_Mat_Powered(self, *args) + + def PreMultiply(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Mat + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Mat_PreMultiply(self, *args) + + def Row(self, *args): + r""" + + Parameters + ---------- + theRow: int + + Return + ------- + gp_XYZ + + Description + ----------- + returns the row of theRow index. Raises OutOfRange if theRow < 1 or theRow > 3. + + """ + return _gp.gp_Mat_Row(self, *args) + + def SetCol(self, *args): + r""" + + Parameters + ---------- + theCol: int + theValue: gp_XYZ + + Return + ------- + None + + Description + ----------- + Assigns the three coordinates of theValue to the column of index theCol of this matrix. Raises OutOfRange if theCol < 1 or theCol > 3. + + """ + return _gp.gp_Mat_SetCol(self, *args) + + def SetCols(self, *args): + r""" + + Parameters + ---------- + theCol1: gp_XYZ + theCol2: gp_XYZ + theCol3: gp_XYZ + + Return + ------- + None + + Description + ----------- + Assigns the number triples theCol1, theCol2, theCol3 to the three columns of this matrix. + + """ + return _gp.gp_Mat_SetCols(self, *args) + + def SetCross(self, *args): + r""" + + Parameters + ---------- + theRef: gp_XYZ + + Return + ------- + None + + Description + ----------- + Modifies the matrix M so that applying it to any number triple (X, Y, Z) produces the same result as the cross product of theRef and the number triple (X, Y, Z): i.e.: M * {X,Y,Z}t = theRef.Cross({X, Y ,Z}) this matrix is anti symmetric. To apply this matrix to the triplet {XYZ} is the same as to do the cross product between the triplet theRef and the triplet {XYZ}. Note: this matrix is anti-symmetric. + + """ + return _gp.gp_Mat_SetCross(self, *args) + + def SetDiagonal(self, *args): + r""" + + Parameters + ---------- + theX1: float + theX2: float + theX3: float + + Return + ------- + None + + Description + ----------- + Modifies the main diagonal of the matrix. @code .Value (1, 1) = theX1 .Value (2, 2) = theX2 .Value (3, 3) = theX3 @endcode The other coefficients of the matrix are not modified. + + """ + return _gp.gp_Mat_SetDiagonal(self, *args) + + def SetDot(self, *args): + r""" + + Parameters + ---------- + theRef: gp_XYZ + + Return + ------- + None + + Description + ----------- + Modifies this matrix so that applying it to any number triple (X, Y, Z) produces the same result as the scalar product of theRef and the number triple (X, Y, Z): this * (X,Y,Z) = theRef.(X,Y,Z) Note: this matrix is symmetric. + + """ + return _gp.gp_Mat_SetDot(self, *args) + + def SetIdentity(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Modifies this matrix so that it represents the Identity matrix. + + """ + return _gp.gp_Mat_SetIdentity(self, *args) + + def SetRotation(self, *args): + r""" + + Parameters + ---------- + theAxis: gp_XYZ + theAng: float + + Return + ------- + None + + Description + ----------- + Modifies this matrix so that it represents a rotation. theAng is the angular value in radians and the XYZ axis gives the direction of the rotation. Raises ConstructionError if XYZ.Modulus() <= Resolution(). + + """ + return _gp.gp_Mat_SetRotation(self, *args) + + def SetRow(self, *args): + r""" + + Parameters + ---------- + theRow: int + theValue: gp_XYZ + + Return + ------- + None + + Description + ----------- + Assigns the three coordinates of Value to the row of index theRow of this matrix. Raises OutOfRange if theRow < 1 or theRow > 3. + + """ + return _gp.gp_Mat_SetRow(self, *args) + + def SetRows(self, *args): + r""" + + Parameters + ---------- + theRow1: gp_XYZ + theRow2: gp_XYZ + theRow3: gp_XYZ + + Return + ------- + None + + Description + ----------- + Assigns the number triples theRow1, theRow2, theRow3 to the three rows of this matrix. + + """ + return _gp.gp_Mat_SetRows(self, *args) + + def SetScale(self, *args): + r""" + + Parameters + ---------- + theS: float + + Return + ------- + None + + Description + ----------- + Modifies the matrix so that it represents a scaling transformation, where theS is the scale factor.: @code | theS 0.0 0.0 | = | 0.0 theS 0.0 | | 0.0 0.0 theS | @endcode. + + """ + return _gp.gp_Mat_SetScale(self, *args) + + def SetValue(self, *args): + r""" + + Parameters + ---------- + theRow: int + theCol: int + theValue: float + + Return + ------- + None + + Description + ----------- + Assigns to the coefficient of row theRow, column theCol of this matrix. Raises OutOfRange if theRow < 1 or theRow > 3 or theCol < 1 or theCol > 3. + + """ + return _gp.gp_Mat_SetValue(self, *args) + + def Subtract(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Mat + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Mat_Subtract(self, *args) + + def Subtracted(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Mat + + Return + ------- + gp_Mat + + Description + ----------- + cOmputes for each coefficient of the matrix: .Coef(i,j) - .Coef(i,j). + + """ + return _gp.gp_Mat_Subtracted(self, *args) + + def Transpose(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Mat_Transpose(self, *args) + + def Transposed(self, *args): + r""" + Return + ------- + gp_Mat + + Description + ----------- + Transposes the matrix. A(j, i) -> A (i, j). + + """ + return _gp.gp_Mat_Transposed(self, *args) + + def Value(self, *args): + r""" + + Parameters + ---------- + theRow: int + theCol: int + + Return + ------- + float + + Description + ----------- + Returns the coefficient of range (theRow, theCol) Raises OutOfRange if theRow < 1 or theRow > 3 or theCol < 1 or theCol > 3. + + """ + return _gp.gp_Mat_Value(self, *args) + + def __mul__(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Mat + + Return + ------- + gp_Mat + + Description + ----------- + No available documentation. + + Parameters + ---------- + theScalar: float + + Return + ------- + gp_Mat + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Mat___mul__(self, *args) + + def __imul__(self, right): + self.__imul_wrapper__(right) + return self + + + def __imul_wrapper__(self, *args): + r""" + __imul_wrapper__(gp_Mat self, gp_Mat other) + __imul_wrapper__(gp_Mat self, Standard_Real const other) + """ + return _gp.gp_Mat___imul_wrapper__(self, *args) + + def __imul__(self, right): + self.__imul_wrapper__(right) + return self + + + def __add__(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Mat + + Return + ------- + gp_Mat + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Mat___add__(self, *args) + + def __iadd_wrapper__(self, other): + r"""__iadd_wrapper__(gp_Mat self, gp_Mat other)""" + return _gp.gp_Mat___iadd_wrapper__(self, other) + + def __iadd__(self, right): + self.__iadd_wrapper__(right) + return self + + + def __sub__(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Mat + + Return + ------- + gp_Mat + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Mat___sub__(self, *args) + + def __isub_wrapper__(self, other): + r"""__isub_wrapper__(gp_Mat self, gp_Mat other)""" + return _gp.gp_Mat___isub_wrapper__(self, other) + + def __isub__(self, right): + self.__isub_wrapper__(right) + return self + + + def __truediv__(self, *args): + return _gp.gp_Mat___truediv__(self, *args) + __div__ = __truediv__ + + + + def __itruediv_wrapper__(self, other): + r"""__itruediv_wrapper__(gp_Mat self, Standard_Real const other)""" + return _gp.gp_Mat___itruediv_wrapper__(self, other) + + def __itruediv__(self, right): + self.__itruediv_wrapper__(right) + return self + + + def __getstate__(self): + return self.DumpJson() + + + def __setstate__(self, state): + inst = gp_Mat() + if inst.InitFromJson(state): + self.this = inst.this + else: + raise IOError('Failed to set state of gp_Mat') + + + __repr__ = _dumps_object + + __swig_destroy__ = _gp.delete_gp_Mat + +# Register gp_Mat in _gp: +_gp.gp_Mat_swigregister(gp_Mat) +class gp_Mat2d(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 + ----------- + Creates a matrix with null coefficients. + + Parameters + ---------- + theCol1: gp_XY + theCol2: gp_XY + + Return + ------- + None + + Description + ----------- + theCol1, theCol2 are the 2 columns of the matrix. + + """ + _gp.gp_Mat2d_swiginit(self, _gp.new_gp_Mat2d(*args)) + + def Add(self, *args): + r""" + + Parameters + ---------- + Other: gp_Mat2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Mat2d_Add(self, *args) + + def Added(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Mat2d + + Return + ------- + gp_Mat2d + + Description + ----------- + Computes the sum of this matrix and the matrix theOther.for each coefficient of the matrix: @code .Coef(i,j) + .Coef(i,j) @endcode Note: - operator += assigns the result to this matrix, while - operator + creates a new one. + + """ + return _gp.gp_Mat2d_Added(self, *args) + + def GetChangeValue(self, theRow, theCol): + r"""GetChangeValue(gp_Mat2d self, Standard_Integer const theRow, Standard_Integer const theCol) -> Standard_Real""" + return _gp.gp_Mat2d_GetChangeValue(self, theRow, theCol) + + def SetChangeValue(self, theRow, theCol, value): + r"""SetChangeValue(gp_Mat2d self, Standard_Integer const theRow, Standard_Integer const theCol, Standard_Real value)""" + return _gp.gp_Mat2d_SetChangeValue(self, theRow, theCol, value) + + def Column(self, *args): + r""" + + Parameters + ---------- + theCol: int + + Return + ------- + gp_XY + + Description + ----------- + Returns the column of theCol index. Raises OutOfRange if theCol < 1 or theCol > 2. + + """ + return _gp.gp_Mat2d_Column(self, *args) + + def Determinant(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Computes the determinant of the matrix. + + """ + return _gp.gp_Mat2d_Determinant(self, *args) + + def Diagonal(self, *args): + r""" + Return + ------- + gp_XY + + Description + ----------- + Returns the main diagonal of the matrix. + + """ + return _gp.gp_Mat2d_Diagonal(self, *args) + + def Divide(self, *args): + r""" + + Parameters + ---------- + theScalar: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Mat2d_Divide(self, *args) + + def Divided(self, *args): + r""" + + Parameters + ---------- + theScalar: float + + Return + ------- + gp_Mat2d + + Description + ----------- + Divides all the coefficients of the matrix by a scalar. + + """ + return _gp.gp_Mat2d_Divided(self, *args) + + def Invert(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Mat2d_Invert(self, *args) + + def Inverted(self, *args): + r""" + Return + ------- + gp_Mat2d + + Description + ----------- + Inverses the matrix and raises exception if the matrix is singular. + + """ + return _gp.gp_Mat2d_Inverted(self, *args) + + def IsSingular(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns true if this matrix is singular (and therefore, cannot be inverted). The Gauss LU decomposition is used to invert the matrix so the matrix is considered as singular if the largest pivot found is lower or equal to Resolution from gp. + + """ + return _gp.gp_Mat2d_IsSingular(self, *args) + + def Multiplied(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Mat2d + + Return + ------- + gp_Mat2d + + Description + ----------- + No available documentation. + + Parameters + ---------- + theScalar: float + + Return + ------- + gp_Mat2d + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Mat2d_Multiplied(self, *args) + + def Multiply(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Mat2d + + Return + ------- + None + + Description + ----------- + Computes the product of two matrices * . + + Parameters + ---------- + theScalar: float + + Return + ------- + None + + Description + ----------- + Multiplies all the coefficients of the matrix by a scalar. + + """ + return _gp.gp_Mat2d_Multiply(self, *args) + + def Power(self, *args): + r""" + + Parameters + ---------- + theN: int + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Mat2d_Power(self, *args) + + def Powered(self, *args): + r""" + + Parameters + ---------- + theN: int + + Return + ------- + gp_Mat2d + + Description + ----------- + computes = * * .......* , theN time. if theN = 0 = Identity if theN < 0 = .Invert() *...........* .Invert(). If theN < 0 an exception can be raised if the matrix is not inversible. + + """ + return _gp.gp_Mat2d_Powered(self, *args) + + def PreMultiply(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Mat2d + + Return + ------- + None + + Description + ----------- + Modifies this matrix by premultiplying it by the matrix Other = theOther * . + + """ + return _gp.gp_Mat2d_PreMultiply(self, *args) + + def Row(self, *args): + r""" + + Parameters + ---------- + theRow: int + + Return + ------- + gp_XY + + Description + ----------- + Returns the row of index theRow. Raised if theRow < 1 or theRow > 2. + + """ + return _gp.gp_Mat2d_Row(self, *args) + + def SetCol(self, *args): + r""" + + Parameters + ---------- + theCol: int + theValue: gp_XY + + Return + ------- + None + + Description + ----------- + Assigns the two coordinates of theValue to the column of range theCol of this matrix Raises OutOfRange if theCol < 1 or theCol > 2. + + """ + return _gp.gp_Mat2d_SetCol(self, *args) + + def SetCols(self, *args): + r""" + + Parameters + ---------- + theCol1: gp_XY + theCol2: gp_XY + + Return + ------- + None + + Description + ----------- + Assigns the number pairs theCol1, theCol2 to the two columns of this matrix. + + """ + return _gp.gp_Mat2d_SetCols(self, *args) + + def SetDiagonal(self, *args): + r""" + + Parameters + ---------- + theX1: float + theX2: float + + Return + ------- + None + + Description + ----------- + Modifies the main diagonal of the matrix. @code .Value (1, 1) = theX1 .Value (2, 2) = theX2 @endcode The other coefficients of the matrix are not modified. + + """ + return _gp.gp_Mat2d_SetDiagonal(self, *args) + + def SetIdentity(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Modifies this matrix, so that it represents the Identity matrix. + + """ + return _gp.gp_Mat2d_SetIdentity(self, *args) + + def SetRotation(self, *args): + r""" + + Parameters + ---------- + theAng: float + + Return + ------- + None + + Description + ----------- + Modifies this matrix, so that it represents a rotation. theAng is the angular value in radian of the rotation. + + """ + return _gp.gp_Mat2d_SetRotation(self, *args) + + def SetRow(self, *args): + r""" + + Parameters + ---------- + theRow: int + theValue: gp_XY + + Return + ------- + None + + Description + ----------- + Assigns the two coordinates of theValue to the row of index theRow of this matrix. Raises OutOfRange if theRow < 1 or theRow > 2. + + """ + return _gp.gp_Mat2d_SetRow(self, *args) + + def SetRows(self, *args): + r""" + + Parameters + ---------- + theRow1: gp_XY + theRow2: gp_XY + + Return + ------- + None + + Description + ----------- + Assigns the number pairs theRow1, theRow2 to the two rows of this matrix. + + """ + return _gp.gp_Mat2d_SetRows(self, *args) + + def SetScale(self, *args): + r""" + + Parameters + ---------- + theS: float + + Return + ------- + None + + Description + ----------- + Modifies the matrix such that it represents a scaling transformation, where theS is the scale factor: @code | theS 0.0 | = | 0.0 theS | @endcode. + + """ + return _gp.gp_Mat2d_SetScale(self, *args) + + def SetValue(self, *args): + r""" + + Parameters + ---------- + theRow: int + theCol: int + theValue: float + + Return + ------- + None + + Description + ----------- + Assigns to the coefficient of row theRow, column theCol of this matrix. Raises OutOfRange if theRow < 1 or theRow > 2 or theCol < 1 or theCol > 2. + + """ + return _gp.gp_Mat2d_SetValue(self, *args) + + def Subtract(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Mat2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Mat2d_Subtract(self, *args) + + def Subtracted(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Mat2d + + Return + ------- + gp_Mat2d + + Description + ----------- + Computes for each coefficient of the matrix: @code .Coef(i,j) - .Coef(i,j) @endcode. + + """ + return _gp.gp_Mat2d_Subtracted(self, *args) + + def Transpose(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Mat2d_Transpose(self, *args) + + def Transposed(self, *args): + r""" + Return + ------- + gp_Mat2d + + Description + ----------- + Transposes the matrix. A(j, i) -> A (i, j). + + """ + return _gp.gp_Mat2d_Transposed(self, *args) + + def Value(self, *args): + r""" + + Parameters + ---------- + theRow: int + theCol: int + + Return + ------- + float + + Description + ----------- + Returns the coefficient of range (ttheheRow, theCol) Raises OutOfRange if theRow < 1 or theRow > 2 or theCol < 1 or theCol > 2. + + """ + return _gp.gp_Mat2d_Value(self, *args) + + def __mul__(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Mat2d + + Return + ------- + gp_Mat2d + + Description + ----------- + No available documentation. + + Parameters + ---------- + theScalar: float + + Return + ------- + gp_Mat2d + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Mat2d___mul__(self, *args) + + def __imul_wrapper__(self, other): + r"""__imul_wrapper__(gp_Mat2d self, Standard_Real const other)""" + return _gp.gp_Mat2d___imul_wrapper__(self, other) + + def __imul__(self, right): + self.__imul_wrapper__(right) + return self + + + def __add__(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Mat2d + + Return + ------- + gp_Mat2d + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Mat2d___add__(self, *args) + + def __iadd_wrapper__(self, other): + r"""__iadd_wrapper__(gp_Mat2d self, gp_Mat2d other)""" + return _gp.gp_Mat2d___iadd_wrapper__(self, other) + + def __iadd__(self, right): + self.__iadd_wrapper__(right) + return self + + + def __sub__(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Mat2d + + Return + ------- + gp_Mat2d + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Mat2d___sub__(self, *args) + + def __isub_wrapper__(self, other): + r"""__isub_wrapper__(gp_Mat2d self, gp_Mat2d other)""" + return _gp.gp_Mat2d___isub_wrapper__(self, other) + + def __isub__(self, right): + self.__isub_wrapper__(right) + return self + + + def __truediv__(self, *args): + return _gp.gp_Mat2d___truediv__(self, *args) + __div__ = __truediv__ + + + + def __itruediv_wrapper__(self, other): + r"""__itruediv_wrapper__(gp_Mat2d self, Standard_Real const other)""" + return _gp.gp_Mat2d___itruediv_wrapper__(self, other) + + def __itruediv__(self, right): + self.__itruediv_wrapper__(right) + return self + + + def __getstate__(self): + return self.DumpJson() + + + def __setstate__(self, state): + inst = gp_Mat2d() + if inst.InitFromJson(state): + self.this = inst.this + else: + raise IOError('Failed to set state of gp_Mat2d') + + + __repr__ = _dumps_object + + __swig_destroy__ = _gp.delete_gp_Mat2d + +# Register gp_Mat2d in _gp: +_gp.gp_Mat2d_swigregister(gp_Mat2d) +class gp_Parab(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 + ----------- + Creates an indefinite Parabola. + + Parameters + ---------- + theA2: gp_Ax2 + theFocal: float + + Return + ------- + None + + Description + ----------- + Creates a parabola with its local coordinate system 'theA2' and it's focal length 'Focal'. The XDirection of theA2 defines the axis of symmetry of the parabola. The YDirection of theA2 is parallel to the directrix of the parabola. The Location point of theA2 is the vertex of the parabola Raises ConstructionError if theFocal < 0.0 Raised if theFocal < 0.0. + + Parameters + ---------- + theD: gp_Ax1 + theF: gp_Pnt + + Return + ------- + None + + Description + ----------- + theD is the directrix of the parabola and theF the focus point. The symmetry axis (XAxis) of the parabola is normal to the directrix and pass through the focus point theF, but its location point is the vertex of the parabola. The YAxis of the parabola is parallel to theD and its location point is the vertex of the parabola. The normal to the plane of the parabola is the cross product between the XAxis and the YAxis. + + """ + _gp.gp_Parab_swiginit(self, _gp.new_gp_Parab(*args)) + + def Axis(self, *args): + r""" + Return + ------- + gp_Ax1 + + Description + ----------- + Returns the main axis of the parabola. It is the axis normal to the plane of the parabola passing through the vertex of the parabola. + + """ + return _gp.gp_Parab_Axis(self, *args) + + def Directrix(self, *args): + r""" + Return + ------- + gp_Ax1 + + Description + ----------- + Computes the directrix of this parabola. The directrix is: - a line parallel to the 'Y Direction' of the local coordinate system of this parabola, and - located on the negative side of the axis of symmetry, at a distance from the apex which is equal to the focal length of this parabola. The directrix is returned as an axis (a gp_Ax1 object), the origin of which is situated on the 'X Axis' of this parabola. + + """ + return _gp.gp_Parab_Directrix(self, *args) + + def Focal(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns the distance between the vertex and the focus of the parabola. + + """ + return _gp.gp_Parab_Focal(self, *args) + + def Focus(self, *args): + r""" + Return + ------- + gp_Pnt + + Description + ----------- + - Computes the focus of the parabola. + + """ + return _gp.gp_Parab_Focus(self, *args) + + def Location(self, *args): + r""" + Return + ------- + gp_Pnt + + Description + ----------- + Returns the vertex of the parabola. It is the 'Location' point of the coordinate system of the parabola. + + """ + return _gp.gp_Parab_Location(self, *args) + + def Mirror(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theA1: gp_Ax1 + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theA2: gp_Ax2 + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Parab_Mirror(self, *args) + + def Mirrored(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + + Return + ------- + gp_Parab + + Description + ----------- + Performs the symmetrical transformation of a parabola with respect to the point theP which is the center of the symmetry. + + Parameters + ---------- + theA1: gp_Ax1 + + Return + ------- + gp_Parab + + Description + ----------- + Performs the symmetrical transformation of a parabola with respect to an axis placement which is the axis of the symmetry. + + Parameters + ---------- + theA2: gp_Ax2 + + Return + ------- + gp_Parab + + Description + ----------- + Performs the symmetrical transformation of a parabola with respect to a plane. The axis placement theA2 locates the plane of the symmetry (Location, XDirection, YDirection). + + """ + return _gp.gp_Parab_Mirrored(self, *args) + + def Parameter(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Computes the parameter of the parabola. It is the distance between the focus and the directrix of the parabola. This distance is twice the focal length. + + """ + return _gp.gp_Parab_Parameter(self, *args) + + def Position(self, *args): + r""" + Return + ------- + gp_Ax2 + + Description + ----------- + Returns the local coordinate system of the parabola. + + """ + return _gp.gp_Parab_Position(self, *args) + + def Rotate(self, *args): + r""" + + Parameters + ---------- + theA1: gp_Ax1 + theAng: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Parab_Rotate(self, *args) + + def Rotated(self, *args): + r""" + + Parameters + ---------- + theA1: gp_Ax1 + theAng: float + + Return + ------- + gp_Parab + + Description + ----------- + Rotates a parabola. theA1 is the axis of the rotation. Ang is the angular value of the rotation in radians. + + """ + return _gp.gp_Parab_Rotated(self, *args) + + def Scale(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + theS: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Parab_Scale(self, *args) + + def Scaled(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + theS: float + + Return + ------- + gp_Parab + + Description + ----------- + Scales a parabola. theS is the scaling value. If theS is negative the direction of the symmetry axis XAxis is reversed and the direction of the YAxis too. + + """ + return _gp.gp_Parab_Scaled(self, *args) + + def SetAxis(self, *args): + r""" + + Parameters + ---------- + theA1: gp_Ax1 + + Return + ------- + None + + Description + ----------- + Modifies this parabola by redefining its local coordinate system so that - its origin and 'main Direction' become those of the axis theA1 (the 'X Direction' and 'Y Direction' are then recomputed in the same way as for any gp_Ax2) Raises ConstructionError if the direction of theA1 is parallel to the previous XAxis of the parabola. + + """ + return _gp.gp_Parab_SetAxis(self, *args) + + def SetFocal(self, *args): + r""" + + Parameters + ---------- + theFocal: float + + Return + ------- + None + + Description + ----------- + Changes the focal distance of the parabola. Raises ConstructionError if theFocal < 0.0. + + """ + return _gp.gp_Parab_SetFocal(self, *args) + + def SetLocation(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + + Return + ------- + None + + Description + ----------- + Changes the location of the parabola. It is the vertex of the parabola. + + """ + return _gp.gp_Parab_SetLocation(self, *args) + + def SetPosition(self, *args): + r""" + + Parameters + ---------- + theA2: gp_Ax2 + + Return + ------- + None + + Description + ----------- + Changes the local coordinate system of the parabola. + + """ + return _gp.gp_Parab_SetPosition(self, *args) + + def Transform(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Parab_Transform(self, *args) + + def Transformed(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf + + Return + ------- + gp_Parab + + Description + ----------- + Transforms a parabola with the transformation theT from class Trsf. + + """ + return _gp.gp_Parab_Transformed(self, *args) + + def Translate(self, *args): + r""" + + Parameters + ---------- + theV: gp_Vec + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theP1: gp_Pnt + theP2: gp_Pnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Parab_Translate(self, *args) + + def Translated(self, *args): + r""" + + Parameters + ---------- + theV: gp_Vec + + Return + ------- + gp_Parab + + Description + ----------- + Translates a parabola in the direction of the vector theV. The magnitude of the translation is the vector's magnitude. + + Parameters + ---------- + theP1: gp_Pnt + theP2: gp_Pnt + + Return + ------- + gp_Parab + + Description + ----------- + Translates a parabola from the point theP1 to the point theP2. + + """ + return _gp.gp_Parab_Translated(self, *args) + + def XAxis(self, *args): + r""" + Return + ------- + gp_Ax1 + + Description + ----------- + Returns the symmetry axis of the parabola. The location point of the axis is the vertex of the parabola. + + """ + return _gp.gp_Parab_XAxis(self, *args) + + def YAxis(self, *args): + r""" + Return + ------- + gp_Ax1 + + Description + ----------- + It is an axis parallel to the directrix of the parabola. The location point of this axis is the vertex of the parabola. + + """ + return _gp.gp_Parab_YAxis(self, *args) + + def __getstate__(self): + return self.DumpJson() + + + def __setstate__(self, state): + inst = gp_Parab() + if inst.InitFromJson(state): + self.this = inst.this + else: + raise IOError('Failed to set state of gp_Parab') + + + __repr__ = _dumps_object + + __swig_destroy__ = _gp.delete_gp_Parab + +# Register gp_Parab in _gp: +_gp.gp_Parab_swigregister(gp_Parab) +class gp_Parab2d(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 + ----------- + Creates an indefinite parabola. + + Parameters + ---------- + theMirrorAxis: gp_Ax2d + theFocalLength: float + theSense: bool (optional, default to Standard_True) + + Return + ------- + None + + Description + ----------- + Creates a parabola with its vertex point, its axis of symmetry ('XAxis') and its focal length. The sense of parametrization is given by theSense. If theSense == True (by default) then right-handed coordinate system is used, otherwise - left-handed. Warnings: It is possible to have FocalLength = 0. In this case, the parabola looks like a line, which is parallel to the symmetry-axis. Raises ConstructionError if FocalLength < 0.0. + + Parameters + ---------- + theAxes: gp_Ax22d + theFocalLength: float + + Return + ------- + None + + Description + ----------- + Creates a parabola with its vertex point, its axis of symmetry ('XAxis'), correspond Y-axis and its focal length. Warnings: It is possible to have FocalLength = 0. In this case, the parabola looks like a line, which is parallel to the symmetry-axis. Raises ConstructionError if Focal < 0.0. + + Parameters + ---------- + theDirectrix: gp_Ax2d + theFocus: gp_Pnt2d + theSense: bool (optional, default to Standard_True) + + Return + ------- + None + + Description + ----------- + Creates a parabola with the directrix and the focus point. Y-axis of the parabola (in User Coordinate System - UCS) is the direction of theDirectrix. X-axis always directs from theDirectrix to theFocus point and always comes through theFocus. Apex of the parabola is a middle point between the theFocus and the intersection point of theDirectrix and the X-axis. Warnings: It is possible to have FocalLength = 0 (when theFocus lies in theDirectrix). In this case, X-direction of the parabola is defined by theSense parameter. If theSense == True (by default) then right-handed coordinate system is used, otherwise - left-handed. Result parabola will look like a line, which is perpendicular to the directrix. + + """ + _gp.gp_Parab2d_swiginit(self, _gp.new_gp_Parab2d(*args)) + + def Axis(self, *args): + r""" + Return + ------- + gp_Ax22d + + Description + ----------- + Returns the local coordinate system of the parabola. The 'Location' point of this axis is the vertex of the parabola. + + """ + return _gp.gp_Parab2d_Axis(self, *args) + + def Coefficients(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + theA: float + theB: float + theC: float + theD: float + theE: float + theF: float + + Description + ----------- + Computes the coefficients of the implicit equation of the parabola (in WCS - World Coordinate System). @code theA * (X**2) + theB * (Y**2) + 2*theC*(X*Y) + 2*theD*X + 2*theE*Y + theF = 0. @endcode. + + """ + return _gp.gp_Parab2d_Coefficients(self, *args) + + def Directrix(self, *args): + r""" + Return + ------- + gp_Ax2d + + Description + ----------- + Computes the directrix of the parabola. The directrix is: - a line parallel to the 'Y Direction' of the local coordinate system of this parabola, and - located on the negative side of the axis of symmetry, at a distance from the apex which is equal to the focal length of this parabola. The directrix is returned as an axis (a gp_Ax2d object), the origin of which is situated on the 'X Axis' of this parabola. + + """ + return _gp.gp_Parab2d_Directrix(self, *args) + + def Focal(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns the distance between the vertex and the focus of the parabola. + + """ + return _gp.gp_Parab2d_Focal(self, *args) + + def Focus(self, *args): + r""" + Return + ------- + gp_Pnt2d + + Description + ----------- + Returns the focus of the parabola. + + """ + return _gp.gp_Parab2d_Focus(self, *args) + + def IsDirect(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns true if the local coordinate system is direct and false in the other case. + + """ + return _gp.gp_Parab2d_IsDirect(self, *args) + + def Location(self, *args): + r""" + Return + ------- + gp_Pnt2d + + Description + ----------- + Returns the vertex of the parabola. + + """ + return _gp.gp_Parab2d_Location(self, *args) + + def Mirror(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theA: gp_Ax2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Parab2d_Mirror(self, *args) + + def MirrorAxis(self, *args): + r""" + Return + ------- + gp_Ax2d + + Description + ----------- + Returns the symmetry axis of the parabola. The 'Location' point of this axis is the vertex of the parabola. + + """ + return _gp.gp_Parab2d_MirrorAxis(self, *args) + + def Mirrored(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + + Return + ------- + gp_Parab2d + + Description + ----------- + Performs the symmetrical transformation of a parabola with respect to the point theP which is the center of the symmetry. + + Parameters + ---------- + theA: gp_Ax2d + + Return + ------- + gp_Parab2d + + Description + ----------- + Performs the symmetrical transformation of a parabola with respect to an axis placement which is the axis of the symmetry. + + """ + return _gp.gp_Parab2d_Mirrored(self, *args) + + def Parameter(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns the distance between the focus and the directrix of the parabola. + + """ + return _gp.gp_Parab2d_Parameter(self, *args) + + def Reverse(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Parab2d_Reverse(self, *args) + + def Reversed(self, *args): + r""" + Return + ------- + gp_Parab2d + + Description + ----------- + Reverses the orientation of the local coordinate system of this parabola (the 'Y Direction' is reversed). Therefore, the implicit orientation of this parabola is reversed. Note: - Reverse assigns the result to this parabola, while - Reversed creates a new one. + + """ + return _gp.gp_Parab2d_Reversed(self, *args) + + def Rotate(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + theAng: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Parab2d_Rotate(self, *args) + + def Rotated(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + theAng: float + + Return + ------- + gp_Parab2d + + Description + ----------- + Rotates a parabola. theP is the center of the rotation. theAng is the angular value of the rotation in radians. + + """ + return _gp.gp_Parab2d_Rotated(self, *args) + + def Scale(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + theS: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Parab2d_Scale(self, *args) + + def Scaled(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + theS: float + + Return + ------- + gp_Parab2d + + Description + ----------- + Scales a parabola. theS is the scaling value. If theS is negative the direction of the symmetry axis 'XAxis' is reversed and the direction of the 'YAxis' too. + + """ + return _gp.gp_Parab2d_Scaled(self, *args) + + def SetAxis(self, *args): + r""" + + Parameters + ---------- + theA: gp_Ax22d + + Return + ------- + None + + Description + ----------- + Changes the local coordinate system of the parabola. The 'Location' point of A becomes the vertex of the parabola. + + """ + return _gp.gp_Parab2d_SetAxis(self, *args) + + def SetFocal(self, *args): + r""" + + Parameters + ---------- + theFocal: float + + Return + ------- + None + + Description + ----------- + Changes the focal distance of the parabola Warnings: It is possible to have theFocal = 0. Raises ConstructionError if theFocal < 0.0. + + """ + return _gp.gp_Parab2d_SetFocal(self, *args) + + def SetLocation(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + Changes the 'Location' point of the parabola. It is the vertex of the parabola. + + """ + return _gp.gp_Parab2d_SetLocation(self, *args) + + def SetMirrorAxis(self, *args): + r""" + + Parameters + ---------- + theA: gp_Ax2d + + Return + ------- + None + + Description + ----------- + Modifies this parabola, by redefining its local coordinate system so that its origin and 'X Direction' become those of the axis MA. The 'Y Direction' of the local coordinate system is then recomputed. The orientation of the local coordinate system is not modified. + + """ + return _gp.gp_Parab2d_SetMirrorAxis(self, *args) + + def Transform(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Parab2d_Transform(self, *args) + + def Transformed(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf2d + + Return + ------- + gp_Parab2d + + Description + ----------- + Transforms an parabola with the transformation theT from class Trsf2d. + + """ + return _gp.gp_Parab2d_Transformed(self, *args) + + def Translate(self, *args): + r""" + + Parameters + ---------- + theV: gp_Vec2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theP1: gp_Pnt2d + theP2: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Parab2d_Translate(self, *args) + + def Translated(self, *args): + r""" + + Parameters + ---------- + theV: gp_Vec2d + + Return + ------- + gp_Parab2d + + Description + ----------- + Translates a parabola in the direction of the vectorthe theV. The magnitude of the translation is the vector's magnitude. + + Parameters + ---------- + theP1: gp_Pnt2d + theP2: gp_Pnt2d + + Return + ------- + gp_Parab2d + + Description + ----------- + Translates a parabola from the point theP1 to the point theP2. + + """ + return _gp.gp_Parab2d_Translated(self, *args) + + def __getstate__(self): + return self.DumpJson() + + + def __setstate__(self, state): + inst = gp_Parab2d() + if inst.InitFromJson(state): + self.this = inst.this + else: + raise IOError('Failed to set state of gp_Parab2d') + + + __repr__ = _dumps_object + + __swig_destroy__ = _gp.delete_gp_Parab2d + +# Register gp_Parab2d in _gp: +_gp.gp_Parab2d_swigregister(gp_Parab2d) +class gp_Pln(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 + ----------- + Creates a plane coincident with OXY plane of the reference coordinate system. + + Parameters + ---------- + theA3: gp_Ax3 + + Return + ------- + None + + Description + ----------- + The coordinate system of the plane is defined with the axis placement theA3. The 'Direction' of theA3 defines the normal to the plane. The 'Location' of theA3 defines the location (origin) of the plane. The 'XDirection' and 'YDirection' of theA3 define the 'XAxis' and the 'YAxis' of the plane used to parametrize the plane. + + Parameters + ---------- + theP: gp_Pnt + theV: gp_Dir + + Return + ------- + None + + Description + ----------- + Creates a plane with the 'Location' point and the normal direction . + + Parameters + ---------- + theA: float + theB: float + theC: float + theD: float + + Return + ------- + None + + Description + ----------- + Creates a plane from its cartesian equation: @code theA * X + theB * Y + theC * Z + theD = 0.0 @endcode Raises ConstructionError if Sqrt (theA*theA + theB*theB + theC*theC) <= Resolution from gp. + + """ + _gp.gp_Pln_swiginit(self, _gp.new_gp_Pln(*args)) + + def Axis(self, *args): + r""" + Return + ------- + gp_Ax1 + + Description + ----------- + Returns the plane's normal Axis. + + """ + return _gp.gp_Pln_Axis(self, *args) + + def Coefficients(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + theA: float + theB: float + theC: float + theD: float + + Description + ----------- + Returns the coefficients of the plane's cartesian equation: @code theA * X + theB * Y + theC * Z + theD = 0. @endcode. + + """ + return _gp.gp_Pln_Coefficients(self, *args) + + def Contains(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + theLinearTolerance: float + + Return + ------- + bool + + Description + ----------- + Returns true if this plane contains the point theP. This means that - the distance between point theP and this plane is less than or equal to theLinearTolerance, or - line L is normal to the 'main Axis' of the local coordinate system of this plane, within the tolerance AngularTolerance, and the distance between the origin of line L and this plane is less than or equal to theLinearTolerance. + + Parameters + ---------- + theL: gp_Lin + theLinearTolerance: float + theAngularTolerance: float + + Return + ------- + bool + + Description + ----------- + Returns true if this plane contains the line theL. This means that - the distance between point P and this plane is less than or equal to LinearTolerance, or - line theL is normal to the 'main Axis' of the local coordinate system of this plane, within the tolerance theAngularTolerance, and the distance between the origin of line theL and this plane is less than or equal to theLinearTolerance. + + """ + return _gp.gp_Pln_Contains(self, *args) + + def Direct(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + returns true if the Ax3 is right handed. + + """ + return _gp.gp_Pln_Direct(self, *args) + + def Distance(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + + Return + ------- + float + + Description + ----------- + Computes the distance between and the point . + + Parameters + ---------- + theL: gp_Lin + + Return + ------- + float + + Description + ----------- + Computes the distance between and the line . + + Parameters + ---------- + theOther: gp_Pln + + Return + ------- + float + + Description + ----------- + Computes the distance between two planes. + + """ + return _gp.gp_Pln_Distance(self, *args) + + def DumpJson(self, depth=-1): + r""" + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + """ + return _gp.gp_Pln_DumpJson(self, depth) + + def Location(self, *args): + r""" + Return + ------- + gp_Pnt + + Description + ----------- + Returns the plane's location (origin). + + """ + return _gp.gp_Pln_Location(self, *args) + + def Mirror(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theA1: gp_Ax1 + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theA2: gp_Ax2 + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Pln_Mirror(self, *args) + + def Mirrored(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + + Return + ------- + gp_Pln + + Description + ----------- + Performs the symmetrical transformation of a plane with respect to the point which is the center of the symmetry Warnings: The normal direction to the plane is not changed. The 'XAxis' and the 'YAxis' are reversed. + + Parameters + ---------- + theA1: gp_Ax1 + + Return + ------- + gp_Pln + + Description + ----------- + Performs the symmetrical transformation of a plane with respect to an axis placement which is the axis of the symmetry. The transformation is performed on the 'Location' point, on the 'XAxis' and the 'YAxis'. The resulting normal direction is the cross product between the 'XDirection' and the 'YDirection' after transformation if the initial plane was right handed, else it is the opposite. + + Parameters + ---------- + theA2: gp_Ax2 + + Return + ------- + gp_Pln + + Description + ----------- + Performs the symmetrical transformation of a plane with respect to an axis placement. The axis placement locates the plane of the symmetry. The transformation is performed on the 'Location' point, on the 'XAxis' and the 'YAxis'. The resulting normal direction is the cross product between the 'XDirection' and the 'YDirection' after transformation if the initial plane was right handed, else it is the opposite. + + """ + return _gp.gp_Pln_Mirrored(self, *args) + + def Position(self, *args): + r""" + Return + ------- + gp_Ax3 + + Description + ----------- + Returns the local coordinate system of the plane . + + """ + return _gp.gp_Pln_Position(self, *args) + + def Rotate(self, *args): + r""" + + Parameters + ---------- + theA1: gp_Ax1 + theAng: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Pln_Rotate(self, *args) + + def Rotated(self, *args): + r""" + + Parameters + ---------- + theA1: gp_Ax1 + theAng: float + + Return + ------- + gp_Pln + + Description + ----------- + rotates a plane. theA1 is the axis of the rotation. theAng is the angular value of the rotation in radians. + + """ + return _gp.gp_Pln_Rotated(self, *args) + + def Scale(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + theS: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Pln_Scale(self, *args) + + def Scaled(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + theS: float + + Return + ------- + gp_Pln + + Description + ----------- + Scales a plane. theS is the scaling value. + + """ + return _gp.gp_Pln_Scaled(self, *args) + + def SetAxis(self, *args): + r""" + + Parameters + ---------- + theA1: gp_Ax1 + + Return + ------- + None + + Description + ----------- + Modifies this plane, by redefining its local coordinate system so that - its origin and 'main Direction' become those of the axis theA1 (the 'X Direction' and 'Y Direction' are then recomputed). Raises ConstructionError if the theA1 is parallel to the 'XAxis' of the plane. + + """ + return _gp.gp_Pln_SetAxis(self, *args) + + def SetLocation(self, *args): + r""" + + Parameters + ---------- + theLoc: gp_Pnt + + Return + ------- + None + + Description + ----------- + Changes the origin of the plane. + + """ + return _gp.gp_Pln_SetLocation(self, *args) + + def SetPosition(self, *args): + r""" + + Parameters + ---------- + theA3: gp_Ax3 + + Return + ------- + None + + Description + ----------- + Changes the local coordinate system of the plane. + + """ + return _gp.gp_Pln_SetPosition(self, *args) + + def SquareDistance(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + + Return + ------- + float + + Description + ----------- + Computes the square distance between and the point . + + Parameters + ---------- + theL: gp_Lin + + Return + ------- + float + + Description + ----------- + Computes the square distance between and the line . + + Parameters + ---------- + theOther: gp_Pln + + Return + ------- + float + + Description + ----------- + Computes the square distance between two planes. + + """ + return _gp.gp_Pln_SquareDistance(self, *args) + + def Transform(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Pln_Transform(self, *args) + + def Transformed(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf + + Return + ------- + gp_Pln + + Description + ----------- + Transforms a plane with the transformation theT from class Trsf. The transformation is performed on the 'Location' point, on the 'XAxis' and the 'YAxis'. The resulting normal direction is the cross product between the 'XDirection' and the 'YDirection' after transformation. + + """ + return _gp.gp_Pln_Transformed(self, *args) + + def Translate(self, *args): + r""" + + Parameters + ---------- + theV: gp_Vec + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theP1: gp_Pnt + theP2: gp_Pnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Pln_Translate(self, *args) + + def Translated(self, *args): + r""" + + Parameters + ---------- + theV: gp_Vec + + Return + ------- + gp_Pln + + Description + ----------- + Translates a plane in the direction of the vector theV. The magnitude of the translation is the vector's magnitude. + + Parameters + ---------- + theP1: gp_Pnt + theP2: gp_Pnt + + Return + ------- + gp_Pln + + Description + ----------- + Translates a plane from the point theP1 to the point theP2. + + """ + return _gp.gp_Pln_Translated(self, *args) + + def UReverse(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Reverses the U parametrization of the plane reversing the XAxis. + + """ + return _gp.gp_Pln_UReverse(self, *args) + + def VReverse(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Reverses the V parametrization of the plane reversing the YAxis. + + """ + return _gp.gp_Pln_VReverse(self, *args) + + def XAxis(self, *args): + r""" + Return + ------- + gp_Ax1 + + Description + ----------- + Returns the X axis of the plane. + + """ + return _gp.gp_Pln_XAxis(self, *args) + + def YAxis(self, *args): + r""" + Return + ------- + gp_Ax1 + + Description + ----------- + Returns the Y axis of the plane. + + """ + return _gp.gp_Pln_YAxis(self, *args) + + def __getstate__(self): + return self.DumpJson() + + + def __setstate__(self, state): + inst = gp_Pln() + if inst.InitFromJson(state): + self.this = inst.this + else: + raise IOError('Failed to set state of gp_Pln') + + + __repr__ = _dumps_object + + __swig_destroy__ = _gp.delete_gp_Pln + +# Register gp_Pln in _gp: +_gp.gp_Pln_swigregister(gp_Pln) +class gp_Pnt(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 + ----------- + Creates a point with zero coordinates. + + Parameters + ---------- + theCoord: gp_XYZ + + Return + ------- + None + + Description + ----------- + Creates a point from a XYZ object. + + Parameters + ---------- + theXp: float + theYp: float + theZp: float + + Return + ------- + None + + Description + ----------- + Creates a point with its 3 cartesian's coordinates: theXp, theYp, theZp. + + """ + _gp.gp_Pnt_swiginit(self, _gp.new_gp_Pnt(*args)) + + def BaryCenter(self, *args): + r""" + + Parameters + ---------- + theAlpha: float + theP: gp_Pnt + theBeta: float + + Return + ------- + None + + Description + ----------- + Assigns the result of the following expression to this point (theAlpha*this + theBeta*theP) / (theAlpha + theBeta). + + """ + return _gp.gp_Pnt_BaryCenter(self, *args) + + def ChangeCoord(self, *args): + r""" + Return + ------- + gp_XYZ + + Description + ----------- + Returns the coordinates of this point. Note: This syntax allows direct modification of the returned value. + + """ + return _gp.gp_Pnt_ChangeCoord(self, *args) + + def Coord(self, *args): + r""" + + Parameters + ---------- + theIndex: int + + Return + ------- + float + + Description + ----------- + Returns the coordinate of corresponding to the value of theIndex: theIndex = 1 => X is returned theIndex = 2 => Y is returned theIndex = 3 => Z is returned Raises OutOfRange if theIndex != {1, 2, 3}. Raised if theIndex != {1, 2, 3}. + + Parameters + ---------- + + Return + ------- + theXp: float + theYp: float + theZp: float + + Description + ----------- + For this point gives its three coordinates theXp, theYp and theZp. + Return + ------- + gp_XYZ + + Description + ----------- + For this point, returns its three coordinates as a XYZ object. + + """ + return _gp.gp_Pnt_Coord(self, *args) + + def Distance(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Pnt + + Return + ------- + float + + Description + ----------- + Computes the distance between two points. + + """ + return _gp.gp_Pnt_Distance(self, *args) + + def DumpJson(self, depth=-1): + r""" + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + """ + return _gp.gp_Pnt_DumpJson(self, depth) + + def InitFromJson(self, json_string): + r""" + + Parameters + ---------- + json_string: the string + + Return + ------- + bool + + Description + ----------- + Init the object from a JSON string. + + """ + return _gp.gp_Pnt_InitFromJson(self, json_string) + + def IsEqual(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Pnt + theLinearTolerance: float + + Return + ------- + bool + + Description + ----------- + Comparison Returns True if the distance between the two points is lower or equal to theLinearTolerance. + + """ + return _gp.gp_Pnt_IsEqual(self, *args) + + def Mirror(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + + Return + ------- + None + + Description + ----------- + Performs the symmetrical transformation of a point with respect to the point theP which is the center of the symmetry. + + Parameters + ---------- + theA1: gp_Ax1 + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theA2: gp_Ax2 + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Pnt_Mirror(self, *args) + + def Mirrored(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + + Return + ------- + gp_Pnt + + Description + ----------- + Performs the symmetrical transformation of a point with respect to an axis placement which is the axis of the symmetry. + + Parameters + ---------- + theA1: gp_Ax1 + + Return + ------- + gp_Pnt + + Description + ----------- + Performs the symmetrical transformation of a point with respect to a plane. The axis placement theA2 locates the plane of the symmetry: (Location, XDirection, YDirection). + + Parameters + ---------- + theA2: gp_Ax2 + + Return + ------- + gp_Pnt + + Description + ----------- + Rotates a point. theA1 is the axis of the rotation. theAng is the angular value of the rotation in radians. + + """ + return _gp.gp_Pnt_Mirrored(self, *args) + + def Rotate(self, *args): + r""" + + Parameters + ---------- + theA1: gp_Ax1 + theAng: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Pnt_Rotate(self, *args) + + def Rotated(self, *args): + r""" + + Parameters + ---------- + theA1: gp_Ax1 + theAng: float + + Return + ------- + gp_Pnt + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Pnt_Rotated(self, *args) + + def Scale(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + theS: float + + Return + ------- + None + + Description + ----------- + Scales a point. theS is the scaling value. + + """ + return _gp.gp_Pnt_Scale(self, *args) + + def Scaled(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + theS: float + + Return + ------- + gp_Pnt + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Pnt_Scaled(self, *args) + + def SetCoord(self, *args): + r""" + + Parameters + ---------- + theIndex: int + theXi: float + + Return + ------- + None + + Description + ----------- + Changes the coordinate of range theIndex: theIndex = 1 => X is modified theIndex = 2 => Y is modified theIndex = 3 => Z is modified Raised if theIndex != {1, 2, 3}. + + Parameters + ---------- + theXp: float + theYp: float + theZp: float + + Return + ------- + None + + Description + ----------- + For this point, assigns the values theXp, theYp and theZp to its three coordinates. + + """ + return _gp.gp_Pnt_SetCoord(self, *args) + + def SetX(self, *args): + r""" + + Parameters + ---------- + theX: float + + Return + ------- + None + + Description + ----------- + Assigns the given value to the X coordinate of this point. + + """ + return _gp.gp_Pnt_SetX(self, *args) + + def SetXYZ(self, *args): + r""" + + Parameters + ---------- + theCoord: gp_XYZ + + Return + ------- + None + + Description + ----------- + Assigns the three coordinates of theCoord to this point. + + """ + return _gp.gp_Pnt_SetXYZ(self, *args) + + def SetY(self, *args): + r""" + + Parameters + ---------- + theY: float + + Return + ------- + None + + Description + ----------- + Assigns the given value to the Y coordinate of this point. + + """ + return _gp.gp_Pnt_SetY(self, *args) + + def SetZ(self, *args): + r""" + + Parameters + ---------- + theZ: float + + Return + ------- + None + + Description + ----------- + Assigns the given value to the Z coordinate of this point. + + """ + return _gp.gp_Pnt_SetZ(self, *args) + + def SquareDistance(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Pnt + + Return + ------- + float + + Description + ----------- + Computes the square distance between two points. + + """ + return _gp.gp_Pnt_SquareDistance(self, *args) + + def Transform(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf + + Return + ------- + None + + Description + ----------- + Transforms a point with the transformation T. + + """ + return _gp.gp_Pnt_Transform(self, *args) + + def Transformed(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf + + Return + ------- + gp_Pnt + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Pnt_Transformed(self, *args) + + def Translate(self, *args): + r""" + + Parameters + ---------- + theV: gp_Vec + + Return + ------- + None + + Description + ----------- + Translates a point in the direction of the vector theV. The magnitude of the translation is the vector's magnitude. + + Parameters + ---------- + theP1: gp_Pnt + theP2: gp_Pnt + + Return + ------- + None + + Description + ----------- + Translates a point from the point theP1 to the point theP2. + + """ + return _gp.gp_Pnt_Translate(self, *args) + + def Translated(self, *args): + r""" + + Parameters + ---------- + theV: gp_Vec + + Return + ------- + gp_Pnt + + Description + ----------- + No available documentation. + + Parameters + ---------- + theP1: gp_Pnt + theP2: gp_Pnt + + Return + ------- + gp_Pnt + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Pnt_Translated(self, *args) + + def X(self, *args): + r""" + Return + ------- + float + + Description + ----------- + For this point, returns its X coordinate. + + """ + return _gp.gp_Pnt_X(self, *args) + + def XYZ(self, *args): + r""" + Return + ------- + gp_XYZ + + Description + ----------- + For this point, returns its three coordinates as a XYZ object. + + """ + return _gp.gp_Pnt_XYZ(self, *args) + + def Y(self, *args): + r""" + Return + ------- + float + + Description + ----------- + For this point, returns its Y coordinate. + + """ + return _gp.gp_Pnt_Y(self, *args) + + def Z(self, *args): + r""" + Return + ------- + float + + Description + ----------- + For this point, returns its Z coordinate. + + """ + return _gp.gp_Pnt_Z(self, *args) + + def __getstate__(self): + return self.DumpJson() + + + def __setstate__(self, state): + inst = gp_Pnt() + if inst.InitFromJson(state): + self.this = inst.this + else: + raise IOError('Failed to set state of gp_Pnt') + + + __repr__ = _dumps_object + + __swig_destroy__ = _gp.delete_gp_Pnt + +# Register gp_Pnt in _gp: +_gp.gp_Pnt_swigregister(gp_Pnt) +class gp_Pnt2d(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 + ----------- + Creates a point with zero coordinates. + + Parameters + ---------- + theCoord: gp_XY + + Return + ------- + None + + Description + ----------- + Creates a point with a doublet of coordinates. + + Parameters + ---------- + theXp: float + theYp: float + + Return + ------- + None + + Description + ----------- + Creates a point with its 2 cartesian's coordinates: theXp, theYp. + + """ + _gp.gp_Pnt2d_swiginit(self, _gp.new_gp_Pnt2d(*args)) + + def ChangeCoord(self, *args): + r""" + Return + ------- + gp_XY + + Description + ----------- + Returns the coordinates of this point. Note: This syntax allows direct modification of the returned value. + + """ + return _gp.gp_Pnt2d_ChangeCoord(self, *args) + + def Coord(self, *args): + r""" + + Parameters + ---------- + theIndex: int + + Return + ------- + float + + Description + ----------- + Returns the coordinate of range theIndex: theIndex = 1 => X is returned theIndex = 2 => Y is returned Raises OutOfRange if theIndex != {1, 2}. + + Parameters + ---------- + + Return + ------- + theXp: float + theYp: float + + Description + ----------- + For this point returns its two coordinates as a number pair. + Return + ------- + gp_XY + + Description + ----------- + For this point, returns its two coordinates as a number pair. + + """ + return _gp.gp_Pnt2d_Coord(self, *args) + + def Distance(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Pnt2d + + Return + ------- + float + + Description + ----------- + Computes the distance between two points. + + """ + return _gp.gp_Pnt2d_Distance(self, *args) + + def DumpJson(self, depth=-1): + r""" + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + """ + return _gp.gp_Pnt2d_DumpJson(self, depth) + + def IsEqual(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Pnt2d + theLinearTolerance: float + + Return + ------- + bool + + Description + ----------- + Comparison Returns True if the distance between the two points is lower or equal to theLinearTolerance. + + """ + return _gp.gp_Pnt2d_IsEqual(self, *args) + + def Mirror(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + Performs the symmetrical transformation of a point with respect to the point theP which is the center of the symmetry. + + Parameters + ---------- + theA: gp_Ax2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Pnt2d_Mirror(self, *args) + + def Mirrored(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + + Return + ------- + gp_Pnt2d + + Description + ----------- + Performs the symmetrical transformation of a point with respect to an axis placement which is the axis. + + Parameters + ---------- + theA: gp_Ax2d + + Return + ------- + gp_Pnt2d + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Pnt2d_Mirrored(self, *args) + + def Rotate(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + theAng: float + + Return + ------- + None + + Description + ----------- + Rotates a point. theA1 is the axis of the rotation. Ang is the angular value of the rotation in radians. + + """ + return _gp.gp_Pnt2d_Rotate(self, *args) + + def Rotated(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + theAng: float + + Return + ------- + gp_Pnt2d + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Pnt2d_Rotated(self, *args) + + def Scale(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + theS: float + + Return + ------- + None + + Description + ----------- + Scales a point. theS is the scaling value. + + """ + return _gp.gp_Pnt2d_Scale(self, *args) + + def Scaled(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + theS: float + + Return + ------- + gp_Pnt2d + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Pnt2d_Scaled(self, *args) + + def SetCoord(self, *args): + r""" + + Parameters + ---------- + theIndex: int + theXi: float + + Return + ------- + None + + Description + ----------- + Assigns the value Xi to the coordinate that corresponds to theIndex: theIndex = 1 => X is modified theIndex = 2 => Y is modified Raises OutOfRange if theIndex != {1, 2}. + + Parameters + ---------- + theXp: float + theYp: float + + Return + ------- + None + + Description + ----------- + For this point, assigns the values theXp and theYp to its two coordinates. + + """ + return _gp.gp_Pnt2d_SetCoord(self, *args) + + def SetX(self, *args): + r""" + + Parameters + ---------- + theX: float + + Return + ------- + None + + Description + ----------- + Assigns the given value to the X coordinate of this point. + + """ + return _gp.gp_Pnt2d_SetX(self, *args) + + def SetXY(self, *args): + r""" + + Parameters + ---------- + theCoord: gp_XY + + Return + ------- + None + + Description + ----------- + Assigns the two coordinates of Coord to this point. + + """ + return _gp.gp_Pnt2d_SetXY(self, *args) + + def SetY(self, *args): + r""" + + Parameters + ---------- + theY: float + + Return + ------- + None + + Description + ----------- + Assigns the given value to the Y coordinate of this point. + + """ + return _gp.gp_Pnt2d_SetY(self, *args) + + def SquareDistance(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Pnt2d + + Return + ------- + float + + Description + ----------- + Computes the square distance between two points. + + """ + return _gp.gp_Pnt2d_SquareDistance(self, *args) + + def Transform(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf2d + + Return + ------- + None + + Description + ----------- + Transforms a point with the transformation theT. + + """ + return _gp.gp_Pnt2d_Transform(self, *args) + + def Transformed(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf2d + + Return + ------- + gp_Pnt2d + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Pnt2d_Transformed(self, *args) + + def Translate(self, *args): + r""" + + Parameters + ---------- + theV: gp_Vec2d + + Return + ------- + None + + Description + ----------- + Translates a point in the direction of the vector theV. The magnitude of the translation is the vector's magnitude. + + Parameters + ---------- + theP1: gp_Pnt2d + theP2: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + Translates a point from the point theP1 to the point theP2. + + """ + return _gp.gp_Pnt2d_Translate(self, *args) + + def Translated(self, *args): + r""" + + Parameters + ---------- + theV: gp_Vec2d + + Return + ------- + gp_Pnt2d + + Description + ----------- + No available documentation. + + Parameters + ---------- + theP1: gp_Pnt2d + theP2: gp_Pnt2d + + Return + ------- + gp_Pnt2d + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Pnt2d_Translated(self, *args) + + def X(self, *args): + r""" + Return + ------- + float + + Description + ----------- + For this point, returns its X coordinate. + + """ + return _gp.gp_Pnt2d_X(self, *args) + + def XY(self, *args): + r""" + Return + ------- + gp_XY + + Description + ----------- + For this point, returns its two coordinates as a number pair. + + """ + return _gp.gp_Pnt2d_XY(self, *args) + + def Y(self, *args): + r""" + Return + ------- + float + + Description + ----------- + For this point, returns its Y coordinate. + + """ + return _gp.gp_Pnt2d_Y(self, *args) + + def __getstate__(self): + return self.DumpJson() + + + def __setstate__(self, state): + inst = gp_Pnt2d() + if inst.InitFromJson(state): + self.this = inst.this + else: + raise IOError('Failed to set state of gp_Pnt2d') + + + __repr__ = _dumps_object + + __swig_destroy__ = _gp.delete_gp_Pnt2d + +# Register gp_Pnt2d in _gp: +_gp.gp_Pnt2d_swigregister(gp_Pnt2d) +class gp_Quaternion(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 + ----------- + Creates an identity quaternion. + + Parameters + ---------- + theX: float + theY: float + theZ: float + theW: float + + Return + ------- + None + + Description + ----------- + Creates quaternion directly from component values. + + Parameters + ---------- + theVecFrom: gp_Vec + theVecTo: gp_Vec + + Return + ------- + None + + Description + ----------- + Creates quaternion representing shortest-arc rotation operator producing vector theVecTo from vector theVecFrom. + + Parameters + ---------- + theVecFrom: gp_Vec + theVecTo: gp_Vec + theHelpCrossVec: gp_Vec + + Return + ------- + None + + Description + ----------- + Creates quaternion representing shortest-arc rotation operator producing vector theVecTo from vector theVecFrom. Additional vector theHelpCrossVec defines preferred direction for rotation and is used when theVecTo and theVecFrom are directed oppositely. + + Parameters + ---------- + theAxis: gp_Vec + theAngle: float + + Return + ------- + None + + Description + ----------- + Creates quaternion representing rotation on angle theAngle around vector theAxis. + + Parameters + ---------- + theMat: gp_Mat + + Return + ------- + None + + Description + ----------- + Creates quaternion from rotation matrix 3*3 (which should be orthonormal skew-symmetric matrix). + + """ + _gp.gp_Quaternion_swiginit(self, _gp.new_gp_Quaternion(*args)) + + def Add(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Quaternion + + Return + ------- + None + + Description + ----------- + Adds components of other quaternion; result is 'rotations mix'. + + """ + return _gp.gp_Quaternion_Add(self, *args) + + def Added(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Quaternion + + Return + ------- + gp_Quaternion + + Description + ----------- + Makes sum of quaternion components; result is 'rotations mix'. + + """ + return _gp.gp_Quaternion_Added(self, *args) + + def Dot(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Quaternion + + Return + ------- + float + + Description + ----------- + Computes inner product / scalar product / Dot. + + """ + return _gp.gp_Quaternion_Dot(self, *args) + + def GetEulerAngles(self, *args): + r""" + + Parameters + ---------- + theOrder: gp_EulerSequence + + Return + ------- + theAlpha: float + theBeta: float + theGamma: float + + Description + ----------- + Returns Euler angles describing current rotation. + + """ + return _gp.gp_Quaternion_GetEulerAngles(self, *args) + + def GetMatrix(self, *args): + r""" + Return + ------- + gp_Mat + + Description + ----------- + Returns rotation operation as 3*3 matrix. + + """ + return _gp.gp_Quaternion_GetMatrix(self, *args) + + def GetRotationAngle(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Return rotation angle from -PI to PI. + + """ + return _gp.gp_Quaternion_GetRotationAngle(self, *args) + + def GetVectorAndAngle(self, *args): + r""" + + Parameters + ---------- + theAxis: gp_Vec + + Return + ------- + theAngle: float + + Description + ----------- + Convert a quaternion to Axis+Angle representation, preserve the axis direction and angle from -PI to +PI. + + """ + return _gp.gp_Quaternion_GetVectorAndAngle(self, *args) + + def Invert(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Inverts quaternion (both rotation direction and norm). + + """ + return _gp.gp_Quaternion_Invert(self, *args) + + def Inverted(self, *args): + r""" + Return + ------- + gp_Quaternion + + Description + ----------- + Return inversed quaternion q^-1. + + """ + return _gp.gp_Quaternion_Inverted(self, *args) + + def IsEqual(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Quaternion + + Return + ------- + bool + + Description + ----------- + Simple equal test without precision. + + """ + return _gp.gp_Quaternion_IsEqual(self, *args) + + def Multiplied(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Quaternion + + Return + ------- + gp_Quaternion + + Description + ----------- + Multiply function - work the same as Matrices multiplying. @code qq' = (cross(v,v') + wv' + w'v, ww' - dot(v,v')) @endcode Result is rotation combination: q' than q (here q=this, q'=theQ). Notices that: @code qq' != q'q; qq^-1 = q; @endcode. + + """ + return _gp.gp_Quaternion_Multiplied(self, *args) + + def Multiply(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Quaternion + + Return + ------- + None + + Description + ----------- + Adds rotation by multiplication. + + Parameters + ---------- + theVec: gp_Vec + + Return + ------- + gp_Vec + + Description + ----------- + Rotates vector by quaternion as rotation operator. + + """ + return _gp.gp_Quaternion_Multiply(self, *args) + + def Negated(self, *args): + r""" + Return + ------- + gp_Quaternion + + Description + ----------- + Returns quaternion with all components negated. Note that this operation does not affect neither rotation operator defined by quaternion nor its norm. + + """ + return _gp.gp_Quaternion_Negated(self, *args) + + def Norm(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns norm of quaternion. + + """ + return _gp.gp_Quaternion_Norm(self, *args) + + def Normalize(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Scale quaternion that its norm goes to 1. The appearing of 0 magnitude or near is a error, so we can be sure that can divide by magnitude. + + """ + return _gp.gp_Quaternion_Normalize(self, *args) + + def Normalized(self, *args): + r""" + Return + ------- + gp_Quaternion + + Description + ----------- + Returns quaternion scaled so that its norm goes to 1. + + """ + return _gp.gp_Quaternion_Normalized(self, *args) + + def Reverse(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Reverse direction of rotation (conjugate quaternion). + + """ + return _gp.gp_Quaternion_Reverse(self, *args) + + def Reversed(self, *args): + r""" + Return + ------- + gp_Quaternion + + Description + ----------- + Return rotation with reversed direction (conjugated quaternion). + + """ + return _gp.gp_Quaternion_Reversed(self, *args) + + def Scale(self, *args): + r""" + + Parameters + ---------- + theScale: float + + Return + ------- + None + + Description + ----------- + Scale all components by quaternion by theScale; note that rotation is not changed by this operation (except 0-scaling). + + """ + return _gp.gp_Quaternion_Scale(self, *args) + + def Scaled(self, *args): + r""" + + Parameters + ---------- + theScale: float + + Return + ------- + gp_Quaternion + + Description + ----------- + Returns scaled quaternion. + + """ + return _gp.gp_Quaternion_Scaled(self, *args) + + def Set(self, *args): + r""" + + Parameters + ---------- + theX: float + theY: float + theZ: float + theW: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theQuaternion: gp_Quaternion + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Quaternion_Set(self, *args) + + def SetEulerAngles(self, *args): + r""" + + Parameters + ---------- + theOrder: gp_EulerSequence + theAlpha: float + theBeta: float + theGamma: float + + Return + ------- + None + + Description + ----------- + Create a unit quaternion representing rotation defined by generalized Euler angles. + + """ + return _gp.gp_Quaternion_SetEulerAngles(self, *args) + + def SetIdent(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Make identity quaternion (zero-rotation). + + """ + return _gp.gp_Quaternion_SetIdent(self, *args) + + def SetMatrix(self, *args): + r""" + + Parameters + ---------- + theMat: gp_Mat + + Return + ------- + None + + Description + ----------- + Create a unit quaternion by rotation matrix matrix must contain only rotation (not scale or shear) //! For numerical stability we find first the greatest component of quaternion and than search others from this one. + + """ + return _gp.gp_Quaternion_SetMatrix(self, *args) + + def SetRotation(self, *args): + r""" + + Parameters + ---------- + theVecFrom: gp_Vec + theVecTo: gp_Vec + + Return + ------- + None + + Description + ----------- + Sets quaternion to shortest-arc rotation producing vector theVecTo from vector theVecFrom. If vectors theVecFrom and theVecTo are opposite then rotation axis is computed as theVecFrom ^ (1,0,0) or theVecFrom ^ (0,0,1). + + Parameters + ---------- + theVecFrom: gp_Vec + theVecTo: gp_Vec + theHelpCrossVec: gp_Vec + + Return + ------- + None + + Description + ----------- + Sets quaternion to shortest-arc rotation producing vector theVecTo from vector theVecFrom. If vectors theVecFrom and theVecTo are opposite then rotation axis is computed as theVecFrom ^ theHelpCrossVec. + + """ + return _gp.gp_Quaternion_SetRotation(self, *args) + + def SetVectorAndAngle(self, *args): + r""" + + Parameters + ---------- + theAxis: gp_Vec + theAngle: float + + Return + ------- + None + + Description + ----------- + Create a unit quaternion from Axis+Angle representation. + + """ + return _gp.gp_Quaternion_SetVectorAndAngle(self, *args) + + def SquareNorm(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns square norm of quaternion. + + """ + return _gp.gp_Quaternion_SquareNorm(self, *args) + + def StabilizeLength(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Stabilize quaternion length within 1 - 1/4. This operation is a lot faster than normalization and preserve length goes to 0 or infinity. + + """ + return _gp.gp_Quaternion_StabilizeLength(self, *args) + + def Subtract(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Quaternion + + Return + ------- + None + + Description + ----------- + Subtracts components of other quaternion; result is 'rotations mix'. + + """ + return _gp.gp_Quaternion_Subtract(self, *args) + + def Subtracted(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Quaternion + + Return + ------- + gp_Quaternion + + Description + ----------- + Makes difference of quaternion components; result is 'rotations mix'. + + """ + return _gp.gp_Quaternion_Subtracted(self, *args) + + def W(self, *args): + r""" + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Quaternion_W(self, *args) + + def X(self, *args): + r""" + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Quaternion_X(self, *args) + + def Y(self, *args): + r""" + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Quaternion_Y(self, *args) + + def Z(self, *args): + r""" + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Quaternion_Z(self, *args) + + def __mul__(self, *args): + r""" + + Parameters + ---------- + theScale: float + + Return + ------- + gp_Quaternion + + Description + ----------- + No available documentation. + + Parameters + ---------- + theOther: gp_Quaternion + + Return + ------- + gp_Quaternion + + Description + ----------- + No available documentation. + + Parameters + ---------- + theVec: gp_Vec + + Return + ------- + gp_Vec + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Quaternion___mul__(self, *args) + + def __imul__(self, right): + self.__imul_wrapper__(right) + return self + + + def __imul_wrapper__(self, *args): + return _gp.gp_Quaternion___imul_wrapper__(self, *args) + + def __imul__(self, right): + self.__imul_wrapper__(right) + return self + + + def __add__(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Quaternion + + Return + ------- + gp_Quaternion + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Quaternion___add__(self, *args) + + def __iadd_wrapper__(self, other): + return _gp.gp_Quaternion___iadd_wrapper__(self, other) + + def __iadd__(self, right): + self.__iadd_wrapper__(right) + return self + + + def __neg__(self, *args): + r""" + Return + ------- + gp_Quaternion + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Quaternion___neg__(self, *args) + + def __sub__(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Quaternion + + Return + ------- + gp_Quaternion + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Quaternion___sub__(self, *args) + + def __isub_wrapper__(self, other): + return _gp.gp_Quaternion___isub_wrapper__(self, other) + + def __isub__(self, right): + self.__isub_wrapper__(right) + return self + + + def __getstate__(self): + return self.DumpJson() + + + def __setstate__(self, state): + inst = gp_Quaternion() + if inst.InitFromJson(state): + self.this = inst.this + else: + raise IOError('Failed to set state of gp_Quaternion') + + + __repr__ = _dumps_object + + __swig_destroy__ = _gp.delete_gp_Quaternion + +# Register gp_Quaternion in _gp: +_gp.gp_Quaternion_swigregister(gp_Quaternion) +class gp_QuaternionNLerp(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 + ----------- + Empty constructor,. + + Parameters + ---------- + theQStart: gp_Quaternion + theQEnd: gp_Quaternion + + Return + ------- + None + + Description + ----------- + Constructor with initialization. + + """ + _gp.gp_QuaternionNLerp_swiginit(self, _gp.new_gp_QuaternionNLerp(*args)) + + def Init(self, *args): + r""" + + Parameters + ---------- + theQStart: gp_Quaternion + theQEnd: gp_Quaternion + + Return + ------- + None + + Description + ----------- + Initialize the tool with Start and End values. + + """ + return _gp.gp_QuaternionNLerp_Init(self, *args) + + def InitFromUnit(self, *args): + r""" + + Parameters + ---------- + theQStart: gp_Quaternion + theQEnd: gp_Quaternion + + Return + ------- + None + + Description + ----------- + Initialize the tool with Start and End unit quaternions. + + """ + return _gp.gp_QuaternionNLerp_InitFromUnit(self, *args) + + def Interpolate(self, *args): + r""" + + Parameters + ---------- + theQStart: gp_Quaternion + theQEnd: gp_Quaternion + theT: float + + Return + ------- + gp_Quaternion + + Description + ----------- + Compute interpolated quaternion between two quaternions. + Parameter theStart first quaternion + Parameter theEnd second quaternion + Parameter theT normalized interpolation coefficient within 0..1 range, with 0 pointing to theStart and 1 to theEnd. + + Parameters + ---------- + theT: float + theResultQ: gp_Quaternion + + Return + ------- + None + + Description + ----------- + Set interpolated quaternion for theT position (from 0.0 to 1.0). + + """ + return _gp.gp_QuaternionNLerp_Interpolate(self, *args) + + def __getstate__(self): + return self.DumpJson() + + + def __setstate__(self, state): + inst = gp_QuaternionNLerp() + if inst.InitFromJson(state): + self.this = inst.this + else: + raise IOError('Failed to set state of gp_QuaternionNLerp') + + + __repr__ = _dumps_object + + __swig_destroy__ = _gp.delete_gp_QuaternionNLerp + +# Register gp_QuaternionNLerp in _gp: +_gp.gp_QuaternionNLerp_swigregister(gp_QuaternionNLerp) +class gp_QuaternionSLerp(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 + ----------- + Empty constructor,. + + Parameters + ---------- + theQStart: gp_Quaternion + theQEnd: gp_Quaternion + + Return + ------- + None + + Description + ----------- + Constructor with initialization. + + """ + _gp.gp_QuaternionSLerp_swiginit(self, _gp.new_gp_QuaternionSLerp(*args)) + + def Init(self, *args): + r""" + + Parameters + ---------- + theQStart: gp_Quaternion + theQEnd: gp_Quaternion + + Return + ------- + None + + Description + ----------- + Initialize the tool with Start and End values. + + """ + return _gp.gp_QuaternionSLerp_Init(self, *args) + + def InitFromUnit(self, *args): + r""" + + Parameters + ---------- + theQStart: gp_Quaternion + theQEnd: gp_Quaternion + + Return + ------- + None + + Description + ----------- + Initialize the tool with Start and End unit quaternions. + + """ + return _gp.gp_QuaternionSLerp_InitFromUnit(self, *args) + + def Interpolate(self, *args): + r""" + + Parameters + ---------- + theQStart: gp_Quaternion + theQEnd: gp_Quaternion + theT: float + + Return + ------- + gp_Quaternion + + Description + ----------- + Compute interpolated quaternion between two quaternions. + Parameter theStart first quaternion + Parameter theEnd second quaternion + Parameter theT normalized interpolation coefficient within 0..1 range, with 0 pointing to theStart and 1 to theEnd. + + Parameters + ---------- + theT: float + theResultQ: gp_Quaternion + + Return + ------- + None + + Description + ----------- + Set interpolated quaternion for theT position (from 0.0 to 1.0). + + """ + return _gp.gp_QuaternionSLerp_Interpolate(self, *args) + + def __getstate__(self): + return self.DumpJson() + + + def __setstate__(self, state): + inst = gp_QuaternionSLerp() + if inst.InitFromJson(state): + self.this = inst.this + else: + raise IOError('Failed to set state of gp_QuaternionSLerp') + + + __repr__ = _dumps_object + + __swig_destroy__ = _gp.delete_gp_QuaternionSLerp + +# Register gp_QuaternionSLerp in _gp: +_gp.gp_QuaternionSLerp_swigregister(gp_QuaternionSLerp) +class gp_Sphere(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 + ----------- + Creates an indefinite sphere. + + Parameters + ---------- + theA3: gp_Ax3 + theRadius: float + + Return + ------- + None + + Description + ----------- + Constructs a sphere with radius theRadius, centered on the origin of theA3. theA3 is the local coordinate system of the sphere. Warnings: It is not forbidden to create a sphere with null radius. Raises ConstructionError if theRadius < 0.0. + + """ + _gp.gp_Sphere_swiginit(self, _gp.new_gp_Sphere(*args)) + + def Area(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Computes the area of the sphere. + + """ + return _gp.gp_Sphere_Area(self, *args) + + def Coefficients(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + theA1: float + theA2: float + theA3: float + theB1: float + theB2: float + theB3: float + theC1: float + theC2: float + theC3: float + theD: float + + Description + ----------- + Computes the coefficients of the implicit equation of the quadric in the absolute cartesian coordinates system: @code theA1.X**2 + theA2.Y**2 + theA3.Z**2 + 2.(theB1.X.Y + theB2.X.Z + theB3.Y.Z) + 2.(theC1.X + theC2.Y + theC3.Z) + theD = 0.0 @endcode. + + """ + return _gp.gp_Sphere_Coefficients(self, *args) + + def Direct(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns true if the local coordinate system of this sphere is right-handed. + + """ + return _gp.gp_Sphere_Direct(self, *args) + + def Location(self, *args): + r""" + Return + ------- + gp_Pnt + + Description + ----------- + --- Purpose ; Returns the center of the sphere. + + """ + return _gp.gp_Sphere_Location(self, *args) + + def Mirror(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theA1: gp_Ax1 + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theA2: gp_Ax2 + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Sphere_Mirror(self, *args) + + def Mirrored(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + + Return + ------- + gp_Sphere + + Description + ----------- + Performs the symmetrical transformation of a sphere with respect to the point theP which is the center of the symmetry. + + Parameters + ---------- + theA1: gp_Ax1 + + Return + ------- + gp_Sphere + + Description + ----------- + Performs the symmetrical transformation of a sphere with respect to an axis placement which is the axis of the symmetry. + + Parameters + ---------- + theA2: gp_Ax2 + + Return + ------- + gp_Sphere + + Description + ----------- + Performs the symmetrical transformation of a sphere with respect to a plane. The axis placement theA2 locates the plane of the of the symmetry: (Location, XDirection, YDirection). + + """ + return _gp.gp_Sphere_Mirrored(self, *args) + + def Position(self, *args): + r""" + Return + ------- + gp_Ax3 + + Description + ----------- + Returns the local coordinates system of the sphere. + + """ + return _gp.gp_Sphere_Position(self, *args) + + def Radius(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns the radius of the sphere. + + """ + return _gp.gp_Sphere_Radius(self, *args) + + def Rotate(self, *args): + r""" + + Parameters + ---------- + theA1: gp_Ax1 + theAng: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Sphere_Rotate(self, *args) + + def Rotated(self, *args): + r""" + + Parameters + ---------- + theA1: gp_Ax1 + theAng: float + + Return + ------- + gp_Sphere + + Description + ----------- + Rotates a sphere. theA1 is the axis of the rotation. theAng is the angular value of the rotation in radians. + + """ + return _gp.gp_Sphere_Rotated(self, *args) + + def Scale(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + theS: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Sphere_Scale(self, *args) + + def Scaled(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + theS: float + + Return + ------- + gp_Sphere + + Description + ----------- + Scales a sphere. theS is the scaling value. The absolute value of S is used to scale the sphere. + + """ + return _gp.gp_Sphere_Scaled(self, *args) + + def SetLocation(self, *args): + r""" + + Parameters + ---------- + theLoc: gp_Pnt + + Return + ------- + None + + Description + ----------- + Changes the center of the sphere. + + """ + return _gp.gp_Sphere_SetLocation(self, *args) + + def SetPosition(self, *args): + r""" + + Parameters + ---------- + theA3: gp_Ax3 + + Return + ------- + None + + Description + ----------- + Changes the local coordinate system of the sphere. + + """ + return _gp.gp_Sphere_SetPosition(self, *args) + + def SetRadius(self, *args): + r""" + + Parameters + ---------- + theR: float + + Return + ------- + None + + Description + ----------- + Assigns theR the radius of the Sphere. Warnings: It is not forbidden to create a sphere with null radius. Raises ConstructionError if theR < 0.0. + + """ + return _gp.gp_Sphere_SetRadius(self, *args) + + def Transform(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Sphere_Transform(self, *args) + + def Transformed(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf + + Return + ------- + gp_Sphere + + Description + ----------- + Transforms a sphere with the transformation theT from class Trsf. + + """ + return _gp.gp_Sphere_Transformed(self, *args) + + def Translate(self, *args): + r""" + + Parameters + ---------- + theV: gp_Vec + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theP1: gp_Pnt + theP2: gp_Pnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Sphere_Translate(self, *args) + + def Translated(self, *args): + r""" + + Parameters + ---------- + theV: gp_Vec + + Return + ------- + gp_Sphere + + Description + ----------- + Translates a sphere in the direction of the vector theV. The magnitude of the translation is the vector's magnitude. + + Parameters + ---------- + theP1: gp_Pnt + theP2: gp_Pnt + + Return + ------- + gp_Sphere + + Description + ----------- + Translates a sphere from the point theP1 to the point theP2. + + """ + return _gp.gp_Sphere_Translated(self, *args) + + def UReverse(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Reverses the U parametrization of the sphere reversing the YAxis. + + """ + return _gp.gp_Sphere_UReverse(self, *args) + + def VReverse(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Reverses the V parametrization of the sphere reversing the ZAxis. + + """ + return _gp.gp_Sphere_VReverse(self, *args) + + def Volume(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Computes the volume of the sphere. + + """ + return _gp.gp_Sphere_Volume(self, *args) + + def XAxis(self, *args): + r""" + Return + ------- + gp_Ax1 + + Description + ----------- + Returns the axis X of the sphere. + + """ + return _gp.gp_Sphere_XAxis(self, *args) + + def YAxis(self, *args): + r""" + Return + ------- + gp_Ax1 + + Description + ----------- + Returns the axis Y of the sphere. + + """ + return _gp.gp_Sphere_YAxis(self, *args) + + def __getstate__(self): + return self.DumpJson() + + + def __setstate__(self, state): + inst = gp_Sphere() + if inst.InitFromJson(state): + self.this = inst.this + else: + raise IOError('Failed to set state of gp_Sphere') + + + __repr__ = _dumps_object + + __swig_destroy__ = _gp.delete_gp_Sphere + +# Register gp_Sphere in _gp: +_gp.gp_Sphere_swigregister(gp_Sphere) +class gp_Torus(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 + ----------- + creates an indefinite Torus. + + Parameters + ---------- + theA3: gp_Ax3 + theMajorRadius: float + theMinorRadius: float + + Return + ------- + None + + Description + ----------- + a torus centered on the origin of coordinate system theA3, with major radius theMajorRadius and minor radius theMinorRadius, and with the reference plane defined by the origin, the 'X Direction' and the 'Y Direction' of theA3. Warnings: It is not forbidden to create a torus with theMajorRadius = theMinorRadius = 0.0 Raises ConstructionError if theMinorRadius < 0.0 or if theMajorRadius < 0.0. + + """ + _gp.gp_Torus_swiginit(self, _gp.new_gp_Torus(*args)) + + def Area(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Computes the area of the torus. + + """ + return _gp.gp_Torus_Area(self, *args) + + def Axis(self, *args): + r""" + Return + ------- + gp_Ax1 + + Description + ----------- + returns the symmetry axis of the torus. + + """ + return _gp.gp_Torus_Axis(self, *args) + + def Coefficients(self, *args): + r""" + + Parameters + ---------- + theCoef: TColStd_Array1OfReal + + Return + ------- + None + + Description + ----------- + Computes the coefficients of the implicit equation of the surface in the absolute Cartesian coordinate system: @code Coef(1) * X^4 + Coef(2) * Y^4 + Coef(3) * Z^4 + Coef(4) * X^3 * Y + Coef(5) * X^3 * Z + Coef(6) * Y^3 * X + Coef(7) * Y^3 * Z + Coef(8) * Z^3 * X + Coef(9) * Z^3 * Y + Coef(10) * X^2 * Y^2 + Coef(11) * X^2 * Z^2 + Coef(12) * Y^2 * Z^2 + Coef(13) * X^2 * Y * Z + Coef(14) * X * Y^2 * Z + Coef(15) * X * Y * Z^2 + Coef(16) * X^3 + Coef(17) * Y^3 + Coef(18) * Z^3 + Coef(19) * X^2 * Y + Coef(20) * X^2 * Z + Coef(21) * Y^2 * X + Coef(22) * Y^2 * Z + Coef(23) * Z^2 * X + Coef(24) * Z^2 * Y + Coef(25) * X * Y * Z + Coef(26) * X^2 + Coef(27) * Y^2 + Coef(28) * Z^2 + Coef(29) * X * Y + Coef(30) * X * Z + Coef(31) * Y * Z + Coef(32) * X + Coef(33) * Y + Coef(34) * Z + Coef(35) = 0.0 @endcode Raises DimensionError if the length of theCoef is lower than 35. + + """ + return _gp.gp_Torus_Coefficients(self, *args) + + def Direct(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + returns true if the Ax3, the local coordinate system of this torus, is right handed. + + """ + return _gp.gp_Torus_Direct(self, *args) + + def Location(self, *args): + r""" + Return + ------- + gp_Pnt + + Description + ----------- + Returns the Torus's location. + + """ + return _gp.gp_Torus_Location(self, *args) + + def MajorRadius(self, *args): + r""" + Return + ------- + float + + Description + ----------- + returns the major radius of the torus. + + """ + return _gp.gp_Torus_MajorRadius(self, *args) + + def MinorRadius(self, *args): + r""" + Return + ------- + float + + Description + ----------- + returns the minor radius of the torus. + + """ + return _gp.gp_Torus_MinorRadius(self, *args) + + def Mirror(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theA1: gp_Ax1 + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theA2: gp_Ax2 + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Torus_Mirror(self, *args) + + def Mirrored(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + + Return + ------- + gp_Torus + + Description + ----------- + Performs the symmetrical transformation of a torus with respect to the point theP which is the center of the symmetry. + + Parameters + ---------- + theA1: gp_Ax1 + + Return + ------- + gp_Torus + + Description + ----------- + Performs the symmetrical transformation of a torus with respect to an axis placement which is the axis of the symmetry. + + Parameters + ---------- + theA2: gp_Ax2 + + Return + ------- + gp_Torus + + Description + ----------- + Performs the symmetrical transformation of a torus with respect to a plane. The axis placement theA2 locates the plane of the of the symmetry: (Location, XDirection, YDirection). + + """ + return _gp.gp_Torus_Mirrored(self, *args) + + def Position(self, *args): + r""" + Return + ------- + gp_Ax3 + + Description + ----------- + Returns the local coordinates system of the torus. + + """ + return _gp.gp_Torus_Position(self, *args) + + def Rotate(self, *args): + r""" + + Parameters + ---------- + theA1: gp_Ax1 + theAng: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Torus_Rotate(self, *args) + + def Rotated(self, *args): + r""" + + Parameters + ---------- + theA1: gp_Ax1 + theAng: float + + Return + ------- + gp_Torus + + Description + ----------- + Rotates a torus. theA1 is the axis of the rotation. theAng is the angular value of the rotation in radians. + + """ + return _gp.gp_Torus_Rotated(self, *args) + + def Scale(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + theS: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Torus_Scale(self, *args) + + def Scaled(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + theS: float + + Return + ------- + gp_Torus + + Description + ----------- + Scales a torus. S is the scaling value. The absolute value of S is used to scale the torus. + + """ + return _gp.gp_Torus_Scaled(self, *args) + + def SetAxis(self, *args): + r""" + + Parameters + ---------- + theA1: gp_Ax1 + + Return + ------- + None + + Description + ----------- + Modifies this torus, by redefining its local coordinate system so that: - its origin and 'main Direction' become those of the axis theA1 (the 'X Direction' and 'Y Direction' are then recomputed). Raises ConstructionError if the direction of theA1 is parallel to the 'XDirection' of the coordinate system of the toroidal surface. + + """ + return _gp.gp_Torus_SetAxis(self, *args) + + def SetLocation(self, *args): + r""" + + Parameters + ---------- + theLoc: gp_Pnt + + Return + ------- + None + + Description + ----------- + Changes the location of the torus. + + """ + return _gp.gp_Torus_SetLocation(self, *args) + + def SetMajorRadius(self, *args): + r""" + + Parameters + ---------- + theMajorRadius: float + + Return + ------- + None + + Description + ----------- + Assigns value to the major radius of this torus. Raises ConstructionError if theMajorRadius - MinorRadius <= Resolution(). + + """ + return _gp.gp_Torus_SetMajorRadius(self, *args) + + def SetMinorRadius(self, *args): + r""" + + Parameters + ---------- + theMinorRadius: float + + Return + ------- + None + + Description + ----------- + Assigns value to the minor radius of this torus. Raises ConstructionError if theMinorRadius < 0.0 or if MajorRadius - theMinorRadius <= Resolution from gp. + + """ + return _gp.gp_Torus_SetMinorRadius(self, *args) + + def SetPosition(self, *args): + r""" + + Parameters + ---------- + theA3: gp_Ax3 + + Return + ------- + None + + Description + ----------- + Changes the local coordinate system of the surface. + + """ + return _gp.gp_Torus_SetPosition(self, *args) + + def Transform(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Torus_Transform(self, *args) + + def Transformed(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf + + Return + ------- + gp_Torus + + Description + ----------- + Transforms a torus with the transformation theT from class Trsf. + + """ + return _gp.gp_Torus_Transformed(self, *args) + + def Translate(self, *args): + r""" + + Parameters + ---------- + theV: gp_Vec + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theP1: gp_Pnt + theP2: gp_Pnt + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Torus_Translate(self, *args) + + def Translated(self, *args): + r""" + + Parameters + ---------- + theV: gp_Vec + + Return + ------- + gp_Torus + + Description + ----------- + Translates a torus in the direction of the vector theV. The magnitude of the translation is the vector's magnitude. + + Parameters + ---------- + theP1: gp_Pnt + theP2: gp_Pnt + + Return + ------- + gp_Torus + + Description + ----------- + Translates a torus from the point theP1 to the point theP2. + + """ + return _gp.gp_Torus_Translated(self, *args) + + def UReverse(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Reverses the U parametrization of the torus reversing the YAxis. + + """ + return _gp.gp_Torus_UReverse(self, *args) + + def VReverse(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Reverses the V parametrization of the torus reversing the ZAxis. + + """ + return _gp.gp_Torus_VReverse(self, *args) + + def Volume(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Computes the volume of the torus. + + """ + return _gp.gp_Torus_Volume(self, *args) + + def XAxis(self, *args): + r""" + Return + ------- + gp_Ax1 + + Description + ----------- + returns the axis X of the torus. + + """ + return _gp.gp_Torus_XAxis(self, *args) + + def YAxis(self, *args): + r""" + Return + ------- + gp_Ax1 + + Description + ----------- + returns the axis Y of the torus. + + """ + return _gp.gp_Torus_YAxis(self, *args) + + def __getstate__(self): + return self.DumpJson() + + + def __setstate__(self, state): + inst = gp_Torus() + if inst.InitFromJson(state): + self.this = inst.this + else: + raise IOError('Failed to set state of gp_Torus') + + + __repr__ = _dumps_object + + __swig_destroy__ = _gp.delete_gp_Torus + +# Register gp_Torus in _gp: +_gp.gp_Torus_swigregister(gp_Torus) +class gp_Trsf(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 + ----------- + Returns the identity transformation. + + Parameters + ---------- + theT: gp_Trsf2d + + Return + ------- + None + + Description + ----------- + Creates a 3D transformation from the 2D transformation theT. The resulting transformation has a homogeneous vectorial part, V3, and a translation part, T3, built from theT: a11 a12 0 a13 V3 = a21 a22 0 T3 = a23 0 0 1. 0 It also has the same scale factor as theT. This guarantees (by projection) that the transformation which would be performed by theT in a plane (2D space) is performed by the resulting transformation in the xOy plane of the 3D space, (i.e. in the plane defined by the origin (0., 0., 0.) and the vectors DX (1., 0., 0.), and DY (0., 1., 0.)). The scale factor is applied to the entire space. + + """ + _gp.gp_Trsf_swiginit(self, _gp.new_gp_Trsf(*args)) + + def DumpJson(self, depth=-1): + r""" + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + """ + return _gp.gp_Trsf_DumpJson(self, depth) + + def Form(self, *args): + r""" + Return + ------- + gp_TrsfForm + + Description + ----------- + Returns the nature of the transformation. It can be: an identity transformation, a rotation, a translation, a mirror transformation (relative to a point, an axis or a plane), a scaling transformation, or a compound transformation. + + """ + return _gp.gp_Trsf_Form(self, *args) + + def GetRotation(self, *args): + r""" + + Parameters + ---------- + theAxis: gp_XYZ + + Return + ------- + theAngle: float + + Description + ----------- + Returns the boolean True if there is non-zero rotation. In the presence of rotation, the output parameters store the axis and the angle of rotation. The method always returns positive value 'theAngle', i.e., 0. < theAngle <= PI. Note that this rotation is defined only by the vectorial part of the transformation; generally you would need to check also the translational part to obtain the axis (gp_Ax1) of rotation. + Return + ------- + gp_Quaternion + + Description + ----------- + Returns quaternion representing rotational part of the transformation. + + """ + return _gp.gp_Trsf_GetRotation(self, *args) + + def HVectorialPart(self, *args): + r""" + Return + ------- + gp_Mat + + Description + ----------- + Computes the homogeneous vectorial part of the transformation. It is a 3*3 matrix which doesn't include the scale factor. In other words, the vectorial part of this transformation is equal to its homogeneous vectorial part, multiplied by the scale factor. The coefficients of this matrix must be multiplied by the scale factor to obtain the coefficients of the transformation. + + """ + return _gp.gp_Trsf_HVectorialPart(self, *args) + + def InitFromJson(self, json_string): + r""" + + Parameters + ---------- + json_string: the string + + Return + ------- + bool + + Description + ----------- + Init the object from a JSON string. + + """ + return _gp.gp_Trsf_InitFromJson(self, json_string) + + def Invert(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Trsf_Invert(self, *args) + + def Inverted(self, *args): + r""" + Return + ------- + gp_Trsf + + Description + ----------- + Computes the reverse transformation Raises an exception if the matrix of the transformation is not inversible, it means that the scale factor is lower or equal to Resolution from package gp. Computes the transformation composed with T and . In a C++ implementation you can also write Tcomposed = * T. Example: @code gp_Trsf T1, T2, Tcomp; ............... Tcomp = T2.Multiplied(T1); // or (Tcomp = T2 * T1) gp_Pnt P1(10.,3.,4.); gp_Pnt P2 = P1.Transformed(Tcomp); // using Tcomp gp_Pnt P3 = P1.Transformed(T1); // using T1 then T2 P3.Transform(T2); // P3 = P2 !!! @endcode. + + """ + return _gp.gp_Trsf_Inverted(self, *args) + + def IsNegative(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns true if the determinant of the vectorial part of this transformation is negative. + + """ + return _gp.gp_Trsf_IsNegative(self, *args) + + def Multiplied(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf + + Return + ------- + gp_Trsf + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Trsf_Multiplied(self, *args) + + def Multiply(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf + + Return + ------- + None + + Description + ----------- + Computes the transformation composed with and theT. = * theT. + + """ + return _gp.gp_Trsf_Multiply(self, *args) + + def Power(self, *args): + r""" + + Parameters + ---------- + theN: int + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Trsf_Power(self, *args) + + def Powered(self, *args): + r""" + + Parameters + ---------- + theN: int + + Return + ------- + gp_Trsf + + Description + ----------- + Computes the following composition of transformations * * .......* , theN time. if theN = 0 = Identity if theN < 0 = .Inverse() *...........* .Inverse(). //! Raises if theN < 0 and if the matrix of the transformation not inversible. + + """ + return _gp.gp_Trsf_Powered(self, *args) + + def PreMultiply(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf + + Return + ------- + None + + Description + ----------- + Computes the transformation composed with and T. = theT * . + + """ + return _gp.gp_Trsf_PreMultiply(self, *args) + + def ScaleFactor(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns the scale factor. + + """ + return _gp.gp_Trsf_ScaleFactor(self, *args) + + def SetDisplacement(self, *args): + r""" + + Parameters + ---------- + theFromSystem1: gp_Ax3 + theToSystem2: gp_Ax3 + + Return + ------- + None + + Description + ----------- + Modifies this transformation so that it transforms the coordinate system defined by theFromSystem1 into the one defined by theToSystem2. After this modification, this transformation transforms: - the origin of theFromSystem1 into the origin of theToSystem2, - the 'X Direction' of theFromSystem1 into the 'X Direction' of theToSystem2, - the 'Y Direction' of theFromSystem1 into the 'Y Direction' of theToSystem2, and - the 'main Direction' of theFromSystem1 into the 'main Direction' of theToSystem2. Warning When you know the coordinates of a point in one coordinate system and you want to express these coordinates in another one, do not use the transformation resulting from this function. Use the transformation that results from SetTransformation instead. SetDisplacement and SetTransformation create related transformations: the vectorial part of one is the inverse of the vectorial part of the other. + + """ + return _gp.gp_Trsf_SetDisplacement(self, *args) + + def SetForm(self, *args): + r""" + + Parameters + ---------- + theP: gp_TrsfForm + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Trsf_SetForm(self, *args) + + def SetMirror(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + + Return + ------- + None + + Description + ----------- + Makes the transformation into a symmetrical transformation. theP is the center of the symmetry. + + Parameters + ---------- + theA1: gp_Ax1 + + Return + ------- + None + + Description + ----------- + Makes the transformation into a symmetrical transformation. theA1 is the center of the axial symmetry. + + Parameters + ---------- + theA2: gp_Ax2 + + Return + ------- + None + + Description + ----------- + Makes the transformation into a symmetrical transformation. theA2 is the center of the planar symmetry and defines the plane of symmetry by its origin, 'X Direction' and 'Y Direction'. + + """ + return _gp.gp_Trsf_SetMirror(self, *args) + + def SetRotation(self, *args): + r""" + + Parameters + ---------- + theA1: gp_Ax1 + theAng: float + + Return + ------- + None + + Description + ----------- + Changes the transformation into a rotation. theA1 is the rotation axis and theAng is the angular value of the rotation in radians. + + Parameters + ---------- + theR: gp_Quaternion + + Return + ------- + None + + Description + ----------- + Changes the transformation into a rotation defined by quaternion. Note that rotation is performed around origin, i.e. no translation is involved. + + """ + return _gp.gp_Trsf_SetRotation(self, *args) + + def SetRotationPart(self, *args): + r""" + + Parameters + ---------- + theR: gp_Quaternion + + Return + ------- + None + + Description + ----------- + Replaces the rotation part with specified quaternion. + + """ + return _gp.gp_Trsf_SetRotationPart(self, *args) + + def SetScale(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt + theS: float + + Return + ------- + None + + Description + ----------- + Changes the transformation into a scale. theP is the center of the scale and theS is the scaling value. Raises ConstructionError If is null. + + """ + return _gp.gp_Trsf_SetScale(self, *args) + + def SetScaleFactor(self, *args): + r""" + + Parameters + ---------- + theS: float + + Return + ------- + None + + Description + ----------- + Modifies the scale factor. Raises ConstructionError If theS is null. + + """ + return _gp.gp_Trsf_SetScaleFactor(self, *args) + + def SetTransformation(self, *args): + r""" + + Parameters + ---------- + theFromSystem1: gp_Ax3 + theToSystem2: gp_Ax3 + + Return + ------- + None + + Description + ----------- + Modifies this transformation so that it transforms the coordinates of any point, (x, y, z), relative to a source coordinate system into the coordinates (x', y', z') which are relative to a target coordinate system, but which represent the same point The transformation is from the coordinate system 'theFromSystem1' to the coordinate system 'theToSystem2'. Example: @code gp_Ax3 theFromSystem1, theToSystem2; double x1, y1, z1; // are the coordinates of a point in the local system theFromSystem1 double x2, y2, z2; // are the coordinates of a point in the local system theToSystem2 gp_Pnt P1 (x1, y1, z1) gp_Trsf T; T.SetTransformation (theFromSystem1, theToSystem2); gp_Pnt P2 = P1.Transformed (T); P2.Coord (x2, y2, z2); @endcode. + + Parameters + ---------- + theToSystem: gp_Ax3 + + Return + ------- + None + + Description + ----------- + Modifies this transformation so that it transforms the coordinates of any point, (x, y, z), relative to a source coordinate system into the coordinates (x', y', z') which are relative to a target coordinate system, but which represent the same point The transformation is from the default coordinate system @code {P(0.,0.,0.), VX (1.,0.,0.), VY (0.,1.,0.), VZ (0., 0. ,1.) } @endcode to the local coordinate system defined with the Ax3 theToSystem. Use in the same way as the previous method. FromSystem1 is defaulted to the absolute coordinate system. + + Parameters + ---------- + R: gp_Quaternion + theT: gp_Vec + + Return + ------- + None + + Description + ----------- + Sets transformation by directly specified rotation and translation. + + """ + return _gp.gp_Trsf_SetTransformation(self, *args) + + def SetTranslation(self, *args): + r""" + + Parameters + ---------- + theV: gp_Vec + + Return + ------- + None + + Description + ----------- + Changes the transformation into a translation. theV is the vector of the translation. + + Parameters + ---------- + theP1: gp_Pnt + theP2: gp_Pnt + + Return + ------- + None + + Description + ----------- + Makes the transformation into a translation where the translation vector is the vector (theP1, theP2) defined from point theP1 to point theP2. + + """ + return _gp.gp_Trsf_SetTranslation(self, *args) + + def SetTranslationPart(self, *args): + r""" + + Parameters + ---------- + theV: gp_Vec + + Return + ------- + None + + Description + ----------- + Replaces the translation vector with the vector theV. + + """ + return _gp.gp_Trsf_SetTranslationPart(self, *args) + + def SetValues(self, *args): + r""" + + Parameters + ---------- + a11: float + a12: float + a13: float + a14: float + a21: float + a22: float + a23: float + a24: float + a31: float + a32: float + a33: float + a34: float + + Return + ------- + None + + Description + ----------- + Sets the coefficients of the transformation. The transformation of the point x,y,z is the point x',y',z' with: @code x' = a11 x + a12 y + a13 z + a14 y' = a21 x + a22 y + a23 z + a24 z' = a31 x + a32 y + a33 z + a34 @endcode The method Value(i,j) will return aij. Raises ConstructionError if the determinant of the aij is null. The matrix is orthogonalized before future using. + + """ + return _gp.gp_Trsf_SetValues(self, *args) + + def Transforms(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + theX: float + theY: float + theZ: float + + Description + ----------- + No available documentation. + + Parameters + ---------- + theCoord: gp_XYZ + + Return + ------- + None + + Description + ----------- + Transformation of a triplet XYZ with a Trsf. + + """ + return _gp.gp_Trsf_Transforms(self, *args) + + def TranslationPart(self, *args): + r""" + Return + ------- + gp_XYZ + + Description + ----------- + Returns the translation part of the transformation's matrix. + + """ + return _gp.gp_Trsf_TranslationPart(self, *args) + + def Value(self, *args): + r""" + + Parameters + ---------- + theRow: int + theCol: int + + Return + ------- + float + + Description + ----------- + Returns the coefficients of the transformation's matrix. It is a 3 rows * 4 columns matrix. This coefficient includes the scale factor. Raises OutOfRanged if theRow < 1 or theRow > 3 or theCol < 1 or theCol > 4. + + """ + return _gp.gp_Trsf_Value(self, *args) + + def VectorialPart(self, *args): + r""" + Return + ------- + gp_Mat + + Description + ----------- + Returns the vectorial part of the transformation. It is a 3*3 matrix which includes the scale factor. + + """ + return _gp.gp_Trsf_VectorialPart(self, *args) + + def __mul__(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf + + Return + ------- + gp_Trsf + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Trsf___mul__(self, *args) + + def __imul_wrapper__(self, other): + return _gp.gp_Trsf___imul_wrapper__(self, other) + + def __imul__(self, right): + self.__imul_wrapper__(right) + return self + + + def __getstate__(self): + return self.DumpJson() + + + def __setstate__(self, state): + inst = gp_Trsf() + if inst.InitFromJson(state): + self.this = inst.this + else: + raise IOError('Failed to set state of gp_Trsf') + + + __repr__ = _dumps_object + + __swig_destroy__ = _gp.delete_gp_Trsf + +# Register gp_Trsf in _gp: +_gp.gp_Trsf_swigregister(gp_Trsf) +class gp_Trsf2d(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 + ----------- + Returns identity transformation. + + Parameters + ---------- + theT: gp_Trsf + + Return + ------- + None + + Description + ----------- + Creates a 2d transformation in the XY plane from a 3d transformation . + + """ + _gp.gp_Trsf2d_swiginit(self, _gp.new_gp_Trsf2d(*args)) + + def Form(self, *args): + r""" + Return + ------- + gp_TrsfForm + + Description + ----------- + Returns the nature of the transformation. It can be an identity transformation, a rotation, a translation, a mirror (relative to a point or an axis), a scaling transformation, or a compound transformation. + + """ + return _gp.gp_Trsf2d_Form(self, *args) + + def HVectorialPart(self, *args): + r""" + Return + ------- + gp_Mat2d + + Description + ----------- + Returns the homogeneous vectorial part of the transformation. It is a 2*2 matrix which doesn't include the scale factor. The coefficients of this matrix must be multiplied by the scale factor to obtain the coefficients of the transformation. + + """ + return _gp.gp_Trsf2d_HVectorialPart(self, *args) + + def Invert(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Trsf2d_Invert(self, *args) + + def Inverted(self, *args): + r""" + Return + ------- + gp_Trsf2d + + Description + ----------- + Computes the reverse transformation. Raises an exception if the matrix of the transformation is not inversible, it means that the scale factor is lower or equal to Resolution from package gp. + + """ + return _gp.gp_Trsf2d_Inverted(self, *args) + + def IsNegative(self, *args): + r""" + Return + ------- + bool + + Description + ----------- + Returns true if the determinant of the vectorial part of this transformation is negative.. + + """ + return _gp.gp_Trsf2d_IsNegative(self, *args) + + def Multiplied(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf2d + + Return + ------- + gp_Trsf2d + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Trsf2d_Multiplied(self, *args) + + def Multiply(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf2d + + Return + ------- + None + + Description + ----------- + Computes the transformation composed from and theT. = * theT. + + """ + return _gp.gp_Trsf2d_Multiply(self, *args) + + def Power(self, *args): + r""" + + Parameters + ---------- + theN: int + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Trsf2d_Power(self, *args) + + def Powered(self, *args): + r""" + + Parameters + ---------- + theN: int + + Return + ------- + gp_Trsf2d + + Description + ----------- + Computes the following composition of transformations * * .......* , theN time. if theN = 0 = Identity if theN < 0 = .Inverse() *...........* .Inverse(). //! Raises if theN < 0 and if the matrix of the transformation not inversible. + + """ + return _gp.gp_Trsf2d_Powered(self, *args) + + def PreMultiply(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf2d + + Return + ------- + None + + Description + ----------- + Computes the transformation composed from and theT. = theT * . + + """ + return _gp.gp_Trsf2d_PreMultiply(self, *args) + + def RotationPart(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns the angle corresponding to the rotational component of the transformation matrix (operation opposite to SetRotation()). + + """ + return _gp.gp_Trsf2d_RotationPart(self, *args) + + def ScaleFactor(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns the scale factor. + + """ + return _gp.gp_Trsf2d_ScaleFactor(self, *args) + + def SetMirror(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + Changes the transformation into a symmetrical transformation. theP is the center of the symmetry. + + Parameters + ---------- + theA: gp_Ax2d + + Return + ------- + None + + Description + ----------- + Changes the transformation into a symmetrical transformation. theA is the center of the axial symmetry. + + """ + return _gp.gp_Trsf2d_SetMirror(self, *args) + + def SetRotation(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + theAng: float + + Return + ------- + None + + Description + ----------- + Changes the transformation into a rotation. theP is the rotation's center and theAng is the angular value of the rotation in radian. + + """ + return _gp.gp_Trsf2d_SetRotation(self, *args) + + def SetScale(self, *args): + r""" + + Parameters + ---------- + theP: gp_Pnt2d + theS: float + + Return + ------- + None + + Description + ----------- + Changes the transformation into a scale. theP is the center of the scale and theS is the scaling value. + + """ + return _gp.gp_Trsf2d_SetScale(self, *args) + + def SetScaleFactor(self, *args): + r""" + + Parameters + ---------- + theS: float + + Return + ------- + None + + Description + ----------- + Modifies the scale factor. + + """ + return _gp.gp_Trsf2d_SetScaleFactor(self, *args) + + def SetTransformation(self, *args): + r""" + + Parameters + ---------- + theFromSystem1: gp_Ax2d + theToSystem2: gp_Ax2d + + Return + ------- + None + + Description + ----------- + Changes a transformation allowing passage from the coordinate system 'theFromSystem1' to the coordinate system 'theToSystem2'. + + Parameters + ---------- + theToSystem: gp_Ax2d + + Return + ------- + None + + Description + ----------- + Changes the transformation allowing passage from the basic coordinate system {P(0.,0.,0.), VX (1.,0.,0.), VY (0.,1.,0.)} to the local coordinate system defined with the Ax2d theToSystem. + + """ + return _gp.gp_Trsf2d_SetTransformation(self, *args) + + def SetTranslation(self, *args): + r""" + + Parameters + ---------- + theV: gp_Vec2d + + Return + ------- + None + + Description + ----------- + Changes the transformation into a translation. theV is the vector of the translation. + + Parameters + ---------- + theP1: gp_Pnt2d + theP2: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + Makes the transformation into a translation from the point theP1 to the point theP2. + + """ + return _gp.gp_Trsf2d_SetTranslation(self, *args) + + def SetTranslationPart(self, *args): + r""" + + Parameters + ---------- + theV: gp_Vec2d + + Return + ------- + None + + Description + ----------- + Replaces the translation vector with theV. + + """ + return _gp.gp_Trsf2d_SetTranslationPart(self, *args) + + def SetValues(self, *args): + r""" + + Parameters + ---------- + a11: float + a12: float + a13: float + a21: float + a22: float + a23: float + + Return + ------- + None + + Description + ----------- + Sets the coefficients of the transformation. The transformation of the point x,y is the point x',y' with: @code x' = a11 x + a12 y + a13 y' = a21 x + a22 y + a23 @endcode The method Value(i,j) will return aij. Raises ConstructionError if the determinant of the aij is null. If the matrix as not a uniform scale it will be orthogonalized before future using. + + """ + return _gp.gp_Trsf2d_SetValues(self, *args) + + def Transforms(self, *args): + r""" + + Parameters + ---------- + + Return + ------- + theX: float + theY: float + + Description + ----------- + No available documentation. + + Parameters + ---------- + theCoord: gp_XY + + Return + ------- + None + + Description + ----------- + Transforms a doublet XY with a Trsf2d. + + """ + return _gp.gp_Trsf2d_Transforms(self, *args) + + def TranslationPart(self, *args): + r""" + Return + ------- + gp_XY + + Description + ----------- + Returns the translation part of the transformation's matrix. + + """ + return _gp.gp_Trsf2d_TranslationPart(self, *args) + + def Value(self, *args): + r""" + + Parameters + ---------- + theRow: int + theCol: int + + Return + ------- + float + + Description + ----------- + Returns the coefficients of the transformation's matrix. It is a 2 rows * 3 columns matrix. Raises OutOfRange if theRow < 1 or theRow > 2 or theCol < 1 or theCol > 3. + + """ + return _gp.gp_Trsf2d_Value(self, *args) + + def VectorialPart(self, *args): + r""" + Return + ------- + gp_Mat2d + + Description + ----------- + Returns the vectorial part of the transformation. It is a 2*2 matrix which includes the scale factor. + + """ + return _gp.gp_Trsf2d_VectorialPart(self, *args) + + def __mul__(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf2d + + Return + ------- + gp_Trsf2d + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Trsf2d___mul__(self, *args) + + def __imul_wrapper__(self, other): + return _gp.gp_Trsf2d___imul_wrapper__(self, other) + + def __imul__(self, right): + self.__imul_wrapper__(right) + return self + + + def __getstate__(self): + return self.DumpJson() + + + def __setstate__(self, state): + inst = gp_Trsf2d() + if inst.InitFromJson(state): + self.this = inst.this + else: + raise IOError('Failed to set state of gp_Trsf2d') + + + __repr__ = _dumps_object + + __swig_destroy__ = _gp.delete_gp_Trsf2d + +# Register gp_Trsf2d in _gp: +_gp.gp_Trsf2d_swigregister(gp_Trsf2d) +class gp_Vec(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 + ----------- + Creates a zero vector. + + Parameters + ---------- + theV: gp_Dir + + Return + ------- + None + + Description + ----------- + Creates a unitary vector from a direction theV. + + Parameters + ---------- + theCoord: gp_XYZ + + Return + ------- + None + + Description + ----------- + Creates a vector with a triplet of coordinates. + + Parameters + ---------- + theXv: float + theYv: float + theZv: float + + Return + ------- + None + + Description + ----------- + Creates a point with its three cartesian coordinates. + + Parameters + ---------- + theP1: gp_Pnt + theP2: gp_Pnt + + Return + ------- + None + + Description + ----------- + Creates a vector from two points. The length of the vector is the distance between theP1 and theP2. + + """ + _gp.gp_Vec_swiginit(self, _gp.new_gp_Vec(*args)) + + def Add(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Vec + + Return + ------- + None + + Description + ----------- + Adds two vectors. + + """ + return _gp.gp_Vec_Add(self, *args) + + def Added(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Vec + + Return + ------- + gp_Vec + + Description + ----------- + Adds two vectors. + + """ + return _gp.gp_Vec_Added(self, *args) + + def Angle(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Vec + + Return + ------- + float + + Description + ----------- + Computes the angular value between and Returns the angle value between 0 and PI in radian. Raises VectorWithNullMagnitude if .Magnitude() <= Resolution from gp or theOther.Magnitude() <= Resolution because the angular value is indefinite if one of the vectors has a null magnitude. + + """ + return _gp.gp_Vec_Angle(self, *args) + + def AngleWithRef(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Vec + theVRef: gp_Vec + + Return + ------- + float + + Description + ----------- + Computes the angle, in radians, between this vector and vector theOther. The result is a value between -Pi and Pi. For this, theVRef defines the positive sense of rotation: the angular value is positive, if the cross product this ^ theOther has the same orientation as theVRef relative to the plane defined by the vectors this and theOther. Otherwise, the angular value is negative. Exceptions gp_VectorWithNullMagnitude if the magnitude of this vector, the vector theOther, or the vector theVRef is less than or equal to gp::Resolution(). Standard_DomainError if this vector, the vector theOther, and the vector theVRef are coplanar, unless this vector and the vector theOther are parallel. + + """ + return _gp.gp_Vec_AngleWithRef(self, *args) + + def Coord(self, *args): + r""" + + Parameters + ---------- + theIndex: int + + Return + ------- + float + + Description + ----------- + Returns the coordinate of range theIndex: theIndex = 1 => X is returned theIndex = 2 => Y is returned theIndex = 3 => Z is returned Raised if theIndex != {1, 2, 3}. + + Parameters + ---------- + + Return + ------- + theXv: float + theYv: float + theZv: float + + Description + ----------- + For this vector returns its three coordinates theXv, theYv, and theZv inline. + + """ + return _gp.gp_Vec_Coord(self, *args) + + def Cross(self, *args): + r""" + + Parameters + ---------- + theRight: gp_Vec + + Return + ------- + None + + Description + ----------- + computes the cross product between two vectors. + + """ + return _gp.gp_Vec_Cross(self, *args) + + def CrossCross(self, *args): + r""" + + Parameters + ---------- + theV1: gp_Vec + theV2: gp_Vec + + Return + ------- + None + + Description + ----------- + Computes the triple vector product. ^= (theV1 ^ theV2). + + """ + return _gp.gp_Vec_CrossCross(self, *args) + + def CrossCrossed(self, *args): + r""" + + Parameters + ---------- + theV1: gp_Vec + theV2: gp_Vec + + Return + ------- + gp_Vec + + Description + ----------- + Computes the triple vector product. ^ (theV1 ^ theV2). + + """ + return _gp.gp_Vec_CrossCrossed(self, *args) + + def CrossMagnitude(self, *args): + r""" + + Parameters + ---------- + theRight: gp_Vec + + Return + ------- + float + + Description + ----------- + Computes the magnitude of the cross product between and theRight. Returns || ^ theRight ||. + + """ + return _gp.gp_Vec_CrossMagnitude(self, *args) + + def CrossSquareMagnitude(self, *args): + r""" + + Parameters + ---------- + theRight: gp_Vec + + Return + ------- + float + + Description + ----------- + Computes the square magnitude of the cross product between and theRight. Returns || ^ theRight ||**2. + + """ + return _gp.gp_Vec_CrossSquareMagnitude(self, *args) + + def Crossed(self, *args): + r""" + + Parameters + ---------- + theRight: gp_Vec + + Return + ------- + gp_Vec + + Description + ----------- + computes the cross product between two vectors. + + """ + return _gp.gp_Vec_Crossed(self, *args) + + def Divide(self, *args): + r""" + + Parameters + ---------- + theScalar: float + + Return + ------- + None + + Description + ----------- + Divides a vector by a scalar. + + """ + return _gp.gp_Vec_Divide(self, *args) + + def Divided(self, *args): + r""" + + Parameters + ---------- + theScalar: float + + Return + ------- + gp_Vec + + Description + ----------- + Divides a vector by a scalar. + + """ + return _gp.gp_Vec_Divided(self, *args) + + def Dot(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Vec + + Return + ------- + float + + Description + ----------- + computes the scalar product. + + """ + return _gp.gp_Vec_Dot(self, *args) + + def DotCross(self, *args): + r""" + + Parameters + ---------- + theV1: gp_Vec + theV2: gp_Vec + + Return + ------- + float + + Description + ----------- + Computes the triple scalar product * (theV1 ^ theV2). + + """ + return _gp.gp_Vec_DotCross(self, *args) + + def DumpJson(self, depth=-1): + r""" + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + """ + return _gp.gp_Vec_DumpJson(self, depth) + + def IsEqual(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Vec + theLinearTolerance: float + theAngularTolerance: float + + Return + ------- + bool + + Description + ----------- + Returns True if the two vectors have the same magnitude value and the same direction. The precision values are theLinearTolerance for the magnitude and theAngularTolerance for the direction. + + """ + return _gp.gp_Vec_IsEqual(self, *args) + + def IsNormal(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Vec + theAngularTolerance: float + + Return + ------- + bool + + Description + ----------- + Returns True if abs(.Angle(theOther) - PI/2.) <= theAngularTolerance Raises VectorWithNullMagnitude if .Magnitude() <= Resolution or theOther.Magnitude() <= Resolution from gp. + + """ + return _gp.gp_Vec_IsNormal(self, *args) + + def IsOpposite(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Vec + theAngularTolerance: float + + Return + ------- + bool + + Description + ----------- + Returns True if PI - .Angle(theOther) <= theAngularTolerance Raises VectorWithNullMagnitude if .Magnitude() <= Resolution or Other.Magnitude() <= Resolution from gp. + + """ + return _gp.gp_Vec_IsOpposite(self, *args) + + def IsParallel(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Vec + theAngularTolerance: float + + Return + ------- + bool + + Description + ----------- + Returns True if Angle(, theOther) <= theAngularTolerance or PI - Angle(, theOther) <= theAngularTolerance This definition means that two parallel vectors cannot define a plane but two vectors with opposite directions are considered as parallel. Raises VectorWithNullMagnitude if .Magnitude() <= Resolution or Other.Magnitude() <= Resolution from gp. + + """ + return _gp.gp_Vec_IsParallel(self, *args) + + def Magnitude(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Computes the magnitude of this vector. + + """ + return _gp.gp_Vec_Magnitude(self, *args) + + def Mirror(self, *args): + r""" + + Parameters + ---------- + theV: gp_Vec + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theA1: gp_Ax1 + + Return + ------- + None + + Description + ----------- + No available documentation. + + Parameters + ---------- + theA2: gp_Ax2 + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Vec_Mirror(self, *args) + + def Mirrored(self, *args): + r""" + + Parameters + ---------- + theV: gp_Vec + + Return + ------- + gp_Vec + + Description + ----------- + Performs the symmetrical transformation of a vector with respect to the vector theV which is the center of the symmetry. + + Parameters + ---------- + theA1: gp_Ax1 + + Return + ------- + gp_Vec + + Description + ----------- + Performs the symmetrical transformation of a vector with respect to an axis placement which is the axis of the symmetry. + + Parameters + ---------- + theA2: gp_Ax2 + + Return + ------- + gp_Vec + + Description + ----------- + Performs the symmetrical transformation of a vector with respect to a plane. The axis placement theA2 locates the plane of the symmetry: (Location, XDirection, YDirection). + + """ + return _gp.gp_Vec_Mirrored(self, *args) + + def Multiplied(self, *args): + r""" + + Parameters + ---------- + theScalar: float + + Return + ------- + gp_Vec + + Description + ----------- + Multiplies a vector by a scalar. + + """ + return _gp.gp_Vec_Multiplied(self, *args) + + def Multiply(self, *args): + r""" + + Parameters + ---------- + theScalar: float + + Return + ------- + None + + Description + ----------- + Multiplies a vector by a scalar. + + """ + return _gp.gp_Vec_Multiply(self, *args) + + def Normalize(self, *args): + r""" + Return + ------- + None + + Description + ----------- + normalizes a vector Raises an exception if the magnitude of the vector is lower or equal to Resolution from gp. + + """ + return _gp.gp_Vec_Normalize(self, *args) + + def Normalized(self, *args): + r""" + Return + ------- + gp_Vec + + Description + ----------- + normalizes a vector Raises an exception if the magnitude of the vector is lower or equal to Resolution from gp. + + """ + return _gp.gp_Vec_Normalized(self, *args) + + def Reverse(self, *args): + r""" + Return + ------- + None + + Description + ----------- + Reverses the direction of a vector. + + """ + return _gp.gp_Vec_Reverse(self, *args) + + def Reversed(self, *args): + r""" + Return + ------- + gp_Vec + + Description + ----------- + Reverses the direction of a vector. + + """ + return _gp.gp_Vec_Reversed(self, *args) + + def Rotate(self, *args): + r""" + + Parameters + ---------- + theA1: gp_Ax1 + theAng: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Vec_Rotate(self, *args) + + def Rotated(self, *args): + r""" + + Parameters + ---------- + theA1: gp_Ax1 + theAng: float + + Return + ------- + gp_Vec + + Description + ----------- + Rotates a vector. theA1 is the axis of the rotation. theAng is the angular value of the rotation in radians. + + """ + return _gp.gp_Vec_Rotated(self, *args) + + def Scale(self, *args): + r""" + + Parameters + ---------- + theS: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Vec_Scale(self, *args) + + def Scaled(self, *args): + r""" + + Parameters + ---------- + theS: float + + Return + ------- + gp_Vec + + Description + ----------- + Scales a vector. theS is the scaling value. + + """ + return _gp.gp_Vec_Scaled(self, *args) + + def SetCoord(self, *args): + r""" + + Parameters + ---------- + theIndex: int + theXi: float + + Return + ------- + None + + Description + ----------- + Changes the coordinate of range theIndex theIndex = 1 => X is modified theIndex = 2 => Y is modified theIndex = 3 => Z is modified Raised if theIndex != {1, 2, 3}. + + Parameters + ---------- + theXv: float + theYv: float + theZv: float + + Return + ------- + None + + Description + ----------- + For this vector, assigns - the values theXv, theYv and theZv to its three coordinates. + + """ + return _gp.gp_Vec_SetCoord(self, *args) + + def SetLinearForm(self, *args): + r""" + + Parameters + ---------- + theA1: float + theV1: gp_Vec + theA2: float + theV2: gp_Vec + theA3: float + theV3: gp_Vec + theV4: gp_Vec + + Return + ------- + None + + Description + ----------- + is set to the following linear form: theA1 * theV1 + theA2 * theV2 + theA3 * theV3 + theV4. + + Parameters + ---------- + theA1: float + theV1: gp_Vec + theA2: float + theV2: gp_Vec + theA3: float + theV3: gp_Vec + + Return + ------- + None + + Description + ----------- + is set to the following linear form: theA1 * theV1 + theA2 * theV2 + theA3 * theV3. + + Parameters + ---------- + theA1: float + theV1: gp_Vec + theA2: float + theV2: gp_Vec + theV3: gp_Vec + + Return + ------- + None + + Description + ----------- + is set to the following linear form: theA1 * theV1 + theA2 * theV2 + theV3. + + Parameters + ---------- + theA1: float + theV1: gp_Vec + theA2: float + theV2: gp_Vec + + Return + ------- + None + + Description + ----------- + is set to the following linear form: theA1 * theV1 + theA2 * theV2. + + Parameters + ---------- + theA1: float + theV1: gp_Vec + theV2: gp_Vec + + Return + ------- + None + + Description + ----------- + is set to the following linear form: theA1 * theV1 + theV2. + + Parameters + ---------- + theV1: gp_Vec + theV2: gp_Vec + + Return + ------- + None + + Description + ----------- + is set to the following linear form: theV1 + theV2. + + """ + return _gp.gp_Vec_SetLinearForm(self, *args) + + def SetX(self, *args): + r""" + + Parameters + ---------- + theX: float + + Return + ------- + None + + Description + ----------- + Assigns the given value to the X coordinate of this vector. + + """ + return _gp.gp_Vec_SetX(self, *args) + + def SetXYZ(self, *args): + r""" + + Parameters + ---------- + theCoord: gp_XYZ + + Return + ------- + None + + Description + ----------- + Assigns the three coordinates of theCoord to this vector. + + """ + return _gp.gp_Vec_SetXYZ(self, *args) + + def SetY(self, *args): + r""" + + Parameters + ---------- + theY: float + + Return + ------- + None + + Description + ----------- + Assigns the given value to the X coordinate of this vector. + + """ + return _gp.gp_Vec_SetY(self, *args) + + def SetZ(self, *args): + r""" + + Parameters + ---------- + theZ: float + + Return + ------- + None + + Description + ----------- + Assigns the given value to the X coordinate of this vector. + + """ + return _gp.gp_Vec_SetZ(self, *args) + + def SquareMagnitude(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Computes the square magnitude of this vector. + + """ + return _gp.gp_Vec_SquareMagnitude(self, *args) + + def Subtract(self, *args): + r""" + + Parameters + ---------- + theRight: gp_Vec + + Return + ------- + None + + Description + ----------- + Subtracts two vectors. + + """ + return _gp.gp_Vec_Subtract(self, *args) + + def Subtracted(self, *args): + r""" + + Parameters + ---------- + theRight: gp_Vec + + Return + ------- + gp_Vec + + Description + ----------- + Subtracts two vectors. + + """ + return _gp.gp_Vec_Subtracted(self, *args) + + def Transform(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf + + Return + ------- + None + + Description + ----------- + Transforms a vector with the transformation theT. + + """ + return _gp.gp_Vec_Transform(self, *args) + + def Transformed(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf + + Return + ------- + gp_Vec + + Description + ----------- + Transforms a vector with the transformation theT. + + """ + return _gp.gp_Vec_Transformed(self, *args) + + def X(self, *args): + r""" + Return + ------- + float + + Description + ----------- + For this vector, returns its X coordinate. + + """ + return _gp.gp_Vec_X(self, *args) + + def XYZ(self, *args): + r""" + Return + ------- + gp_XYZ + + Description + ----------- + For this vector, returns - its three coordinates as a number triple. + + """ + return _gp.gp_Vec_XYZ(self, *args) + + def Y(self, *args): + r""" + Return + ------- + float + + Description + ----------- + For this vector, returns its Y coordinate. + + """ + return _gp.gp_Vec_Y(self, *args) + + def Z(self, *args): + r""" + Return + ------- + float + + Description + ----------- + For this vector, returns its Z coordinate. + + """ + return _gp.gp_Vec_Z(self, *args) + + def __mul__(self, *args): + r""" + + Parameters + ---------- + theScalar: float + + Return + ------- + gp_Vec + + Description + ----------- + No available documentation. + + Parameters + ---------- + theOther: gp_Vec + + Return + ------- + float + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Vec___mul__(self, *args) + + def __imul_wrapper__(self, other): + return _gp.gp_Vec___imul_wrapper__(self, other) + + def __imul__(self, right): + self.__imul_wrapper__(right) + return self + + + def __add__(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Vec + + Return + ------- + gp_Vec + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Vec___add__(self, *args) + + def __iadd_wrapper__(self, other): + return _gp.gp_Vec___iadd_wrapper__(self, other) + + def __iadd__(self, right): + self.__iadd_wrapper__(right) + return self + + + def __sub__(self, *args): + r""" + + Parameters + ---------- + theRight: gp_Vec + + Return + ------- + gp_Vec + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Vec___sub__(self, *args) + + def __neg__(self, *args): + r""" + Return + ------- + gp_Vec + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Vec___neg__(self, *args) + + def __isub_wrapper__(self, other): + return _gp.gp_Vec___isub_wrapper__(self, other) + + def __isub__(self, right): + self.__isub_wrapper__(right) + return self + + + def __truediv__(self, *args): + return _gp.gp_Vec___truediv__(self, *args) + __div__ = __truediv__ + + + + def __itruediv_wrapper__(self, other): + return _gp.gp_Vec___itruediv_wrapper__(self, other) + + def __itruediv__(self, right): + self.__itruediv_wrapper__(right) + return self + + + def __getstate__(self): + return self.DumpJson() + + + def __setstate__(self, state): + inst = gp_Vec() + if inst.InitFromJson(state): + self.this = inst.this + else: + raise IOError('Failed to set state of gp_Vec') + + + __repr__ = _dumps_object + + __swig_destroy__ = _gp.delete_gp_Vec + +# Register gp_Vec in _gp: +_gp.gp_Vec_swigregister(gp_Vec) +class gp_Vec2d(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 + ----------- + Creates a zero vector. + + Parameters + ---------- + theV: gp_Dir2d + + Return + ------- + None + + Description + ----------- + Creates a unitary vector from a direction theV. + + Parameters + ---------- + theCoord: gp_XY + + Return + ------- + None + + Description + ----------- + Creates a vector with a doublet of coordinates. + + Parameters + ---------- + theXv: float + theYv: float + + Return + ------- + None + + Description + ----------- + Creates a point with its two Cartesian coordinates. + + Parameters + ---------- + theP1: gp_Pnt2d + theP2: gp_Pnt2d + + Return + ------- + None + + Description + ----------- + Creates a vector from two points. The length of the vector is the distance between theP1 and theP2. + + """ + _gp.gp_Vec2d_swiginit(self, _gp.new_gp_Vec2d(*args)) + + def Add(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Vec2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Vec2d_Add(self, *args) + + def Added(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Vec2d + + Return + ------- + gp_Vec2d + + Description + ----------- + Adds two vectors. + + """ + return _gp.gp_Vec2d_Added(self, *args) + + def Angle(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Vec2d + + Return + ------- + float + + Description + ----------- + Computes the angular value between and returns the angle value between -PI and PI in radian. The orientation is from to theOther. The positive sense is the trigonometric sense. Raises VectorWithNullMagnitude if .Magnitude() <= Resolution from gp or theOther.Magnitude() <= Resolution because the angular value is indefinite if one of the vectors has a null magnitude. + + """ + return _gp.gp_Vec2d_Angle(self, *args) + + def Coord(self, *args): + r""" + + Parameters + ---------- + theIndex: int + + Return + ------- + float + + Description + ----------- + Returns the coordinate of range theIndex: theIndex = 1 => X is returned theIndex = 2 => Y is returned Raised if theIndex != {1, 2}. + + Parameters + ---------- + + Return + ------- + theXv: float + theYv: float + + Description + ----------- + For this vector, returns its two coordinates theXv and theYv. + + """ + return _gp.gp_Vec2d_Coord(self, *args) + + def CrossMagnitude(self, *args): + r""" + + Parameters + ---------- + theRight: gp_Vec2d + + Return + ------- + float + + Description + ----------- + Computes the magnitude of the cross product between and theRight. Returns || ^ theRight ||. + + """ + return _gp.gp_Vec2d_CrossMagnitude(self, *args) + + def CrossSquareMagnitude(self, *args): + r""" + + Parameters + ---------- + theRight: gp_Vec2d + + Return + ------- + float + + Description + ----------- + Computes the square magnitude of the cross product between and theRight. Returns || ^ theRight ||**2. + + """ + return _gp.gp_Vec2d_CrossSquareMagnitude(self, *args) + + def Crossed(self, *args): + r""" + + Parameters + ---------- + theRight: gp_Vec2d + + Return + ------- + float + + Description + ----------- + Computes the crossing product between two vectors. + + """ + return _gp.gp_Vec2d_Crossed(self, *args) + + def Divide(self, *args): + r""" + + Parameters + ---------- + theScalar: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Vec2d_Divide(self, *args) + + def Divided(self, *args): + r""" + + Parameters + ---------- + theScalar: float + + Return + ------- + gp_Vec2d + + Description + ----------- + divides a vector by a scalar. + + """ + return _gp.gp_Vec2d_Divided(self, *args) + + def Dot(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Vec2d + + Return + ------- + float + + Description + ----------- + Computes the scalar product. + + """ + return _gp.gp_Vec2d_Dot(self, *args) + + def GetNormal(self, *args): + r""" + Return + ------- + gp_Vec2d + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Vec2d_GetNormal(self, *args) + + def IsEqual(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Vec2d + theLinearTolerance: float + theAngularTolerance: float + + Return + ------- + bool + + Description + ----------- + Returns True if the two vectors have the same magnitude value and the same direction. The precision values are theLinearTolerance for the magnitude and theAngularTolerance for the direction. + + """ + return _gp.gp_Vec2d_IsEqual(self, *args) + + def IsNormal(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Vec2d + theAngularTolerance: float + + Return + ------- + bool + + Description + ----------- + Returns True if abs(Abs(.Angle(theOther)) - PI/2.) <= theAngularTolerance Raises VectorWithNullMagnitude if .Magnitude() <= Resolution or theOther.Magnitude() <= Resolution from gp. + + """ + return _gp.gp_Vec2d_IsNormal(self, *args) + + def IsOpposite(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Vec2d + theAngularTolerance: float + + Return + ------- + bool + + Description + ----------- + Returns True if PI - Abs(.Angle(theOther)) <= theAngularTolerance Raises VectorWithNullMagnitude if .Magnitude() <= Resolution or theOther.Magnitude() <= Resolution from gp. + + """ + return _gp.gp_Vec2d_IsOpposite(self, *args) + + def IsParallel(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Vec2d + theAngularTolerance: float + + Return + ------- + bool + + Description + ----------- + Returns true if Abs(Angle(, theOther)) <= theAngularTolerance or PI - Abs(Angle(, theOther)) <= theAngularTolerance Two vectors with opposite directions are considered as parallel. Raises VectorWithNullMagnitude if .Magnitude() <= Resolution or theOther.Magnitude() <= Resolution from gp. + + """ + return _gp.gp_Vec2d_IsParallel(self, *args) + + def Magnitude(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Computes the magnitude of this vector. + + """ + return _gp.gp_Vec2d_Magnitude(self, *args) + + def Mirror(self, *args): + r""" + + Parameters + ---------- + theV: gp_Vec2d + + Return + ------- + None + + Description + ----------- + Performs the symmetrical transformation of a vector with respect to the vector theV which is the center of the symmetry. + + Parameters + ---------- + theA1: gp_Ax2d + + Return + ------- + None + + Description + ----------- + Performs the symmetrical transformation of a vector with respect to an axis placement which is the axis of the symmetry. + + """ + return _gp.gp_Vec2d_Mirror(self, *args) + + def Mirrored(self, *args): + r""" + + Parameters + ---------- + theV: gp_Vec2d + + Return + ------- + gp_Vec2d + + Description + ----------- + Performs the symmetrical transformation of a vector with respect to the vector theV which is the center of the symmetry. + + Parameters + ---------- + theA1: gp_Ax2d + + Return + ------- + gp_Vec2d + + Description + ----------- + Performs the symmetrical transformation of a vector with respect to an axis placement which is the axis of the symmetry. + + """ + return _gp.gp_Vec2d_Mirrored(self, *args) + + def Multiplied(self, *args): + r""" + + Parameters + ---------- + theScalar: float + + Return + ------- + gp_Vec2d + + Description + ----------- + Normalizes a vector Raises an exception if the magnitude of the vector is lower or equal to Resolution from package gp. + + """ + return _gp.gp_Vec2d_Multiplied(self, *args) + + def Multiply(self, *args): + r""" + + Parameters + ---------- + theScalar: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Vec2d_Multiply(self, *args) + + def Normalize(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Vec2d_Normalize(self, *args) + + def Normalized(self, *args): + r""" + Return + ------- + gp_Vec2d + + Description + ----------- + Normalizes a vector Raises an exception if the magnitude of the vector is lower or equal to Resolution from package gp. Reverses the direction of a vector. + + """ + return _gp.gp_Vec2d_Normalized(self, *args) + + def Reverse(self, *args): + r""" + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Vec2d_Reverse(self, *args) + + def Reversed(self, *args): + r""" + Return + ------- + gp_Vec2d + + Description + ----------- + Reverses the direction of a vector. + + """ + return _gp.gp_Vec2d_Reversed(self, *args) + + def Rotate(self, *args): + r""" + + Parameters + ---------- + theAng: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Vec2d_Rotate(self, *args) + + def Rotated(self, *args): + r""" + + Parameters + ---------- + theAng: float + + Return + ------- + gp_Vec2d + + Description + ----------- + Rotates a vector. theAng is the angular value of the rotation in radians. + + """ + return _gp.gp_Vec2d_Rotated(self, *args) + + def Scale(self, *args): + r""" + + Parameters + ---------- + theS: float + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Vec2d_Scale(self, *args) + + def Scaled(self, *args): + r""" + + Parameters + ---------- + theS: float + + Return + ------- + gp_Vec2d + + Description + ----------- + Scales a vector. theS is the scaling value. + + """ + return _gp.gp_Vec2d_Scaled(self, *args) + + def SetCoord(self, *args): + r""" + + Parameters + ---------- + theIndex: int + theXi: float + + Return + ------- + None + + Description + ----------- + Changes the coordinate of range theIndex theIndex = 1 => X is modified theIndex = 2 => Y is modified Raises OutOfRange if theIndex != {1, 2}. + + Parameters + ---------- + theXv: float + theYv: float + + Return + ------- + None + + Description + ----------- + For this vector, assigns the values theXv and theYv to its two coordinates. + + """ + return _gp.gp_Vec2d_SetCoord(self, *args) + + def SetLinearForm(self, *args): + r""" + + Parameters + ---------- + theA1: float + theV1: gp_Vec2d + theA2: float + theV2: gp_Vec2d + theV3: gp_Vec2d + + Return + ------- + None + + Description + ----------- + is set to the following linear form: theA1 * theV1 + theA2 * theV2 + theV3. + + Parameters + ---------- + theA1: float + theV1: gp_Vec2d + theA2: float + theV2: gp_Vec2d + + Return + ------- + None + + Description + ----------- + is set to the following linear form: theA1 * theV1 + theA2 * theV2. + + Parameters + ---------- + theA1: float + theV1: gp_Vec2d + theV2: gp_Vec2d + + Return + ------- + None + + Description + ----------- + is set to the following linear form: theA1 * theV1 + theV2. + + Parameters + ---------- + theV1: gp_Vec2d + theV2: gp_Vec2d + + Return + ------- + None + + Description + ----------- + is set to the following linear form: theV1 + theV2. + + """ + return _gp.gp_Vec2d_SetLinearForm(self, *args) + + def SetX(self, *args): + r""" + + Parameters + ---------- + theX: float + + Return + ------- + None + + Description + ----------- + Assigns the given value to the X coordinate of this vector. + + """ + return _gp.gp_Vec2d_SetX(self, *args) + + def SetXY(self, *args): + r""" + + Parameters + ---------- + theCoord: gp_XY + + Return + ------- + None + + Description + ----------- + Assigns the two coordinates of theCoord to this vector. + + """ + return _gp.gp_Vec2d_SetXY(self, *args) + + def SetY(self, *args): + r""" + + Parameters + ---------- + theY: float + + Return + ------- + None + + Description + ----------- + Assigns the given value to the Y coordinate of this vector. + + """ + return _gp.gp_Vec2d_SetY(self, *args) + + def SquareMagnitude(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Computes the square magnitude of this vector. + + """ + return _gp.gp_Vec2d_SquareMagnitude(self, *args) + + def Subtract(self, *args): + r""" + + Parameters + ---------- + theRight: gp_Vec2d + + Return + ------- + None + + Description + ----------- + Subtracts two vectors. + + """ + return _gp.gp_Vec2d_Subtract(self, *args) + + def Subtracted(self, *args): + r""" + + Parameters + ---------- + theRight: gp_Vec2d + + Return + ------- + gp_Vec2d + + Description + ----------- + Subtracts two vectors. + + """ + return _gp.gp_Vec2d_Subtracted(self, *args) + + def Transform(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf2d + + Return + ------- + None + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Vec2d_Transform(self, *args) + + def Transformed(self, *args): + r""" + + Parameters + ---------- + theT: gp_Trsf2d + + Return + ------- + gp_Vec2d + + Description + ----------- + Transforms a vector with a Trsf from gp. + + """ + return _gp.gp_Vec2d_Transformed(self, *args) + + def X(self, *args): + r""" + Return + ------- + float + + Description + ----------- + For this vector, returns its X coordinate. + + """ + return _gp.gp_Vec2d_X(self, *args) + + def XY(self, *args): + r""" + Return + ------- + gp_XY + + Description + ----------- + For this vector, returns its two coordinates as a number pair. + + """ + return _gp.gp_Vec2d_XY(self, *args) + + def Y(self, *args): + r""" + Return + ------- + float + + Description + ----------- + For this vector, returns its Y coordinate. + + """ + return _gp.gp_Vec2d_Y(self, *args) + + def __mul__(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Vec2d + + Return + ------- + float + + Description + ----------- + No available documentation. + + Parameters + ---------- + theScalar: float + + Return + ------- + gp_Vec2d + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Vec2d___mul__(self, *args) + + def __imul_wrapper__(self, other): + return _gp.gp_Vec2d___imul_wrapper__(self, other) + + def __imul__(self, right): + self.__imul_wrapper__(right) + return self + + + def __add__(self, *args): + r""" + + Parameters + ---------- + theOther: gp_Vec2d + + Return + ------- + gp_Vec2d + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Vec2d___add__(self, *args) + + def __iadd_wrapper__(self, other): + return _gp.gp_Vec2d___iadd_wrapper__(self, other) + + def __iadd__(self, right): + self.__iadd_wrapper__(right) + return self + + + def __neg__(self, *args): + r""" + Return + ------- + gp_Vec2d + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Vec2d___neg__(self, *args) + + def __sub__(self, *args): + r""" + + Parameters + ---------- + theRight: gp_Vec2d + + Return + ------- + gp_Vec2d + + Description + ----------- + No available documentation. + + """ + return _gp.gp_Vec2d___sub__(self, *args) + + def __isub_wrapper__(self, other): + return _gp.gp_Vec2d___isub_wrapper__(self, other) + + def __isub__(self, right): + self.__isub_wrapper__(right) + return self + + + def __truediv__(self, *args): + return _gp.gp_Vec2d___truediv__(self, *args) + __div__ = __truediv__ + + + + def __itruediv_wrapper__(self, other): + return _gp.gp_Vec2d___itruediv_wrapper__(self, other) + + def __itruediv__(self, right): + self.__itruediv_wrapper__(right) + return self + + + def __getstate__(self): + return self.DumpJson() + + + def __setstate__(self, state): + inst = gp_Vec2d() + if inst.InitFromJson(state): + self.this = inst.this + else: + raise IOError('Failed to set state of gp_Vec2d') + + + __repr__ = _dumps_object + + __swig_destroy__ = _gp.delete_gp_Vec2d + +# Register gp_Vec2d in _gp: +_gp.gp_Vec2d_swigregister(gp_Vec2d) +class gp_XY(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 + ----------- + Creates XY object with zero coordinates (0,0). + + Parameters + ---------- + theX: float + theY: float + + Return + ------- + None + + Description + ----------- + a number pair defined by the XY coordinates. + + """ + _gp.gp_XY_swiginit(self, _gp.new_gp_XY(*args)) + + def Add(self, *args): + r""" + + Parameters + ---------- + theOther: gp_XY + + Return + ------- + None + + Description + ----------- + Computes the sum of this number pair and number pair theOther @code .X() = .X() + theOther.X() .Y() = .Y() + theOther.Y() @endcode. + + """ + return _gp.gp_XY_Add(self, *args) + + def Added(self, *args): + r""" + + Parameters + ---------- + theOther: gp_XY + + Return + ------- + gp_XY + + Description + ----------- + Computes the sum of this number pair and number pair theOther @code new.X() = .X() + theOther.X() new.Y() = .Y() + theOther.Y() @endcode. + + """ + return _gp.gp_XY_Added(self, *args) + + def GetChangeCoord(self, theIndex): + r"""GetChangeCoord(gp_XY self, Standard_Integer const theIndex) -> Standard_Real""" + return _gp.gp_XY_GetChangeCoord(self, theIndex) + + def SetChangeCoord(self, theIndex, value): + r"""SetChangeCoord(gp_XY self, Standard_Integer const theIndex, Standard_Real value)""" + return _gp.gp_XY_SetChangeCoord(self, theIndex, value) + + def Coord(self, *args): + r""" + + Parameters + ---------- + theIndex: int + + Return + ------- + float + + Description + ----------- + returns the coordinate of range theIndex: theIndex = 1 => X is returned theIndex = 2 => Y is returned Raises OutOfRange if theIndex != {1, 2}. + + Parameters + ---------- + + Return + ------- + theX: float + theY: float + + Description + ----------- + For this number pair, returns its coordinates X and Y. + + """ + return _gp.gp_XY_Coord(self, *args) + + def CrossMagnitude(self, *args): + r""" + + Parameters + ---------- + theRight: gp_XY + + Return + ------- + float + + Description + ----------- + computes the magnitude of the cross product between and theRight. Returns || ^ theRight ||. + + """ + return _gp.gp_XY_CrossMagnitude(self, *args) + + def CrossSquareMagnitude(self, *args): + r""" + + Parameters + ---------- + theRight: gp_XY + + Return + ------- + float + + Description + ----------- + computes the square magnitude of the cross product between and theRight. Returns || ^ theRight ||**2. + + """ + return _gp.gp_XY_CrossSquareMagnitude(self, *args) + + def Crossed(self, *args): + r""" + + Parameters + ---------- + theOther: gp_XY + + Return + ------- + float + + Description + ----------- + @code double D = .X() * theOther.Y() - .Y() * theOther.X() @endcode. + + """ + return _gp.gp_XY_Crossed(self, *args) + + def Divide(self, *args): + r""" + + Parameters + ---------- + theScalar: float + + Return + ------- + None + + Description + ----------- + divides by a real. + + """ + return _gp.gp_XY_Divide(self, *args) + + def Divided(self, *args): + r""" + + Parameters + ---------- + theScalar: float + + Return + ------- + gp_XY + + Description + ----------- + Divides by a real. + + """ + return _gp.gp_XY_Divided(self, *args) + + def Dot(self, *args): + r""" + + Parameters + ---------- + theOther: gp_XY + + Return + ------- + float + + Description + ----------- + Computes the scalar product between and theOther. + + """ + return _gp.gp_XY_Dot(self, *args) + + def IsEqual(self, *args): + r""" + + Parameters + ---------- + theOther: gp_XY + theTolerance: float + + Return + ------- + bool + + Description + ----------- + Returns true if the coordinates of this number pair are equal to the respective coordinates of the number pair theOther, within the specified tolerance theTolerance. I.e.: abs(.X() - theOther.X()) <= theTolerance and abs(.Y() - theOther.Y()) <= theTolerance and computations. + + """ + return _gp.gp_XY_IsEqual(self, *args) + + def Modulus(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Computes Sqrt (X*X + Y*Y) where X and Y are the two coordinates of this number pair. + + """ + return _gp.gp_XY_Modulus(self, *args) + + def Multiplied(self, *args): + r""" + + Parameters + ---------- + theScalar: float + + Return + ------- + gp_XY + + Description + ----------- + @code New.X() = .X() * theScalar; New.Y() = .Y() * theScalar; @endcode. + + Parameters + ---------- + theOther: gp_XY + + Return + ------- + gp_XY + + Description + ----------- + @code new.X() = .X() * theOther.X(); new.Y() = .Y() * theOther.Y(); @endcode. + + Parameters + ---------- + theMatrix: gp_Mat2d + + Return + ------- + gp_XY + + Description + ----------- + New = theMatrix * . + + """ + return _gp.gp_XY_Multiplied(self, *args) + + def Multiply(self, *args): + r""" + + Parameters + ---------- + theScalar: float + + Return + ------- + None + + Description + ----------- + @code .X() = .X() * theScalar; .Y() = .Y() * theScalar; @endcode. + + Parameters + ---------- + theOther: gp_XY + + Return + ------- + None + + Description + ----------- + @code .X() = .X() * theOther.X(); .Y() = .Y() * theOther.Y(); @endcode. + + Parameters + ---------- + theMatrix: gp_Mat2d + + Return + ------- + None + + Description + ----------- + = theMatrix * . + + """ + return _gp.gp_XY_Multiply(self, *args) + + def Normalize(self, *args): + r""" + Return + ------- + None + + Description + ----------- + @code .X() = .X()/ .Modulus() .Y() = .Y()/ .Modulus() @endcode Raises ConstructionError if .Modulus() <= Resolution from gp. + + """ + return _gp.gp_XY_Normalize(self, *args) + + def Normalized(self, *args): + r""" + Return + ------- + gp_XY + + Description + ----------- + @code New.X() = .X()/ .Modulus() New.Y() = .Y()/ .Modulus() @endcode Raises ConstructionError if .Modulus() <= Resolution from gp. + + """ + return _gp.gp_XY_Normalized(self, *args) + + def Reverse(self, *args): + r""" + Return + ------- + None + + Description + ----------- + @code .X() = -.X() .Y() = -.Y(). + + """ + return _gp.gp_XY_Reverse(self, *args) + + def Reversed(self, *args): + r""" + Return + ------- + gp_XY + + Description + ----------- + @code New.X() = -.X() New.Y() = -.Y() @endcode. + + """ + return _gp.gp_XY_Reversed(self, *args) + + def SetCoord(self, *args): + r""" + + Parameters + ---------- + theIndex: int + theXi: float + + Return + ------- + None + + Description + ----------- + modifies the coordinate of range theIndex theIndex = 1 => X is modified theIndex = 2 => Y is modified Raises OutOfRange if theIndex != {1, 2}. + + Parameters + ---------- + theX: float + theY: float + + Return + ------- + None + + Description + ----------- + For this number pair, assigns the values theX and theY to its coordinates. + + """ + return _gp.gp_XY_SetCoord(self, *args) + + def SetLinearForm(self, *args): + r""" + + Parameters + ---------- + theA1: float + theXY1: gp_XY + theA2: float + theXY2: gp_XY + + Return + ------- + None + + Description + ----------- + Computes the following linear combination and assigns the result to this number pair: @code theA1 * theXY1 + theA2 * theXY2 @endcode. + + Parameters + ---------- + theA1: float + theXY1: gp_XY + theA2: float + theXY2: gp_XY + theXY3: gp_XY + + Return + ------- + None + + Description + ----------- + -- Computes the following linear combination and assigns the result to this number pair: @code theA1 * theXY1 + theA2 * theXY2 + theXY3 @endcode. + + Parameters + ---------- + theA1: float + theXY1: gp_XY + theXY2: gp_XY + + Return + ------- + None + + Description + ----------- + Computes the following linear combination and assigns the result to this number pair: @code theA1 * theXY1 + theXY2 @endcode. + + Parameters + ---------- + theXY1: gp_XY + theXY2: gp_XY + + Return + ------- + None + + Description + ----------- + Computes the following linear combination and assigns the result to this number pair: @code theXY1 + theXY2 @endcode. + + """ + return _gp.gp_XY_SetLinearForm(self, *args) + + def SetX(self, *args): + r""" + + Parameters + ---------- + theX: float + + Return + ------- + None + + Description + ----------- + Assigns the given value to the X coordinate of this number pair. + + """ + return _gp.gp_XY_SetX(self, *args) + + def SetY(self, *args): + r""" + + Parameters + ---------- + theY: float + + Return + ------- + None + + Description + ----------- + Assigns the given value to the Y coordinate of this number pair. + + """ + return _gp.gp_XY_SetY(self, *args) + + def SquareModulus(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Computes X*X + Y*Y where X and Y are the two coordinates of this number pair. + + """ + return _gp.gp_XY_SquareModulus(self, *args) + + def Subtract(self, *args): + r""" + + Parameters + ---------- + theOther: gp_XY + + Return + ------- + None + + Description + ----------- + @code .X() = .X() - theOther.X() .Y() = .Y() - theOther.Y() @endcode. + + """ + return _gp.gp_XY_Subtract(self, *args) + + def Subtracted(self, *args): + r""" + + Parameters + ---------- + theOther: gp_XY + + Return + ------- + gp_XY + + Description + ----------- + @code new.X() = .X() - theOther.X() new.Y() = .Y() - theOther.Y() @endcode. + + """ + return _gp.gp_XY_Subtracted(self, *args) + + def X(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns the X coordinate of this number pair. + + """ + return _gp.gp_XY_X(self, *args) + + def Y(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns the Y coordinate of this number pair. + + """ + return _gp.gp_XY_Y(self, *args) + + def __mul__(self, *args): + r""" + + Parameters + ---------- + theOther: gp_XY + + Return + ------- + float + + Description + ----------- + No available documentation. + + Parameters + ---------- + theScalar: float + + Return + ------- + gp_XY + + Description + ----------- + No available documentation. + + Parameters + ---------- + theMatrix: gp_Mat2d + + Return + ------- + gp_XY + + Description + ----------- + No available documentation. + + """ + return _gp.gp_XY___mul__(self, *args) + + def __imul__(self, right): + self.__imul_wrapper__(right) + return self + + + def __imul__(self, right): + self.__imul_wrapper__(right) + return self + + + def __imul_wrapper__(self, *args): + r""" + __imul_wrapper__(gp_XY self, Standard_Real const other) + __imul_wrapper__(gp_XY self, gp_XY other) + __imul_wrapper__(gp_XY self, gp_Mat2d other) + """ + return _gp.gp_XY___imul_wrapper__(self, *args) + + def __imul__(self, right): + self.__imul_wrapper__(right) + return self + + + def __add__(self, *args): + r""" + + Parameters + ---------- + theOther: gp_XY + + Return + ------- + gp_XY + + Description + ----------- + No available documentation. + + """ + return _gp.gp_XY___add__(self, *args) + + def __iadd_wrapper__(self, other): + r"""__iadd_wrapper__(gp_XY self, gp_XY other)""" + return _gp.gp_XY___iadd_wrapper__(self, other) + + def __iadd__(self, right): + self.__iadd_wrapper__(right) + return self + + + def __neg__(self, *args): + r""" + Return + ------- + gp_XY + + Description + ----------- + No available documentation. + + """ + return _gp.gp_XY___neg__(self, *args) + + def __sub__(self, *args): + r""" + + Parameters + ---------- + theOther: gp_XY + + Return + ------- + gp_XY + + Description + ----------- + No available documentation. + + """ + return _gp.gp_XY___sub__(self, *args) + + def __isub_wrapper__(self, other): + r"""__isub_wrapper__(gp_XY self, gp_XY other)""" + return _gp.gp_XY___isub_wrapper__(self, other) + + def __isub__(self, right): + self.__isub_wrapper__(right) + return self + + + def __truediv__(self, *args): + return _gp.gp_XY___truediv__(self, *args) + __div__ = __truediv__ + + + + def __itruediv_wrapper__(self, other): + r"""__itruediv_wrapper__(gp_XY self, Standard_Real const other)""" + return _gp.gp_XY___itruediv_wrapper__(self, other) + + def __itruediv__(self, right): + self.__itruediv_wrapper__(right) + return self + + + def __getstate__(self): + return self.DumpJson() + + + def __setstate__(self, state): + inst = gp_XY() + if inst.InitFromJson(state): + self.this = inst.this + else: + raise IOError('Failed to set state of gp_XY') + + + __repr__ = _dumps_object + + __swig_destroy__ = _gp.delete_gp_XY + +# Register gp_XY in _gp: +_gp.gp_XY_swigregister(gp_XY) +class gp_XYZ(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 + ----------- + Creates an XYZ object with zero coordinates (0,0,0). + + Parameters + ---------- + theX: float + theY: float + theZ: float + + Return + ------- + None + + Description + ----------- + creates an XYZ with given coordinates. + + """ + _gp.gp_XYZ_swiginit(self, _gp.new_gp_XYZ(*args)) + + def Add(self, *args): + r""" + + Parameters + ---------- + theOther: gp_XYZ + + Return + ------- + None + + Description + ----------- + @code .X() = .X() + theOther.X() .Y() = .Y() + theOther.Y() .Z() = .Z() + theOther.Z() @endcode. + + """ + return _gp.gp_XYZ_Add(self, *args) + + def Added(self, *args): + r""" + + Parameters + ---------- + theOther: gp_XYZ + + Return + ------- + gp_XYZ + + Description + ----------- + @code new.X() = .X() + theOther.X() new.Y() = .Y() + theOther.Y() new.Z() = .Z() + theOther.Z() @endcode. + + """ + return _gp.gp_XYZ_Added(self, *args) + + def GetChangeCoord(self, theIndex): + r"""GetChangeCoord(gp_XYZ self, Standard_Integer const theIndex) -> Standard_Real""" + return _gp.gp_XYZ_GetChangeCoord(self, theIndex) + + def SetChangeCoord(self, theIndex, value): + r"""SetChangeCoord(gp_XYZ self, Standard_Integer const theIndex, Standard_Real value)""" + return _gp.gp_XYZ_SetChangeCoord(self, theIndex, value) + + def ChangeData(self, *args): + r""" + Return + ------- + float * + + Description + ----------- + Returns a ptr to coordinates location. Is useful for algorithms, but DOES NOT PERFORM ANY CHECKS!. + + """ + return _gp.gp_XYZ_ChangeData(self, *args) + + def Coord(self, *args): + r""" + + Parameters + ---------- + theIndex: int + + Return + ------- + float + + Description + ----------- + returns the coordinate of range theIndex: theIndex = 1 => X is returned theIndex = 2 => Y is returned theIndex = 3 => Z is returned //! Raises OutOfRange if theIndex != {1, 2, 3}. + + Parameters + ---------- + + Return + ------- + theX: float + theY: float + theZ: float + + Description + ----------- + No available documentation. + + """ + return _gp.gp_XYZ_Coord(self, *args) + + def Cross(self, *args): + r""" + + Parameters + ---------- + theOther: gp_XYZ + + Return + ------- + None + + Description + ----------- + @code .X() = .Y() * theOther.Z() - .Z() * theOther.Y() .Y() = .Z() * theOther.X() - .X() * theOther.Z() .Z() = .X() * theOther.Y() - .Y() * theOther.X() @endcode. + + """ + return _gp.gp_XYZ_Cross(self, *args) + + def CrossCross(self, *args): + r""" + + Parameters + ---------- + theCoord1: gp_XYZ + theCoord2: gp_XYZ + + Return + ------- + None + + Description + ----------- + Triple vector product Computes = .Cross(theCoord1.Cross(theCoord2)). + + """ + return _gp.gp_XYZ_CrossCross(self, *args) + + def CrossCrossed(self, *args): + r""" + + Parameters + ---------- + theCoord1: gp_XYZ + theCoord2: gp_XYZ + + Return + ------- + gp_XYZ + + Description + ----------- + Triple vector product computes New = .Cross(theCoord1.Cross(theCoord2)). + + """ + return _gp.gp_XYZ_CrossCrossed(self, *args) + + def CrossMagnitude(self, *args): + r""" + + Parameters + ---------- + theRight: gp_XYZ + + Return + ------- + float + + Description + ----------- + Computes the magnitude of the cross product between and theRight. Returns || ^ theRight ||. + + """ + return _gp.gp_XYZ_CrossMagnitude(self, *args) + + def CrossSquareMagnitude(self, *args): + r""" + + Parameters + ---------- + theRight: gp_XYZ + + Return + ------- + float + + Description + ----------- + Computes the square magnitude of the cross product between and theRight. Returns || ^ theRight ||**2. + + """ + return _gp.gp_XYZ_CrossSquareMagnitude(self, *args) + + def Crossed(self, *args): + r""" + + Parameters + ---------- + theOther: gp_XYZ + + Return + ------- + gp_XYZ + + Description + ----------- + @code new.X() = .Y() * theOther.Z() - .Z() * theOther.Y() new.Y() = .Z() * theOther.X() - .X() * theOther.Z() new.Z() = .X() * theOther.Y() - .Y() * theOther.X() @endcode. + + """ + return _gp.gp_XYZ_Crossed(self, *args) + + def Divide(self, *args): + r""" + + Parameters + ---------- + theScalar: float + + Return + ------- + None + + Description + ----------- + divides by a real. + + """ + return _gp.gp_XYZ_Divide(self, *args) + + def Divided(self, *args): + r""" + + Parameters + ---------- + theScalar: float + + Return + ------- + gp_XYZ + + Description + ----------- + divides by a real. + + """ + return _gp.gp_XYZ_Divided(self, *args) + + def Dot(self, *args): + r""" + + Parameters + ---------- + theOther: gp_XYZ + + Return + ------- + float + + Description + ----------- + computes the scalar product between and theOther. + + """ + return _gp.gp_XYZ_Dot(self, *args) + + def DotCross(self, *args): + r""" + + Parameters + ---------- + theCoord1: gp_XYZ + theCoord2: gp_XYZ + + Return + ------- + float + + Description + ----------- + computes the triple scalar product. + + """ + return _gp.gp_XYZ_DotCross(self, *args) + + def DumpJson(self, depth=-1): + r""" + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + Parameters + ---------- + depth: int, default=-1 + + Return + ------- + str + + Description + ----------- + Dump the object to JSON string. + + """ + return _gp.gp_XYZ_DumpJson(self, depth) + + def GetData(self, *args): + r""" + Return + ------- + float * + + Description + ----------- + Returns a const ptr to coordinates location. Is useful for algorithms, but DOES NOT PERFORM ANY CHECKS!. + + """ + return _gp.gp_XYZ_GetData(self, *args) + + def InitFromJson(self, json_string): + r""" + + Parameters + ---------- + json_string: the string + + Return + ------- + bool + + Description + ----------- + Init the object from a JSON string. + + """ + return _gp.gp_XYZ_InitFromJson(self, json_string) + + def IsEqual(self, *args): + r""" + + Parameters + ---------- + theOther: gp_XYZ + theTolerance: float + + Return + ------- + bool + + Description + ----------- + Returns True if he coordinates of this XYZ object are equal to the respective coordinates Other, within the specified tolerance theTolerance. I.e.: abs(.X() - theOther.X()) <= theTolerance and abs(.Y() - theOther.Y()) <= theTolerance and abs(.Z() - theOther.Z()) <= theTolerance. + + """ + return _gp.gp_XYZ_IsEqual(self, *args) + + def Modulus(self, *args): + r""" + Return + ------- + float + + Description + ----------- + computes Sqrt (X*X + Y*Y + Z*Z) where X, Y and Z are the three coordinates of this XYZ object. + + """ + return _gp.gp_XYZ_Modulus(self, *args) + + def Multiplied(self, *args): + r""" + + Parameters + ---------- + theScalar: float + + Return + ------- + gp_XYZ + + Description + ----------- + @code New.X() = .X() * theScalar; New.Y() = .Y() * theScalar; New.Z() = .Z() * theScalar; @endcode. + + Parameters + ---------- + theOther: gp_XYZ + + Return + ------- + gp_XYZ + + Description + ----------- + @code new.X() = .X() * theOther.X(); new.Y() = .Y() * theOther.Y(); new.Z() = .Z() * theOther.Z(); @endcode. + + Parameters + ---------- + theMatrix: gp_Mat + + Return + ------- + gp_XYZ + + Description + ----------- + New = theMatrix * . + + """ + return _gp.gp_XYZ_Multiplied(self, *args) + + def Multiply(self, *args): + r""" + + Parameters + ---------- + theScalar: float + + Return + ------- + None + + Description + ----------- + @code .X() = .X() * theScalar; .Y() = .Y() * theScalar; .Z() = .Z() * theScalar; @endcode. + + Parameters + ---------- + theOther: gp_XYZ + + Return + ------- + None + + Description + ----------- + @code .X() = .X() * theOther.X(); .Y() = .Y() * theOther.Y(); .Z() = .Z() * theOther.Z(); @endcode. + + Parameters + ---------- + theMatrix: gp_Mat + + Return + ------- + None + + Description + ----------- + = theMatrix * . + + """ + return _gp.gp_XYZ_Multiply(self, *args) + + def Normalize(self, *args): + r""" + Return + ------- + None + + Description + ----------- + @code .X() = .X()/ .Modulus() .Y() = .Y()/ .Modulus() .Z() = .Z()/ .Modulus() @endcode Raised if .Modulus() <= Resolution from gp. + + """ + return _gp.gp_XYZ_Normalize(self, *args) + + def Normalized(self, *args): + r""" + Return + ------- + gp_XYZ + + Description + ----------- + @code New.X() = .X()/ .Modulus() New.Y() = .Y()/ .Modulus() New.Z() = .Z()/ .Modulus() @endcode Raised if .Modulus() <= Resolution from gp. + + """ + return _gp.gp_XYZ_Normalized(self, *args) + + def Reverse(self, *args): + r""" + Return + ------- + None + + Description + ----------- + @code .X() = -.X() .Y() = -.Y() .Z() = -.Z() @endcode. + + """ + return _gp.gp_XYZ_Reverse(self, *args) + + def Reversed(self, *args): + r""" + Return + ------- + gp_XYZ + + Description + ----------- + @code New.X() = -.X() New.Y() = -.Y() New.Z() = -.Z() @endcode. + + """ + return _gp.gp_XYZ_Reversed(self, *args) + + def SetCoord(self, *args): + r""" + + Parameters + ---------- + theX: float + theY: float + theZ: float + + Return + ------- + None + + Description + ----------- + For this XYZ object, assigns the values theX, theY and theZ to its three coordinates. + + Parameters + ---------- + theIndex: int + theXi: float + + Return + ------- + None + + Description + ----------- + modifies the coordinate of range theIndex theIndex = 1 => X is modified theIndex = 2 => Y is modified theIndex = 3 => Z is modified Raises OutOfRange if theIndex != {1, 2, 3}. + + """ + return _gp.gp_XYZ_SetCoord(self, *args) + + def SetLinearForm(self, *args): + r""" + + Parameters + ---------- + theA1: float + theXYZ1: gp_XYZ + theA2: float + theXYZ2: gp_XYZ + theA3: float + theXYZ3: gp_XYZ + theXYZ4: gp_XYZ + + Return + ------- + None + + Description + ----------- + is set to the following linear form: @code theA1 * theXYZ1 + theA2 * theXYZ2 + theA3 * theXYZ3 + theXYZ4 @endcode. + + Parameters + ---------- + theA1: float + theXYZ1: gp_XYZ + theA2: float + theXYZ2: gp_XYZ + theA3: float + theXYZ3: gp_XYZ + + Return + ------- + None + + Description + ----------- + is set to the following linear form: @code theA1 * theXYZ1 + theA2 * theXYZ2 + theA3 * theXYZ3 @endcode. + + Parameters + ---------- + theA1: float + theXYZ1: gp_XYZ + theA2: float + theXYZ2: gp_XYZ + theXYZ3: gp_XYZ + + Return + ------- + None + + Description + ----------- + is set to the following linear form: @code theA1 * theXYZ1 + theA2 * theXYZ2 + theXYZ3 @endcode. + + Parameters + ---------- + theA1: float + theXYZ1: gp_XYZ + theA2: float + theXYZ2: gp_XYZ + + Return + ------- + None + + Description + ----------- + is set to the following linear form: @code theA1 * theXYZ1 + theA2 * theXYZ2 @endcode. + + Parameters + ---------- + theA1: float + theXYZ1: gp_XYZ + theXYZ2: gp_XYZ + + Return + ------- + None + + Description + ----------- + is set to the following linear form: @code theA1 * theXYZ1 + theXYZ2 @endcode. + + Parameters + ---------- + theXYZ1: gp_XYZ + theXYZ2: gp_XYZ + + Return + ------- + None + + Description + ----------- + is set to the following linear form: @code theXYZ1 + theXYZ2 @endcode. + + """ + return _gp.gp_XYZ_SetLinearForm(self, *args) + + def SetX(self, *args): + r""" + + Parameters + ---------- + theX: float + + Return + ------- + None + + Description + ----------- + Assigns the given value to the X coordinate. + + """ + return _gp.gp_XYZ_SetX(self, *args) + + def SetY(self, *args): + r""" + + Parameters + ---------- + theY: float + + Return + ------- + None + + Description + ----------- + Assigns the given value to the Y coordinate. + + """ + return _gp.gp_XYZ_SetY(self, *args) + + def SetZ(self, *args): + r""" + + Parameters + ---------- + theZ: float + + Return + ------- + None + + Description + ----------- + Assigns the given value to the Z coordinate. + + """ + return _gp.gp_XYZ_SetZ(self, *args) + + def SquareModulus(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Computes X*X + Y*Y + Z*Z where X, Y and Z are the three coordinates of this XYZ object. + + """ + return _gp.gp_XYZ_SquareModulus(self, *args) + + def Subtract(self, *args): + r""" + + Parameters + ---------- + theOther: gp_XYZ + + Return + ------- + None + + Description + ----------- + @code .X() = .X() - theOther.X() .Y() = .Y() - theOther.Y() .Z() = .Z() - theOther.Z() @endcode. + + """ + return _gp.gp_XYZ_Subtract(self, *args) + + def Subtracted(self, *args): + r""" + + Parameters + ---------- + theOther: gp_XYZ + + Return + ------- + gp_XYZ + + Description + ----------- + @code new.X() = .X() - theOther.X() new.Y() = .Y() - theOther.Y() new.Z() = .Z() - theOther.Z() @endcode. + + """ + return _gp.gp_XYZ_Subtracted(self, *args) + + def X(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns the X coordinate. + + """ + return _gp.gp_XYZ_X(self, *args) + + def Y(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns the Y coordinate. + + """ + return _gp.gp_XYZ_Y(self, *args) + + def Z(self, *args): + r""" + Return + ------- + float + + Description + ----------- + Returns the Z coordinate. + + """ + return _gp.gp_XYZ_Z(self, *args) + + def __mul__(self, *args): + r""" + + Parameters + ---------- + theOther: gp_XYZ + + Return + ------- + float + + Description + ----------- + No available documentation. + + Parameters + ---------- + theScalar: float + + Return + ------- + gp_XYZ + + Description + ----------- + No available documentation. + + Parameters + ---------- + theMatrix: gp_Mat + + Return + ------- + gp_XYZ + + Description + ----------- + No available documentation. + + """ + return _gp.gp_XYZ___mul__(self, *args) + + def __imul__(self, right): + self.__imul_wrapper__(right) + return self + + + def __imul__(self, right): + self.__imul_wrapper__(right) + return self + + + def __imul_wrapper__(self, *args): + r""" + __imul_wrapper__(gp_XYZ self, Standard_Real const other) + __imul_wrapper__(gp_XYZ self, gp_XYZ other) + __imul_wrapper__(gp_XYZ self, gp_Mat other) + """ + return _gp.gp_XYZ___imul_wrapper__(self, *args) + + def __imul__(self, right): + self.__imul_wrapper__(right) + return self + + + def __add__(self, *args): + r""" + + Parameters + ---------- + theOther: gp_XYZ + + Return + ------- + gp_XYZ + + Description + ----------- + No available documentation. + + """ + return _gp.gp_XYZ___add__(self, *args) + + def __iadd_wrapper__(self, other): + r"""__iadd_wrapper__(gp_XYZ self, gp_XYZ other)""" + return _gp.gp_XYZ___iadd_wrapper__(self, other) + + def __iadd__(self, right): + self.__iadd_wrapper__(right) + return self + + + def __sub__(self, *args): + r""" + + Parameters + ---------- + theOther: gp_XYZ + + Return + ------- + gp_XYZ + + Description + ----------- + No available documentation. + + """ + return _gp.gp_XYZ___sub__(self, *args) + + def __isub_wrapper__(self, other): + r"""__isub_wrapper__(gp_XYZ self, gp_XYZ other)""" + return _gp.gp_XYZ___isub_wrapper__(self, other) + + def __isub__(self, right): + self.__isub_wrapper__(right) + return self + + + def __truediv__(self, *args): + return _gp.gp_XYZ___truediv__(self, *args) + __div__ = __truediv__ + + + + def __itruediv_wrapper__(self, other): + r"""__itruediv_wrapper__(gp_XYZ self, Standard_Real const other)""" + return _gp.gp_XYZ___itruediv_wrapper__(self, other) + + def __itruediv__(self, right): + self.__itruediv_wrapper__(right) + return self + + + def __getstate__(self): + return self.DumpJson() + + + def __setstate__(self, state): + inst = gp_XYZ() + if inst.InitFromJson(state): + self.this = inst.this + else: + raise IOError('Failed to set state of gp_XYZ') + + + __repr__ = _dumps_object + + __swig_destroy__ = _gp.delete_gp_XYZ + +# Register gp_XYZ in _gp: +_gp.gp_XYZ_swigregister(gp_XYZ) + + + +@deprecated +def gp_DX(*args): + return gp.DX(*args) + +@deprecated +def gp_DX2d(*args): + return gp.DX2d(*args) + +@deprecated +def gp_DY(*args): + return gp.DY(*args) + +@deprecated +def gp_DY2d(*args): + return gp.DY2d(*args) + +@deprecated +def gp_DZ(*args): + return gp.DZ(*args) + +@deprecated +def gp_OX(*args): + return gp.OX(*args) + +@deprecated +def gp_OX2d(*args): + return gp.OX2d(*args) + +@deprecated +def gp_OY(*args): + return gp.OY(*args) + +@deprecated +def gp_OY2d(*args): + return gp.OY2d(*args) + +@deprecated +def gp_OZ(*args): + return gp.OZ(*args) + +@deprecated +def gp_Origin(*args): + return gp.Origin(*args) + +@deprecated +def gp_Origin2d(*args): + return gp.Origin2d(*args) + +@deprecated +def gp_Resolution(*args): + return gp.Resolution(*args) + +@deprecated +def gp_XOY(*args): + return gp.XOY(*args) + +@deprecated +def gp_YOZ(*args): + return gp.YOZ(*args) + +@deprecated +def gp_ZOX(*args): + return gp.ZOX(*args) + +@deprecated +def gp_QuaternionNLerp_Interpolate(*args): + return gp_QuaternionNLerp.Interpolate(*args) + +@deprecated +def gp_QuaternionSLerp_Interpolate(*args): + return gp_QuaternionSLerp.Interpolate(*args) + + + diff --git a/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/math.pyi b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/math.pyi new file mode 100644 index 0000000000000000000000000000000000000000..da92c101b1a249b82aeb496fb974383f6bdb77f8 --- /dev/null +++ b/data/miniconda3/envs/catiagent/lib/python3.11/site-packages/OCC/Core/math.pyi @@ -0,0 +1,997 @@ +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.Message import * +from OCC.Core.gp import * + +class math_Array1OfValueAndWeight: + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, theLower: int, theUpper: int) -> None: ... + def __getitem__(self, index: int) -> math_ValueAndWeight: ... + def __setitem__(self, index: int, value: math_ValueAndWeight) -> None: ... + def __len__(self) -> int: ... + def __iter__(self) -> Iterator[math_ValueAndWeight]: ... + def next(self) -> math_ValueAndWeight: ... + __next__ = next + def Init(self, theValue: math_ValueAndWeight) -> 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) -> math_ValueAndWeight: ... + def Last(self) -> math_ValueAndWeight: ... + def Value(self, theIndex: int) -> math_ValueAndWeight: ... + def SetValue(self, theIndex: int, theValue: math_ValueAndWeight) -> None: ... + +class math_Status(IntEnum): + math_OK: int = ... + math_TooManyIterations: int = ... + math_FunctionError: int = ... + math_DirectionSearchError: int = ... + math_NotBracketed: int = ... + +math_OK = math_Status.math_OK +math_TooManyIterations = math_Status.math_TooManyIterations +math_FunctionError = math_Status.math_FunctionError +math_DirectionSearchError = math_Status.math_DirectionSearchError +math_NotBracketed = math_Status.math_NotBracketed + +class math: + @staticmethod + def GaussPoints(Index: int, Points: math_Vector) -> None: ... + @staticmethod + def GaussPointsMax() -> int: ... + @staticmethod + def GaussWeights(Index: int, Weights: math_Vector) -> None: ... + @staticmethod + def KronrodPointsAndWeights( + Index: int, Points: math_Vector, Weights: math_Vector + ) -> bool: ... + @staticmethod + def KronrodPointsMax() -> int: ... + @staticmethod + def OrderedGaussPointsAndWeights( + Index: int, Points: math_Vector, Weights: math_Vector + ) -> bool: ... + +class math_BFGS: + def __init__( + self, + NbVariables: int, + Tolerance: Optional[float] = 1.0e-8, + NbIterations: Optional[int] = 200, + ZEPS: Optional[float] = 1.0e-12, + ) -> None: ... + def Dump(self) -> str: ... + @overload + def Gradient(self) -> math_Vector: ... + @overload + def Gradient(self, Grad: math_Vector) -> None: ... + def IsDone(self) -> bool: ... + def IsSolutionReached(self, F: math_MultipleVarFunctionWithGradient) -> bool: ... + @overload + def Location(self) -> math_Vector: ... + @overload + def Location(self, Loc: math_Vector) -> None: ... + def Minimum(self) -> float: ... + def NbIterations(self) -> int: ... + def Perform( + self, F: math_MultipleVarFunctionWithGradient, StartingPoint: math_Vector + ) -> None: ... + def SetBoundary( + self, theLeftBorder: math_Vector, theRightBorder: math_Vector + ) -> None: ... + +class math_BissecNewton: + def __init__(self, theXTolerance: float) -> None: ... + def Derivative(self) -> float: ... + def Dump(self) -> str: ... + def IsDone(self) -> bool: ... + def IsSolutionReached(self, theFunction: math_FunctionWithDerivative) -> bool: ... + def Perform( + self, + F: math_FunctionWithDerivative, + Bound1: float, + Bound2: float, + NbIterations: Optional[int] = 100, + ) -> None: ... + def Root(self) -> float: ... + def Value(self) -> float: ... + +class math_BracketMinimum: + @overload + def __init__(self, A: float, B: float) -> None: ... + @overload + def __init__(self, F: math_Function, A: float, B: float) -> None: ... + @overload + def __init__(self, F: math_Function, A: float, B: float, FA: float) -> None: ... + @overload + def __init__( + self, F: math_Function, A: float, B: float, FA: float, FB: float + ) -> None: ... + def Dump(self) -> str: ... + def FunctionValues(self) -> Tuple[float, float, float]: ... + def IsDone(self) -> bool: ... + def Perform(self, F: math_Function) -> None: ... + def SetFA(self, theValue: float) -> None: ... + def SetFB(self, theValue: float) -> None: ... + def SetLimits(self, theLeft: float, theRight: float) -> None: ... + def Values(self) -> Tuple[float, float, float]: ... + +class math_BracketedRoot: + def __init__( + self, + F: math_Function, + Bound1: float, + Bound2: float, + Tolerance: float, + NbIterations: Optional[int] = 100, + ZEPS: Optional[float] = 1.0e-12, + ) -> None: ... + def Dump(self) -> str: ... + def IsDone(self) -> bool: ... + def NbIterations(self) -> int: ... + def Root(self) -> float: ... + def Value(self) -> float: ... + +class math_BrentMinimum: + @overload + def __init__( + self, + TolX: float, + NbIterations: Optional[int] = 100, + ZEPS: Optional[float] = 1.0e-12, + ) -> None: ... + @overload + def __init__( + self, + TolX: float, + Fbx: float, + NbIterations: Optional[int] = 100, + ZEPS: Optional[float] = 1.0e-12, + ) -> None: ... + def Dump(self) -> str: ... + def IsDone(self) -> bool: ... + def IsSolutionReached(self, theFunction: math_Function) -> bool: ... + def Location(self) -> float: ... + def Minimum(self) -> float: ... + def NbIterations(self) -> int: ... + def Perform(self, F: math_Function, Ax: float, Bx: float, Cx: float) -> None: ... + +class math_BullardGenerator: + def __init__(self, theSeed: Optional[int] = 1) -> None: ... + def NextInt(self) -> int: ... + def NextReal(self) -> float: ... + def SetSeed(self, theSeed: Optional[int] = 1) -> None: ... + +class math_ComputeGaussPointsAndWeights: + def __init__(self, Number: int) -> None: ... + def IsDone(self) -> bool: ... + def Points(self) -> math_Vector: ... + def Weights(self) -> math_Vector: ... + +class math_ComputeKronrodPointsAndWeights: + def __init__(self, Number: int) -> None: ... + def IsDone(self) -> bool: ... + def Points(self) -> math_Vector: ... + def Weights(self) -> math_Vector: ... + +class math_Crout: + def __init__(self, A: math_Matrix, MinPivot: Optional[float] = 1.0e-20) -> None: ... + def Determinant(self) -> float: ... + def Dump(self) -> str: ... + def Inverse(self) -> math_Matrix: ... + def Invert(self, Inv: math_Matrix) -> None: ... + def IsDone(self) -> bool: ... + def Solve(self, B: math_Vector, X: math_Vector) -> None: ... + +class math_DirectPolynomialRoots: + @overload + def __init__(self, A: float, B: float, C: float, D: float, E: float) -> None: ... + @overload + def __init__(self, A: float, B: float, C: float, D: float) -> None: ... + @overload + def __init__(self, A: float, B: float, C: float) -> None: ... + @overload + def __init__(self, A: float, B: float) -> None: ... + def Dump(self) -> str: ... + def InfiniteRoots(self) -> bool: ... + def IsDone(self) -> bool: ... + def NbSolutions(self) -> int: ... + def Value(self, Nieme: int) -> float: ... + +class math_DoubleTab: + @overload + def __init__( + self, LowerRow: int, UpperRow: int, LowerCol: int, UpperCol: int + ) -> None: ... + @overload + def __init__( + self, Tab: None, LowerRow: int, UpperRow: int, LowerCol: int, UpperCol: int + ) -> None: ... + @overload + def __init__(self, Other: math_DoubleTab) -> None: ... + def Copy(self, Other: math_DoubleTab) -> None: ... + def Free(self) -> None: ... + def Init(self, InitValue: float) -> None: ... + def SetLowerCol(self, LowerCol: int) -> None: ... + def SetLowerRow(self, LowerRow: int) -> None: ... + def GetValue(self, RowIndex: int, ColIndex: int) -> float: ... + def SetValue(self, RowIndex: int, ColIndex: int, value: float) -> None: ... + +class math_EigenValuesSearcher: + def __init__( + self, Diagonal: TColStd_Array1OfReal, Subdiagonal: TColStd_Array1OfReal + ) -> None: ... + def Dimension(self) -> int: ... + def EigenValue(self, Index: int) -> float: ... + def EigenVector(self, Index: int) -> math_Vector: ... + def IsDone(self) -> bool: ... + +class math_FRPR: + def __init__( + self, + theFunction: math_MultipleVarFunctionWithGradient, + theTolerance: float, + theNbIterations: Optional[int] = 200, + theZEPS: Optional[float] = 1.0e-12, + ) -> None: ... + def Dump(self) -> str: ... + @overload + def Gradient(self) -> math_Vector: ... + @overload + def Gradient(self, Grad: math_Vector) -> None: ... + def IsDone(self) -> bool: ... + def IsSolutionReached( + self, theFunction: math_MultipleVarFunctionWithGradient + ) -> bool: ... + @overload + def Location(self) -> math_Vector: ... + @overload + def Location(self, Loc: math_Vector) -> None: ... + def Minimum(self) -> float: ... + def NbIterations(self) -> int: ... + def Perform( + self, + theFunction: math_MultipleVarFunctionWithGradient, + theStartingPoint: math_Vector, + ) -> None: ... + +class math_Function: + def GetStateNumber(self) -> int: ... + def Value(self, X: float) -> Tuple[bool, float]: ... + +class math_FunctionAllRoots: + def __init__( + self, + F: math_FunctionWithDerivative, + S: math_FunctionSample, + EpsX: float, + EpsF: float, + EpsNul: float, + ) -> None: ... + def Dump(self) -> str: ... + def GetInterval(self, Index: int) -> Tuple[float, float]: ... + def GetIntervalState(self, Index: int) -> Tuple[int, int]: ... + def GetPoint(self, Index: int) -> float: ... + def GetPointState(self, Index: int) -> int: ... + def IsDone(self) -> bool: ... + def NbIntervals(self) -> int: ... + def NbPoints(self) -> int: ... + +class math_FunctionRoot: + @overload + def __init__( + self, + F: math_FunctionWithDerivative, + Guess: float, + Tolerance: float, + NbIterations: Optional[int] = 100, + ) -> None: ... + @overload + def __init__( + self, + F: math_FunctionWithDerivative, + Guess: float, + Tolerance: float, + A: float, + B: float, + NbIterations: Optional[int] = 100, + ) -> None: ... + def Derivative(self) -> float: ... + def Dump(self) -> str: ... + def IsDone(self) -> bool: ... + def NbIterations(self) -> int: ... + def Root(self) -> float: ... + def Value(self) -> float: ... + +class math_FunctionRoots: + def __init__( + self, + F: math_FunctionWithDerivative, + A: float, + B: float, + NbSample: int, + EpsX: Optional[float] = 0.0, + EpsF: Optional[float] = 0.0, + EpsNull: Optional[float] = 0.0, + K: Optional[float] = 0.0, + ) -> None: ... + def Dump(self) -> str: ... + def IsAllNull(self) -> bool: ... + def IsDone(self) -> bool: ... + def NbSolutions(self) -> int: ... + def StateNumber(self, Nieme: int) -> int: ... + def Value(self, Nieme: int) -> float: ... + +class math_FunctionSample: + def __init__(self, A: float, B: float, N: int) -> None: ... + def Bounds(self) -> Tuple[float, float]: ... + def GetParameter(self, Index: int) -> float: ... + def NbPoints(self) -> int: ... + +class math_FunctionSet: + def GetStateNumber(self) -> int: ... + def NbEquations(self) -> int: ... + def NbVariables(self) -> int: ... + def Value(self, X: math_Vector, F: math_Vector) -> bool: ... + +class math_FunctionSetRoot: + @overload + def __init__( + self, + F: math_FunctionSetWithDerivatives, + Tolerance: math_Vector, + NbIterations: Optional[int] = 100, + ) -> None: ... + @overload + def __init__( + self, F: math_FunctionSetWithDerivatives, NbIterations: Optional[int] = 100 + ) -> None: ... + @overload + def Derivative(self) -> math_Matrix: ... + @overload + def Derivative(self, Der: math_Matrix) -> None: ... + def Dump(self) -> str: ... + @overload + def FunctionSetErrors(self) -> math_Vector: ... + @overload + def FunctionSetErrors(self, Err: math_Vector) -> None: ... + def IsDivergent(self) -> bool: ... + def IsDone(self) -> bool: ... + def NbIterations(self) -> int: ... + @overload + def Perform( + self, + theFunction: math_FunctionSetWithDerivatives, + theStartingPoint: math_Vector, + theStopOnDivergent: Optional[bool] = False, + ) -> None: ... + @overload + def Perform( + self, + theFunction: math_FunctionSetWithDerivatives, + theStartingPoint: math_Vector, + theInfBound: math_Vector, + theSupBound: math_Vector, + theStopOnDivergent: Optional[bool] = False, + ) -> None: ... + @overload + def Root(self) -> math_Vector: ... + @overload + def Root(self, Root: math_Vector) -> None: ... + def SetTolerance(self, Tolerance: math_Vector) -> None: ... + def StateNumber(self) -> int: ... + +class math_Gauss: + def __init__( + self, + A: math_Matrix, + MinPivot: Optional[float] = 1.0e-20, + theProgress: Optional[Message_ProgressRange] = Message_ProgressRange(), + ) -> None: ... + def Determinant(self) -> float: ... + def Dump(self) -> str: ... + def Invert(self, Inv: math_Matrix) -> None: ... + def IsDone(self) -> bool: ... + @overload + def Solve(self, B: math_Vector, X: math_Vector) -> None: ... + @overload + def Solve(self, B: math_Vector) -> None: ... + +class math_GaussLeastSquare: + def __init__(self, A: math_Matrix, MinPivot: Optional[float] = 1.0e-20) -> None: ... + def Dump(self) -> str: ... + def IsDone(self) -> bool: ... + def Solve(self, B: math_Vector, X: math_Vector) -> None: ... + +class math_GaussMultipleIntegration: + def __init__( + self, + F: math_MultipleVarFunction, + Lower: math_Vector, + Upper: math_Vector, + Order: math_IntegerVector, + ) -> None: ... + def Dump(self) -> str: ... + def IsDone(self) -> bool: ... + def Value(self) -> float: ... + +class math_GaussSetIntegration: + def __init__( + self, + F: math_FunctionSet, + Lower: math_Vector, + Upper: math_Vector, + Order: math_IntegerVector, + ) -> None: ... + def Dump(self) -> str: ... + def IsDone(self) -> bool: ... + def Value(self) -> math_Vector: ... + +class math_GaussSingleIntegration: + @overload + def __init__(self) -> None: ... + @overload + def __init__( + self, F: math_Function, Lower: float, Upper: float, Order: int + ) -> None: ... + @overload + def __init__( + self, F: math_Function, Lower: float, Upper: float, Order: int, Tol: float + ) -> None: ... + def Dump(self) -> str: ... + def IsDone(self) -> bool: ... + def Value(self) -> float: ... + +class math_GlobOptMin: + def __init__( + self, + theFunc: math_MultipleVarFunction, + theLowerBorder: math_Vector, + theUpperBorder: math_Vector, + theC: Optional[float] = 9, + theDiscretizationTol: Optional[float] = 1.0e-2, + theSameTol: Optional[float] = 1.0e-7, + ) -> None: ... + def GetContinuity(self) -> int: ... + def GetF(self) -> float: ... + def GetFunctionalMinimalValue(self) -> float: ... + def GetLipConstState(self) -> bool: ... + def GetTol(self) -> Tuple[float, float]: ... + def NbExtrema(self) -> int: ... + def Perform(self, isFindSingleSolution: Optional[bool] = False) -> None: ... + def Points(self, theIndex: int, theSol: math_Vector) -> None: ... + def SetContinuity(self, theCont: int) -> None: ... + def SetFunctionalMinimalValue(self, theMinimalValue: float) -> None: ... + def SetGlobalParams( + self, + theFunc: math_MultipleVarFunction, + theLowerBorder: math_Vector, + theUpperBorder: math_Vector, + theC: Optional[float] = 9, + theDiscretizationTol: Optional[float] = 1.0e-2, + theSameTol: Optional[float] = 1.0e-7, + ) -> None: ... + def SetLipConstState(self, theFlag: bool) -> None: ... + def SetLocalParams( + self, theLocalA: math_Vector, theLocalB: math_Vector + ) -> None: ... + def SetTol(self, theDiscretizationTol: float, theSameTol: float) -> None: ... + def isDone(self) -> bool: ... + +class math_Householder: + @overload + def __init__( + self, A: math_Matrix, B: math_Matrix, EPS: Optional[float] = 1.0e-20 + ) -> None: ... + @overload + def __init__( + self, + A: math_Matrix, + B: math_Matrix, + lowerArow: int, + upperArow: int, + lowerAcol: int, + upperAcol: int, + EPS: Optional[float] = 1.0e-20, + ) -> None: ... + @overload + def __init__( + self, A: math_Matrix, B: math_Vector, EPS: Optional[float] = 1.0e-20 + ) -> None: ... + def AllValues(self) -> math_Matrix: ... + def Dump(self) -> str: ... + def IsDone(self) -> bool: ... + def Value(self, sol: math_Vector, Index: Optional[int] = 1) -> None: ... + +class math_Jacobi: + def __init__(self, A: math_Matrix) -> None: ... + def Dump(self) -> str: ... + def IsDone(self) -> bool: ... + def Value(self, Num: int) -> float: ... + def Values(self) -> math_Vector: ... + def Vector(self, Num: int, V: math_Vector) -> None: ... + def Vectors(self) -> math_Matrix: ... + +class math_KronrodSingleIntegration: + @overload + def __init__(self) -> None: ... + @overload + def __init__( + self, + theFunction: math_Function, + theLower: float, + theUpper: float, + theNbPnts: int, + ) -> None: ... + @overload + def __init__( + self, + theFunction: math_Function, + theLower: float, + theUpper: float, + theNbPnts: int, + theTolerance: float, + theMaxNbIter: int, + ) -> None: ... + def AbsolutError(self) -> float: ... + def ErrorReached(self) -> float: ... + @staticmethod + def GKRule( + theFunction: math_Function, + theLower: float, + theUpper: float, + theGaussP: math_Vector, + theGaussW: math_Vector, + theKronrodP: math_Vector, + theKronrodW: math_Vector, + ) -> Tuple[bool, float, float]: ... + def IsDone(self) -> bool: ... + def NbIterReached(self) -> int: ... + def OrderReached(self) -> int: ... + @overload + def Perform( + self, + theFunction: math_Function, + theLower: float, + theUpper: float, + theNbPnts: int, + ) -> None: ... + @overload + def Perform( + self, + theFunction: math_Function, + theLower: float, + theUpper: float, + theNbPnts: int, + theTolerance: float, + theMaxNbIter: int, + ) -> None: ... + def Value(self) -> float: ... + +class math_Matrix: + @overload + def __init__( + self, LowerRow: int, UpperRow: int, LowerCol: int, UpperCol: int + ) -> None: ... + @overload + def __init__( + self, + LowerRow: int, + UpperRow: int, + LowerCol: int, + UpperCol: int, + InitialValue: float, + ) -> None: ... + @overload + def __init__( + self, Tab: None, LowerRow: int, UpperRow: int, LowerCol: int, UpperCol: int + ) -> None: ... + @overload + def __init__(self, Other: math_Matrix) -> None: ... + @overload + def Add(self, Right: math_Matrix) -> None: ... + @overload + def Add(self, Left: math_Matrix, Right: math_Matrix) -> None: ... + def Added(self, Right: math_Matrix) -> math_Matrix: ... + def Col(self, Col: int) -> False: ... + def ColNumber(self) -> int: ... + def Determinant(self) -> float: ... + def Divide(self, Right: float) -> None: ... + def Divided(self, Right: float) -> math_Matrix: ... + def Dump(self) -> str: ... + def Init(self, InitialValue: float) -> None: ... + def Initialized(self, Other: math_Matrix) -> math_Matrix: ... + def Inverse(self) -> math_Matrix: ... + def Invert(self) -> None: ... + def LowerCol(self) -> int: ... + def LowerRow(self) -> int: ... + @overload + def Multiplied(self, Right: float) -> math_Matrix: ... + @overload + def Multiplied(self, Right: math_Matrix) -> math_Matrix: ... + @overload + def Multiply(self, Right: float) -> None: ... + @overload + def Multiply(self, Left: math_Matrix, Right: math_Matrix) -> None: ... + @overload + def Multiply(self, Right: math_Matrix) -> None: ... + def Opposite(self) -> math_Matrix: ... + def Row(self, Row: int) -> False: ... + def RowNumber(self) -> int: ... + def Set(self, I1: int, I2: int, J1: int, J2: int, M: math_Matrix) -> None: ... + def SetDiag(self, Value: float) -> None: ... + @overload + def Subtract(self, Right: math_Matrix) -> None: ... + @overload + def Subtract(self, Left: math_Matrix, Right: math_Matrix) -> None: ... + def Subtracted(self, Right: math_Matrix) -> math_Matrix: ... + def SwapCol(self, Col1: int, Col2: int) -> None: ... + def SwapRow(self, Row1: int, Row2: int) -> None: ... + def TMultiplied(self, Right: float) -> math_Matrix: ... + @overload + def TMultiply(self, Right: math_Matrix) -> math_Matrix: ... + @overload + def TMultiply(self, TLeft: math_Matrix, Right: math_Matrix) -> None: ... + def Transpose(self) -> None: ... + def Transposed(self) -> math_Matrix: ... + def UpperCol(self) -> int: ... + def UpperRow(self) -> int: ... + def GetValue(self, Row: int, Col: int) -> float: ... + def SetValue(self, Row: int, Col: int, value: float) -> None: ... + +class math_MultipleVarFunction: + def GetStateNumber(self) -> int: ... + def NbVariables(self) -> int: ... + def Value(self, X: math_Vector) -> Tuple[bool, float]: ... + +class math_NewtonFunctionRoot: + @overload + def __init__( + self, + F: math_FunctionWithDerivative, + Guess: float, + EpsX: float, + EpsF: float, + NbIterations: Optional[int] = 100, + ) -> None: ... + @overload + def __init__( + self, + F: math_FunctionWithDerivative, + Guess: float, + EpsX: float, + EpsF: float, + A: float, + B: float, + NbIterations: Optional[int] = 100, + ) -> None: ... + @overload + def __init__( + self, + A: float, + B: float, + EpsX: float, + EpsF: float, + NbIterations: Optional[int] = 100, + ) -> None: ... + def Derivative(self) -> float: ... + def Dump(self) -> str: ... + def IsDone(self) -> bool: ... + def NbIterations(self) -> int: ... + def Perform(self, F: math_FunctionWithDerivative, Guess: float) -> None: ... + def Root(self) -> float: ... + def Value(self) -> float: ... + +class math_NewtonFunctionSetRoot: + @overload + def __init__( + self, + theFunction: math_FunctionSetWithDerivatives, + theXTolerance: math_Vector, + theFTolerance: float, + tehNbIterations: Optional[int] = 100, + ) -> None: ... + @overload + def __init__( + self, + theFunction: math_FunctionSetWithDerivatives, + theFTolerance: float, + theNbIterations: Optional[int] = 100, + ) -> None: ... + @overload + def Derivative(self) -> math_Matrix: ... + @overload + def Derivative(self, Der: math_Matrix) -> None: ... + def Dump(self) -> str: ... + @overload + def FunctionSetErrors(self) -> math_Vector: ... + @overload + def FunctionSetErrors(self, Err: math_Vector) -> None: ... + def IsDone(self) -> bool: ... + def IsSolutionReached(self, F: math_FunctionSetWithDerivatives) -> bool: ... + def NbIterations(self) -> int: ... + @overload + def Perform( + self, + theFunction: math_FunctionSetWithDerivatives, + theStartingPoint: math_Vector, + ) -> None: ... + @overload + def Perform( + self, + theFunction: math_FunctionSetWithDerivatives, + theStartingPoint: math_Vector, + theInfBound: math_Vector, + theSupBound: math_Vector, + ) -> None: ... + @overload + def Root(self) -> math_Vector: ... + @overload + def Root(self, Root: math_Vector) -> None: ... + def SetTolerance(self, XTol: math_Vector) -> None: ... + +class math_NewtonMinimum: + def __init__( + self, + theFunction: math_MultipleVarFunctionWithHessian, + theTolerance: Optional[float] = Precision.Confusion(), + theNbIterations: Optional[int] = 40, + theConvexity: Optional[float] = 1.0e-6, + theWithSingularity: Optional[bool] = True, + ) -> None: ... + def Dump(self) -> str: ... + def GetStatus(self) -> math_Status: ... + @overload + def Gradient(self) -> math_Vector: ... + @overload + def Gradient(self, Grad: math_Vector) -> None: ... + def IsConverged(self) -> bool: ... + def IsDone(self) -> bool: ... + @overload + def Location(self) -> math_Vector: ... + @overload + def Location(self, Loc: math_Vector) -> None: ... + def Minimum(self) -> float: ... + def NbIterations(self) -> int: ... + def Perform( + self, + theFunction: math_MultipleVarFunctionWithHessian, + theStartingPoint: math_Vector, + ) -> None: ... + def SetBoundary( + self, theLeftBorder: math_Vector, theRightBorder: math_Vector + ) -> None: ... + +class math_PSO: + def __init__( + self, + theFunc: math_MultipleVarFunction, + theLowBorder: math_Vector, + theUppBorder: math_Vector, + theSteps: math_Vector, + theNbParticles: Optional[int] = 32, + theNbIter: Optional[int] = 100, + ) -> None: ... + @overload + def Perform( + self, + theSteps: math_Vector, + theOutPnt: math_Vector, + theNbIter: Optional[int] = 100, + ) -> float: ... + @overload + def Perform( + self, + theParticles: math_PSOParticlesPool, + theNbParticles: int, + theOutPnt: math_Vector, + theNbIter: Optional[int] = 100, + ) -> float: ... + +class math_PSOParticlesPool: + def __init__(self, theParticlesCount: int, theDimensionCount: int) -> None: ... + def GetBestParticle(self) -> False: ... + def GetParticle(self, theIdx: int) -> False: ... + def GetWorstParticle(self) -> False: ... + +class math_Powell: + def __init__( + self, + theFunction: math_MultipleVarFunction, + theTolerance: float, + theNbIterations: Optional[int] = 200, + theZEPS: Optional[float] = 1.0e-12, + ) -> None: ... + def Dump(self) -> str: ... + def IsDone(self) -> bool: ... + def IsSolutionReached(self, theFunction: math_MultipleVarFunction) -> bool: ... + @overload + def Location(self) -> math_Vector: ... + @overload + def Location(self, Loc: math_Vector) -> None: ... + def Minimum(self) -> float: ... + def NbIterations(self) -> int: ... + def Perform( + self, + theFunction: math_MultipleVarFunction, + theStartingPoint: math_Vector, + theStartingDirections: math_Matrix, + ) -> None: ... + +class math_SVD: + def __init__(self, A: math_Matrix) -> None: ... + def Dump(self) -> str: ... + def IsDone(self) -> bool: ... + def PseudoInverse( + self, Inv: math_Matrix, Eps: Optional[float] = 1.0e-6 + ) -> None: ... + def Solve( + self, B: math_Vector, X: math_Vector, Eps: Optional[float] = 1.0e-6 + ) -> None: ... + +class math_TrigonometricFunctionRoots: + @overload + def __init__( + self, + A: float, + B: float, + C: float, + D: float, + E: float, + InfBound: float, + SupBound: float, + ) -> None: ... + @overload + def __init__( + self, D: float, E: float, InfBound: float, SupBound: float + ) -> None: ... + @overload + def __init__( + self, C: float, D: float, E: float, InfBound: float, SupBound: float + ) -> None: ... + def Dump(self) -> str: ... + def InfiniteRoots(self) -> bool: ... + def IsDone(self) -> bool: ... + def NbSolutions(self) -> int: ... + def Value(self, Index: int) -> float: ... + +class math_Uzawa: + @overload + def __init__( + self, + Cont: math_Matrix, + Secont: math_Vector, + StartingPoint: math_Vector, + EpsLix: Optional[float] = 1.0e-06, + EpsLic: Optional[float] = 1.0e-06, + NbIterations: Optional[int] = 500, + ) -> None: ... + @overload + def __init__( + self, + Cont: math_Matrix, + Secont: math_Vector, + StartingPoint: math_Vector, + Nci: int, + Nce: int, + EpsLix: Optional[float] = 1.0e-06, + EpsLic: Optional[float] = 1.0e-06, + NbIterations: Optional[int] = 500, + ) -> None: ... + def Duale(self, V: math_Vector) -> None: ... + def Dump(self) -> str: ... + def Error(self) -> math_Vector: ... + def InitialError(self) -> math_Vector: ... + def InverseCont(self) -> math_Matrix: ... + def IsDone(self) -> bool: ... + def NbIterations(self) -> int: ... + def Value(self) -> math_Vector: ... + +class math_ValueAndWeight: + @overload + def __init__(self) -> None: ... + @overload + def __init__(self, theValue: float, theWeight: float) -> None: ... + def Value(self) -> float: ... + def Weight(self) -> float: ... + +class math_VectorBase: + @overload + def __init__(self, theLower: int, theUpper: int) -> None: ... + @overload + def __init__(self, Other: gp_XY) -> None: ... + @overload + def __init__(self, Other: gp_XYZ) -> None: ... + @overload + def __init__(self, theOther: math_VectorBase) -> None: ... + @overload + def Add(self, theRight: math_VectorBase) -> None: ... + @overload + def Add(self, theLeft: math_VectorBase, theRight: math_VectorBase) -> None: ... + def Added(self, theRight: math_VectorBase) -> math_VectorBase: ... + def Dump(self) -> str: ... + def Initialized(self, theOther: math_VectorBase) -> math_VectorBase: ... + def Inverse(self) -> math_VectorBase: ... + def Invert(self) -> None: ... + def Length(self) -> int: ... + def Lower(self) -> int: ... + def Max(self) -> int: ... + def Min(self) -> int: ... + @overload + def Multiplied(self, theRight: math_VectorBase) -> False: ... + @overload + def Multiplied(self, theRight: math_Matrix) -> math_VectorBase: ... + @overload + def Multiply(self, theLeft: math_VectorBase, theRight: math_Matrix) -> None: ... + @overload + def Multiply(self, theLeft: math_Matrix, theRight: math_VectorBase) -> None: ... + def Norm(self) -> float: ... + def Norm2(self) -> float: ... + def Normalize(self) -> None: ... + def Normalized(self) -> math_VectorBase: ... + def Opposite(self) -> math_VectorBase: ... + def Set(self, theI1: int, theI2: int, theV: math_VectorBase) -> None: ... + def Slice(self, theI1: int, theI2: int) -> math_VectorBase: ... + @overload + def Subtract(self, theLeft: math_VectorBase, theRight: math_VectorBase) -> None: ... + @overload + def Subtract(self, theRight: math_VectorBase) -> None: ... + def Subtracted(self, theRight: math_VectorBase) -> math_VectorBase: ... + @overload + def TMultiply(self, theTLeft: math_Matrix, theRight: math_VectorBase) -> None: ... + @overload + def TMultiply(self, theLeft: math_VectorBase, theTRight: math_Matrix) -> None: ... + def Upper(self) -> int: ... + @overload + def Value(self, theNum: int) -> False: ... + @overload + def Value(self, theNum: int) -> False: ... + +class math_FunctionSetWithDerivatives(math_FunctionSet): + def Derivatives(self, X: math_Vector, D: math_Matrix) -> bool: ... + def NbEquations(self) -> int: ... + def NbVariables(self) -> int: ... + def Value(self, X: math_Vector, F: math_Vector) -> bool: ... + def Values(self, X: math_Vector, F: math_Vector, D: math_Matrix) -> bool: ... + +class math_FunctionWithDerivative(math_Function): + def Derivative(self, X: float) -> Tuple[bool, float]: ... + def Value(self, X: float) -> Tuple[bool, float]: ... + def Values(self, X: float) -> Tuple[bool, float, float]: ... + +class math_MultipleVarFunctionWithGradient(math_MultipleVarFunction): + def Gradient(self, X: math_Vector, G: math_Vector) -> bool: ... + def NbVariables(self) -> int: ... + def Value(self, X: math_Vector) -> Tuple[bool, float]: ... + def Values(self, X: math_Vector, G: math_Vector) -> Tuple[bool, float]: ... + +class math_MultipleVarFunctionWithHessian(math_MultipleVarFunctionWithGradient): + def Gradient(self, X: math_Vector, G: math_Vector) -> bool: ... + def NbVariables(self) -> int: ... + def Value(self, X: math_Vector) -> Tuple[bool, float]: ... + @overload + def Values(self, X: math_Vector, G: math_Vector) -> Tuple[bool, float]: ... + @overload + def Values( + self, X: math_Vector, G: math_Vector, H: math_Matrix + ) -> Tuple[bool, float]: ... + +class math_TrigonometricEquationFunction(math_FunctionWithDerivative): + def __init__(self, A: float, B: float, C: float, D: float, E: float) -> None: ... + def Derivative(self, X: float) -> Tuple[bool, float]: ... + def Value(self, X: float) -> Tuple[bool, float]: ... + def Values(self, X: float) -> Tuple[bool, float, float]: ... + +# harray1 classes +# harray2 classes +# hsequence classes