OCC.Select3D module

class OCC.Select3D.Handle_Select3D_ListNodeOfListOfSensitive(*args)

Bases: OCC.TCollection.Handle_TCollection_MapNode

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Select3D.Handle_Select3D_ListNodeOfListOfSensitiveTriangle(*args)

Bases: OCC.TCollection.Handle_TCollection_MapNode

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Select3D.Handle_Select3D_Projector(*args)

Bases: OCC.Standard.Handle_Standard_Transient

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Select3D.Handle_Select3D_SensitiveBox(*args)

Bases: OCC.Select3D.Handle_Select3D_SensitiveEntity

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Select3D.Handle_Select3D_SensitiveCircle(*args)

Bases: OCC.Select3D.Handle_Select3D_SensitivePoly

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Select3D.Handle_Select3D_SensitiveCurve(*args)

Bases: OCC.Select3D.Handle_Select3D_SensitivePoly

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Select3D.Handle_Select3D_SensitiveEntity(*args)

Bases: OCC.SelectBasics.Handle_SelectBasics_SensitiveEntity

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Select3D.Handle_Select3D_SensitiveFace(*args)

Bases: OCC.Select3D.Handle_Select3D_SensitivePoly

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Select3D.Handle_Select3D_SensitiveGroup(*args)

Bases: OCC.Select3D.Handle_Select3D_SensitiveEntity

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Select3D.Handle_Select3D_SensitivePoint(*args)

Bases: OCC.Select3D.Handle_Select3D_SensitiveEntity

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Select3D.Handle_Select3D_SensitivePoly(*args)

Bases: OCC.Select3D.Handle_Select3D_SensitiveEntity

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Select3D.Handle_Select3D_SensitiveSegment(*args)

Bases: OCC.Select3D.Handle_Select3D_SensitiveEntity

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Select3D.Handle_Select3D_SensitiveTriangle(*args)

Bases: OCC.Select3D.Handle_Select3D_SensitivePoly

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Select3D.Handle_Select3D_SensitiveWire(*args)

Bases: OCC.Select3D.Handle_Select3D_SensitiveEntity

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Select3D.Handle_Select3D_SequenceNodeOfSensitiveEntitySequence(*args)

Bases: OCC.TCollection.Handle_TCollection_SeqNode

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

class OCC.Select3D.Select3D_Box2d(*args)

Bases: object

IsVoid()
Return type:inline bool
Set()
Parameters:theBox (Bnd_Box2d &) –
Return type:inline Select3D_Box2d
SetVoid()
Return type:inline void
Update()
Parameters:thePnt (gp_Pnt2d) –
Return type:inline void
thisown

The membership flag

class OCC.Select3D.Select3D_ListIteratorOfListOfSensitive(*args)

Bases: object

Initialize()
Parameters:L (Select3D_ListOfSensitive &) –
Return type:None
More()
Return type:bool
Next()
Return type:None
Value()
Return type:Handle_Select3D_SensitiveEntity
thisown

The membership flag

class OCC.Select3D.Select3D_ListIteratorOfListOfSensitiveTriangle(*args)

Bases: object

Initialize()
Parameters:L (Select3D_ListOfSensitiveTriangle &) –
Return type:None
More()
Return type:bool
Next()
Return type:None
Value()
Return type:Handle_Select3D_SensitiveTriangle
thisown

The membership flag

class OCC.Select3D.Select3D_ListNodeOfListOfSensitive(*args)

Bases: OCC.TCollection.TCollection_MapNode

GetHandle()

Select3D_ListNodeOfListOfSensitive_GetHandle(Select3D_ListNodeOfListOfSensitive self) -> Handle_Select3D_ListNodeOfListOfSensitive

Value()
Return type:Handle_Select3D_SensitiveEntity
thisown

The membership flag

class OCC.Select3D.Select3D_ListNodeOfListOfSensitiveTriangle(*args)

Bases: OCC.TCollection.TCollection_MapNode

GetHandle()

Select3D_ListNodeOfListOfSensitiveTriangle_GetHandle(Select3D_ListNodeOfListOfSensitiveTriangle self) -> Handle_Select3D_ListNodeOfListOfSensitiveTriangle

