OCC.BRepOffset module

class BRepOffset_Analyse(*args)

Bases: object

Return type:

None

Parameters:
  • S (TopoDS_Shape &) –
  • Angle (float) –
Return type:

None

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 BRepOffset_DataMapIteratorOfDataMapOfShapeListOfInterval(*args)

Bases: OCC.TCollection.TCollection_BasicMapIterator

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

The membership flag

class BRepOffset_DataMapIteratorOfDataMapOfShapeMapOfShape(*args)

Bases: OCC.TCollection.TCollection_BasicMapIterator

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

The membership flag

class BRepOffset_DataMapIteratorOfDataMapOfShapeOffset(*args)

Bases: OCC.TCollection.TCollection_BasicMapIterator

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

The membership flag

class BRepOffset_DataMapNodeOfDataMapOfShapeListOfInterval(*args)

Bases: OCC.TCollection.TCollection_MapNode

Parameters:
  • K (TopoDS_Shape &) –
  • I (BRepOffset_ListOfInterval &) –
  • n (TCollection_MapNodePtr &) –
Return type:

None

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

The membership flag

class BRepOffset_DataMapNodeOfDataMapOfShapeMapOfShape(*args)

Bases: OCC.TCollection.TCollection_MapNode

Parameters:
  • K (TopoDS_Shape &) –
  • I (TopTools_MapOfShape &) –
  • n (TCollection_MapNodePtr &) –
Return type:

None

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

The membership flag

class BRepOffset_DataMapNodeOfDataMapOfShapeOffset(*args)

Bases: OCC.TCollection.TCollection_MapNode

Parameters:
  • K (TopoDS_Shape &) –
  • I (BRepOffset_Offset &) –
  • n (TCollection_MapNodePtr &) –
Return type:

None

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

The membership flag

class BRepOffset_DataMapOfShapeListOfInterval(*args)

Bases: OCC.TCollection.TCollection_BasicMap

Parameters:NbBuckets (int) – default value is 1
Return type:None
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 (int) –
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 BRepOffset_DataMapOfShapeMapOfShape(*args)

Bases: OCC.TCollection.TCollection_BasicMap

Parameters:NbBuckets (int) – default value is 1
Return type:None
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 (int) –
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 BRepOffset_DataMapOfShapeOffset(*args)

Bases: OCC.TCollection.TCollection_BasicMap

Parameters:NbBuckets (int) – default value is 1
Return type:None
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 (int) –
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 BRepOffset_Inter2d

Bases: object

static Compute()
  • 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()
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

BRepOffset_Inter2d_Compute()
  • 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

BRepOffset_Inter2d_ConnexIntByInt()
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 BRepOffset_Inter3d(*args)

Bases: object

Parameters:
  • AsDes (Handle_BRepAlgo_AsDes &) –
  • Side (TopAbs_State) –
  • Tol (float) –
Return type:

None

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 BRepOffset_Interval(*args)

Bases: object

Return type:

None

Parameters:
  • U1 (float) –
  • U2 (float) –
  • Type (BRepOffset_Type) –
Return type:

None

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 BRepOffset_ListIteratorOfListOfInterval(*args)

Bases: object

Return type:None
Parameters:L (BRepOffset_ListOfInterval &) –
Return type:None
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 BRepOffset_ListNodeOfListOfInterval(*args)

Bases: OCC.TCollection.TCollection_MapNode

Parameters:
  • I (BRepOffset_Interval &) –
  • n (TCollection_MapNodePtr &) –
Return type:

None

GetHandle()
Value()
Return type:BRepOffset_Interval
thisown

The membership flag

class BRepOffset_ListOfInterval(*args)

Bases: object

Return type:None
Parameters:Other (BRepOffset_ListOfInterval &) –
Return type:None
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 BRepOffset_MakeLoops(*args)

Bases: object

Return type:None
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 BRepOffset_MakeOffset(*args)

Bases: object

Return type:

None

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
Return type:

None

AddFace()
  • Add Closing Faces, <F> has to be in the initial shape S.
Parameters:F (TopoDS_Face &) –
Return type:None
CheckInputData()
  • Makes pre analysis of possibility offset perform. Use method Error() to get more information. Finds first error. List of checks: 1) Check for existence object with non-null offset. 2) Check for connectivity in offset shell. 3) Check continuity of input surfaces. 4) Check for normals existence on grid. returns 1 if possible make computations and 0 if not possible.
Return type:bool
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
GetBadShape()
  • Return bad shape, which obtained in CheckInputData.
Return type:TopoDS_Shape
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
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 BRepOffset_Offset(*args)

Bases: object

Return type:

None

Parameters:
  • Face (TopoDS_Face &) –
  • Offset (float) –
  • OffsetOutside (bool) – default value is Standard_True
  • JoinType (GeomAbs_JoinType) – default value is GeomAbs_Arc
Return type:

None

  • This method will be called when you want to share the edges soon generated from an other face. e.g. when two faces are tangents the common edge will generate only one edge ( no pipe). //! The Map will be fill as follow: //! Created(E) = E’ with: E = an edge of <Face> E’ = the image of E in the offseting of another face sharing E with a continuity at least G1
