OCC.BRepOffset module

class OCC.BRepOffset.BRepOffset_Analyse(*args)

Bases: object

AddFaces()
  • Add in <CO> the faces of the shell containing <Face> where all the connex edges are of type <Side>.
Parameters:
  • Face (TopoDS_Face &) –
  • Co (TopoDS_Compound &) –
  • Map (TopTools_MapOfShape &) –
  • Type (BRepOffset_Type) –
Return type:

None

  • Add in <CO> the faces of the shell containing <Face> where all the connex edges are of type <Side1> or <Side2>.
Parameters:
  • Face (TopoDS_Face &) –
  • Co (TopoDS_Compound &) –
  • Map (TopTools_MapOfShape &) –
  • Type1 (BRepOffset_Type) –
  • Type2 (BRepOffset_Type) –
Return type:

None

Ancestors()
Parameters:S (TopoDS_Shape &) –
Return type:TopTools_ListOfShape
Clear()
Return type:None
Edges()
  • Stores in <L> all the edges of Type <T> on the vertex <V>.
Parameters:
  • V (TopoDS_Vertex &) –
  • T (BRepOffset_Type) –
  • L (TopTools_ListOfShape &) –
Return type:

None

  • Stores in <L> all the edges of Type <T> on the face <F>.
Parameters:
  • F (TopoDS_Face &) –
  • T (BRepOffset_Type) –
  • L (TopTools_ListOfShape &) –
Return type:

None

Explode()
  • Explode in compounds of faces where all the connex edges are of type <Side>
Parameters:
  • L (TopTools_ListOfShape &) –
  • Type (BRepOffset_Type) –
Return type:

None

  • Explode in compounds of faces where all the connex edges are of type <Side1> or <Side2>
Parameters:
  • L (TopTools_ListOfShape &) –
  • Type1 (BRepOffset_Type) –
  • Type2 (BRepOffset_Type) –
Return type:

None

HasAncestor()
Parameters:S (TopoDS_Shape &) –
Return type:bool
IsDone()
Return type:bool
Perform()
Parameters:
  • S (TopoDS_Shape &) –
  • Angle (float) –
Return type:

None

TangentEdges()
  • set in <Edges> all the Edges of <Shape> which are tangent to <Edge> at the vertex <Vertex>.
Parameters:
  • Edge (TopoDS_Edge &) –
  • Vertex (TopoDS_Vertex &) –
  • Edges (TopTools_ListOfShape &) –
Return type:

None

Type()
Parameters:E (TopoDS_Edge &) –
Return type:BRepOffset_ListOfInterval
thisown

The membership flag

class OCC.BRepOffset.BRepOffset_DataMapIteratorOfDataMapOfShapeListOfInterval(*args)

Bases: OCC.TCollection.TCollection_BasicMapIterator

Initialize()
Parameters:aMap (BRepOffset_DataMapOfShapeListOfInterval &) –
Return type:None
Key()
Return type:TopoDS_Shape
Value()
Return type:BRepOffset_ListOfInterval
thisown

The membership flag

class OCC.BRepOffset.BRepOffset_DataMapIteratorOfDataMapOfShapeMapOfShape(*args)

Bases: OCC.TCollection.TCollection_BasicMapIterator

Initialize()
Parameters:aMap (BRepOffset_DataMapOfShapeMapOfShape &) –
Return type:None
Key()
Return type:TopoDS_Shape
Value()
Return type:TopTools_MapOfShape
thisown

The membership flag

class OCC.BRepOffset.BRepOffset_DataMapIteratorOfDataMapOfShapeOffset(*args)

Bases: OCC.TCollection.TCollection_BasicMapIterator

Initialize()
Parameters:aMap (BRepOffset_DataMapOfShapeOffset &) –
Return type:None
Key()
Return type:TopoDS_Shape
Value()
Return type:BRepOffset_Offset
thisown

The membership flag

class OCC.BRepOffset.BRepOffset_DataMapNodeOfDataMapOfShapeListOfInterval(*args)

Bases: OCC.TCollection.TCollection_MapNode

GetHandle()

BRepOffset_DataMapNodeOfDataMapOfShapeListOfInterval_GetHandle(BRepOffset_DataMapNodeOfDataMapOfShapeListOfInterval self) -> Handle_BRepOffset_DataMapNodeOfDataMapOfShapeListOfInterval

Key()
Return type:TopoDS_Shape
Value()
Return type:BRepOffset_ListOfInterval
thisown

The membership flag

class OCC.BRepOffset.BRepOffset_DataMapNodeOfDataMapOfShapeMapOfShape(*args)

Bases: OCC.TCollection.TCollection_MapNode

GetHandle()

BRepOffset_DataMapNodeOfDataMapOfShapeMapOfShape_GetHandle(BRepOffset_DataMapNodeOfDataMapOfShapeMapOfShape self) -> Handle_BRepOffset_DataMapNodeOfDataMapOfShapeMapOfShape

Key()
Return type:TopoDS_Shape
Value()
Return type:TopTools_MapOfShape
thisown

The membership flag

class OCC.BRepOffset.BRepOffset_DataMapNodeOfDataMapOfShapeOffset(*args)

Bases: OCC.TCollection.TCollection_MapNode

GetHandle()

BRepOffset_DataMapNodeOfDataMapOfShapeOffset_GetHandle(BRepOffset_DataMapNodeOfDataMapOfShapeOffset self) -> Handle_BRepOffset_DataMapNodeOfDataMapOfShapeOffset

Key()
Return type:TopoDS_Shape
Value()
Return type:BRepOffset_Offset
thisown

The membership flag

class OCC.BRepOffset.BRepOffset_DataMapOfShapeListOfInterval(NbBuckets=1)

Bases: OCC.TCollection.TCollection_BasicMap

Assign()
Parameters:Other (BRepOffset_DataMapOfShapeListOfInterval &) –
Return type:BRepOffset_DataMapOfShapeListOfInterval
Bind()
Parameters:
  • K (TopoDS_Shape &) –
  • I (BRepOffset_ListOfInterval &) –
