OCC.BRepSweep module

class OCC.BRepSweep.BRepSweep_Array2OfShapesOfNumLinearRegularSweep(*args)

Bases: object

Assign()
Parameters:Other (BRepSweep_Array2OfShapesOfNumLinearRegularSweep &) –
Return type:BRepSweep_Array2OfShapesOfNumLinearRegularSweep
ChangeValue()
Parameters:
  • Row (Standard_Integer) –
  • Col (Standard_Integer) –
Return type:

TopoDS_Shape

ColLength()
Return type:int
Destroy()
Return type:None
Init()
Parameters:V (TopoDS_Shape &) –
Return type:None
LowerCol()
Return type:int
LowerRow()
Return type:int
RowLength()
Return type:int
Set()
Parameters:Other (BRepSweep_Array2OfShapesOfNumLinearRegularSweep &) –
Return type:BRepSweep_Array2OfShapesOfNumLinearRegularSweep
SetValue()
Parameters:
  • Row (Standard_Integer) –
  • Col (Standard_Integer) –
  • Value (TopoDS_Shape &) –
Return type:

None

UpperCol()
Return type:int
UpperRow()
Return type:int
Value()
Parameters:
  • Row (Standard_Integer) –
  • Col (Standard_Integer) –
Return type:

TopoDS_Shape

thisown

The membership flag

class OCC.BRepSweep.BRepSweep_Builder(*args)

Bases: object

Add()
  • Adds the Shape 1 in the Shape 2, set to <Orient> orientation.
Parameters:
  • aShape1 (TopoDS_Shape &) –
  • aShape2 (TopoDS_Shape &) –
  • Orient (TopAbs_Orientation) –
Return type:

None

  • Adds the Shape 1 in the Shape 2.
Parameters:
  • aShape1 (TopoDS_Shape &) –
  • aShape2 (TopoDS_Shape &) –
Return type:

None

Builder()
Return type:BRep_Builder
MakeCompSolid()
  • Returns an empty CompSolid.
Parameters:aCompSolid (TopoDS_Shape &) –
Return type:None
MakeCompound()
  • Returns an empty Compound.
Parameters:aCompound (TopoDS_Shape &) –
Return type:None
MakeShell()
  • Returns an empty Shell.
Parameters:aShell (TopoDS_Shape &) –
Return type:None
MakeSolid()
  • Returns an empty Solid.
Parameters:aSolid (TopoDS_Shape &) –
Return type:None
MakeWire()
  • Returns an empty Wire.
Parameters:aWire (TopoDS_Shape &) –
Return type:None
thisown

The membership flag

class OCC.BRepSweep.BRepSweep_Iterator

Bases: object

Init()
  • Resest the Iterator on sub-shapes of <aShape>.
Parameters:aShape (TopoDS_Shape &) –
Return type:None
More()
  • Returns True if there is a current sub-shape.
Return type:bool
Next()
  • Moves to the next sub-shape.
Return type:None
Orientation()
  • Returns the orientation of the current sub-shape.
Return type:TopAbs_Orientation
Value()
  • Returns the current sub-shape.
Return type:TopoDS_Shape
thisown

The membership flag

class OCC.BRepSweep.BRepSweep_NumLinearRegularSweep(*args, **kwargs)

Bases: object

Closed()
Return type:bool
Delete()
Return type:void
DirectSolid()
Parameters:
  • aGenS (TopoDS_Shape &) –
  • aDirS (Sweep_NumShape &) –
Return type:

TopAbs_Orientation

FirstShape()
Return type:TopoDS_Shape
Parameters:aGenS (TopoDS_Shape &) –
Return type:TopoDS_Shape
GDDShapeIsToAdd()
Parameters:
  • aNewShape (TopoDS_Shape &) –
  • aNewSubShape (TopoDS_Shape &) –
  • aGenS (TopoDS_Shape &) –
  • aDirS (Sweep_NumShape &) –
  • aSubDirS (Sweep_NumShape &) –
Return type:

bool

GGDShapeIsToAdd()
Parameters:
  • aNewShape (TopoDS_Shape &) –
  • aNewSubShape (TopoDS_Shape &) –
  • aGenS (TopoDS_Shape &) –
  • aSubGenS (TopoDS_Shape &) –
  • aDirS (Sweep_NumShape &) –
Return type:

bool

HasShape()
Parameters:
  • aGenS (TopoDS_Shape &) –
  • aDirS (Sweep_NumShape &) –
Return type:

bool

LastShape()
Return type:TopoDS_Shape
Parameters:aGenS (TopoDS_Shape &) –
Return type:TopoDS_Shape
MakeEmptyDirectingEdge()
Parameters:
  • aGenV (TopoDS_Shape &) –
  • aDirE (Sweep_NumShape &) –
Return type:

TopoDS_Shape

MakeEmptyFace()
Parameters:
  • aGenS (TopoDS_Shape &) –
  • aDirS (Sweep_NumShape &) –
Return type:

TopoDS_Shape

MakeEmptyGeneratingEdge()
Parameters:
  • aGenE (TopoDS_Shape &) –
  • aDirV (Sweep_NumShape &) –
Return type:

TopoDS_Shape

MakeEmptyVertex()
Parameters:
  • aGenV (TopoDS_Shape &) –
  • aDirV (Sweep_NumShape &) –
Return type:

TopoDS_Shape

SeparatedWires()
Parameters:
  • aNewShape (TopoDS_Shape &) –
  • aNewSubShape (TopoDS_Shape &) –
  • aGenS (TopoDS_Shape &) –
  • aSubGenS (TopoDS_Shape &) –
  • aDirS (Sweep_NumShape &) –
Return type:

bool

SetContinuity()
Parameters:
  • aGenS (TopoDS_Shape &) –
  • aDirS (Sweep_NumShape &) –
Return type:

void

SetDirectingPCurve()
Parameters:
  • aNewFace (TopoDS_Shape &) –
  • aNewEdge (TopoDS_Shape &) –
  • aGenE (TopoDS_Shape &) –
  • aGenV (TopoDS_Shape &) –
  • aDirE (Sweep_NumShape &) –
  • orien (TopAbs_Orientation) –
Return type:

void

SetDirectingParameter()
Parameters:
  • aNewEdge (TopoDS_Shape &) –
  • aNewVertex (TopoDS_Shape &) –
  • aGenV (TopoDS_Shape &) –
  • aDirE (Sweep_NumShape &) –
  • aDirV (Sweep_NumShape &) –
Return type:

void

SetGeneratingPCurve()
Parameters:
  • aNewFace (TopoDS_Shape &) –
  • aNewEdge (TopoDS_Shape &) –
  • aGenE (TopoDS_Shape &) –
  • aDirE (Sweep_NumShape &) –
  • aDirV (Sweep_NumShape &) –
  • orien (TopAbs_Orientation) –
Return type:

void

SetGeneratingParameter()
Parameters:
  • aNewEdge (TopoDS_Shape &) –
  • aNewVertex (TopoDS_Shape &) –
  • aGenE (TopoDS_Shape &) –
  • aGenV (TopoDS_Shape &) –
  • aDirV (Sweep_NumShape &) –
Return type:

void

SetPCurve()
Parameters:
  • aNewFace (TopoDS_Shape &) –
  • aNewEdge (TopoDS_Shape &) –
  • aGenF (TopoDS_Shape &) –
  • aGenE (TopoDS_Shape &) –
  • aDirV (Sweep_NumShape &) –
  • orien (TopAbs_Orientation) –
Return type:

void

SetParameters()
Parameters:
  • aNewFace (TopoDS_Shape &) –
  • aNewVertex (TopoDS_Shape &) –
  • aGenF (TopoDS_Shape &) –
  • aGenV (TopoDS_Shape &) –
  • aDirV (Sweep_NumShape &) –
Return type:

void

Shape()
Parameters:
  • aGenS (TopoDS_Shape &) –
  • aDirS (Sweep_NumShape &) –
  • aGenS
Return type:

TopoDS_Shape

Return type:

TopoDS_Shape

Return type:

TopoDS_Shape

SplitShell()
Parameters:aNewShape (TopoDS_Shape &) –
Return type:TopoDS_Shape
thisown

The membership flag

class OCC.BRepSweep.BRepSweep_Prism(*args)

Bases: object

FirstShape()
  • Returns the TopoDS Shape of the bottom of the prism.
Return type:TopoDS_Shape
  • Returns the TopoDS Shape of the bottom of the prism. generated with aGenS (subShape of the generating shape).
Parameters:aGenS (TopoDS_Shape &) –
Return type:TopoDS_Shape
LastShape()
  • Returns the TopoDS Shape of the top of the prism.
Return type:TopoDS_Shape
  • Returns the TopoDS Shape of the top of the prism. generated with aGenS (subShape of the generating shape).
Parameters:aGenS (TopoDS_Shape &) –
Return type:TopoDS_Shape
Shape()
  • Returns the TopoDS Shape attached to the prism.
Return type:TopoDS_Shape
  • Returns the TopoDS Shape generated with aGenS (subShape of the generating shape).
Parameters:aGenS (TopoDS_Shape &) –
Return type:TopoDS_Shape
Vec()
  • Returns the Vector of the Prism, if it is an infinite prism the Vec is unitar.
Return type:gp_Vec
thisown

The membership flag

class OCC.BRepSweep.BRepSweep_Revol(*args)

Bases: object

Angle()
  • returns the angle.
Return type:Quantity_PlaneAngle
Axe()
  • returns the axis
Return type:gp_Ax1
FirstShape()
  • Returns the first shape of the revol (coinciding with the generating shape).
Return type:TopoDS_Shape
  • Returns the first shape of the revol (coinciding with the generating shape).
Parameters:aGenS (TopoDS_Shape &) –
Return type:TopoDS_Shape
LastShape()
  • Returns the TopoDS Shape of the top of the prism.