Value()
Return type:Handle_Select3D_SensitiveTriangle
thisown

The membership flag

class OCC.Select3D.Select3D_ListOfSensitive

Bases: object

Append()
Parameters:
  • I (Handle_Select3D_SensitiveEntity &) –
  • I
  • theIt (Select3D_ListIteratorOfListOfSensitive &) –
  • Other (Select3D_ListOfSensitive &) –
Return type:

None

Return type:

None

Return type:

None

Assign()
Parameters:Other (Select3D_ListOfSensitive &) –
Return type:None
Clear()
Return type:None
Extent()
Return type:int
First()
Return type:Handle_Select3D_SensitiveEntity
InsertAfter()
Parameters:
  • I (Handle_Select3D_SensitiveEntity &) –
  • It (Select3D_ListIteratorOfListOfSensitive &) –
  • Other (Select3D_ListOfSensitive &) –
  • It
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • I (Handle_Select3D_SensitiveEntity &) –
  • It (Select3D_ListIteratorOfListOfSensitive &) –
  • Other (Select3D_ListOfSensitive &) –
  • It
Return type:

None

Return type:

None

IsEmpty()
Return type:bool
Last()
Return type:Handle_Select3D_SensitiveEntity
Prepend()
Parameters:
  • I (Handle_Select3D_SensitiveEntity &) –
  • I
  • theIt (Select3D_ListIteratorOfListOfSensitive &) –
  • Other (Select3D_ListOfSensitive &) –
Return type:

None

Return type:

None

Return type:

None

Remove()
Parameters:It (Select3D_ListIteratorOfListOfSensitive &) –
Return type:None
RemoveFirst()
Return type:None
Set()
Parameters:Other (Select3D_ListOfSensitive &) –
Return type:None
thisown

The membership flag

class OCC.Select3D.Select3D_ListOfSensitiveTriangle

Bases: object

Append()
Parameters:
  • I (Handle_Select3D_SensitiveTriangle &) –
  • I
  • theIt (Select3D_ListIteratorOfListOfSensitiveTriangle &) –
  • Other (Select3D_ListOfSensitiveTriangle &) –
Return type:

None

Return type:

None

Return type:

None

Assign()
Parameters:Other (Select3D_ListOfSensitiveTriangle &) –
Return type:None
Clear()
Return type:None
Extent()
Return type:int
First()
Return type:Handle_Select3D_SensitiveTriangle
InsertAfter()
Parameters:
  • I (Handle_Select3D_SensitiveTriangle &) –
  • It (Select3D_ListIteratorOfListOfSensitiveTriangle &) –
  • Other (Select3D_ListOfSensitiveTriangle &) –
  • It
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • I (Handle_Select3D_SensitiveTriangle &) –
  • It (Select3D_ListIteratorOfListOfSensitiveTriangle &) –
  • Other (Select3D_ListOfSensitiveTriangle &) –
  • It
Return type:

None

Return type:

None

IsEmpty()
Return type:bool
Last()
Return type:Handle_Select3D_SensitiveTriangle
Prepend()
Parameters:
  • I (Handle_Select3D_SensitiveTriangle &) –
  • I
  • theIt (Select3D_ListIteratorOfListOfSensitiveTriangle &) –
  • Other (Select3D_ListOfSensitiveTriangle &) –
Return type:

None

Return type:

None

Return type:

None

Remove()
Parameters:It (Select3D_ListIteratorOfListOfSensitiveTriangle &) –
Return type:None
RemoveFirst()
Return type:None
Set()
Parameters:Other (Select3D_ListOfSensitiveTriangle &) –
Return type:None
thisown

The membership flag

class OCC.Select3D.Select3D_Pnt(*args, **kwargs)

Bases: object

Set()
Parameters:thePnt (gp_Pnt) –
Return type:inline gp_Pnt
thisown

The membership flag

class OCC.Select3D.Select3D_Pnt2d(*args, **kwargs)

Bases: object

Set()
Parameters:thePnt (gp_Pnt2d) –
Return type:inline gp_Pnt2d
thisown

The membership flag

class OCC.Select3D.Select3D_PointData(*args)

