OCC.Core.BRepOffset module

BRepOffset module, see official documentation at https://www.opencascade.com/doc/occt-7.4.0/refman/html/package_brepoffset.html

class BRepOffset_Analyse(*args)

Bases: object

Return type

None:param S: :type S: TopoDS_Shape & :param Angle: :type Angle: float :rtype: None

AddFaces()
  • Add in <CO> the faces of the shell containing <Face> where all the connex edges are of type <Side>.
    param Face

    type Face

    TopoDS_Face &

    param Co

    type Co

    TopoDS_Compound &

    param Map

    type Map

    TopTools_MapOfShape &

    param Type

    type Type

    BRepOffset_Type

    rtype

    None* Add in <CO> the faces of the shell containing <Face> where all the connex edges are of type <Side1> or <Side2>.

    param Face

    type Face

    TopoDS_Face &

    param Co

    type Co

    TopoDS_Compound &

    param Map

    type Map

    TopTools_MapOfShape &

    param Type1

    type Type1

    BRepOffset_Type

    param Type2

    type Type2

    BRepOffset_Type

    rtype

    None

Ancestors()
Parameters

S

type S

TopoDS_Shape &

rtype

TopTools_ListOfShape

Clear()
Return type

None

Edges()
  • Stores in <L> all the edges of Type <T> on the vertex <V>.
    param V

    type V

    TopoDS_Vertex &

    param T

    type T

    BRepOffset_Type

    param L

    type L

    TopTools_ListOfShape &

    rtype

    None* Stores in <L> all the edges of Type <T> on the face <F>.

    param F

    type F

    TopoDS_Face &

    param T

    type T

    BRepOffset_Type

    param L

    type L

    TopTools_ListOfShape &

    rtype

    None

Explode()
  • Explode in compounds of faces where all the connex edges are of type <Side>
    param L

    type L

    TopTools_ListOfShape &

    param Type

    type Type

    BRepOffset_Type

    rtype

    None* Explode in compounds of faces where all the connex edges are of type <Side1> or <Side2>

    param L

    type L

    TopTools_ListOfShape &

    param Type1

    type Type1

    BRepOffset_Type

    param Type2

    type Type2

    BRepOffset_Type

    rtype

    None

HasAncestor()
Parameters

S

type S

TopoDS_Shape &

rtype

bool

IsDone()
Return type

bool

Perform()
Parameters

S

type S

TopoDS_Shape &

param Angle

type Angle

float

rtype

None

TangentEdges()
  • set in <Edges> all the Edges of <Shape> which are tangent to <Edge> at the vertex <Vertex>.
    param Edge

    type Edge

    TopoDS_Edge &

    param Vertex

    type Vertex

    TopoDS_Vertex &

    param Edges

    type Edges

    TopTools_ListOfShape &

    rtype

    None

Type()
Parameters

E

type E

TopoDS_Edge &

rtype

BRepOffset_ListOfInterval

property thisown

The membership flag

class BRepOffset_DataMapOfShapeListOfInterval(*args)

Bases: object

Assign()
Bind()
Bound()
ChangeFind()
ChangeSeek()
Clear()
Exchange()
Find()
IsBound()
ReSize()
Seek()
Set()
Size()
UnBind()
begin()
cbegin()
cend()
end()
property thisown

The membership flag

class BRepOffset_DataMapOfShapeMapOfShape(*args)

Bases: object

Assign()
Bind()
Bound()
ChangeFind()
ChangeSeek()
Clear()
Exchange()
Find()
IsBound()
ReSize()
Seek()
Set()
Size()
UnBind()
begin()
cbegin()
cend()
end()
property thisown

The membership flag

class BRepOffset_DataMapOfShapeOffset(*args)

Bases: object

Assign()
Bind()
Bound()
ChangeFind()
ChangeSeek()
Clear()
Exchange()
Find()
IsBound()
ReSize()
Seek()
Set()
Size()
UnBind()
begin()
cbegin()
cend()
end()
property 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. When all faces of the shape are treated the intersection vertices have to be fused using the FuseVertices method. theDMVV contains the vertices that should be fused
    param AsDes

    type AsDes

    opencascade::handle<BRepAlgo_AsDes> &

    param F

    type F

    TopoDS_Face &

    param NewEdges

    type NewEdges

    TopTools_IndexedMapOfShape &

    param Tol

    type Tol

    float

    param theDMVV

    type theDMVV

    TopTools_IndexedDataMapOfShapeListOfShape &

    rtype

    void