Return type:

bool

ChangeFind()
Parameters:K (TopoDS_Shape &) –
Return type:BRepOffset_ListOfInterval
ChangeFind1()
Parameters:K (TopoDS_Shape &) –
Return type:Standard_Address
Clear()
Return type:None
Find()
Parameters:K (TopoDS_Shape &) –
Return type:BRepOffset_ListOfInterval
Find1()
Parameters:K (TopoDS_Shape &) –
Return type:Standard_Address
IsBound()
Parameters:K (TopoDS_Shape &) –
Return type:bool
ReSize()
Parameters:NbBuckets (Standard_Integer) –
Return type:None
Set()
Parameters:Other (BRepOffset_DataMapOfShapeListOfInterval &) –
Return type:BRepOffset_DataMapOfShapeListOfInterval
UnBind()
Parameters:K (TopoDS_Shape &) –
Return type:bool
thisown

The membership flag

class OCC.BRepOffset.BRepOffset_DataMapOfShapeMapOfShape(NbBuckets=1)

Bases: OCC.TCollection.TCollection_BasicMap

Assign()
Parameters:Other (BRepOffset_DataMapOfShapeMapOfShape &) –
Return type:BRepOffset_DataMapOfShapeMapOfShape
Bind()
Parameters:
  • K (TopoDS_Shape &) –
  • I (TopTools_MapOfShape &) –
Return type:

bool

ChangeFind()
Parameters:K (TopoDS_Shape &) –
Return type:TopTools_MapOfShape
ChangeFind1()
Parameters:K (TopoDS_Shape &) –
Return type:Standard_Address
Clear()
Return type:None
Find()
Parameters:K (TopoDS_Shape &) –
Return type:TopTools_MapOfShape
Find1()
Parameters:K (TopoDS_Shape &) –
Return type:Standard_Address
IsBound()
Parameters:K (TopoDS_Shape &) –
Return type:bool
ReSize()
Parameters:NbBuckets (Standard_Integer) –
Return type:None
Set()
Parameters:Other (BRepOffset_DataMapOfShapeMapOfShape &) –
Return type:BRepOffset_DataMapOfShapeMapOfShape
UnBind()
Parameters:K (TopoDS_Shape &) –
Return type:bool
thisown

The membership flag

class OCC.BRepOffset.BRepOffset_DataMapOfShapeOffset(NbBuckets=1)

Bases: OCC.TCollection.TCollection_BasicMap

Assign()
Parameters:Other (BRepOffset_DataMapOfShapeOffset &) –
Return type:BRepOffset_DataMapOfShapeOffset
Bind()
Parameters:
  • K (TopoDS_Shape &) –
  • I (BRepOffset_Offset &) –
Return type:

bool

ChangeFind()
Parameters:K (TopoDS_Shape &) –
Return type:BRepOffset_Offset
ChangeFind1()
Parameters:K (TopoDS_Shape &) –
Return type:Standard_Address
Clear()
Return type:None
Find()
Parameters:K (TopoDS_Shape &) –
Return type:BRepOffset_Offset
Find1()
Parameters:K (TopoDS_Shape &) –
Return type:Standard_Address
IsBound()
Parameters:K (TopoDS_Shape &) –
Return type:bool
ReSize()
Parameters:NbBuckets (Standard_Integer) –
Return type:None
Set()
Parameters:Other (BRepOffset_DataMapOfShapeOffset &) –
Return type:BRepOffset_DataMapOfShapeOffset
UnBind()
Parameters:K (TopoDS_Shape &) –
Return type:bool
thisown

The membership flag

class OCC.BRepOffset.BRepOffset_Inter2d(*args, **kwargs)

Bases: object

static Compute(*args)
  • Computes the intersections between the edges stored is AsDes as descendants of <F> . Intersections is computed between two edges if one of them is bound in NewEdges.
Parameters:
  • AsDes (Handle_BRepAlgo_AsDes &) –
  • F (TopoDS_Face &) –
  • NewEdges (TopTools_IndexedMapOfShape &) –
  • Tol (float) –
Return type:

void

static ConnexIntByInt(*args)
Parameters:
  • FI (TopoDS_Face &) –
  • OFI (BRepOffset_Offset &) –
  • MES (TopTools_DataMapOfShapeShape &) –
  • Build (TopTools_DataMapOfShapeShape &) –
  • AsDes (Handle_BRepAlgo_AsDes &) –
  • Offset (float) –
  • Tol (float) –
Return type:

void

thisown

The membership flag

OCC.BRepOffset.BRepOffset_Inter2d_Compute(*args)
  • Computes the intersections between the edges stored is AsDes as descendants of <F> . Intersections is computed between two edges if one of them is bound in NewEdges.
Parameters:
  • AsDes (Handle_BRepAlgo_AsDes &) –
  • F (TopoDS_Face &) –
  • NewEdges (TopTools_IndexedMapOfShape &) –
  • Tol (float) –
Return type:

void

OCC.BRepOffset.BRepOffset_Inter2d_ConnexIntByInt(*args)
Parameters:
  • FI (TopoDS_Face &) –
  • OFI (BRepOffset_Offset &) –
  • MES (TopTools_DataMapOfShapeShape &) –
  • Build (TopTools_DataMapOfShapeShape &) –
  • AsDes (Handle_BRepAlgo_AsDes &) –
  • Offset (float) –
  • Tol (float) –
Return type:

void

class OCC.BRepOffset.BRepOffset_Inter3d(*args)

Bases: object

AddCommonEdges()
Parameters:SetOfFaces (TopTools_ListOfShape &) –
Return type:None
AsDes()
Return type:Handle_BRepAlgo_AsDes
CompletInt()
Parameters:
  • SetOfFaces (TopTools_ListOfShape &) –
  • InitOffsetFace (BRepAlgo_Image &) –
Return type:

None