Parameters:
  • Face (TopoDS_Face &) –
  • Offset (float) –
  • Created (TopTools_DataMapOfShapeShape &) –
  • OffsetOutside (bool) – default value is Standard_True
  • JoinType (GeomAbs_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
  • 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
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

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
  • Created (TopTools_DataMapOfShapeShape &) –
  • 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
  • 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
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

  • 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 BRepOffset_Tool

Bases: object

static BuildNeighbour()
  • 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()
Parameters:
  • F (TopoDS_Face &) –
  • Analyse (BRepOffset_Analyse &) –
  • enlargeU (bool) –
  • enlargeVfirst (bool) –
  • enlargeVlast (bool) –
Return type:

void

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

void

static Deboucle3D()
  • 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()
  • <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()
  • 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()
Parameters:
  • F (TopoDS_Face &) –
  • ConstShapes (TopTools_DataMapOfShapeShape &) –
  • ToBuild (TopTools_DataMapOfShapeShape &) –
  • Side (TopAbs_State) –
  • TolConf (float) –
  • NF (TopoDS_Face &) –
Return type:

void

static Gabarit()
Parameters:aCurve (Handle_Geom_Curve &) –
Return type:float
static HasCommonShapes()
  • 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()
Parameters:
  • F (TopoDS_Face &) –
  • E1 (TopoDS_Edge &) –
  • E2 (TopoDS_Edge &) –
  • LV (TopTools_ListOfShape &) –
  • Tol (float) –
Return type:

void

static Inter3D()
  • 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()
Parameters:
  • F1 (TopoDS_Face &) –
  • F2 (TopoDS_Face &) –
  • LInt1 (TopTools_ListOfShape &) –
  • LInt2 (TopTools_ListOfShape &) –
  • Side (TopAbs_State) –
Return type:

void

static MapVertexEdges()
  • 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()
  • 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()
  • <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()
Parameters:
  • F1 (TopoDS_Face &) –
  • F2 (TopoDS_Face &) –
  • LInt1 (TopTools_ListOfShape &) –
  • LInt2 (TopTools_ListOfShape &) –
  • Side (TopAbs_State) –
Return type:

void

static TryProject()
  • 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

BRepOffset_Tool_BuildNeighbour()
  • 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

BRepOffset_Tool_CheckBounds()
Parameters:
  • F (TopoDS_Face &) –
  • Analyse (BRepOffset_Analyse &) –
  • enlargeU (bool) –
  • enlargeVfirst (bool) –
  • enlargeVlast (bool) –
Return type:

void

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

void

BRepOffset_Tool_Deboucle3D()
  • 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

BRepOffset_Tool_EdgeVertices()
  • <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

BRepOffset_Tool_EnLargeFace()
  • 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

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

void

BRepOffset_Tool_Gabarit()
Parameters:aCurve (Handle_Geom_Curve &) –
Return type:float
BRepOffset_Tool_HasCommonShapes()
  • 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

BRepOffset_Tool_Inter2d()
Parameters:
  • F (TopoDS_Face &) –
  • E1 (TopoDS_Edge &) –
  • E2 (TopoDS_Edge &) –
  • LV (TopTools_ListOfShape &) –
  • Tol (float) –
Return type:

void

BRepOffset_Tool_Inter3D()
  • 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

BRepOffset_Tool_InterOrExtent()
Parameters:
  • F1 (TopoDS_Face &) –
  • F2 (TopoDS_Face &) –
  • LInt1 (TopTools_ListOfShape &) –
  • LInt2 (TopTools_ListOfShape &) –
  • Side (TopAbs_State) –
Return type:

void

BRepOffset_Tool_MapVertexEdges()
  • 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

BRepOffset_Tool_OriEdgeInFace()
  • 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

BRepOffset_Tool_OrientSection()
  • <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

BRepOffset_Tool_PipeInter()
Parameters:
  • F1 (TopoDS_Face &) –
  • F2 (TopoDS_Face &) –
  • LInt1 (TopTools_ListOfShape &) –
  • LInt2 (TopTools_ListOfShape &) –
  • Side (TopAbs_State) –
Return type:

void

BRepOffset_Tool_TryProject()
  • 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 Handle_BRepOffset_DataMapNodeOfDataMapOfShapeListOfInterval(*args)

Bases: OCC.TCollection.Handle_TCollection_MapNode

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

The membership flag

class Handle_BRepOffset_DataMapNodeOfDataMapOfShapeMapOfShape(*args)

Bases: OCC.TCollection.Handle_TCollection_MapNode

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

The membership flag

class Handle_BRepOffset_DataMapNodeOfDataMapOfShapeOffset(*args)

Bases: OCC.TCollection.Handle_TCollection_MapNode

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

The membership flag

class Handle_BRepOffset_ListNodeOfListOfInterval(*args)

Bases: OCC.TCollection.Handle_TCollection_MapNode

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

The membership flag

class SwigPyIterator(*args, **kwargs)

Bases: object

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

The membership flag

value()
class brepoffset

Bases: object

static Surface()
  • 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

brepoffset_Surface()
  • 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

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

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