Bases: object

Pnt()
Parameters:theIndex (Standard_Integer) –
Return type:Select3D_Pnt
Pnt2d()
Parameters:theIndex (Standard_Integer) –
Return type:Select3D_Pnt2d
SetPnt()
Parameters:
  • theIndex (Standard_Integer) –
  • theValue (gp_Pnt) –
  • theIndex
  • theValue
Return type:

None

Return type:

None

SetPnt2d()
Parameters:
  • theIndex (Standard_Integer) –
  • theValue (gp_Pnt2d) –
  • theIndex
  • theValue
Return type:

None

Return type:

None

Size()
Return type:int
thisown

The membership flag

class OCC.Select3D.Select3D_Projector(*args)

Bases: OCC.Standard.Standard_Transient

Focus()
  • Returns the focal length.
Return type:float
FullTransformation()
  • Returns the original transformation.
Return type:gp_Trsf
GetHandle()

Select3D_Projector_GetHandle(Select3D_Projector self) -> Handle_Select3D_Projector

InvertedTransformation()
  • Returns the active inverted transformation.
Return type:gp_GTrsf
Perspective()
  • Returns True if there is a perspective transformation.
Return type:bool
Project()
  • Transform and apply perspective if needed.
Parameters:
  • P (gp_Pnt) –
  • Pout (gp_Pnt2d) –
Return type:

void

  • Transform and apply perspective if needed.
Parameters:
  • P (gp_Pnt) –
  • X (float &) –
  • Y (float &) –
  • Z (float &) –
Return type:

None

  • Transform and apply perspective if needed.
Parameters:
  • P (gp_Pnt) –
  • D1 (gp_Vec) –
  • Pout (gp_Pnt2d) –
  • D1out (gp_Vec2d) –
Return type:

void

Scaled()
  • to compute with the given scale and translation.
Parameters:On (bool) – default value is Standard_False
Return type:void
  • to compute with the given scale and translation.
Parameters:On (bool) – default value is Standard_False
Return type:void
Set()
Parameters:
  • T (gp_Trsf) –
  • Persp (bool) –
  • Focus (float) –
Return type:

None

SetView()
  • Sets the 3D view V used at the time of construction.
Parameters:V (Handle_V3d_View &) –
Return type:None
Shoot()
  • return a line going through the eye towards the 2d point <X,Y>.
Parameters:
  • X (float) –
  • Y (float) –
Return type:

gp_Lin

Transform()
Parameters:
  • D (gp_Lin) –
  • Pnt (gp_Pnt) –
  • P (gp_Pnt) –
  • T (gp_GTrsf) –
  • D
  • T
Return type:

None

Return type:

None

Return type:

None

Return type:

None

Transformation()
  • Returns the active transformation.
Return type:gp_GTrsf
View()
  • Returns the 3D view used at the time of construction.
Return type:Handle_V3d_View
thisown

The membership flag

class OCC.Select3D.Select3D_SensitiveBox(*args)

Bases: OCC.Select3D.Select3D_SensitiveEntity

Box()
  • Returns the sensitive 3D box used at the time of construction.
Return type:Bnd_Box
ComputeDepth()
Parameters:EyeLine (gp_Lin) –
Return type:float
Dump()
Parameters:
  • S (Standard_OStream &) –
  • FullDump (bool) – default value is Standard_True
  • S
  • FullDump – default value is Standard_True
Return type:

void

Return type:

void

GetHandle()

Select3D_SensitiveBox_GetHandle(Select3D_SensitiveBox self) -> Handle_Select3D_SensitiveBox

Matches()
  • Checks whether the sensitive entity matches the picking detection area (close to the picking line). For details please refer to base class declaration.
Parameters:
  • thePickArgs (SelectBasics_PickArgs &) –
  • theMatchDMin (float &) –
  • theMatchDepth (float &) –
  • XMin (float) –
  • YMin (float) –
  • XMax (float) –
  • YMax (float) –
  • aTol (float) –
  • Polyline (TColgp_Array1OfPnt2d) –
  • aBox (Bnd_Box2d &) –
  • aTol
Return type:

bool

Return type:

bool

Return type:

bool

thisown