ConnexIntByArc()
Parameters:
  • SetOfFaces (TopTools_ListOfShape &) –
  • ShapeInit (TopoDS_Shape &) –
  • Analyse (BRepOffset_Analyse &) –
  • InitOffsetFace (BRepAlgo_Image &) –
Return type:

None

ConnexIntByInt()
Parameters:
  • SI (TopoDS_Shape &) –
  • MapSF (BRepOffset_DataMapOfShapeOffset &) –
  • A (BRepOffset_Analyse &) –
  • MES (TopTools_DataMapOfShapeShape &) –
  • Build (TopTools_DataMapOfShapeShape &) –
  • Failed (TopTools_ListOfShape &) –
Return type:

None

ContextIntByArc()
Parameters:
  • ContextFaces (TopTools_IndexedMapOfShape &) –
  • ExtentContext (bool) –
  • Analyse (BRepOffset_Analyse &) –
  • InitOffsetFace (BRepAlgo_Image &) –
  • InitOffsetEdge (BRepAlgo_Image &) –
Return type:

None

ContextIntByInt()
Parameters:
  • ContextFaces (TopTools_IndexedMapOfShape &) –
  • ExtentContext (bool) –
  • MapSF (BRepOffset_DataMapOfShapeOffset &) –
  • A (BRepOffset_Analyse &) –
  • MES (TopTools_DataMapOfShapeShape &) –
  • Build (TopTools_DataMapOfShapeShape &) –
  • Failed (TopTools_ListOfShape &) –
Return type:

None

FaceInter()
Parameters:
  • F1 (TopoDS_Face &) –
  • F2 (TopoDS_Face &) –
  • InitOffsetFace (BRepAlgo_Image &) –
Return type:

None

IsDone()
Parameters:
  • F1 (TopoDS_Face &) –
  • F2 (TopoDS_Face &) –
Return type:

bool

NewEdges()
Return type:TopTools_IndexedMapOfShape
SetDone()
Parameters:
  • F1 (TopoDS_Face &) –
  • F2 (TopoDS_Face &) –
Return type:

None

TouchedFaces()
Return type:TopTools_IndexedMapOfShape
thisown

The membership flag

class OCC.BRepOffset.BRepOffset_Interval(*args)

Bases: object

First()
Parameters:U (float) –
Return type:None
Return type:float
Last()
Parameters:U (float) –
Return type:None
Return type:float
Type()
Parameters:T (BRepOffset_Type) –
Return type:None
Return type:BRepOffset_Type
thisown

The membership flag

class OCC.BRepOffset.BRepOffset_ListIteratorOfListOfInterval(*args)

Bases: object

Initialize()
Parameters:L (BRepOffset_ListOfInterval &) –
Return type:None
More()
Return type:bool
Next()
Return type:None
Value()
Return type:BRepOffset_Interval
thisown

The membership flag

class OCC.BRepOffset.BRepOffset_ListNodeOfListOfInterval(*args)

Bases: OCC.TCollection.TCollection_MapNode

GetHandle()

BRepOffset_ListNodeOfListOfInterval_GetHandle(BRepOffset_ListNodeOfListOfInterval self) -> Handle_BRepOffset_ListNodeOfListOfInterval

Value()
Return type:BRepOffset_Interval
thisown

The membership flag

class OCC.BRepOffset.BRepOffset_ListOfInterval

Bases: object

Append()
Parameters:
  • I (BRepOffset_Interval &) –
  • I
  • theIt (BRepOffset_ListIteratorOfListOfInterval &) –
  • Other (BRepOffset_ListOfInterval &) –
Return type:

None

Return type:

None

Return type:

None

Assign()
Parameters:Other (BRepOffset_ListOfInterval &) –
Return type:None
Clear()
Return type:None
Extent()
Return type:int
First()
Return type:BRepOffset_Interval
InsertAfter()
Parameters:
  • I (BRepOffset_Interval &) –
  • It (BRepOffset_ListIteratorOfListOfInterval &) –
  • Other (BRepOffset_ListOfInterval &) –
  • It
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • I (BRepOffset_Interval &) –
  • It (BRepOffset_ListIteratorOfListOfInterval &) –
  • Other (BRepOffset_ListOfInterval &) –
  • It
Return type:

None

Return type:

None

IsEmpty()
Return type:bool
Last()
Return type:BRepOffset_Interval
Prepend()
Parameters:
  • I (BRepOffset_Interval &) –
  • I
  • theIt (BRepOffset_ListIteratorOfListOfInterval &) –
  • Other (BRepOffset_ListOfInterval &) –
Return type:

None

Return type:

None

Return type:

None

Remove()
Parameters:It (BRepOffset_ListIteratorOfListOfInterval &) –
Return type:None
RemoveFirst()
Return type:None
Set()
Parameters:Other (BRepOffset_ListOfInterval &) –
Return type:None
thisown

The membership flag

class OCC.BRepOffset.BRepOffset_MakeLoops

Bases: object

Build()
Parameters:
  • LF (TopTools_ListOfShape &) –
  • AsDes (Handle_BRepAlgo_AsDes &) –
  • Image (BRepAlgo_Image &) –
Return type:

None

BuildFaces()
Parameters:
  • LF (TopTools_ListOfShape &) –
  • AsDes (Handle_BRepAlgo_AsDes &) –
  • Image (BRepAlgo_Image &) –
Return type:

None

BuildOnContext()
Parameters:
  • LContext (TopTools_ListOfShape &) –
  • Analyse (BRepOffset_Analyse &) –
  • AsDes (Handle_BRepAlgo_AsDes &) –
  • Image (BRepAlgo_Image &) –
  • InSide (bool) –
Return type:

None

thisown

The membership flag

class OCC.BRepOffset.BRepOffset_MakeOffset(*args)

Bases: object

AddFace()
  • Add Closing Faces, <F> has to be in the initial shape S.
Parameters:F (TopoDS_Face &) –
Return type:None
Clear()
Return type:None
ClosingFaces()
  • Returns the list of closing faces stores by AddFace