static ConnexIntByInt()
  • Computes the intersection between the offset edges of the <FI>. All intersection vertices will be stored in AsDes2d. When all faces of the shape are treated the intersection vertices have to be fused using the FuseVertices method. theDMVV contains the vertices that should be fused.
    param FI

    type FI

    TopoDS_Face &

    param OFI

    type OFI

    BRepOffset_Offset &

    param MES

    type MES

    TopTools_DataMapOfShapeShape &

    param Build

    type Build

    TopTools_DataMapOfShapeShape &

    param AsDes2d

    type AsDes2d

    opencascade::handle<BRepAlgo_AsDes> &

    param Offset

    type Offset

    float

    param Tol

    type Tol

    float

    param FacesWithVerts

    type FacesWithVerts

    TopTools_IndexedMapOfShape &

    param theDMVV

    type theDMVV

    TopTools_IndexedDataMapOfShapeListOfShape &

    rtype

    void

static ConnexIntByIntInVert()
  • Computes the intersection between the offset edges generated from vertices and stored into AsDes as descendants of the <FI>. All intersection vertices will be stored in AsDes2d. When all faces of the shape are treated the intersection vertices have to be fused using the FuseVertices method. theDMVV contains the vertices that should be fused.
    param FI

    type FI

    TopoDS_Face &

    param OFI

    type OFI

    BRepOffset_Offset &

    param MES

    type MES

    TopTools_DataMapOfShapeShape &

    param Build

    type Build

    TopTools_DataMapOfShapeShape &

    param AsDes

    type AsDes

    opencascade::handle<BRepAlgo_AsDes> &

    param AsDes2d

    type AsDes2d

    opencascade::handle<BRepAlgo_AsDes> &

    param Tol

    type Tol

    float

    param theDMVV

    type theDMVV

    TopTools_IndexedDataMapOfShapeListOfShape &

    rtype

    void

static ExtentEdge()
  • extents the edge
    param E

    type E

    TopoDS_Edge &

    param NE

    type NE

    TopoDS_Edge &

    param theOffset

    type theOffset

    float

    rtype

    void

static FuseVertices()
  • Fuses the chains of vertices in the theDMVV and updates AsDes by replacing the old vertices with the new ones.
    param theDMVV

    type theDMVV

    TopTools_IndexedDataMapOfShapeListOfShape &

    param theAsDes

    type theAsDes

    opencascade::handle<BRepAlgo_AsDes> &

    rtype

    void

property thisown

The membership flag

class BRepOffset_Inter3d(*args)

Bases: object

Parameters

AsDes

type AsDes

opencascade::handle<BRepAlgo_AsDes> &

param Side

type Side

TopAbs_State

param Tol

type Tol

float

rtype

None

AddCommonEdges()
Parameters

SetOfFaces

type SetOfFaces

TopTools_ListOfShape &

rtype

None

AsDes()
Return type

opencascade::handle<BRepAlgo_AsDes>

CompletInt()
Parameters

SetOfFaces

type SetOfFaces

TopTools_ListOfShape &

param InitOffsetFace

type InitOffsetFace

BRepAlgo_Image &

rtype

None

ConnexIntByArc()
Parameters

SetOfFaces

type SetOfFaces

TopTools_ListOfShape &

param ShapeInit

type ShapeInit

TopoDS_Shape &

param Analyse

type Analyse

BRepOffset_Analyse &

param InitOffsetFace

type InitOffsetFace

BRepAlgo_Image &

rtype

None

ConnexIntByInt()
Parameters

SI

type SI

TopoDS_Shape &

param MapSF

type MapSF

BRepOffset_DataMapOfShapeOffset &

param A

type A

BRepOffset_Analyse &

param MES

type MES

TopTools_DataMapOfShapeShape &

param Build

type Build

TopTools_DataMapOfShapeShape &

param Failed

type Failed

TopTools_ListOfShape &

param bIsPlanar

default value is Standard_False

type bIsPlanar

bool

rtype

None

ContextIntByArc()
Parameters

ContextFaces

type ContextFaces

TopTools_IndexedMapOfShape &

param ExtentContext

type ExtentContext

bool

param Analyse

type Analyse

