OCC.Core.BRepClass3d module

BRepClass3d module, see official documentation at https://www.opencascade.com/doc/occt-7.4.0/refman/html/package_brepclass3d.html

class BRepClass3d_BndBoxTree(*args)

Bases: object

Add()
Allocator()
Clear()
IsEmpty()
Root()
Select()
property thisown

The membership flag

class BRepClass3d_Intersector3d(*args)

Bases: object

  • Empty constructor.
    rtype

    None

Face()
  • Returns the significant face used to determine the intersection.
    rtype

    TopoDS_Face

HasAPoint()
  • True is returned if a point has been found.
    rtype

    bool

IsDone()
  • True is returned when the intersection have been computed.
    rtype

    bool

Perform()
  • Perform the intersection between the segment L(0) … L(Prm) and the Shape <Sh>. //! Only the point with the smallest parameter on the line is returned. //! The Tolerance <Tol> is used to determine if the first point of the segment is near the face. In that case, the parameter of the intersection point on the line can be a negative value (greater than -Tol).
    param L

    type L

    gp_Lin

    param Prm

    type Prm

    float

    param Tol

    type Tol

    float

    param F

    type F

    TopoDS_Face

    rtype

    None

Pnt()
  • Returns the geometric point of the intersection between the line and the surface.
    rtype

    gp_Pnt

State()
  • Returns the state of the point on the face. The values can be either TopAbs_IN ( the point is in the face) or TopAbs_ON ( the point is on a boudary of the face).
    rtype

    TopAbs_State

Transition()
  • Returns the transition of the line on the surface.
    rtype

    IntCurveSurface_TransitionOnCurve

UParameter()
  • Returns the U parameter of the intersection point on the surface.
    rtype

    float

VParameter()
  • Returns the V parameter of the intersection point on the surface.
    rtype

    float

WParameter()
  • Returns the parameter of the intersection point on the line.
    rtype

    float

property thisown

The membership flag

class BRepClass3d_MapOfInter(*args)

Bases: object

Assign()
Bind()
Bound()
ChangeFind()
ChangeSeek()
Clear()
Exchange()
Find()
IsBound()
ReSize()
Seek()
Set()
Size()
UnBind()
begin()
cbegin()
cend()
end()
property thisown

The membership flag

class BRepClass3d_SClassifier(*args)

Bases: object

  • Empty constructor.
    rtype

    None* Constructor to classify the point P with the tolerance Tol on the solid S.

    param S

    type S

    BRepClass3d_SolidExplorer

    param P

    type P

    gp_Pnt

    param Tol

    type Tol

    float

    rtype

    None

Face()
  • Returns the face used to determine the classification. When the state is ON, this is the face containing the point. //! When Rejected() returns True, Face() has no signification.
    rtype

    TopoDS_Face

IsOnAFace()
  • Returns True when the point is a point of a face.
    rtype

    bool

Perform()
  • Classify the point P with the tolerance Tol on the solid S.
    param S

    type S

    BRepClass3d_SolidExplorer

    param P

    type P

    gp_Pnt

    param Tol

    type Tol

    float

    rtype

    None

PerformInfinitePoint()
  • Classify an infinite point with the tolerance Tol on the solid S.
    param S

    type S

    BRepClass3d_SolidExplorer

    param Tol

    type Tol

    float

    rtype

    None

Rejected()
  • Returns True if the classification has been computed by rejection. The State is then OUT.
    rtype

    bool

State()
  • Returns the result of the classification.
    rtype

    TopAbs_State

property thisown

The membership flag

class BRepClass3d_SolidClassifier(*args)

Bases: OCC.Core.BRepClass3d.BRepClass3d_SClassifier

  • empty constructor
    rtype

    None* Constructor from a Shape.

    param S

    type S

    TopoDS_Shape

    rtype

    None* Constructor to classify the point P with the tolerance Tol on the solid S.

    param S

    type S

    TopoDS_Shape

    param P

    type P

    gp_Pnt

    param Tol

    type Tol

    float

    rtype

    None

Destroy()
Return type

None

Load()
Parameters

S

type S

TopoDS_Shape

rtype

None

Perform()
  • Classify the point P with the tolerance Tol on the solid S.
    param P

    type P

    gp_Pnt

    param Tol

    type Tol

    float

    rtype

    None

PerformInfinitePoint()
  • Classify an infinite point with the tolerance Tol on the solid S. Useful for compute the orientation of a solid.
    param Tol

    type Tol

    float

    rtype

    None

property thisown

The membership flag

class BRepClass3d_SolidExplorer(*args)

Bases: object

Return type

None:param S: :type S: TopoDS_Shape :rtype: None

Box()
Return type

Bnd_Box

CurrentFace()
  • Returns the current face.
    rtype

    TopoDS_Face

CurrentShell()
  • Returns the current shell.
    rtype

    TopoDS_Shell

Destroy()
Return type

None

DumpSegment()
Parameters

P

type P

gp_Pnt

param L

type L

gp_Lin

param Par

type Par

float

param S

type S

TopAbs_State

rtype

void