Return type:TopTools_IndexedMapOfShape
Error()
  • returns information if IsDone() = False.
Return type:BRepOffset_Error
GetJoinType()
  • Returns myJoin.
Return type:GeomAbs_JoinType
Initialize()
Parameters:
  • S (TopoDS_Shape &) –
  • Offset (float) –
  • Tol (float) –
  • Mode (BRepOffset_Mode) – default value is BRepOffset_Skin
  • Intersection (bool) – default value is Standard_False
  • SelfInter (bool) – default value is Standard_False
  • Join (GeomAbs_JoinType) – default value is GeomAbs_Arc
  • Thickening (bool) – default value is Standard_False
  • S
  • Offset
  • Tol
  • Mode – default value is BRepOffset_Skin
  • Intersection – default value is Standard_False
  • SelfInter – default value is Standard_False
  • Join – default value is GeomAbs_Arc
  • Thickening – default value is Standard_False
  • S
  • Offset
  • Tol
  • Mode – default value is BRepOffset_Skin
  • Intersection – default value is Standard_False
  • SelfInter – default value is Standard_False
  • Join – default value is GeomAbs_Arc
  • Thickening – default value is Standard_False
  • S
  • Offset
  • Tol
  • Mode – default value is BRepOffset_Skin
  • Intersection – default value is Standard_False
  • SelfInter – default value is Standard_False
  • Join – default value is GeomAbs_Arc
  • Thickening – default value is Standard_False
  • S
  • Offset
  • Tol
  • Mode – default value is BRepOffset_Skin
  • Intersection – default value is Standard_False
  • SelfInter – default value is Standard_False
  • Join – default value is GeomAbs_Arc
  • Thickening – default value is Standard_False
  • S
  • Offset
  • Tol
  • Mode – default value is BRepOffset_Skin
  • Intersection – default value is Standard_False
  • SelfInter – default value is Standard_False
  • Join – default value is GeomAbs_Arc
  • Thickening – default value is Standard_False
Return type:

None

Return type:

None

Return type:

None

Return type:

None

Return type:

None

Return type:

None

IsDone()
Return type:bool
MakeOffsetShape()
Return type:None
MakeThickSolid()
Return type:None
OffsetEdgesFromShapes()
  • Returns <Image> containing links between initials shapes and offset edges.
Return type:BRepAlgo_Image
OffsetFacesFromShapes()
  • Returns <Image> containing links between initials shapes and offset faces.
Return type:BRepAlgo_Image
SetOffsetOnFace()
  • set the offset <Off> on the Face <F>
Parameters:
  • F (TopoDS_Face &) –
  • Off (float) –
Return type:

None

Shape()
Return type:TopoDS_Shape
thisown

The membership flag

class OCC.BRepOffset.BRepOffset_Offset(*args)

Bases: object

Face()
Return type:TopoDS_Face
Generated()
Parameters:Shape (TopoDS_Shape &) –
Return type:TopoDS_Shape
Init()
Parameters:
  • Face (TopoDS_Face &) –
  • Offset (float) –
  • OffsetOutside (bool) – default value is Standard_True
  • JoinType (GeomAbs_JoinType) – default value is GeomAbs_Arc
  • Face
  • Offset
  • OffsetOutside – default value is Standard_True
  • JoinType – default value is GeomAbs_Arc
  • Face
  • Offset
  • OffsetOutside – default value is Standard_True
  • JoinType – default value is GeomAbs_Arc
  • Face
  • Offset
  • Created (TopTools_DataMapOfShapeShape &) –
  • OffsetOutside – default value is Standard_True
  • JoinType – default value is GeomAbs_Arc
  • Face
  • Offset
  • Created
  • OffsetOutside – default value is Standard_True
  • JoinType – default value is GeomAbs_Arc
  • Face
  • Offset
  • Created
  • OffsetOutside – default value is Standard_True
  • JoinType – default value is GeomAbs_Arc
  • Path (TopoDS_Edge &) –
  • Edge1 (TopoDS_Edge &) –
  • Edge2 (TopoDS_Edge &) –
  • Offset
  • Polynomial (bool) – default value is Standard_False
  • Tol (float) – default value is 1.0e-4
  • Conti (GeomAbs_Shape) – default value is GeomAbs_C1
  • Path
  • Edge1
  • Edge2
  • Offset
  • Polynomial – default value is Standard_False
  • Tol – default value is 1.0e-4
  • Conti – default value is GeomAbs_C1
  • Path
  • Edge1
  • Edge2
  • Offset
  • Polynomial – default value is Standard_False
  • Tol – default value is 1.0e-4
  • Conti – default value is GeomAbs_C1
  • Path
  • Edge1
  • Edge2
  • Offset
  • Polynomial – default value is Standard_False
  • Tol – default value is 1.0e-4
  • Conti – default value is GeomAbs_C1
  • Path
  • Edge1
  • Edge2
  • Offset
  • FirstEdge (TopoDS_Edge &) –
  • LastEdge (TopoDS_Edge &) –
  • Polynomial – default value is Standard_False
  • Tol – default value is 1.0e-4
  • Conti – default value is GeomAbs_C1
  • Path
  • Edge1
  • Edge2
  • Offset
  • FirstEdge
  • LastEdge
  • Polynomial – default value is Standard_False
  • Tol – default value is 1.0e-4
  • Conti – default value is GeomAbs_C1
  • Path
  • Edge1
  • Edge2
  • Offset
  • FirstEdge
  • LastEdge
  • Polynomial – default value is Standard_False
  • Tol – default value is 1.0e-4
  • Conti – default value is GeomAbs_C1
  • Path
  • Edge1
  • Edge2
  • Offset
  • FirstEdge
  • LastEdge
  • Polynomial – default value is Standard_False
  • Tol – default value is 1.0e-4
  • Conti – default value is GeomAbs_C1
Return type:

None

Return type:

None

Return type:

None

