OCC.BRepClass module

class OCC.BRepClass.BRepClass_Edge(*args)

Bases: object

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

The membership flag

class OCC.BRepClass.BRepClass_FClass2dOfFClassifier

Bases: object

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:
  • L (gp_Lin2d) –
  • P (float) –
  • Tol (float) –
Return type:

None

State()
Return type:TopAbs_State
thisown

The membership flag

class OCC.BRepClass.BRepClass_FClassifier(*args)

Bases: object

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 OCC.BRepClass.BRepClass_FaceExplorer(*args)

Bases: object

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:
  • P (gp_Pnt2d) –
  • L (gp_Lin2d) –
  • Par (float &) –
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:
  • L (gp_Lin2d) –
  • Par (float) –
Return type:

bool

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

bool

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

bool

thisown

The membership flag

class OCC.BRepClass.BRepClass_FacePassiveClassifier

Bases: object

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:
  • L (gp_Lin2d) –
  • P (float) –
  • Tol (float) –
Return type:

None

State()
Return type:TopAbs_State
thisown

The membership flag

class OCC.BRepClass.BRepClass_Intersector

Bases: OCC.Geom2dInt.Geom2dInt_IntConicCurveOfGInter

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

None

Perform()
  • Intersect the line segment and the edge.
Parameters:
  • L (gp_Lin2d) –
  • P (float) –
  • Tol (float) –
  • E (BRepClass_Edge &) –
Return type:

None

thisown

The membership flag

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

Bases: object

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

The membership flag

value()