Return type:TopoDS_Shape
  • Returns the TopoDS Shape of the top of the prism. generated with aGenS (subShape of the generating shape).
Parameters:aGenS (TopoDS_Shape &) –
Return type:TopoDS_Shape
Shape()
  • Returns the TopoDS Shape attached to the Revol.
Return type:TopoDS_Shape
  • Returns the TopoDS Shape generated with aGenS (subShape of the generating shape).
Parameters:aGenS (TopoDS_Shape &) –
Return type:TopoDS_Shape
thisown

The membership flag

class OCC.BRepSweep.BRepSweep_Rotation(*args)

Bases: OCC.BRepSweep.BRepSweep_Trsf

Angle()
  • returns the angle.
Return type:Quantity_PlaneAngle
Axe()
  • returns the axis
Return type:gp_Ax1
thisown

The membership flag

class OCC.BRepSweep.BRepSweep_SequenceNodeOfSequenceOfShapesOfNumLinearRegularSweep(*args)

Bases: OCC.TCollection.TCollection_SeqNode

GetHandle()

BRepSweep_SequenceNodeOfSequenceOfShapesOfNumLinearRegularSweep_GetHandle(BRepSweep_SequenceNodeOfSequenceOfShapesOfNumLinearRegularSweep self) -> Handle_BRepSweep_SequenceNodeOfSequenceOfShapesOfNumLinearRegularSweep

Value()
Return type:TopoDS_Shape
thisown

The membership flag

class OCC.BRepSweep.BRepSweep_SequenceOfShapesOfNumLinearRegularSweep

Bases: OCC.TCollection.TCollection_BaseSequence

Append()
Parameters:
  • T (TopoDS_Shape &) –
  • S (BRepSweep_SequenceOfShapesOfNumLinearRegularSweep &) –
Return type:

None

Return type:

None

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

None

Return type:

None

InsertBefore()
Parameters:
  • Index (Standard_Integer) –
  • T (TopoDS_Shape &) –
  • Index
  • S (BRepSweep_SequenceOfShapesOfNumLinearRegularSweep &) –
Return type:

None

Return type:

None

Last()
Return type:TopoDS_Shape
Prepend()
Parameters:
  • T (TopoDS_Shape &) –
  • S (BRepSweep_SequenceOfShapesOfNumLinearRegularSweep &) –
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 (BRepSweep_SequenceOfShapesOfNumLinearRegularSweep &) –
Return type:BRepSweep_SequenceOfShapesOfNumLinearRegularSweep
SetValue()
Parameters:
  • Index (Standard_Integer) –
  • I (TopoDS_Shape &) –
Return type:

None

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

None

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

The membership flag

class OCC.BRepSweep.BRepSweep_Tool(*args)

Bases: object

Index()
  • Returns the index of <aShape>.
Parameters:aShape (TopoDS_Shape &) –
Return type:int
NbShapes()
  • Returns the number of subshapes in the shape.
Return type:int
Orientation()
  • Returns the Orientation of <aShape>.
Parameters:aShape (TopoDS_Shape &) –
Return type:TopAbs_Orientation
SetOrientation()
  • Set the Orientation of <aShape> with Or.
Parameters:
  • aShape (TopoDS_Shape &) –
  • Or (TopAbs_Orientation) –
Return type:

None

Shape()
  • Returns the Shape at Index anIdex.
Parameters:anIndex (Standard_Integer) –
Return type:TopoDS_Shape
Type()
  • Returns the type of <aShape>.
Parameters:aShape (TopoDS_Shape &) –
Return type:TopAbs_ShapeEnum
thisown

The membership flag

class OCC.BRepSweep.BRepSweep_Translation(*args)

Bases: OCC.BRepSweep.BRepSweep_Trsf

Vec()
  • Returns the Vector of the Prism, if it is an infinite prism the Vec is unitar.
Return type:gp_Vec
thisown

The membership flag

class OCC.BRepSweep.BRepSweep_Trsf(*args, **kwargs)

Bases: OCC.BRepSweep.BRepSweep_NumLinearRegularSweep

Init()
  • ends the construction of the swept primitive calling the virtual geometric functions that can’t be called in the initialize.
Return type:None
IsInvariant()
  • Returns true if the geometry of aGenS is not modified by the trsf of the BRepSweep Trsf.
Parameters:aGenS (TopoDS_Shape &) –
Return type:bool
Process()
  • function called to analize the way of construction of the shapes generated by aGenS and aDirV.
Parameters:
  • aGenS (TopoDS_Shape &) –
  • aDirV (Sweep_NumShape &) –
Return type:

bool

thisown

The membership flag

class OCC.BRepSweep.Handle_BRepSweep_SequenceNodeOfSequenceOfShapesOfNumLinearRegularSweep(*args)

Bases: OCC.TCollection.Handle_TCollection_SeqNode

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

The membership flag

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

Bases: object

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

The membership flag

value()