Return type:

None

Return type:

None

Return type:

None

Return type:

None

Return type:

None

Return type:

None

Return type:

None

Return type:

None

Return type:

None

Return type:

None

Return type:

None

  • Tol and Conti are only used if Polynomial is True (Used to perfrom the approximation)
Parameters:
  • Vertex (TopoDS_Vertex &) –
  • LEdge (TopTools_ListOfShape &) –
  • Offset (float) –
  • Polynomial (bool) – default value is Standard_False
  • Tol (float) – default value is 1.0e-4
  • Conti (GeomAbs_Shape) – default value is GeomAbs_C1
Return type:

None

  • Tol and Conti are only used if Polynomial is True (Used to perfrom the approximation)
Parameters:
  • Vertex (TopoDS_Vertex &) –
  • LEdge (TopTools_ListOfShape &) –
  • Offset (float) –
  • Polynomial (bool) – default value is Standard_False
  • Tol (float) – default value is 1.0e-4
  • Conti (GeomAbs_Shape) – default value is GeomAbs_C1
Return type:

None

  • Tol and Conti are only used if Polynomial is True (Used to perfrom the approximation)
Parameters:
  • Vertex (TopoDS_Vertex &) –
  • LEdge (TopTools_ListOfShape &) –
  • Offset (float) –
  • Polynomial (bool) – default value is Standard_False
  • Tol (float) – default value is 1.0e-4
  • Conti (GeomAbs_Shape) – default value is GeomAbs_C1
Return type:

None

  • Tol and Conti are only used if Polynomial is True (Used to perfrom the approximation)
Parameters:
  • Vertex (TopoDS_Vertex &) –
  • LEdge (TopTools_ListOfShape &) –
  • Offset (float) –
  • Polynomial (bool) – default value is Standard_False
  • Tol (float) – default value is 1.0e-4
  • Conti (GeomAbs_Shape) – default value is GeomAbs_C1
Return type:

None

  • Only used in Rolling Ball. Pipe on Free Boundary
Parameters:
  • Edge (TopoDS_Edge &) –
  • Offset (float) –
Return type:

None

InitialShape()
Return type:TopoDS_Shape
Status()
Return type:BRepOffset_Status
thisown

The membership flag

class OCC.BRepOffset.BRepOffset_Tool(*args, **kwargs)

Bases: object

static BuildNeighbour(*args)
  • Via the wire explorer store in <NOnV1> for an Edge <E> of <W> his Edge neighbour on the first vertex <V1> of <E>. Store in NOnV2 the Neighbour of <E>on the last vertex <V2> of <E>.
Parameters:
  • W (TopoDS_Wire &) –
  • F (TopoDS_Face &) –
  • NOnV1 (TopTools_DataMapOfShapeShape &) –
  • NOnV2 (TopTools_DataMapOfShapeShape &) –
Return type:

void

static CheckBounds(*args)
Parameters:
  • F (TopoDS_Face &) –
  • Analyse (BRepOffset_Analyse &) –
  • enlargeU (bool) –
  • enlargeVfirst (bool) –
  • enlargeVlast (bool) –
Return type:

void

static CorrectOrientation(*args)
Parameters:
  • SI (TopoDS_Shape &) –
  • NewEdges (TopTools_IndexedMapOfShape &) –
  • AsDes (Handle_BRepAlgo_AsDes &) –
  • InitOffset (BRepAlgo_Image &) –
  • Offset (float) –
Return type:

void

static Deboucle3D(*args)
  • Remove the non valid part of an offsetshape 1 - Remove all the free boundary and the faces connex to such edges. 2 - Remove all the shapes not valid in the result (according to the side of offseting) in this verion only the first point is implemented.
Parameters:
  • S (TopoDS_Shape &) –
  • Boundary (TopTools_MapOfShape &) –
Return type:

TopoDS_Shape

static EdgeVertices(*args)
  • <V1> is the FirstVertex ,<V2> is the Last Vertex of <Edge> taking account the orientation of Edge.
Parameters:
  • E (TopoDS_Edge &) –
  • V1 (TopoDS_Vertex &) –
  • V2 (TopoDS_Vertex &) –
Return type:

void

static EnLargeFace(*args)
  • if <ChangeGeom> is True , the surface can be changed . if <UpdatePCurve> is True, update the pcurves of the edges of <F> on the new surface.if the surface has been changed, Returns True if The Surface of <NF> has changed.
Parameters:
  • F (TopoDS_Face &) –
  • NF (TopoDS_Face &) –
  • ChangeGeom (bool) –
  • UpDatePCurve (bool) – default value is Standard_False
  • enlargeU (bool) – default value is Standard_True
  • enlargeVfirst (bool) – default value is Standard_True
  • enlargeVlast (bool) – default value is Standard_True
Return type:

bool

  • if <ChangeGeom> is True , the surface can be changed . if <UpdatePCurve> is True, update the pcurves of the edges of <F> on the new surface.if the surface has been changed, Returns True if The Surface of <NF> has changed.
Parameters:
  • F (TopoDS_Face &) –
  • NF (TopoDS_Face &) –
  • ChangeGeom (bool) –
  • UpDatePCurve (bool) – default value is Standard_False
  • enlargeU (bool) – default value is Standard_True
  • enlargeVfirst (bool) – default value is Standard_True
  • enlargeVlast (bool) – default value is Standard_True
Return type:

bool

  • if <ChangeGeom> is True , the surface can be changed . if <UpdatePCurve> is True, update the pcurves of the edges of <F> on the new surface.if the surface has been changed, Returns True if The Surface of <NF> has changed.
Parameters:
  • F (TopoDS_Face &) –
  • NF (TopoDS_Face &) –
  • ChangeGeom (bool) –
  • UpDatePCurve (bool) – default value is Standard_False
  • enlargeU (bool) – default value is Standard_True
  • enlargeVfirst (bool) – default value is Standard_True
  • enlargeVlast (bool) – default value is Standard_True