BRepOffset_Analyse &

param InitOffsetFace

type InitOffsetFace

BRepAlgo_Image &

param InitOffsetEdge

type InitOffsetEdge

BRepAlgo_Image &

rtype

None

ContextIntByInt()
Parameters

ContextFaces

type ContextFaces

TopTools_IndexedMapOfShape &

param ExtentContext

type ExtentContext

bool

param MapSF

type MapSF

BRepOffset_DataMapOfShapeOffset &

param A

type A

BRepOffset_Analyse &

param MES

type MES

TopTools_DataMapOfShapeShape &

param Build

type Build

TopTools_DataMapOfShapeShape &

param Failed

type Failed

TopTools_ListOfShape &

param bIsPlanar

default value is Standard_False

type bIsPlanar

bool

rtype

None

FaceInter()
Parameters

F1

type F1

TopoDS_Face &

param F2

type F2

TopoDS_Face &

param InitOffsetFace

type InitOffsetFace

BRepAlgo_Image &

rtype

None

IsDone()
Parameters

F1

type F1

TopoDS_Face &

param F2

type F2

TopoDS_Face &

rtype

bool

NewEdges()
Return type

TopTools_IndexedMapOfShape

SetDone()
Parameters

F1

type F1

TopoDS_Face &

param F2

type F2

TopoDS_Face &

rtype

None

TouchedFaces()
Return type

TopTools_IndexedMapOfShape

property thisown

The membership flag

class BRepOffset_Interval(*args)

Bases: object

Return type

None:param U1: :type U1: float :param U2: :type U2: float :param Type: :type Type: BRepOffset_Type :rtype: None

First()
Parameters

U

type U

float

rtype

None:rtype: float

Last()
Parameters

U

type U

float

rtype

None:rtype: float

Type()
Parameters

T

type T

BRepOffset_Type

rtype

None:rtype: BRepOffset_Type

property thisown

The membership flag

class BRepOffset_ListIteratorOfListOfInterval(*args)

Bases: object

ChangeValue()
More()
Next()
Value()
property thisown

The membership flag

class BRepOffset_ListOfInterval(*args)

Bases: object

Append()
Assign()
Clear()
First()
InsertAfter()
InsertBefore()
Last()
Prepend()
Remove()
RemoveFirst()
Reverse()
Set()
Size()
begin()
cbegin()
cend()
end()
property thisown

The membership flag

class BRepOffset_MakeLoops(*args)

Bases: object

Return type

None

Build()
Parameters

LF

type LF

TopTools_ListOfShape &

param AsDes

type AsDes

opencascade::handle<BRepAlgo_AsDes> &

param Image

type Image

BRepAlgo_Image &

rtype

None

BuildFaces()
Parameters

LF

type LF

TopTools_ListOfShape &

param AsDes

type AsDes

opencascade::handle<BRepAlgo_AsDes> &

param Image

type Image

BRepAlgo_Image &

rtype

None

BuildOnContext()
Parameters

LContext

type LContext

TopTools_ListOfShape &

param Analyse

type Analyse

BRepOffset_Analyse &

param AsDes

type AsDes

opencascade::handle<BRepAlgo_AsDes> &

param Image

type Image

BRepAlgo_Image &

param InSide

type InSide

bool

rtype

None

property thisown

The membership flag

class BRepOffset_MakeOffset(*args)

Bases: object

Return type

None:param S: :type S: TopoDS_Shape & :param Offset: :type Offset: float :param Tol: :type Tol: float :param Mode: default value is BRepOffset_Skin :type Mode: BRepOffset_Mode :param Intersection: default value is Standard_False :type Intersection: bool :param SelfInter: default value is Standard_False :type SelfInter: bool :param Join: default value is GeomAbs_Arc :type Join: GeomAbs_JoinType :param Thickening: default value is Standard_False :type Thickening: bool :param RemoveIntEdges: default value is Standard_False :type RemoveIntEdges: bool :rtype: None

AddFace()
  • Add Closing Faces, <F> has to be in the initial shape S.
    param F

    type F

    TopoDS_Face &

    rtype

    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 True if possible make computations and false otherwise.
    rtype

    bool

Clear()
Return type

None

ClosingFaces()
  • Returns the list of closing faces stores by AddFace
    rtype

    TopTools_IndexedMapOfShape