The membership flag

class OCC.Select3D.Select3D_SensitiveCircle(*args)

Bases: OCC.Select3D.Select3D_SensitivePoly

ArrayBounds()
Parameters:
  • Low (Standard_Integer &) –
  • Up (Standard_Integer &) –
Return type:

None

ComputeDepth()
  • Compute depth of sensitive circle for the detected sub-part. @param thePickLine [in] the picking line. @param theDetectedIndex [in] index of the detected sub-part. returns depth on the picking line.
Parameters:
  • thePickLine (gp_Lin) –
  • theDetectedIndex (Standard_Integer) –
Return type:

float

Dump()
Parameters:
  • S (Standard_OStream &) –
  • FullDump (bool) – default value is Standard_True
  • S
  • FullDump – default value is Standard_True
Return type:

void

Return type:

void

GetHandle()

Select3D_SensitiveCircle_GetHandle(Select3D_SensitiveCircle self) -> Handle_Select3D_SensitiveCircle

GetPoint3d()
Parameters:rank (Standard_Integer) –
Return type:gp_Pnt
Matches()
  • Checks whether the sensitive entity matches the picking detection area (close to the picking line). For details please refer to base class declaration.
Parameters:
  • thePickArgs (SelectBasics_PickArgs &) –
  • theMatchDMin (float &) –
  • theMatchDepth (float &) –
  • XMin (float) –
  • YMin (float) –
  • XMax (float) –
  • YMax (float) –
  • aTol (float) –
  • Polyline (TColgp_Array1OfPnt2d) –
  • aBox (Bnd_Box2d &) –
  • aTol
Return type:

bool

Return type:

bool

Return type:

bool

thisown

The membership flag

class OCC.Select3D.Select3D_SensitiveCurve(*args)

Bases: OCC.Select3D.Select3D_SensitivePoly

ComputeDepth()
  • Compute depth of sensitive circle for the detected sub-part. @param thePickLine [in] the picking line. @param theDetectedIndex [in] index of the detected sub-part. returns depth on the picking line.
Parameters:
  • thePickLine (gp_Lin) –
  • theDetectedIndex (Standard_Integer) –
Return type:

float

Dump()
Parameters:
  • S (Standard_OStream &) –
  • FullDump (bool) – default value is Standard_True
  • S
  • FullDump – default value is Standard_True
Return type:

void

Return type:

void

GetHandle()

Select3D_SensitiveCurve_GetHandle(Select3D_SensitiveCurve self) -> Handle_Select3D_SensitiveCurve

GetLastDetected()
  • Gets index of last detected segment
Return type:int
Matches()
  • Checks whether the sensitive entity matches the picking detection area (close to the picking line). For details please refer to base class declaration.
Parameters:
  • thePickArgs (SelectBasics_PickArgs &) –
  • theMatchDMin (float &) –
  • theMatchDepth (float &) –
  • XMin (float) –
  • YMin (float) –
  • XMax (float) –
  • YMax (float) –
  • aTol (float) –
  • Polyline (TColgp_Array1OfPnt2d) –
  • aBox (Bnd_Box2d &) –
  • aTol
Return type:

bool

Return type:

bool

Return type:

bool

thisown

The membership flag

class OCC.Select3D.Select3D_SensitiveEntity(*args, **kwargs)

Bases: OCC.SelectBasics.SelectBasics_SensitiveEntity

Dump()
  • 2 options : <FullDump> = False -> general information //! <FullDump> = True -> whole informtion 3D +2d ...
Parameters:
  • S (Standard_OStream &) –
  • FullDump (bool) – default value is Standard_True
Return type:

void

  • 2 options : <FullDump> = False -> general information //! <FullDump> = True -> whole informtion 3D +2d ...
Parameters:
  • S (Standard_OStream &) –
  • FullDump (bool) – default value is Standard_True
Return type:

void

static DumpBox(*args)
Parameters:
  • S (Standard_OStream &) –
  • abox (Bnd_Box2d &) –
Return type:

void