Return type:

bool

  • if <ChangeGeom> is True , the surface can be changed . if <UpdatePCurve> is True, update the pcurves of the edges of <F> on the new surface.if the surface has been changed, Returns True if The Surface of <NF> has changed.
Parameters:
  • F (TopoDS_Face &) –
  • NF (TopoDS_Face &) –
  • ChangeGeom (bool) –
  • UpDatePCurve (bool) – default value is Standard_False
  • enlargeU (bool) – default value is Standard_True
  • enlargeVfirst (bool) – default value is Standard_True
  • enlargeVlast (bool) – default value is Standard_True
Return type:

bool

  • if <ChangeGeom> is True , the surface can be changed . if <UpdatePCurve> is True, update the pcurves of the edges of <F> on the new surface.if the surface has been changed, Returns True if The Surface of <NF> has changed.
Parameters:
  • F (TopoDS_Face &) –
  • NF (TopoDS_Face &) –
  • ChangeGeom (bool) –
  • UpDatePCurve (bool) – default value is Standard_False
  • enlargeU (bool) – default value is Standard_True
  • enlargeVfirst (bool) – default value is Standard_True
  • enlargeVlast (bool) – default value is Standard_True
Return type:

bool

static ExtentFace(*args)
Parameters:
  • F (TopoDS_Face &) –
  • ConstShapes (TopTools_DataMapOfShapeShape &) –
  • ToBuild (TopTools_DataMapOfShapeShape &) –
  • Side (TopAbs_State) –
  • TolConf (float) –
  • NF (TopoDS_Face &) –
Return type:

void

static Gabarit(*args)
Parameters:aCurve (Handle_Geom_Curve &) –
Return type:float
static HasCommonShapes(*args)
  • Returns True if <F1> and <F2> has common Vertices or edges , <LE> contains the common edges. <LV> the common vertices.
Parameters:
  • F1 (TopoDS_Face &) –
  • F2 (TopoDS_Face &) –
  • LE (TopTools_ListOfShape &) –
  • LV (TopTools_ListOfShape &) –
Return type:

bool

static Inter2d(*args)
Parameters:
  • F (TopoDS_Face &) –
  • E1 (TopoDS_Edge &) –
  • E2 (TopoDS_Edge &) –
  • LV (TopTools_ListOfShape &) –
  • Tol (float) –
Return type:

void

static Inter3D(*args)
  • Computes the Section betwwen <F1> and <F2> the edges solution are stored in <LInt1> with the orientation on <F1>, the sames edges are stored in <Lint2> with the orientation on <F2>.
Parameters:
  • F1 (TopoDS_Face &) –
  • F2 (TopoDS_Face &) –
  • LInt1 (TopTools_ListOfShape &) –
  • LInt2 (TopTools_ListOfShape &) –
  • Side (TopAbs_State) –
  • RefEdge (TopoDS_Edge &) –
  • IsRefEdgeDefined (bool) – default value is Standard_False
Return type:

void

  • Computes the Section betwwen <F1> and <F2> the edges solution are stored in <LInt1> with the orientation on <F1>, the sames edges are stored in <Lint2> with the orientation on <F2>.
Parameters:
  • F1 (TopoDS_Face &) –
  • F2 (TopoDS_Face &) –
  • LInt1 (TopTools_ListOfShape &) –
  • LInt2 (TopTools_ListOfShape &) –
  • Side (TopAbs_State) –
  • RefEdge (TopoDS_Edge &) –
  • IsRefEdgeDefined (bool) – default value is Standard_False
Return type:

void

static InterOrExtent(*args)
Parameters:
  • F1 (TopoDS_Face &) –
  • F2 (TopoDS_Face &) –
  • LInt1 (TopTools_ListOfShape &) –
  • LInt2 (TopTools_ListOfShape &) –
  • Side (TopAbs_State) –
Return type:

void

static MapVertexEdges(*args)
  • Store in MVE for a vertex <V> in <S> the incident edges <E> in <S>. An Edge is Store only one Time for a vertex.
Parameters:
  • S (TopoDS_Shape &) –
  • MVE (TopTools_DataMapOfShapeListOfShape &) –
Return type:

void

static OriEdgeInFace(*args)
  • returns the cumul of the orientation of <Edge> and thc containing wire in <Face>
Parameters:
  • E (TopoDS_Edge &) –
  • F (TopoDS_Face &) –
Return type:

TopAbs_Orientation

static OrientSection(*args)
  • <E> is a section between <F1> and <F2>. Computes <O1> the orientation of <E> in <F1> influenced by <F2>. idem for <O2>.
Parameters:
  • E (TopoDS_Edge &) –
  • F1 (TopoDS_Face &) –
  • F2 (TopoDS_Face &) –
  • O1 (TopAbs_Orientation &) –
  • O2 (TopAbs_Orientation &) –
Return type:

void

static PipeInter(*args)
Parameters:
  • F1 (TopoDS_Face &) –
  • F2 (TopoDS_Face &) –
  • LInt1 (TopTools_ListOfShape &) –
  • LInt2 (TopTools_ListOfShape &) –
  • Side (TopAbs_State) –
Return type:

void

static TryProject(*args)
  • Find if the edges <Edges> of the face <F2> are on the face <F1>. Set in <LInt1> <LInt2> the updated edges. If all the edges are computed, returns true.
Parameters:
  • F1 (TopoDS_Face &) –
  • F2 (TopoDS_Face &) –
  • Edges (TopTools_ListOfShape &) –
  • LInt1 (TopTools_ListOfShape &) –
  • LInt2 (TopTools_ListOfShape &) –
  • Side (TopAbs_State) –
  • TolConf (float) –
Return type:

bool

thisown

The membership flag

OCC.BRepOffset.BRepOffset_Tool_BuildNeighbour(*args)
  • Via the wire explorer store in <NOnV1> for an Edge <E> of <W> his Edge neighbour on the first vertex <V1> of <E>. Store in NOnV2 the Neighbour of <E>on the last vertex <V2> of <E>.