Error()
  • returns information about offset state.
    rtype

    BRepOffset_Error

GetBadShape()
  • Return bad shape, which obtained in CheckInputData.
    rtype

    TopoDS_Shape

GetJoinType()
  • Returns myJoin.
    rtype

    GeomAbs_JoinType

Initialize()
Parameters

S

type S

TopoDS_Shape &

param Offset

type Offset

float

param Tol

type Tol

float

param Mode

default value is BRepOffset_Skin

type Mode

BRepOffset_Mode

param Intersection

default value is Standard_False

type Intersection

bool

param SelfInter

default value is Standard_False

type SelfInter

bool

param Join

default value is GeomAbs_Arc

type Join

GeomAbs_JoinType

param Thickening

default value is Standard_False

type Thickening

bool

param RemoveIntEdges

default value is Standard_False

type RemoveIntEdges

bool

rtype

None

IsDone()
Return type

bool

MakeOffsetShape()
Return type

None

MakeThickSolid()
Return type

None

OffsetEdgesFromShapes()
  • Returns <Image> containing links between initials shapes and offset edges.
    rtype

    BRepAlgo_Image

OffsetFacesFromShapes()
  • Returns <Image> containing links between initials shapes and offset faces.
    rtype

    BRepAlgo_Image

SetOffsetOnFace()
  • set the offset <Off> on the Face <F>
    param F

    type F

    TopoDS_Face &

    param Off

    type Off

    float

    rtype

    None

Shape()
Return type

TopoDS_Shape

property thisown

The membership flag

class BRepOffset_MakeSimpleOffset(*args)

Bases: object

  • Constructor. Does nothing.
    rtype

    None* Constructor.

    param theInputShape

    type theInputShape

    TopoDS_Shape &

    param theOffsetValue

    type theOffsetValue

    float

    rtype

    None

Generated()
  • Returnes result shape for the given one (if exists).
    param theShape

    type theShape

    TopoDS_Shape &

    rtype

    TopoDS_Shape

GetBuildSolidFlag()
  • Gets solid building flag.
    rtype

    bool

GetError()
  • Gets error code.
    rtype

    BRepOffsetSimple_Status

GetErrorMessage()
  • Gets error message.
    rtype

    TCollection_AsciiString

GetOffsetValue()
  • Gets offset value.
    rtype

    float

GetResultShape()
  • Returns result shape.
    rtype

    TopoDS_Shape

GetTolerance()
  • Gets tolerance (used for handling singularities).
    rtype

    float

Initialize()
  • Initialies shape for modifications.
    param theInputShape

    type theInputShape

    TopoDS_Shape &

    param theOffsetValue

    type theOffsetValue

    float

    rtype

    None

IsDone()
  • Gets done state.
    rtype

    bool

Modified()
  • Returnes modified shape for the given one (if exists).
    param theShape

    type theShape

    TopoDS_Shape &

    rtype

    TopoDS_Shape

Perform()
  • Computes offset shape.
    rtype

    None

SetBuildSolidFlag()
  • Sets solid building flag.
    param theBuildFlag

    type theBuildFlag

    bool

    rtype

    None

SetOffsetValue()
  • Sets offset value.
    param theOffsetValue

    type theOffsetValue

    float

    rtype

    None

SetTolerance()
  • Sets tolerance (used for handling singularities).
    param theValue

    type theValue

    float

    rtype

    None

property thisown

The membership flag

class BRepOffset_Offset(*args)

Bases: object

Return type