GetConnected()
  • Originally this method intended to return sensitive entity with new location aLocation, but currently sensitive entities do not hold a location, instead HasLocation() and Location() methods call corresponding entity owner’s methods. Thus all entities returned by GetConnected() share the same location propagated from corresponding selectable object. You must redefine this function for any type of sensitive entity which can accept another connected sensitive entity.//can be connected to another sensitive entity.
Parameters:aLocation (TopLoc_Location &) –
Return type:Handle_Select3D_SensitiveEntity
GetHandle()

Select3D_SensitiveEntity_GetHandle(Select3D_SensitiveEntity self) -> Handle_Select3D_SensitiveEntity

HasLocation()
  • Returns true if this framework has a location defined.
Return type:bool
Location()
Return type:TopLoc_Location
Matches()
  • Matches the box defined by the coordinates Xmin, Ymin, Xmax, Ymax with the entity found at that point within the tolerance aTol. Xmin, YMin define the minimum point in the lower left hand corner of the box, and XMax, YMax define the maximum point in the upper right hand corner of the box. You must redefine this function for every inheriting entity. You will have to call this framework inside the redefined function.
Parameters:
  • XMin (float) –
  • YMin (float) –
  • XMax (float) –
  • YMax (float) –
  • aTol (float) –
Return type:

bool

  • prevents from hiding virtual methods...
Parameters:
  • Polyline (TColgp_Array1OfPnt2d) –
  • aBox (Bnd_Box2d &) –
  • aTol (float) –
Return type:

bool

Project()
  • In classes inheriting this framework, you must redefine this function in order to get a sensitive 2D rectangle from a 3D entity. This rectangle is the sensitive zone which makes the 3D entity selectable.
Parameters:aProjector (Handle_Select3D_Projector &) –
Return type:void
ResetLocation()
  • sets the location to Identity
Return type:void
SetLocation()
Parameters:aLoc (TopLoc_Location &) –
Return type:void
UpdateLocation()
Parameters:aLoc (TopLoc_Location &) –
Return type:None
thisown

The membership flag

class OCC.Select3D.Select3D_SensitiveEntitySequence

Bases: OCC.TCollection.TCollection_BaseSequence

Append()
Parameters:
  • T (Handle_Select3D_SensitiveEntity &) –
  • S (Select3D_SensitiveEntitySequence &) –
Return type:

None

Return type:

None

Assign()
Parameters:Other (Select3D_SensitiveEntitySequence &) –
Return type:Select3D_SensitiveEntitySequence
ChangeValue()
Parameters:Index (Standard_Integer) –
Return type:Handle_Select3D_SensitiveEntity
Clear()
Return type:None
First()
Return type:Handle_Select3D_SensitiveEntity
InsertAfter()
Parameters:
  • Index (Standard_Integer) –
  • T (Handle_Select3D_SensitiveEntity &) –
  • Index
  • S (Select3D_SensitiveEntitySequence &) –
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • Index (Standard_Integer) –
  • T (Handle_Select3D_SensitiveEntity &) –
  • Index
  • S (Select3D_SensitiveEntitySequence &) –
Return type:

None

Return type:

None

Last()
Return type:Handle_Select3D_SensitiveEntity
Prepend()
Parameters:
  • T (Handle_Select3D_SensitiveEntity &) –
  • S (Select3D_SensitiveEntitySequence &) –
Return type:

None

Return type:

None

Remove()
Parameters:
  • Index (Standard_Integer) –
  • FromIndex (Standard_Integer) –
  • ToIndex (Standard_Integer) –
Return type:

None

Return type:

None

Set()
Parameters:Other (Select3D_SensitiveEntitySequence &) –
Return type:Select3D_SensitiveEntitySequence
SetValue()
Parameters:
  • Index (Standard_Integer) –
  • I (Handle_Select3D_SensitiveEntity &) –
Return type:

None

Split()
Parameters:
  • Index (Standard_Integer) –
  • Sub (Select3D_SensitiveEntitySequence &) –
Return type:

None

Value()
Parameters:Index (Standard_Integer) –
Return type:Handle_Select3D_SensitiveEntity
thisown

The membership flag

OCC.Select3D.Select3D_SensitiveEntity_DumpBox(*args)
Parameters:
  • S (Standard_OStream &) –
  • abox (Bnd_Box2d &) –
