OCC.BRepPrim module

class OCC.BRepPrim.BRepPrim_Builder(*args)

Bases: object

AddEdgeVertex()
  • Adds the Vertex <V> in the Edge <E>. <P> is the parameter of the vertex on the edge. If direct is False the Vertex is reversed.
Parameters:
  • E (TopoDS_Edge &) –
  • V (TopoDS_Vertex &) –
  • P (float) –
  • direct (bool) –
Return type:

None

  • Adds the Vertex <V> in the Edge <E>. <P1,P2> are the parameters of the vertex on the closed edge.
Parameters:
  • E (TopoDS_Edge &) –
  • V (TopoDS_Vertex &) –
  • P1 (float) –
  • P2 (float) –
Return type:

None

AddFaceWire()
  • Adds the Wire <W> in the Face <F>.
Parameters:
  • F (TopoDS_Face &) –
  • W (TopoDS_Wire &) –
Return type:

None

AddShellFace()
  • Adds the Face <F> in the Shell <Sh>.
Parameters:
  • Sh (TopoDS_Shell &) –
  • F (TopoDS_Face &) –
Return type:

None

AddWireEdge()
  • Adds the Edge <E> in the Wire <W>, if direct is False the Edge is reversed.
Parameters:
  • W (TopoDS_Wire &) –
  • E (TopoDS_Edge &) –
  • direct (bool) –
Return type:

None

Builder()
Return type:BRep_Builder
CompleteEdge()
  • This is called once an edge is completed. It gives the opportunity to perform any post treatment.
Parameters:E (TopoDS_Edge &) –
Return type:None
CompleteFace()
  • This is called once a face is completed. It gives the opportunity to perform any post treatment.
Parameters:F (TopoDS_Face &) –
Return type:None
CompleteShell()
  • This is called once a shell is completed. It gives the opportunity to perform any post treatment.
Parameters:S (TopoDS_Shell &) –
Return type:None
CompleteWire()
  • This is called once a wire is completed. It gives the opportunity to perform any post treatment.
Parameters:W (TopoDS_Wire &) –
Return type:None
MakeDegeneratedEdge()
  • Returns in <E> a degenerated edge.
Parameters:E (TopoDS_Edge &) –
Return type:None
MakeEdge()
  • Returns in <E> an Edge built with the line equation <L>.
Parameters:
  • E (TopoDS_Edge &) –
  • L (gp_Lin) –
Return type:

None

  • Returns in <E> an Edge built with the circle equation <C>.
Parameters:
  • E (TopoDS_Edge &) –
  • C (gp_Circ) –
Return type:

None

MakeFace()
  • Returns in <F> a Face built with the plane equation <P>. Used by all primitives.
Parameters:
  • F (TopoDS_Face &) –
  • P (gp_Pln) –
Return type:

None

MakeShell()
  • Make a empty Shell.
Parameters:S (TopoDS_Shell &) –
Return type:None
MakeVertex()
  • Returns in <V> a Vertex built with the point <P>.
Parameters:
  • V (TopoDS_Vertex &) –
  • P (gp_Pnt) –
Return type:

None

MakeWire()
  • Returns in <W> an empty Wire.
Parameters:W (TopoDS_Wire &) –
Return type:None
ReverseFace()
  • Reverses the Face <F>.
Parameters:F (TopoDS_Face &) –
Return type:None
SetPCurve()
  • Sets the line <L> to be the curve representing the edge <E> in the parametric space of the surface of <F>.
Parameters:
  • E (TopoDS_Edge &) –
  • F (TopoDS_Face &) –
  • L (gp_Lin2d) –
Return type:

None

  • Sets the lines <L1,L2> to be the curves representing the edge <E> in the parametric space of the closed surface of <F>.
Parameters:
  • E (TopoDS_Edge &) –
  • F (TopoDS_Face &) –
  • L1 (gp_Lin2d) –
  • L2 (gp_Lin2d) –
Return type:

None

  • Sets the circle <C> to be the curve representing the edge <E> in the parametric space of the surface of <F>.
Parameters:
  • E (TopoDS_Edge &) –
  • F (TopoDS_Face &) –
  • C (gp_Circ2d) –
Return type:

None

SetParameters()
  • <P1,P2> are the parameters of the vertex on the edge. The edge is a closed curve.
Parameters:
  • E (TopoDS_Edge &) –
  • V (TopoDS_Vertex &) –
  • P1 (float) –
  • P2 (float) –
Return type:

None

thisown

The membership flag

class OCC.BRepPrim.BRepPrim_Cone(*args)

Bases: OCC.BRepPrim.BRepPrim_Revolution

thisown

The membership flag

class OCC.BRepPrim.BRepPrim_Cylinder(*args)

Bases: OCC.BRepPrim.BRepPrim_Revolution

thisown

The membership flag

class OCC.BRepPrim.BRepPrim_FaceBuilder(*args)

Bases: object

Edge()
  • Returns the edge of index <I> 1 - Edge VMin 2 - Edge UMax 3 - Edge VMax 4 - Edge UMin
Parameters:I (Standard_Integer) –
Return type:TopoDS_Edge
Face()
Return type:TopoDS_Face
Init()
Parameters:
  • B (BRep_Builder &) –
  • S (Handle_Geom_Surface &) –
  • B
  • S
  • UMin (float) –
  • UMax (float) –
  • VMin (float) –
  • VMax (float) –
Return type:

None

Return type:

None

Vertex()
  • Returns the vertex of index <I> 1 - Vertex UMin,VMin 2 - Vertex UMax,VMin 3 - Vertex UMax,VMax 4 - Vertex UMin,VMax
Parameters:I (Standard_Integer) –
Return type:TopoDS_Vertex
thisown

The membership flag