None:param Face: :type Face: TopoDS_Face & :param Offset: :type Offset: float :param OffsetOutside: default value is Standard_True :type OffsetOutside: bool :param JoinType: default value is GeomAbs_Arc :type JoinType: GeomAbs_JoinType :rtype: 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 :param Face: :type Face: TopoDS_Face & :param Offset: :type Offset: float :param Created: :type Created: TopTools_DataMapOfShapeShape & :param OffsetOutside: default value is Standard_True :type OffsetOutside: bool :param JoinType: default value is GeomAbs_Arc :type JoinType: GeomAbs_JoinType :rtype: None:param Path: :type Path: TopoDS_Edge & :param Edge1: :type Edge1: TopoDS_Edge & :param Edge2: :type Edge2: TopoDS_Edge & :param Offset: :type Offset: float :param Polynomial: default value is Standard_False :type Polynomial: bool :param Tol: default value is 1.0e-4 :type Tol: float :param Conti: default value is GeomAbs_C1 :type Conti: GeomAbs_Shape :rtype: None:param Path: :type Path: TopoDS_Edge & :param Edge1: :type Edge1: TopoDS_Edge & :param Edge2: :type Edge2: TopoDS_Edge & :param Offset: :type Offset: float :param FirstEdge: :type FirstEdge: TopoDS_Edge & :param LastEdge: :type LastEdge: TopoDS_Edge & :param Polynomial: default value is Standard_False :type Polynomial: bool :param Tol: default value is 1.0e-4 :type Tol: float :param Conti: default value is GeomAbs_C1 :type Conti: GeomAbs_Shape :rtype: None* Tol and Conti are only used if Polynomial is True (Used to perfrom the approximation) :param Vertex: :type Vertex: TopoDS_Vertex & :param LEdge: :type LEdge: TopTools_ListOfShape & :param Offset: :type Offset: float :param Polynomial: default value is Standard_False :type Polynomial: bool :param Tol: default value is 1.0e-4 :type Tol: float :param Conti: default value is GeomAbs_C1 :type Conti: GeomAbs_Shape :rtype: None

Face()
Return type

TopoDS_Face

Generated()
Parameters

Shape

type Shape

TopoDS_Shape &

rtype

TopoDS_Shape

Init()
Parameters

Face

type Face

TopoDS_Face &

param Offset

type Offset

float

param OffsetOutside

default value is Standard_True

type OffsetOutside

bool

param JoinType

default value is GeomAbs_Arc

type JoinType

GeomAbs_JoinType

rtype

None:param Face:

type Face

TopoDS_Face &

param Offset

type Offset

float

param Created

type Created

TopTools_DataMapOfShapeShape &

param OffsetOutside

default value is Standard_True

type OffsetOutside

bool

param JoinType

default value is GeomAbs_Arc

type JoinType

GeomAbs_JoinType

rtype

None:param Path:

type Path

TopoDS_Edge &

param Edge1

type Edge1

TopoDS_Edge &

param Edge2

type Edge2

TopoDS_Edge &

param Offset

type Offset

float

param Polynomial

default value is Standard_False

type Polynomial

bool

param Tol

default value is 1.0e-4

type Tol

float

param Conti

default value is GeomAbs_C1

type Conti

GeomAbs_Shape

rtype

None:param Path:

type Path

TopoDS_Edge &

param Edge1

type Edge1

TopoDS_Edge &

param Edge2

type Edge2

TopoDS_Edge &

param Offset

type Offset

float

param FirstEdge

type FirstEdge

TopoDS_Edge &

param LastEdge

type LastEdge

TopoDS_Edge &

param Polynomial

default value is Standard_False

type Polynomial

bool

param Tol

default value is 1.0e-4

type Tol

float

param Conti

default value is GeomAbs_C1

type Conti

GeomAbs_Shape

rtype

None* Tol and Conti are only used if Polynomial is True (Used to perfrom the approximation)

param Vertex

type Vertex

TopoDS_Vertex &

param LEdge

type LEdge

TopTools_ListOfShape &

param Offset

type Offset

float

param Polynomial

default value is Standard_False

type Polynomial

bool

param Tol

default value is 1.0e-4

type Tol

float

param Conti

default value is GeomAbs_C1

type Conti

GeomAbs_Shape

rtype

None* Only used in Rolling Ball. Pipe on Free Boundary

param Edge

type Edge

TopoDS_Edge &

param Offset

type Offset

float

rtype

None

InitialShape()
Return type

TopoDS_Shape

Status()
Return type

BRepOffset_Status

property thisown

The membership flag

class BRepOffset_SimpleOffset(*args)

Bases: OCC.Core.BRepTools.BRepTools_Modification

  • Constructor. @param theInputShape shape to be offset @param theOffsetValue offset distance (signed) @param theTolerance tolerance for handling singular points
    param theInputShape

    type theInputShape

    TopoDS_Shape &

    param theOffsetValue

    type theOffsetValue

    float

    param theTolerance

    type theTolerance

    float

    rtype

    None

static DownCast(t)
property 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>.
    param W

    type W

    TopoDS_Wire &

    param F

    type F

    TopoDS_Face &

    param NOnV1

    type NOnV1

    TopTools_DataMapOfShapeShape &

    param NOnV2

    type NOnV2

    TopTools_DataMapOfShapeShape &

    rtype

    void