Return type:

void

class OCC.Select3D.Select3D_SensitiveFace(*args)

Bases: OCC.Select3D.Select3D_SensitivePoly

ComputeDepth()
  • Computes the depth values for all 3D points defining this face and returns the minimal value among them. If the ‘minimal depth’ approach is not suitable and gives wrong detection results in some particular case, a custom sensitive face class can redefine this method.
Parameters:
  • thePickLine (gp_Lin) –
  • theDepthMin (float) –
  • theDepthMax (float) –
Return type:

float

Dump()
Parameters:
  • S (Standard_OStream &) –
  • FullDump (bool) – default value is Standard_True
  • S
  • FullDump – default value is Standard_True
Return type:

void

Return type:

void

GetHandle()

Select3D_SensitiveFace_GetHandle(Select3D_SensitiveFace self) -> Handle_Select3D_SensitiveFace

Matches()
  • Checks whether the sensitive entity matches the picking detection area (close to the picking line). For details please refer to base class declaration.
Parameters:
  • thePickArgs (SelectBasics_PickArgs &) –
  • theMatchDMin (float &) –
  • theMatchDepth (float &) –
  • XMin (float) –
  • YMin (float) –
  • XMax (float) –
  • YMax (float) –
  • aTol (float) –
  • Polyline (TColgp_Array1OfPnt2d) –
  • aBox (Bnd_Box2d &) –
  • aTol
Return type:

bool

Return type:

bool

Return type:

bool

thisown

The membership flag

class OCC.Select3D.Select3D_SensitiveGroup(*args)

Bases: OCC.Select3D.Select3D_SensitiveEntity

Add()
  • Adds the list of sensitive entities LL to the empty sensitive group object created at construction time.
Parameters:LL (Select3D_ListOfSensitive &) –
Return type:None
  • Adds the sensitive entity aSensitive to the non-empty sensitive group object created at construction time.
Parameters:aSensitive (Handle_Select3D_SensitiveEntity &) –
Return type:None
Clear()
  • Removes all sensitive entities from the list used at the time of construction, or added using the function Add.
Return type:None
GetEntities()
  • Gets group content
Return type:Select3D_ListOfSensitive
GetHandle()

Select3D_SensitiveGroup_GetHandle(Select3D_SensitiveGroup self) -> Handle_Select3D_SensitiveGroup

IsIn()
  • Returns true if the sensitive entity aSensitive is in the list used at the time of construction, or added using the function Add.
Parameters:aSensitive (Handle_Select3D_SensitiveEntity &) –
Return type:bool
Matches()
  • Checks whether the sensitive entity matches the picking detection area (close to the picking line). For details please refer to base class declaration.
Parameters:
  • thePickArgs (SelectBasics_PickArgs &) –
  • theMatchDMin (float &) –
  • theMatchDepth (float &) –
  • XMin (float) –
  • YMin (float) –
  • XMax (float) –
  • YMax (float) –
  • aTol (float) –
  • Polyline (TColgp_Array1OfPnt2d) –
  • aBox (Bnd_Box2d &) –
  • aTol
Return type:

bool

Return type:

bool

Return type:

bool

MustMatchAll()
  • Returns true if all sensitive entities in the list used at the time of construction, or added using the function Add must be matched.
Return type:bool
Remove()
Parameters:aSensitive (Handle_Select3D_SensitiveEntity &) –
Return type:None
Set()
  • Sets the requirement that all sensitive entities in the list used at the time of construction, or added using the function Add must be matched.
Parameters:MustMatchAllEntities (bool) –
Return type:None
  • Sets the owner for all entities in group
Parameters:TheOwnerId (Handle_SelectBasics_EntityOwner &) –
Return type:None
thisown

The membership flag

class OCC.Select3D.Select3D_SensitivePoint(*args)

Bases: OCC.Select3D.Select3D_SensitiveEntity

ComputeDepth()
Parameters:EyeLine (gp_Lin) –
Return type:float
Dump()
Parameters:
  • S (Standard_OStream &) –
  • FullDump (bool) – default value is Standard_True
  • S
  • FullDump – default value is Standard_True
Return type:

void

Return type:

void