Parameters:
  • W (TopoDS_Wire &) –
  • F (TopoDS_Face &) –
  • NOnV1 (TopTools_DataMapOfShapeShape &) –
  • NOnV2 (TopTools_DataMapOfShapeShape &) –
Return type:

void

OCC.BRepOffset.BRepOffset_Tool_CheckBounds(*args)
Parameters:
  • F (TopoDS_Face &) –
  • Analyse (BRepOffset_Analyse &) –
  • enlargeU (bool) –
  • enlargeVfirst (bool) –
  • enlargeVlast (bool) –
Return type:

void

OCC.BRepOffset.BRepOffset_Tool_CorrectOrientation(*args)
Parameters:
  • SI (TopoDS_Shape &) –
  • NewEdges (TopTools_IndexedMapOfShape &) –
  • AsDes (Handle_BRepAlgo_AsDes &) –
  • InitOffset (BRepAlgo_Image &) –
  • Offset (float) –
Return type:

void

OCC.BRepOffset.BRepOffset_Tool_Deboucle3D(*args)
  • Remove the non valid part of an offsetshape 1 - Remove all the free boundary and the faces connex to such edges. 2 - Remove all the shapes not valid in the result (according to the side of offseting) in this verion only the first point is implemented.
Parameters:
  • S (TopoDS_Shape &) –
  • Boundary (TopTools_MapOfShape &) –
Return type:

TopoDS_Shape

OCC.BRepOffset.BRepOffset_Tool_EdgeVertices(*args)
  • <V1> is the FirstVertex ,<V2> is the Last Vertex of <Edge> taking account the orientation of Edge.
Parameters:
  • E (TopoDS_Edge &) –
  • V1 (TopoDS_Vertex &) –
  • V2 (TopoDS_Vertex &) –
Return type:

void

OCC.BRepOffset.BRepOffset_Tool_EnLargeFace(*args)
  • if <ChangeGeom> is True , the surface can be changed . if <UpdatePCurve> is True, update the pcurves of the edges of <F> on the new surface.if the surface has been changed, Returns True if The Surface of <NF> has changed.
Parameters:
  • F (TopoDS_Face &) –
  • NF (TopoDS_Face &) –
  • ChangeGeom (bool) –
  • UpDatePCurve (bool) – default value is Standard_False
  • enlargeU (bool) – default value is Standard_True
  • enlargeVfirst (bool) – default value is Standard_True
  • enlargeVlast (bool) – default value is Standard_True
Return type:

bool

  • if <ChangeGeom> is True , the surface can be changed . if <UpdatePCurve> is True, update the pcurves of the edges of <F> on the new surface.if the surface has been changed, Returns True if The Surface of <NF> has changed.
Parameters:
  • F (TopoDS_Face &) –
  • NF (TopoDS_Face &) –
  • ChangeGeom (bool) –
  • UpDatePCurve (bool) – default value is Standard_False
  • enlargeU (bool) – default value is Standard_True
  • enlargeVfirst (bool) – default value is Standard_True
  • enlargeVlast (bool) – default value is Standard_True
Return type:

bool

  • if <ChangeGeom> is True , the surface can be changed . if <UpdatePCurve> is True, update the pcurves of the edges of <F> on the new surface.if the surface has been changed, Returns True if The Surface of <NF> has changed.
Parameters:
  • F (TopoDS_Face &) –
  • NF (TopoDS_Face &) –
  • ChangeGeom (bool) –
  • UpDatePCurve (bool) – default value is Standard_False
  • enlargeU (bool) – default value is Standard_True
  • enlargeVfirst (bool) – default value is Standard_True
  • enlargeVlast (bool) – default value is Standard_True
Return type:

bool

  • if <ChangeGeom> is True , the surface can be changed . if <UpdatePCurve> is True, update the pcurves of the edges of <F> on the new surface.if the surface has been changed, Returns True if The Surface of <NF> has changed.
Parameters:
  • F (TopoDS_Face &) –
  • NF (TopoDS_Face &) –
  • ChangeGeom (bool) –
  • UpDatePCurve (bool) – default value is Standard_False
  • enlargeU (bool) – default value is Standard_True
  • enlargeVfirst (bool) – default value is Standard_True
  • enlargeVlast (bool) – default value is Standard_True
Return type:

bool

  • if <ChangeGeom> is True , the surface can be changed . if <UpdatePCurve> is True, update the pcurves of the edges of <F> on the new surface.if the surface has been changed, Returns True if The Surface of <NF> has changed.
Parameters:
  • F (TopoDS_Face &) –
  • NF (TopoDS_Face &) –
  • ChangeGeom (bool) –
  • UpDatePCurve (bool) – default value is Standard_False
  • enlargeU (bool) – default value is Standard_True
  • enlargeVfirst (bool) – default value is Standard_True
  • enlargeVlast (bool) – default value is Standard_True
Return type:

bool

OCC.BRepOffset.BRepOffset_Tool_ExtentFace(*args)
Parameters:
  • F (TopoDS_Face &) –
  • ConstShapes (TopTools_DataMapOfShapeShape &) –
  • ToBuild (TopTools_DataMapOfShapeShape &) –
  • Side (TopAbs_State) –
  • TolConf (float) –
  • NF (TopoDS_Face &) –
Return type:

void

OCC.BRepOffset.BRepOffset_Tool_Gabarit(*args)
Parameters:aCurve (Handle_Geom_Curve &) –
Return type:float
OCC.BRepOffset.BRepOffset_Tool_HasCommonShapes(*args)
  • Returns True if <F1> and <F2> has common Vertices or edges , <LE> contains the common edges. <LV> the common vertices.
Parameters:
  • F1 (TopoDS_Face &) –
  • F2 (TopoDS_Face &) –
  • LE (TopTools_ListOfShape &) –
  • LV (TopTools_ListOfShape &) –
Return type:

bool

