OCC.BRepClass module

The BRepClass packages provides classificationalgorithms for the BRep topology. It instantiatesthe algorithms from the package TopClass.

class BRepClass_Edge(*args)

Bases: object

Return type:

None

Parameters:
  • E (TopoDS_Edge &) –
  • F (TopoDS_Face &) –
Return type:

None

Edge()
Return type:TopoDS_Edge
Face()
Return type:TopoDS_Face
thisown

The membership flag

class BRepClass_FClass2dOfFClassifier(*args)

Bases: object

Return type:None
ClosestIntersection()
Return type:int
Compare()
Parameters:
  • E (BRepClass_Edge &) –
  • Or (TopAbs_Orientation) –
Return type:

None

Intersector()
Return type:BRepClass_Intersector
IsHeadOrEnd()
Return type:bool
Parameter()
Return type:float
Reset()
Parameters:
Return type:

None

State()
Return type:TopAbs_State
thisown

The membership flag

class BRepClass_FClassifier(*args)

Bases: object

Return type:

None

Parameters:
  • F (BRepClass_FaceExplorer &) –
  • P (gp_Pnt2d) –
  • Tol (float) –
Return type:

None

Edge()
Return type:BRepClass_Edge
EdgeParameter()
Return type:float
NoWires()
Return type:bool
Perform()
Parameters:
  • F (BRepClass_FaceExplorer &) –
  • P (gp_Pnt2d) –
  • Tol (float) –
Return type:

None

Position()
Return type:IntRes2d_Position
Rejected()
Return type:bool
State()
Return type:TopAbs_State
thisown

The membership flag

class BRepClass_FaceExplorer(*args)

Bases: object

Parameters:F (TopoDS_Face &) –
Return type:None
CurrentEdge()
  • Current edge in current wire and its orientation.
Parameters:
  • E (BRepClass_Edge &) –
  • Or (TopAbs_Orientation &) –
Return type:

None

InitEdges()
  • Starts an exploration of the edges of the current wire.
Return type:None
InitWires()
  • Starts an exploration of the wires.
Return type:None
MoreEdges()
  • Returns True if there is a current edge.
Return type:bool
MoreWires()
  • Returns True if there is a current wire.
Return type:bool
NextEdge()
  • Sets the explorer to the next edge.
Return type:None
NextWire()
  • Sets the explorer to the next wire.
Return type:None
OtherSegment()
  • Returns in <L>, <Par> a segment having at least one intersection with the face boundary to compute intersections. Each call gives another segment.
Parameters:
Return type:

bool

Reject()
  • Should return True if the point is outside a bounding volume of the face.
Parameters:P (gp_Pnt2d) –
Return type:bool
RejectEdge()
  • Returns True if the edge bounding volume does not intersect the segment.
Parameters:
Return type:

bool

RejectWire()
  • Returns True if the wire bounding volume does not intersect the segment.
Parameters:
Return type:

bool

Segment()
  • Returns in <L>, <Par> a segment having at least one intersection with the face boundary to compute intersections.
Parameters:
Return type:

bool

thisown

The membership flag

class BRepClass_FacePassiveClassifier(*args)

Bases: object

Return type:None
ClosestIntersection()
Return type:int
Compare()
Parameters:
  • E (BRepClass_Edge &) –
  • Or (TopAbs_Orientation) –
Return type:

None

Intersector()
Return type:BRepClass_Intersector
IsHeadOrEnd()
Return type:bool
Parameter()
Return type:float
Reset()
Parameters:
Return type:

None

State()
Return type:TopAbs_State
thisown

The membership flag

class BRepClass_Intersector(*args)

Bases: OCC.Geom2dInt.Geom2dInt_IntConicCurveOfGInter

Return type:None
LocalGeometry()
  • Returns in <T>, <N> and <C> the tangent, normal and curvature of the edge <E> at parameter value <U>.
Parameters:
Return type:

None

Perform()
  • Intersect the line segment and the edge.
Parameters:
Return type:

None

thisown

The membership flag

class SwigPyIterator(*args, **kwargs)

Bases: object

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

The membership flag

value()
new_instancemethod(func, inst, cls)
register_handle(handle, base_object)

Inserts the handle into the base object to prevent memory corruption in certain cases