GetHandle()

Select3D_SensitivePoint_GetHandle(Select3D_SensitivePoint self) -> Handle_Select3D_SensitivePoint

Matches()
  • Checks whether the sensitive entity matches the picking detection area (close to the picking line). For details please refer to base class declaration.
Parameters:
  • thePickArgs (SelectBasics_PickArgs &) –
  • theMatchDMin (float &) –
  • theMatchDepth (float &) –
  • XMin (float) –
  • YMin (float) –
  • XMax (float) –
  • YMax (float) –
  • aTol (float) –
  • Polyline (TColgp_Array1OfPnt2d) –
  • aBox (Bnd_Box2d &) –
  • aTol
Return type:

bool

Return type:

bool

Return type:

bool

Point()
  • Returns the point used at the time of construction.
Return type:gp_Pnt
thisown

The membership flag

class OCC.Select3D.Select3D_SensitivePoly(*args, **kwargs)

Bases: OCC.Select3D.Select3D_SensitiveEntity

GetHandle()

Select3D_SensitivePoly_GetHandle(Select3D_SensitivePoly self) -> Handle_Select3D_SensitivePoly

Points2D()
  • Returns the 2D points of the array used at construction time.
Parameters:theArrayOfPnt2d (TColgp_Array1OfPnt2d) –
Return type:None
Points3D()
  • Returns the 3D points of the array used at construction time.
Parameters:theHArrayOfPnt (Handle_TColgp_HArray1OfPnt) –
Return type:None
thisown

The membership flag

class OCC.Select3D.Select3D_SensitiveSegment(*args)

Bases: OCC.Select3D.Select3D_SensitiveEntity

ComputeDepth()
Parameters:EyeLine (gp_Lin) –
Return type:float
Dump()
Parameters:
  • S (Standard_OStream &) –
  • FullDump (bool) – default value is Standard_True
  • S
  • FullDump – default value is Standard_True
Return type:

void

Return type:

void

EndPoint()
  • changes the end point of the segment
Parameters:aPt (gp_Pnt) –
Return type:None
  • gives the 3D End Point of the Segment
Return type:gp_Pnt
EndPoint2d()
  • gives the 3D End Point of the Segment
Return type:gp_Pnt2d
GetHandle()

Select3D_SensitiveSegment_GetHandle(Select3D_SensitiveSegment self) -> Handle_Select3D_SensitiveSegment

Matches()
  • Checks whether the sensitive entity matches the picking detection area (close to the picking line). For details please refer to base class declaration.
Parameters:
  • thePickArgs (SelectBasics_PickArgs &) –
  • theMatchDMin (float &) –
  • theMatchDepth (float &) –
  • XMin (float) –
  • YMin (float) –
  • XMax (float) –
  • YMax (float) –
  • aTol (float) –
  • Polyline (TColgp_Array1OfPnt2d) –
  • aBox (Bnd_Box2d &) –
  • aTol
Return type:

bool

Return type:

bool

Return type:

bool

Set()
  • Sets the maximum number of sensitive rectangles MaxRect.
Parameters:MaxRect (Standard_Integer) –
Return type:None
StartPoint()
  • changes the start Point of the Segment;
Parameters:aPt (gp_Pnt) –
Return type:None
  • gives the 3D start Point of the Segment
Return type:gp_Pnt
StartPoint2d()
  • gives the 3D start Point of the Segment
Return type:gp_Pnt2d
thisown

The membership flag

class OCC.Select3D.Select3D_SensitiveTriangle(*args)

Bases: OCC.Select3D.Select3D_SensitivePoly

Center2D()
  • WARNING : the returned Values are the original values without the stored location (if there’s one). To get the genuine value, One must apply this location (Method Location() )
Return type:gp_XY
Center3D()
  • Returns the center point of the sensitive triangle created at construction time.
Return type:gp_Pnt
ComputeDepth()
Parameters:EyeLine (gp_Lin) –
Return type:float
Dump()
Parameters:
  • S (Standard_OStream &) –
  • FullDump (bool) – default value is Standard_True
  • S
  • FullDump – default value is Standard_True
Return type:

void

Return type:

void

GetHandle()