class OCC.BRepPrim.BRepPrim_GWedge(*args)

Bases: object

Axes()
Return type:gp_Ax2
Close()
Parameters:d1 (Primitives_Direction) –
Return type:None
Edge()
Parameters:
  • d1 (Primitives_Direction) –
  • d2 (Primitives_Direction) –
Return type:

TopoDS_Edge

Face()
Parameters:d1 (Primitives_Direction) –
Return type:TopoDS_Face
GetX2Max()
Return type:float
GetX2Min()
Return type:float
GetXMax()
Return type:float
GetXMin()
Return type:float
GetYMax()
Return type:float
GetYMin()
Return type:float
GetZ2Max()
Return type:float
GetZ2Min()
Return type:float
GetZMax()
Return type:float
GetZMin()
Return type:float
HasEdge()
Parameters:
  • d1 (Primitives_Direction) –
  • d2 (Primitives_Direction) –
Return type:

bool

HasFace()
Parameters:d1 (Primitives_Direction) –
Return type:bool
HasVertex()
Parameters:
  • d1 (Primitives_Direction) –
  • d2 (Primitives_Direction) –
  • d3 (Primitives_Direction) –
Return type:

bool

HasWire()
Parameters:d1 (Primitives_Direction) –
Return type:bool
IsInfinite()
Parameters:d1 (Primitives_Direction) –
Return type:bool
Line()
Parameters:
  • d1 (Primitives_Direction) –
  • d2 (Primitives_Direction) –
Return type:

gp_Lin

Open()
Parameters:d1 (Primitives_Direction) –
Return type:None
Plane()
Parameters:d1 (Primitives_Direction) –
Return type:gp_Pln
Point()
Parameters:
  • d1 (Primitives_Direction) –
  • d2 (Primitives_Direction) –
  • d3 (Primitives_Direction) –
Return type:

gp_Pnt

Shell()
Return type:TopoDS_Shell
Vertex()
Parameters:
  • d1 (Primitives_Direction) –
  • d2 (Primitives_Direction) –
  • d3 (Primitives_Direction) –
Return type:

TopoDS_Vertex

Wire()
Parameters:d1 (Primitives_Direction) –
Return type:TopoDS_Wire
thisown

The membership flag

class OCC.BRepPrim.BRepPrim_OneAxis(*args, **kwargs)

Bases: object

Angle()
Return type:float
Parameters:A (float) –
Return type:None
Axes()
Return type:gp_Ax2
Parameters:A (gp_Ax2) –
Return type:None
AxisBottomVertex()
Return type:TopoDS_Vertex
AxisEdge()
Return type:TopoDS_Edge
AxisEndWire()
Return type:TopoDS_Wire
AxisStartWire()
Return type:TopoDS_Wire
AxisTopVertex()
Return type:TopoDS_Vertex
BottomEdge()
Return type:TopoDS_Edge
BottomEndVertex()
Return type:TopoDS_Vertex
BottomFace()
Return type:TopoDS_Face
BottomStartVertex()
Return type:TopoDS_Vertex
BottomWire()
Return type:TopoDS_Wire
Delete()
Return type:void
EndBottomEdge()
Return type:TopoDS_Edge
EndEdge()
Return type:TopoDS_Edge
EndFace()
Return type:TopoDS_Face
EndTopEdge()
Return type:TopoDS_Edge
EndWire()
Return type:TopoDS_Wire
HasBottom()
Return type:bool
HasSides()
Return type:bool
HasTop()
Return type:bool
LateralEndWire()
Return type:TopoDS_Wire
LateralFace()
Return type:TopoDS_Face
LateralStartWire()
Return type:TopoDS_Wire
LateralWire()
Return type:TopoDS_Wire
MakeEmptyLateralFace()
Return type:TopoDS_Face
MakeEmptyMeridianEdge()
Parameters:Ang (float) –
Return type:TopoDS_Edge
MeridianClosed()
Return type:bool
MeridianOnAxis()
Parameters:V (float) –
Return type:bool
MeridianValue()
Parameters:V (float) –
Return type:gp_Pnt2d
SetMeridianOffset()
Parameters:
  • MeridianOffset (float) – default value is 0
  • MeridianOffset – default value is 0
Return type:

None

Return type:

None

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

void

Shell()
Return type:TopoDS_Shell
StartBottomEdge()
Return type:TopoDS_Edge
StartEdge()
Return type:TopoDS_Edge
StartFace()
Return type:TopoDS_Face
StartTopEdge()
Return type:TopoDS_Edge
StartWire()
Return type:TopoDS_Wire
TopEdge()
Return type:TopoDS_Edge
TopEndVertex()
Return type:TopoDS_Vertex
TopFace()
Return type:TopoDS_Face
TopStartVertex()
Return type:TopoDS_Vertex
TopWire()
Return type:TopoDS_Wire
VMax()
Return type:float
Parameters:V (float) –
Return type:None
VMaxInfinite()
Return type:bool
VMin()
Return type:float
Parameters:V (float) –
Return type:None
VMinInfinite()
Return type:bool
thisown

The membership flag

class OCC.BRepPrim.BRepPrim_Revolution(*args)

Bases: OCC.BRepPrim.BRepPrim_OneAxis

thisown

The membership flag

class OCC.BRepPrim.BRepPrim_Sphere(*args)

Bases: OCC.BRepPrim.BRepPrim_Revolution

thisown

The membership flag

class OCC.BRepPrim.BRepPrim_Torus(*args)

Bases: OCC.BRepPrim.BRepPrim_Revolution

thisown

The membership flag

class OCC.BRepPrim.BRepPrim_Wedge(*args)

Bases: OCC.BRepPrim.BRepPrim_GWedge

thisown

The membership flag

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

Bases: object

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

The membership flag

value()