static CheckBounds()
Parameters

F

type F

TopoDS_Face &

param Analyse

type Analyse

BRepOffset_Analyse &

param enlargeU

type enlargeU

bool

param enlargeVfirst

type enlargeVfirst

bool

param enlargeVlast

type enlargeVlast

bool

rtype

void

static CheckPlanesNormals()
  • Compares the normal directions of the planar faces and returns True if the directions are the same with the given precision.
    param theFace1

    type theFace1

    TopoDS_Face &

    param theFace2

    type theFace2

    TopoDS_Face &

    param theTolAng

    default value is 1e-8

    type theTolAng

    float

    rtype

    bool

static CorrectOrientation()
Parameters

SI

type SI

TopoDS_Shape &

param NewEdges

type NewEdges

TopTools_IndexedMapOfShape &

param AsDes

type AsDes

opencascade::handle<BRepAlgo_AsDes> &

param InitOffset

type InitOffset

BRepAlgo_Image &

param Offset

type Offset

float

rtype

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.
    param S

    type S

    TopoDS_Shape &

    param Boundary

    type Boundary

    TopTools_MapOfShape &

    rtype

    TopoDS_Shape

static EdgeVertices()
  • <V1> is the FirstVertex ,<V2> is the Last Vertex of <Edge> taking account the orientation of Edge.
    param E

    type E

    TopoDS_Edge &

    param V1

    type V1

    TopoDS_Vertex &

    param V2

    type V2

    TopoDS_Vertex &

    rtype

    void

static EnLargeFace()
  • Returns True if The Surface of <NF> has changed. 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. <enlargeU>, <enlargeVfirst>, <enlargeVlast> allow or forbid enlargement in U and V directions correspondingly. <theExtensionMode> is a mode of extension of the surface of the face: if <theExtensionMode> equals 1, potentially infinite surfaces are extended by maximum value, and limited surfaces are extended by 25%. if <theExtensionMode> equals 2, potentially infinite surfaces are extended by 10*(correspondent size of face), and limited surfaces are extended by 100%. <theLenBeforeUfirst>, <theLenAfterUlast>, <theLenBeforeVfirst>, <theLenAfterVlast> set the values of enlargement on correspondent directions. If some of them equals -1, the default value of enlargement is used.
    param F

    type F

    TopoDS_Face &

    param NF

    type NF

    TopoDS_Face &

    param ChangeGeom

    type ChangeGeom

    bool

    param UpDatePCurve

    default value is Standard_False

    type UpDatePCurve

    bool

    param enlargeU

    default value is Standard_True

    type enlargeU

    bool

    param enlargeVfirst

    default value is Standard_True

    type enlargeVfirst

    bool

    param enlargeVlast

    default value is Standard_True

    type enlargeVlast

    bool

    param theExtensionMode

    default value is 1

    type theExtensionMode

    int

    param theLenBeforeUfirst

    default value is -1

    type theLenBeforeUfirst

    float

    param theLenAfterUlast

    default value is -1

    type theLenAfterUlast

    float

    param theLenBeforeVfirst

    default value is -1

    type theLenBeforeVfirst

    float

    param theLenAfterVlast

    default value is -1

    type theLenAfterVlast

    float

    rtype

    bool

static ExtentFace()
Parameters

F

type F

TopoDS_Face &

param ConstShapes

type ConstShapes

TopTools_DataMapOfShapeShape &

param ToBuild

type ToBuild

TopTools_DataMapOfShapeShape &

param Side

type Side

TopAbs_State

param TolConf

type TolConf

float

param NF

type NF

TopoDS_Face &

rtype

void

static FindCommonShapes()
  • Looks for the common Vertices and Edges between faces <theF1> and <theF2>. Returns True if common shapes have been found. <theLE> will contain the found common edges; <theLV> will contain the found common vertices.
    param theF1

    type theF1

    TopoDS_Face &

    param theF2

    type theF2

    TopoDS_Face &

    param theLE

    type theLE

    TopTools_ListOfShape &

    param theLV

    type theLV

    TopTools_ListOfShape &

    rtype

    bool* Looks for the common shapes of type <theType> between shapes <theS1> and <theS2>. Returns True if common shapes have been found. <theLSC> will contain the found common shapes.

    param theS1

    type theS1

    TopoDS_Shape &

    param theS2

    type theS2

    TopoDS_Shape &

    param theType

    type theType

    TopAbs_ShapeEnum

    param theLSC

    type theLSC

    TopTools_ListOfShape &

    rtype

    bool