OCC.BRepOffset.BRepOffset_Tool_Inter2d(*args)
Parameters:
  • F (TopoDS_Face &) –
  • E1 (TopoDS_Edge &) –
  • E2 (TopoDS_Edge &) –
  • LV (TopTools_ListOfShape &) –
  • Tol (float) –
Return type:

void

OCC.BRepOffset.BRepOffset_Tool_Inter3D(*args)
  • Computes the Section betwwen <F1> and <F2> the edges solution are stored in <LInt1> with the orientation on <F1>, the sames edges are stored in <Lint2> with the orientation on <F2>.
Parameters:
  • F1 (TopoDS_Face &) –
  • F2 (TopoDS_Face &) –
  • LInt1 (TopTools_ListOfShape &) –
  • LInt2 (TopTools_ListOfShape &) –
  • Side (TopAbs_State) –
  • RefEdge (TopoDS_Edge &) –
  • IsRefEdgeDefined (bool) – default value is Standard_False
Return type:

void

  • Computes the Section betwwen <F1> and <F2> the edges solution are stored in <LInt1> with the orientation on <F1>, the sames edges are stored in <Lint2> with the orientation on <F2>.
Parameters:
  • F1 (TopoDS_Face &) –
  • F2 (TopoDS_Face &) –
  • LInt1 (TopTools_ListOfShape &) –
  • LInt2 (TopTools_ListOfShape &) –
  • Side (TopAbs_State) –
  • RefEdge (TopoDS_Edge &) –
  • IsRefEdgeDefined (bool) – default value is Standard_False
Return type:

void

OCC.BRepOffset.BRepOffset_Tool_InterOrExtent(*args)
Parameters:
  • F1 (TopoDS_Face &) –
  • F2 (TopoDS_Face &) –
  • LInt1 (TopTools_ListOfShape &) –
  • LInt2 (TopTools_ListOfShape &) –
  • Side (TopAbs_State) –
Return type:

void

OCC.BRepOffset.BRepOffset_Tool_MapVertexEdges(*args)
  • Store in MVE for a vertex <V> in <S> the incident edges <E> in <S>. An Edge is Store only one Time for a vertex.
Parameters:
  • S (TopoDS_Shape &) –
  • MVE (TopTools_DataMapOfShapeListOfShape &) –
Return type:

void

OCC.BRepOffset.BRepOffset_Tool_OriEdgeInFace(*args)
  • returns the cumul of the orientation of <Edge> and thc containing wire in <Face>
Parameters:
  • E (TopoDS_Edge &) –
  • F (TopoDS_Face &) –
Return type:

TopAbs_Orientation

OCC.BRepOffset.BRepOffset_Tool_OrientSection(*args)
  • <E> is a section between <F1> and <F2>. Computes <O1> the orientation of <E> in <F1> influenced by <F2>. idem for <O2>.
Parameters:
  • E (TopoDS_Edge &) –
  • F1 (TopoDS_Face &) –
  • F2 (TopoDS_Face &) –
  • O1 (TopAbs_Orientation &) –
  • O2 (TopAbs_Orientation &) –
Return type:

void

OCC.BRepOffset.BRepOffset_Tool_PipeInter(*args)
Parameters:
  • F1 (TopoDS_Face &) –
  • F2 (TopoDS_Face &) –
  • LInt1 (TopTools_ListOfShape &) –
  • LInt2 (TopTools_ListOfShape &) –
  • Side (TopAbs_State) –
Return type:

void

OCC.BRepOffset.BRepOffset_Tool_TryProject(*args)
  • Find if the edges <Edges> of the face <F2> are on the face <F1>. Set in <LInt1> <LInt2> the updated edges. If all the edges are computed, returns true.
Parameters:
  • F1 (TopoDS_Face &) –
  • F2 (TopoDS_Face &) –
  • Edges (TopTools_ListOfShape &) –
  • LInt1 (TopTools_ListOfShape &) –
  • LInt2 (TopTools_ListOfShape &) –
  • Side (TopAbs_State) –
  • TolConf (float) –
Return type:

bool

class OCC.BRepOffset.Handle_BRepOffset_DataMapNodeOfDataMapOfShapeListOfInterval(*args)

Bases: OCC.TCollection.Handle_TCollection_MapNode

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

The membership flag

class OCC.BRepOffset.Handle_BRepOffset_DataMapNodeOfDataMapOfShapeMapOfShape(*args)

Bases: OCC.TCollection.Handle_TCollection_MapNode

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

The membership flag

class OCC.BRepOffset.Handle_BRepOffset_DataMapNodeOfDataMapOfShapeOffset(*args)

Bases: OCC.TCollection.Handle_TCollection_MapNode

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

The membership flag

class OCC.BRepOffset.Handle_BRepOffset_ListNodeOfListOfInterval(*args)

Bases: OCC.TCollection.Handle_TCollection_MapNode

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

The membership flag

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

Bases: object

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

The membership flag

value()
class OCC.BRepOffset.brepoffset(*args, **kwargs)

Bases: object

static Surface(*args)
  • returns the Offset surface computed from the surface <Surface> at an OffsetDistance <Offset>. If possible, this method returns the real type of the surface ( e.g. An Offset of a plane is a plane). If no particular case is detected, the returned surface will have the Type Geom_OffsetSurface.
Parameters:
  • Surface (Handle_Geom_Surface &) –
  • Offset (float) –
  • Status (BRepOffset_Status &) –
Return type:

Handle_Geom_Surface

thisown

The membership flag

OCC.BRepOffset.brepoffset_Surface(*args)
  • returns the Offset surface computed from the surface <Surface> at an OffsetDistance <Offset>. If possible, this method returns the real type of the surface ( e.g. An Offset of a plane is a plane). If no particular case is detected, the returned surface will have the Type Geom_OffsetSurface.
Parameters:
  • Surface (Handle_Geom_Surface &) –
  • Offset (float) –
  • Status (BRepOffset_Status &) –
Return type:

Handle_Geom_Surface