static FindAPointInTheFace()
  • compute a point P in the face F. Param is a Real in ]0,1[ and is used to initialise the algorithm. For different values , different points are returned.
    param F

    type F

    TopoDS_Face

    param P

    type P

    gp_Pnt

    param Param

    type Param

    float

    rtype

    bool:param F:

    type F

    TopoDS_Face

    param P

    type P

    gp_Pnt

    param u

    type u

    float

    param v

    type v

    float

    param Param

    type Param

    float

    rtype

    bool:param F:

    type F

    TopoDS_Face

    param P

    type P

    gp_Pnt

    param u

    type u

    float

    param v

    type v

    float

    param Param

    type Param

    float

    param theVecD1U

    type theVecD1U

    gp_Vec

    param theVecD1V

    type theVecD1V

    gp_Vec

    rtype

    bool:param F:

    type F

    TopoDS_Face

    param P

    type P

    gp_Pnt

    param u

    type u

    float

    param v

    type v

    float

    rtype

    bool:param F:

    type F

    TopoDS_Face

    param P

    type P

    gp_Pnt

    rtype

    bool:param F:

    type F

    TopoDS_Face

    param u

    type u

    float

    param v

    type v

    float

    rtype

    bool

GetFaceSegmentIndex()
  • Returns the index of face for which last segment is calculated.
    rtype

    int

GetMapEV()
  • Return edge/vertices map for current shape.
    rtype

    TopTools_IndexedMapOfShape

GetShape()
Return type

TopoDS_Shape

GetTree()
  • Return UB-tree instance which is used for edge / vertex checks.
    rtype

    BRepClass3d_BndBoxTree

InitFace()
  • Starts an exploration of the faces of the current shell.
    rtype

    None

InitShape()
Parameters

S

type S

TopoDS_Shape

rtype

None

InitShell()
  • Starts an exploration of the shells.
    rtype

    None

Intersector()
Parameters

F

type F

TopoDS_Face

rtype

IntCurvesFace_Intersector

MoreFace()
  • Returns True if current face in current shell.
    rtype

    bool

MoreShell()
  • Returns True if there is a current shell.
    rtype

    bool

NextFace()
  • Sets the explorer to the next Face of the current shell.
    rtype

    None

NextShell()
  • Sets the explorer to the next shell.
    rtype

    None

OtherSegment()
  • Returns in <L>, <Par> a segment having at least one intersection with the shape boundary to compute intersections. //! The First Call to this method returns a line which point to a point of the first face of the shape. The Second Call provide a line to the second face and so on.
    param P

    type P

    gp_Pnt

    param L

    type L

    gp_Lin

    param Par

    type Par

    float

    rtype

    int

PointInTheFace()
Parameters

F

type F

TopoDS_Face

param P

type P

gp_Pnt

param u

type u

float

param v

type v

float

param Param

type Param

float

param Index

type Index

int

rtype

bool:param F:

type F

TopoDS_Face

param P

type P

gp_Pnt

param u

type u

float

param v

type v

float

param Param

type Param

float

param Index

type Index

int

param surf

type surf

BRepAdaptor_HSurface

param u1

type u1

float

param v1

type v1

float

param u2

type u2

float

param v2

type v2

float

rtype

bool* <Index> gives point index to search from and returns point index of succeseful search

param F

type F

TopoDS_Face

param P

type P

gp_Pnt

param u

type u

float

param v

type v

float

param Param

type Param

float

param Index

type Index

int

param surf

type surf

BRepAdaptor_HSurface

param u1

type u1

float

param v1

type v1

float

param u2

type u2

float

param v2

type v2

float

param theVecD1U

type theVecD1U

gp_Vec

param theVecD1V

type theVecD1V

gp_Vec

rtype

bool

Reject()
  • Should return True if P outside of bounding vol. of the shape
    param P

    type P

    gp_Pnt

    rtype

    bool

RejectFace()
  • returns True if the face is rejected.
    param L

    type L

    gp_Lin

    rtype

    bool

RejectShell()
  • Returns True if the Shell is rejected.
    param L

    type L

    gp_Lin

    rtype

    bool

Segment()
  • Returns in <L>, <Par> a segment having at least one intersection with the shape boundary to compute intersections.
    param P

    type P

    gp_Pnt

    param L

    type L

    gp_Lin

    param Par

    type Par

    float

    rtype

    int

property thisown

The membership flag

class BRepClass3d_SolidPassiveClassifier(*args)

Bases: object

  • Creates an undefined classifier.
    rtype

    None

Compare()
  • Updates the classification process with the face <F> from the boundary.
    param F

    type F

    TopoDS_Face

    param Or

    type Or

    TopAbs_Orientation

    rtype

    None

HasIntersection()
  • Returns True if an intersection is computed.
    rtype

    bool

Intersector()
  • Returns the intersecting algorithm.
    rtype

    BRepClass3d_Intersector3d

Parameter()
  • Returns the current value of the parameter.
    rtype

    float

Reset()
  • Starts a classification process. The point to classify is the origin of the line <L>. <P> is the original length of the segment on <L> used to compute intersections. <Tol> is the tolerance attached to the intersections.
    param L

    type L

    gp_Lin

    param P

    type P

    float

    param Tol

    type Tol

    float

    rtype

    None

State()
  • Returns the current state of the point.
    rtype

    TopAbs_State

property thisown

The membership flag

class SwigPyIterator(*args, **kwargs)

Bases: object

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

The membership flag

value()
class brepclass3d

Bases: object

static OuterShell()
  • Returns the outer most shell of <S>. Returns a Null shell if <S> has no outer shell. If <S> has only one shell, then it will return, without checking orientation.
    param S

    type S

    TopoDS_Solid

    rtype

    TopoDS_Shell

property thisown

The membership flag