static Gabarit()
Parameters

aCurve

type aCurve

opencascade::handle<Geom_Curve> &

rtype

float

static Inter2d()
Parameters

F

type F

TopoDS_Face &

param E1

type E1

TopoDS_Edge &

param E2

type E2

TopoDS_Edge &

param LV

type LV

TopTools_ListOfShape &

param Tol

type Tol

float

rtype

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>.
    param F1

    type F1

    TopoDS_Face &

    param F2

    type F2

    TopoDS_Face &

    param LInt1

    type LInt1

    TopTools_ListOfShape &

    param LInt2

    type LInt2

    TopTools_ListOfShape &

    param Side

    type Side

    TopAbs_State

    param RefEdge

    type RefEdge

    TopoDS_Edge &

    param IsRefEdgeDefined

    default value is Standard_False

    type IsRefEdgeDefined

    bool

    rtype

    void

static InterOrExtent()
Parameters

F1

type F1

TopoDS_Face &

param F2

type F2

TopoDS_Face &

param LInt1

type LInt1

TopTools_ListOfShape &

param LInt2

type LInt2

TopTools_ListOfShape &

param Side

type Side

TopAbs_State

rtype

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.
    param S

    type S

    TopoDS_Shape &

    param MVE

    type MVE

    TopTools_DataMapOfShapeListOfShape &

    rtype

    void

static OriEdgeInFace()
  • returns the cumul of the orientation of <Edge> and thc containing wire in <Face>
    param E

    type E

    TopoDS_Edge &

    param F

    type F

    TopoDS_Face &

    rtype

    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>.
    param E

    type E

    TopoDS_Edge &

    param F1

    type F1

    TopoDS_Face &

    param F2

    type F2

    TopoDS_Face &

    param O1

    type O1

    TopAbs_Orientation &

    param O2

    type O2

    TopAbs_Orientation &

    rtype

    void

static PipeInter()
Parameters

F1

type F1

TopoDS_Face &

param F2

type F2

TopoDS_Face &

param LInt1

type LInt1

TopTools_ListOfShape &

param LInt2

type LInt2

TopTools_ListOfShape &

param Side

type Side

TopAbs_State

rtype

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.
    param F1

    type F1

    TopoDS_Face &

    param F2

    type F2

    TopoDS_Face &

    param Edges

    type Edges

    TopTools_ListOfShape &

    param LInt1

    type LInt1

    TopTools_ListOfShape &

    param LInt2

    type LInt2

    TopTools_ListOfShape &

    param Side

    type Side

    TopAbs_State

    param TolConf

    type TolConf

    float

    rtype

    bool

property thisown

The membership flag

class SwigPyIterator(*args, **kwargs)

Bases: object

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

The membership flag

value()
class brepoffset(*args, **kwargs)

Bases: object

static CollapseSingularities()
  • Preprocess surface to be offset (bspline, bezier, or revolution based on bspline or bezier curve), by collapsing each singular side to single point. //! This is to avoid possible flipping of normal at the singularity of the surface due to non-zero distance between the poles that logically should be in one point (singularity). The (parametric) side of the surface is considered to be singularity if face has degenerated edge whose vertex encompasses (by its tolerance) all points on that side, or if all poles defining that side fit into sphere with radius thePrecision. //! Returns either original surface or its modified copy (if some poles have been moved).
    param theSurface

    type theSurface

    opencascade::handle<Geom_Surface> &

    param theFace

    type theFace

    TopoDS_Face &

    param thePrecision

    type thePrecision

    float

    rtype

    opencascade::handle<Geom_Surface>

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. Parameter allowC0 is then passed as last argument to constructor of Geom_OffsetSurface.
    param Surface

    type Surface

    opencascade::handle<Geom_Surface> &

    param Offset

    type Offset

    float

    param theStatus

    type theStatus

    BRepOffset_Status &

    param allowC0

    default value is Standard_False

    type allowC0

    bool

    rtype

    opencascade::handle<Geom_Surface>

property thisown

The membership flag