Select3D_SensitiveTriangle_GetHandle(Select3D_SensitiveTriangle self) -> Handle_Select3D_SensitiveTriangle

Matches()
  • Checks whether the sensitive entity matches the picking detection area (close to the picking line). For details please refer to base class declaration.
Parameters:
  • thePickArgs (SelectBasics_PickArgs &) –
  • theMatchDMin (float &) –
  • theMatchDepth (float &) –
  • XMin (float) –
  • YMin (float) –
  • XMax (float) –
  • YMax (float) –
  • aTol (float) –
  • Polyline (TColgp_Array1OfPnt2d) –
  • aBox (Bnd_Box2d &) –
  • aTol
Return type:

bool

Return type:

bool

Return type:

bool

Points3D()
  • Returns the 3D points P1, P2, P3 used at the time of construction.
Parameters:
  • P1 (gp_Pnt) –
  • P2 (gp_Pnt) –
  • P3 (gp_Pnt) –
Return type:

None

static Status(*args)
Parameters:
  • X (float) –
  • Y (float) –
  • aTol (float) –
  • Dmin (float &) –
Return type:

int

  • Dmin gives the distance between the cdg and aPoint return
Parameters:
  • p0 (gp_XY) –
  • p1 (gp_XY) –
  • p2 (gp_XY) –
  • aPoint (gp_XY) –
  • aTol (float) –
  • Dmin (float &) –
Return type:

int

thisown

The membership flag

OCC.Select3D.Select3D_SensitiveTriangle_Status(*args)
Parameters:
  • X (float) –
  • Y (float) –
  • aTol (float) –
  • Dmin (float &) –
Return type:

int

  • Dmin gives the distance between the cdg and aPoint return
Parameters:
  • p0 (gp_XY) –
  • p1 (gp_XY) –
  • p2 (gp_XY) –
  • aPoint (gp_XY) –
  • aTol (float) –
  • Dmin (float &) –
Return type:

int

class OCC.Select3D.Select3D_SensitiveWire(*args)

Bases: OCC.Select3D.Select3D_SensitiveEntity

Add()
  • Adds the sensitive entity aSensitive to this framework.
Parameters:aSensitive (Handle_Select3D_SensitiveEntity &) –
Return type:None
Dump()
Parameters:
  • S (Standard_OStream &) –
  • FullDump (bool) – default value is Standard_True
  • S
  • FullDump – default value is Standard_True
Return type:

void

Return type:

void

GetEdges()
  • returns the sensitive edges stored in this wire
Parameters:theEdges (Select3D_SensitiveEntitySequence &) –
Return type:None
GetHandle()

Select3D_SensitiveWire_GetHandle(Select3D_SensitiveWire self) -> Handle_Select3D_SensitiveWire

GetLastDetected()
  • //!returns <mymaxrect>
Return type:Handle_Select3D_SensitiveEntity
Matches()
  • Checks whether the sensitive entity matches the picking detection area (close to the picking line). For details please refer to base class declaration.
Parameters:
  • thePickArgs (SelectBasics_PickArgs &) –
  • theMatchDMin (float &) –
  • theMatchDepth (float &) –
  • XMin (float) –
  • YMin (float) –
  • XMax (float) –
  • YMax (float) –
  • aTol (float) –
  • Polyline (TColgp_Array1OfPnt2d) –
  • aBox (Bnd_Box2d &) –
  • aTol
Return type:

bool

Return type:

bool

Return type:

bool

thisown

The membership flag

class OCC.Select3D.Select3D_SequenceNodeOfSensitiveEntitySequence(*args)

Bases: OCC.TCollection.TCollection_SeqNode

GetHandle()

Select3D_SequenceNodeOfSensitiveEntitySequence_GetHandle(Select3D_SequenceNodeOfSensitiveEntitySequence self) -> Handle_Select3D_SequenceNodeOfSensitiveEntitySequence

Value()
Return type:Handle_Select3D_SensitiveEntity
thisown

The membership flag

class OCC.Select3D.SwigPyIterator(*args, **kwargs)

Bases: object

advance()
copy()
decr()
distance()
equal()
incr()
next()
previous()
thisown

The membership flag

value()