OCC.Core.TopOpeBRep module

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

class SwigPyIterator(*args, **kwargs)

Bases: object

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

The membership flag

value()
class TopOpeBRep_Array1OfLineInter(*args)

Bases: object

Assign()
ChangeFirst()
ChangeLast()
ChangeValue()
First()
Init()
IsAllocated()
IsDeletable()
IsEmpty()
Last()
Length()
Lower()
Move()
Resize()
Set()
SetValue()
Size()
Upper()
Value()
begin()
cbegin()
cend()
end()
next()
property thisown

The membership flag

class TopOpeBRep_Array1OfVPointInter(*args)

Bases: object

Assign()
ChangeFirst()
ChangeLast()
ChangeValue()
First()
Init()
IsAllocated()
IsDeletable()
IsEmpty()
Last()
Length()
Lower()
Move()
Resize()
Set()
SetValue()
Size()
Upper()
Value()
begin()
cbegin()
cend()
end()
next()
property thisown

The membership flag

class TopOpeBRep_Bipoint(*args)

Bases: object

Return type

None:param I1: :type I1: int :param I2: :type I2: int :rtype: None

I1()
Return type

int

I2()
Return type

int

property thisown

The membership flag

class TopOpeBRep_DSFiller(*args)

Bases: object

Return type

None

ChangeEdgesFiller()
Return type

TopOpeBRep_EdgesFiller

ChangeFaceEdgeFiller()
Return type

TopOpeBRep_FaceEdgeFiller

ChangeFacesFiller()
Return type

TopOpeBRep_FacesFiller

ChangeShapeIntersector()
Return type

TopOpeBRep_ShapeIntersector

ChangeShapeIntersector2d()
Return type

TopOpeBRep_ShapeIntersector2d

Checker()
Parameters

HDS

type HDS

TopOpeBRepDS_HDataStructure

rtype

None

Complete()
Parameters

HDS

type HDS

TopOpeBRepDS_HDataStructure

rtype

None

CompleteDS()
  • Update the data structure with relevant informations deduced from the intersections. //! Shells containing an intersected face. Wires containing an intersected edge.
    param HDS

    type HDS

    TopOpeBRepDS_HDataStructure

    rtype

    None

CompleteDS2d()
  • Update the data structure with relevant informations deduced from the intersections 2d. //! Shells containing an intersected face. Wires containing an intersected edge. //! search for interference identity using edge connexity //NYI
    param HDS

    type HDS

    TopOpeBRepDS_HDataStructure

    rtype

    None

Filter()
Parameters

HDS

type HDS

TopOpeBRepDS_HDataStructure

rtype

None

GapFiller()
Parameters

HDS

type HDS

TopOpeBRepDS_HDataStructure

rtype

None

Insert()
  • Stores in <DS> the intersections of <S1> and <S2>. if orientFORWARD = True S FORWARD,REVERSED –> FORWARD S EXTERNAL,INTERNAL –> EXTERNAL,INTERNAL
    param S1

    type S1

    TopoDS_Shape

    param S2

    type S2

    TopoDS_Shape

    param HDS

    type HDS

    TopOpeBRepDS_HDataStructure

    param orientFORWARD

    default value is Standard_True

    type orientFORWARD

    bool

    rtype

    None

Insert1d()
  • Stores in <DS> the intersections of <S1> and <S2>. S1 and S2 are edges or wires. S1 edges have a 2d representation in face F1 S2 edges have a 2d representation in face F2 F1 is the face which surface is taken as reference for 2d description of S1 and S2 edges. if orientFORWARD = True S FORWARD,REVERSED –> FORWARD S EXTERNAL,INTERNAL –> EXTERNAL,INTERNAL
    param S1

    type S1

    TopoDS_Shape

    param S2

    type S2

    TopoDS_Shape

    param F1

    type F1

    TopoDS_Face

    param F2

    type F2

    TopoDS_Face

    param HDS

    type HDS

    TopOpeBRepDS_HDataStructure

    param orientFORWARD

    default value is Standard_False

    type orientFORWARD

    bool

    rtype

    None

Insert2d()
  • Stores in <DS> the intersections of <S1> and <S2>. S1 et S2 contain only SameDomain Face
    param S1

    type S1

    TopoDS_Shape

    param S2

    type S2

    TopoDS_Shape

    param HDS

    type HDS

    TopOpeBRepDS_HDataStructure

    rtype

    None

InsertIntersection()
  • Stores in <DS> the intersections of <S1> and <S2>. if orientFORWARD = True S FORWAR,REVERSED –> FORWARD S EXTERNAL,INTERNAL –> EXTERNAL,INTERNAL
    param S1

    type S1

    TopoDS_Shape

    param S2

    type S2

    TopoDS_Shape

    param HDS

    type HDS

    TopOpeBRepDS_HDataStructure

    param orientFORWARD

    default value is Standard_True

    type orientFORWARD

    bool

    rtype

    None

InsertIntersection2d()
  • S1, S2 set of tangent face lance les intersections 2d pour coder correctement les faces SameDomain.
    param S1

    type S1

    TopoDS_Shape

    param S2

    type S2

    TopoDS_Shape

    param HDS

    type HDS

    TopOpeBRepDS_HDataStructure

    rtype

    None

IsContext1d()
Parameters

S

type S

TopoDS_Shape

rtype

bool

IsMadeOf1d()
Parameters

S

type S

TopoDS_Shape

rtype

bool

PShapeClassifier()
  • return field myPShapeClassifier. set field myPShapeClassifier.
    rtype

    TopOpeBRepTool_PShapeClassifier

Reducer()
Parameters

HDS

type HDS

TopOpeBRepDS_HDataStructure

rtype

None

RemoveUnsharedGeometry()
Parameters

HDS

type HDS

TopOpeBRepDS_HDataStructure

rtype

None

property thisown

The membership flag

class TopOpeBRep_DataMapOfTopolTool(*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 TopOpeBRep_EdgesFiller(*args)

Bases: object

Return type

None

Face()
Parameters

I

type I

int

param F

type F

TopoDS_Shape

rtype

None:param I:

type I

int

rtype

TopoDS_Shape

Insert()
Parameters

E1

type E1

TopoDS_Shape

param E2

type E2

TopoDS_Shape

param EI

type EI

TopOpeBRep_EdgesIntersector

param HDS

type HDS

TopOpeBRepDS_HDataStructure

rtype

None

property thisown

The membership flag

class TopOpeBRep_EdgesIntersector(*args)

Bases: object

Return type

None

Curve()
Parameters

Index

type Index

int

rtype

Geom2dAdaptor_Curve

Dimension()
Parameters

D

type D

int

rtype

None* set working space dimension D = 1 for E &|| W, 2 for E in F

rtype

int

Dump()
Parameters

str

type str

TCollection_AsciiString

param ie1

default value is 0

type ie1

int

param ie2

default value is 0

type ie2

int

rtype

None

Edge()
Parameters

Index

type Index

int

rtype

TopoDS_Shape

Face()
Parameters

Index

type Index

int

rtype

TopoDS_Shape

FacesSameOriented()
Return type

bool

ForceTolerances()
Parameters

Tol1

type Tol1

float

param Tol2

type Tol2

float

rtype

None

HasSegment()
  • true if at least one intersection segment.
    rtype

    bool

InitPoint()
Parameters

selectkeep – default value is Standard_True :type selectkeep: bool :rtype: None

IsEmpty()
Return type

bool

MorePoint()
Return type

bool

NbPoints()
Return type

int

NbSegments()
Return type

int

NextPoint()
Return type

None

Perform()
Parameters

E1

type E1

TopoDS_Shape

param E2

type E2

TopoDS_Shape

param ReduceSegments

default value is Standard_True

type ReduceSegments

bool

rtype

None

Point()
Return type

TopOpeBRep_Point2d:param I: :type I: int :rtype: TopOpeBRep_Point2d

Points()
Return type

TopOpeBRep_SequenceOfPoint2d

ReduceSegment()
Parameters

P1

type P1

TopOpeBRep_Point2d

param P2

type P2

TopOpeBRep_Point2d

param Pn

type Pn

TopOpeBRep_Point2d

rtype

bool

SameDomain()
  • = mySameDomain.
    rtype

    bool

SetFaces()
Parameters

F1

type F1

TopoDS_Shape

param F2

type F2

TopoDS_Shape

rtype

None:param F1:

type F1

TopoDS_Shape

param F2

type F2

TopoDS_Shape

param B1

type B1

Bnd_Box

param B2

type B2

Bnd_Box

rtype

None

Status1()
Return type

TopOpeBRep_P2Dstatus

Surface()
Parameters

Index

type Index

int

rtype

BRepAdaptor_Surface

SurfacesSameOriented()
Return type

bool

ToleranceMax()
Return type

float

Tolerances()
Parameters

tol1

type tol1

float

param tol2

type tol2

float

rtype

None

property thisown

The membership flag

class TopOpeBRep_FFDumper(*args)

Bases: OCC.Core.Standard.Standard_Transient

Parameters

PFF

type PFF

TopOpeBRep_PFacesFiller

rtype

None

static DownCast(t)
DumpDSP()
Parameters

VP

type VP

TopOpeBRep_VPointInter

param GK

type GK

TopOpeBRepDS_Kind

param G

type G

int

param newinDS

type newinDS

bool

rtype

None

DumpLine()
Parameters

I

type I

int

rtype

None:param L:

type L

TopOpeBRep_LineInter

rtype

None

DumpVP()
Parameters

VP

type VP

TopOpeBRep_VPointInter

rtype

None:param VP:

type VP

TopOpeBRep_VPointInter

param ISI

type ISI

int

rtype

None

ExploreIndex()
Parameters

S

type S

TopoDS_Shape

param ISI

type ISI

int

rtype

int

Init()
Parameters

PFF

type PFF

TopOpeBRep_PFacesFiller

rtype

None

PFacesFillerDummy()
Return type

TopOpeBRep_PFacesFiller

property thisown

The membership flag

class TopOpeBRep_FFTransitionTool

Bases: object

static ProcessEdgeONTransition()
  • compute transition on ‘IntPatch_Restriction line’ edge <R> when crossing edge <E> of face <F> at point <VP>. VP is given on edge <E> of face <F> of index <Index> (1 or 2). <VP> has been classified by FacesFiller as TopAbs_ON an edge <R> of the other face than <F> of current (face/face) intersection. Transition depends on the orientation of E in F. This method should be provided by IntPatch_Line (NYI)
    param VP

    type VP

    TopOpeBRep_VPointInter

    param Index

    type Index

    int

    param R

    type R

    TopoDS_Shape

    param E

    type E

    TopoDS_Shape

    param F

    type F

    TopoDS_Shape

    rtype

    TopOpeBRepDS_Transition

static ProcessEdgeTransition()
Parameters

P

type P

TopOpeBRep_VPointInter

param Index

type Index

int

param LineOrientation

type LineOrientation

TopAbs_Orientation

rtype

TopOpeBRepDS_Transition

static ProcessFaceTransition()
Parameters

L

type L

TopOpeBRep_LineInter

param Index

type Index

int

param FaceOrientation

type FaceOrientation

TopAbs_Orientation

rtype

TopOpeBRepDS_Transition

static ProcessLineTransition()
Parameters

P

type P

TopOpeBRep_VPointInter

param Index

type Index

int

param EdgeOrientation

type EdgeOrientation

TopAbs_Orientation

rtype

TopOpeBRepDS_Transition:param P:

type P

TopOpeBRep_VPointInter

param L

type L

TopOpeBRep_LineInter

rtype

TopOpeBRepDS_Transition

property thisown

The membership flag

class TopOpeBRep_FaceEdgeFiller(*args)

Bases: object

Return type

None

Insert()
Parameters

F

type F

TopoDS_Shape

param E

type E

TopoDS_Shape

param FEINT

type FEINT

TopOpeBRep_FaceEdgeIntersector

param HDS

type HDS

TopOpeBRepDS_HDataStructure

rtype

None

property thisown

The membership flag

class TopOpeBRep_FaceEdgeIntersector(*args)

Bases: object

Return type

None

ForceTolerance()
  • Force the tolerance values used by the next Perform(S1,S2) call.
    param tol

    type tol

    float

    rtype

    None

Index()
  • trace only
    rtype

    int

InitPoint()
Return type

None

IsEmpty()
Return type

bool

IsVertex()
Parameters

S

type S

TopoDS_Shape

param P

type P

gp_Pnt

param Tol

type Tol

float

param V

type V

TopoDS_Vertex

rtype

bool:param I:

type I

int

param V

type V

TopoDS_Vertex

rtype

bool

MorePoint()
Return type

bool

NbPoints()
Return type

int

NextPoint()
Return type

None

Parameter()
  • parametre de Value() sur l’arete
    rtype

    float

Perform()
Parameters

F

type F

TopoDS_Shape

param E

type E

TopoDS_Shape

rtype

None

Shape()
  • returns intersected face or edge according to value of <Index> = 1 or 2
    param Index

    type Index

    int

    rtype

    TopoDS_Shape

State()
  • IN ou ON / a la face. Les points OUT ne sont pas retournes.
    rtype

    TopAbs_State

Tolerance()
  • Return the tolerance value used in the last Perform() call If ForceTolerance() has been called, return the given value. If not, return value extracted from shapes.
    rtype

    float

Transition()
  • Index = 1 transition par rapport a la face, en cheminant sur l’arete
    param Index

    type Index

    int

    param FaceOrientation

    type FaceOrientation

    TopAbs_Orientation

    rtype

    TopOpeBRepDS_Transition

UVPoint()
  • parametre de Value() sur la face
    param P

    type P

    gp_Pnt2d

    rtype

    None

Value()
  • return the 3D point of the current intersection point.
    rtype

    gp_Pnt

property thisown

The membership flag

class TopOpeBRep_FacesFiller(*args)

Bases: object

Return type

None

AddShapesLine()
  • compute 3d curve, pcurves and face/curve interferences for current NDSC. Add them to the DS.
    rtype

    None

ChangeDataStructure()
Return type

TopOpeBRepDS_DataStructure

ChangeFacesIntersector()
Return type

TopOpeBRep_FacesIntersector

ChangePointClassifier()
Return type

TopOpeBRep_PointClassifier

CheckLine()
Parameters

L

type L

TopOpeBRep_LineInter

rtype

bool

static EqualpPonR()
Parameters

Lrest

type Lrest

TopOpeBRep_LineInter

param VP1

type VP1

TopOpeBRep_VPointInter

param VP2

type VP2

TopOpeBRep_VPointInter

rtype

bool

Face()
Parameters

I

type I

int

rtype

TopoDS_Face

FaceFaceTransition()
Parameters

L

type L

TopOpeBRep_LineInter

param I

type I

int

rtype

TopOpeBRepDS_Transition:param I:

type I

int

rtype

TopOpeBRepDS_Transition

FillLine()
Return type

None

FillLineVPonR()
  • VP processing for restriction line and line sharing same domain with section edges- if restrictionAdds restriction edges as section edges and compute face/edge interference. - if same domainIf line share same domain with section edges, compute parts of line IN/IN the two faces, and compute curve/point interference for VP boundaries.
    rtype

    None

GetESL()
  • Get map <mapES > of restriction edges having parts IN one of the 2 faces.
    param LES

    type LES

    TopTools_ListOfShape

    rtype

    None

GetFFGeometry()
  • search for G = geometry of Point which is identical to <DSP> among the DS Points created in the CURRENT face/face intersection ( current Insert() call).
    param DSP

    type DSP

    TopOpeBRepDS_Point

    param K

    type K

    TopOpeBRepDS_Kind

    param G

    type G

    int

    rtype

    bool* search for G = geometry of Point which is identical to <VP> among the DS Points created in the CURRENT face/face intersection ( current Insert() call).

    param VP

    type VP

    TopOpeBRep_VPointInter

    param K

    type K

    TopOpeBRepDS_Kind

    param G

    type G

    int

    rtype

    bool

GetGeometry()
  • Get the geometry of a DS point <DSP>. Search for it with ScanInterfList (previous method). if found, set <G> to the geometry of the interference found. else, add the point <DSP> in the <DS> and set <G> to the value of the new geometry such created. returns the value of ScanInterfList().
    param IT

    type IT

    TopOpeBRepDS_ListIteratorOfListOfInterference

    param VP

    type VP

    TopOpeBRep_VPointInter

    param G

    type G

    int

    param K

    type K

    TopOpeBRepDS_Kind

    rtype

    bool

GetTraceIndex()
Parameters

exF1

type exF1

int

param exF2

type exF2

int

rtype

None

HDataStructure()
Return type

opencascade::handle<TopOpeBRepDS_HDataStructure>

Insert()
  • Stores in <DS> the intersections of <S1> and <S2>.
    param F1

    type F1

    TopoDS_Shape

    param F2

    type F2

    TopoDS_Shape

    param FACINT

    type FACINT

    TopOpeBRep_FacesIntersector

    param HDS

    type HDS

    TopOpeBRepDS_HDataStructure

    rtype

    None

static IsVPtransLok()
  • Computes the transition <T> of the VPoint <iVP> on the edge of <SI12>. Returns <False> if the status is unknown.
    param L

    type L

    TopOpeBRep_LineInter

    param iVP

    type iVP

    int

    param SI12

    type SI12

    int

    param T

    type T

    TopOpeBRepDS_Transition

    rtype

    bool

static LSameDomainERL()
  • Returns <True> if <L> shares a same geometric domain with at least one of the section edges of <ERL>.
    param L

    type L

    TopOpeBRep_LineInter

    param ERL

    type ERL

    TopTools_ListOfShape

    rtype

    bool

static Lminmax()
  • Computes <pmin> and <pmax> the upper and lower bounds of <L> enclosing all vpoints.
    param L

    type L

    TopOpeBRep_LineInter

    param pmin

    type pmin

    float

    param pmax

    type pmax

    float

    rtype

    void

LoadLine()
Parameters

L

type L

TopOpeBRep_LineInter

rtype

None

MakeGeometry()
Parameters

VP

type VP

TopOpeBRep_VPointInter

param ShapeIndex

type ShapeIndex

int

param K

type K

TopOpeBRepDS_Kind

rtype

int

PDataStructureDummy()
Return type

TopOpeBRepDS_PDataStructure

PFacesIntersectorDummy()
Return type

TopOpeBRep_PFacesIntersector

PLineInterDummy()
Return type

TopOpeBRep_PLineInter

PShapeClassifier()
  • return field myPShapeClassifier.
    rtype

    TopOpeBRepTool_PShapeClassifier

ProcessLine()
  • Process current intersection line (set by LoadLine)
    rtype

    None

ProcessRLine()
  • Process current restriction line, adding restriction edge and computing face/edge interference.
    rtype

    None

ProcessSectionEdges()
Return type

None

ProcessVPInotonR()
  • processing ProcessVPnotonR for VPI.
    param VPI

    type VPI

    TopOpeBRep_VPointInterIterator

    rtype

    None

ProcessVPIonR()
  • processing ProcessVPonR for VPI.
    param VPI

    type VPI

    TopOpeBRep_VPointInterIterator

    param trans1

    type trans1

    TopOpeBRepDS_Transition

    param F1

    type F1

    TopoDS_Shape

    param ShapeIndex

    type ShapeIndex

    int

    rtype

    None

ProcessVPR()
  • calling the followings ProcessVPIonR and ProcessVPonR.
    param FF

    type FF

    TopOpeBRep_FacesFiller

    param VP

    type VP

    TopOpeBRep_VPointInter

    rtype

    None

ProcessVPnotonR()
  • adds <VP>’s geometrical point to the DS (if not stored) and computes curve point interference.
    param VP

    type VP

    TopOpeBRep_VPointInter

    rtype

    None

ProcessVPonR()
  • adds <VP>’s geometric point (if not stored) and computes (curve or edge)/(point or vertex) interference.
    param VP

    type VP

    TopOpeBRep_VPointInter

    param trans1

    type trans1

    TopOpeBRepDS_Transition

    param F1

    type F1

    TopoDS_Shape

    param ShapeIndex

    type ShapeIndex

    int

    rtype

    None

ProcessVPonclosingR()
  • VP processing on closing arc.
    param VP

    type VP

    TopOpeBRep_VPointInter

    param F1

    type F1

    TopoDS_Shape

    param ShapeIndex

    type ShapeIndex

    int

    param transEdge

    type transEdge

    TopOpeBRepDS_Transition

    param PVKind

    type PVKind

    TopOpeBRepDS_Kind

    param PVIndex

    type PVIndex

    int

    param EPIfound

    type EPIfound

    bool

    param IEPI

    type IEPI

    TopOpeBRepDS_Interference

    rtype

    None

ProcessVPondgE()
  • VP processing on degenerated arc.
    param VP

    type VP

    TopOpeBRep_VPointInter

    param ShapeIndex

    type ShapeIndex

    int

    param PVKind

    type PVKind

    TopOpeBRepDS_Kind

    param PVIndex

    type PVIndex

    int

    param EPIfound

    type EPIfound

    bool

    param IEPI

    type IEPI

    TopOpeBRepDS_Interference

    param CPIfound

    type CPIfound

    bool

    param ICPI

    type ICPI

    TopOpeBRepDS_Interference

    rtype

    bool

ResetDSC()
Return type

None

SetPShapeClassifier()
  • set field myPShapeClassifier.
    param PSC

    type PSC

    TopOpeBRepTool_PShapeClassifier

    rtype

    None

SetTraceIndex()
Parameters

exF1

type exF1

int

param exF2

type exF2

int

rtype

None

StoreCurveInterference()
  • Add interference <I> to list myDSCIL. on a given line, at first call, add a new DS curve.
    param I

    type I

    TopOpeBRepDS_Interference

    rtype

    None

static TransvpOK()
  • Computes transition on line for VP<iVP> on edge restriction of <SI>. If <isINOUT>returns <true> if transition computed is IN/OUT elsereturns <true> if transition computed is OUT/IN.
    param L

    type L

    TopOpeBRep_LineInter

    param iVP

    type iVP

    int

    param SI

    type SI

    int

    param isINOUT

    type isINOUT

    bool

    rtype

    bool

static VPParamOnER()
  • Returns parameter u of vp on the restriction edge.
    param vp

    type vp

    TopOpeBRep_VPointInter

    param Lrest

    type Lrest

    TopOpeBRep_LineInter

    rtype

    float

VP_Position()
  • compute position of VPoints of lines
    param FACINT

    type FACINT

    TopOpeBRep_FacesIntersector

    rtype

    None* compute position of VPoints of line L

    param L

    type L

    TopOpeBRep_LineInter

    rtype

    None* compute position of VP with current faces, according to VP.ShapeIndex() .

    param VP

    type VP

    TopOpeBRep_VPointInter

    param VPC

    type VPC

    TopOpeBRep_VPointInterClassifier

    rtype

    None

VP_PositionOnL()
  • compute position of VPoints of non-restriction line L.
    param L

    type L

    TopOpeBRep_LineInter

    rtype

    None

VP_PositionOnR()
  • compute position of VPoints of restriction line L.
    param L

    type L

    TopOpeBRep_LineInter

    rtype

    None

property thisown

The membership flag

class TopOpeBRep_FacesIntersector(*args)

Bases: object

Return type

None

ChangeLine()
Parameters

IL

type IL

int

rtype

TopOpeBRep_LineInter

CurrentLine()
Return type

TopOpeBRep_LineInter

CurrentLineIndex()
Return type

int

Face()
  • returns first or second intersected face.
    param Index

    type Index

    int

    rtype

    TopoDS_Shape

ForceTolerances()
  • Force the tolerance values used by the next Perform(S1,S2) call.
    param tolarc

    type tolarc

    float

    param toltang

    type toltang

    float

    rtype

    None

GetTolerances()
  • Return the tolerance values used in the last Perform() call If ForceTolerances() has been called, return the given values. If not, return values extracted from shapes.
    param tolarc

    type tolarc

    float

    param toltang

    type toltang

    float

    rtype

    None

InitLine()
Return type

None

IsDone()
Return type

bool

IsEmpty()
Return type

bool

IsRestriction()
  • returns true if edge <E> is found as same as the edge associated with a RESTRICTION line.
    param E

    type E

    TopoDS_Shape

    rtype

    bool

Lines()
Return type

opencascade::handle<TopOpeBRep_HArray1OfLineInter>

MoreLine()
Return type

bool

NbLines()
Return type

int

NextLine()
Return type

None

Perform()
  • Computes the intersection of faces S1 and S2.
    param S1

    type S1

    TopoDS_Shape

    param S2

    type S2

    TopoDS_Shape

    rtype

    None* Computes the intersection of faces S1 and S2.

    param S1

    type S1

    TopoDS_Shape

    param S2

    type S2

    TopoDS_Shape

    param B1

    type B1

    Bnd_Box

    param B2

    type B2

    Bnd_Box

    rtype

    None

PrepareLines()
Return type

None

Restrictions()
  • returns the map of edges found as TopeBRepBRep_RESTRICTION
    rtype

    TopTools_IndexedMapOfShape

SameDomain()
  • Returns True if Perform() arguments are two faces with the same surface.
    rtype

    bool

SurfacesSameOriented()
  • Returns True if Perform() arguments are two faces SameDomain() and normals on both side. Raise if SameDomain is False
    rtype

    bool

property thisown

The membership flag

class TopOpeBRep_GeomTool

Bases: object

static MakeBSpline1fromWALKING2d()
Parameters

L

type L

TopOpeBRep_LineInter

param SI

type SI

int

rtype

opencascade::handle<Geom2d_Curve>

static MakeBSpline1fromWALKING3d()
Parameters

L

type L

TopOpeBRep_LineInter

rtype

opencascade::handle<Geom_Curve>

static MakeCurve()
Parameters

min

type min

float

param max

type max

float

param L

type L

TopOpeBRep_LineInter

param C

type C

Geom_Curve

rtype

void

static MakeCurves()
  • Make the DS curve <C> and the pcurves <PC1,PC2> from intersection line <L> lying on shapes <S1,S2>. <min,max> = <L> bounds
    param min

    type min

    float

    param max

    type max

    float

    param L

    type L

    TopOpeBRep_LineInter

    param S1

    type S1

    TopoDS_Shape

    param S2

    type S2

    TopoDS_Shape

    param C

    type C

    TopOpeBRepDS_Curve

    param PC1

    type PC1

    Geom2d_Curve

    param PC2

    type PC2

    Geom2d_Curve

    rtype

    void

property thisown

The membership flag

class TopOpeBRep_HArray1OfLineInter(*args)

Bases: OCC.Core.TopOpeBRep.TopOpeBRep_Array1OfLineInter, OCC.Core.Standard.Standard_Transient

  • Empty constructor

Return type

None* Copy constructor – does nothing

Parameters

& (Standard_Transient) –

Return type

None

Array1()
ChangeArray1()
static DownCast(t)
property thisown

The membership flag

class TopOpeBRep_HArray1OfVPointInter(*args)

Bases: OCC.Core.TopOpeBRep.TopOpeBRep_Array1OfVPointInter, OCC.Core.Standard.Standard_Transient

  • Empty constructor

Return type

None* Copy constructor – does nothing

Parameters

& (Standard_Transient) –

Return type

None

Array1()
ChangeArray1()
static DownCast(t)
property thisown

The membership flag

class TopOpeBRep_Hctxee2d(*args)

Bases: OCC.Core.Standard.Standard_Transient

Return type

None

Curve()
Parameters

I

type I

int

rtype

Geom2dAdaptor_Curve

Domain()
Parameters

I

type I

int

rtype

IntRes2d_Domain

static DownCast(t)
Edge()
Parameters

I

type I

int

rtype

TopoDS_Shape

SetEdges()
Parameters

E1

type E1

TopoDS_Edge

param E2

type E2

TopoDS_Edge

param BAS1

type BAS1

BRepAdaptor_Surface

param BAS2

type BAS2

BRepAdaptor_Surface

rtype

None

property thisown

The membership flag

class TopOpeBRep_Hctxff2d(*args)

Bases: OCC.Core.Standard.Standard_Transient

Return type

None

static DownCast(t)
Face()
Parameters

I

type I

int

rtype

TopoDS_Face

FaceSameOrientedWithRef()
Parameters

I

type I

int

rtype

bool

FacesSameOriented()
Return type

bool

GetMaxTolerance()
Return type

float

GetTolerances()
Parameters

Tol1

type Tol1

float

param Tol2

type Tol2

float

rtype

None

HSurface()
Parameters

I

type I

int

rtype

opencascade::handle<BRepAdaptor_HSurface>

SetFaces()
Parameters

F1

type F1

TopoDS_Face

param F2

type F2

TopoDS_Face

rtype

None

SetHSurfaces()
Parameters

S1

type S1

BRepAdaptor_HSurface

param S2

type S2

BRepAdaptor_HSurface

rtype

None

SetTolerances()
Parameters

Tol1

type Tol1

float

param Tol2

type Tol2

float

rtype

None

SurfacesSameOriented()
Return type

bool

property thisown

The membership flag

class TopOpeBRep_LineInter(*args)

Bases: object

Return type

None

Arc()
  • returns the edge of a RESTRICTION line (or a null edge).
    rtype

    TopoDS_Shape

ArcIsEdge()
  • returns true if Arc() edge (of a RESTRICTION line) is an edge of the original face <Index> (1 or 2).
    param I

    type I

    int

    rtype

    bool

Bounds()
Parameters

f

type f

float

param l

type l

float

rtype

None

ChangeVPoint()
Parameters

I

type I

int

rtype

TopOpeBRep_VPointInter

ComputeFaceFaceTransition()
Return type

None

Curve()
Return type

opencascade::handle<Geom_Curve>:param parmin: :type parmin: float :param parmax: :type parmax: float :rtype: opencascade::handle<Geom_Curve>

DumpBipoint()
Parameters

B

type B

TopOpeBRep_Bipoint

param s1

type s1

TCollection_AsciiString

param s2

type s2

TCollection_AsciiString

rtype

None

DumpLineTransitionsToString(TopOpeBRep_LineInter self) → std::string
DumpType()
Return type

None

DumpVPoint()
Parameters

I

type I

int

param s1

type s1

TCollection_AsciiString

param s2

type s2

TCollection_AsciiString

rtype

None

FaceFaceTransition()
Parameters

I

type I

int

rtype

TopOpeBRepDS_Transition

GetTraceIndex()
Parameters

exF1

type exF1

int

param exF2

type exF2

int

rtype

None

HasFirstPoint()
Return type

bool

HasLastPoint()
Return type

bool

HasVInternal()
Return type

bool

HasVPonR()
Return type

bool

INL()
Return type

bool

Index()
Parameters

I

type I

int

rtype

None:rtype: int

IsPeriodic()
Return type

bool

IsVClosed()
Return type

bool

LineG()
Return type

opencascade::handle<IntPatch_GLine>

LineR()
Return type

opencascade::handle<IntPatch_RLine>

LineW()
Return type

opencascade::handle<IntPatch_WLine>

NbVPoint()
Return type

int

NbWPoint()
Return type

int

OK()
Return type

bool

Period()
Return type

float

SetFaces()
Parameters

F1

type F1

TopoDS_Face

param F2

type F2

TopoDS_Face

rtype

None

SetHasVPonR()
Return type

None

SetINL()
Return type

None

SetIsVClosed()
Return type

None

SetLine()
Parameters

L

type L

IntPatch_Line

param S1

type S1

BRepAdaptor_Surface

param S2

type S2

BRepAdaptor_Surface

rtype

None

SetOK()
Parameters

B

type B

bool

rtype

None

SetTraceIndex()
Parameters

exF1

type exF1

int

param exF2

type exF2

int

rtype

None

SetVPBounds()
Return type

None

SituationS1()
Return type

IntSurf_Situation

SituationS2()
Return type

IntSurf_Situation

TransitionOnS1()
Return type

IntSurf_TypeTrans

TransitionOnS2()
Return type

IntSurf_TypeTrans

TypeLineCurve()
Return type

TopOpeBRep_TypeLineCurve

VPBounds()
Parameters

f

type f

int

param l

type l

int

param n

type n

int

rtype

None

VPoint()
Parameters

I

type I

int

rtype

TopOpeBRep_VPointInter

WPoint()
Parameters

I

type I

int

rtype

TopOpeBRep_WPointInter

property thisown

The membership flag

class TopOpeBRep_ListIteratorOfListOfBipoint(*args)

Bases: object

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

The membership flag

class TopOpeBRep_ListOfBipoint(*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 TopOpeBRep_Point2d(*args)

Bases: object

Return type

None

ChangeTransition()
Parameters

I

type I

int

rtype

TopOpeBRepDS_Transition

Dump()
Parameters

ie1 – default value is 0 :type ie1: int :param ie2: default value is 0 :type ie2: int :rtype: None

EdgesConfig()
Return type

TopOpeBRepDS_Config

HasPint()
Return type

bool

Hctxee2d()
Return type

opencascade::handle<TopOpeBRep_Hctxee2d>

Hctxff2d()
Return type

opencascade::handle<TopOpeBRep_Hctxff2d>

Index()
Return type

int

IsPointOfSegment()
Return type

bool

IsVertex()
Parameters

I

type I

int

rtype

bool

Keep()
Return type

bool

Parameter()
Parameters

I

type I

int

rtype

float

Pint()
Return type

IntRes2d_IntersectionPoint

SegmentAncestors()
Parameters

IP1

type IP1

int

param IP2

type IP2

int

rtype

bool

SetEdgesConfig()
Parameters

C

type C

TopOpeBRepDS_Config

rtype

None

SetHctxee2d()
Parameters

ee2d

type ee2d

TopOpeBRep_Hctxee2d

rtype

None

SetHctxff2d()
Parameters

ff2d

type ff2d

TopOpeBRep_Hctxff2d

rtype

None

SetIndex()
Parameters

X

type X

int

rtype

None

SetIsPointOfSegment()
Parameters

B

type B

bool

rtype

None

SetIsVertex()
Parameters

I

type I

int

param B

type B

bool

rtype

None

SetKeep()
Parameters

B

type B

bool

rtype

None

SetParameter()
Parameters

I

type I

int

param P

type P

float

rtype

None

SetPint()
Parameters

P

type P

IntRes2d_IntersectionPoint

rtype

None

SetSegmentAncestors()
Parameters

IP1

type IP1

int

param IP2

type IP2

int

rtype

None

SetStatus()
Parameters

S

type S

TopOpeBRep_P2Dstatus

rtype

None

SetTolerance()
Parameters

T

type T

float

rtype

None

SetTransition()
Parameters

I

type I

int

param T

type T

TopOpeBRepDS_Transition

rtype

None

SetValue()
Parameters

P

type P

gp_Pnt

rtype

None

SetValue2d()
Parameters

P

type P

gp_Pnt2d

rtype

None

SetVertex()
Parameters

I

type I

int

param V

type V

TopoDS_Vertex

rtype

None

Status()
Return type

TopOpeBRep_P2Dstatus

Tolerance()
Return type

float

Transition()
Parameters

I

type I

int

rtype

TopOpeBRepDS_Transition

Value()
Return type

gp_Pnt

Value2d()
Return type

gp_Pnt2d

Vertex()
Parameters

I

type I

int

rtype

TopoDS_Vertex

property thisown

The membership flag

class TopOpeBRep_PointClassifier(*args)

Bases: object

Return type

None

Classify()
  • compute position of point <P> regarding with the face <F>.
    param F

    type F

    TopoDS_Face

    param P

    type P

    gp_Pnt2d

    param Tol

    type Tol

    float

    rtype

    TopAbs_State

Init()
Return type

None

Load()
Parameters

F

type F

TopoDS_Face

rtype

None

State()
Return type

TopAbs_State

property thisown

The membership flag

class TopOpeBRep_PointGeomTool

Bases: object

static IsEqual()
Parameters

DSP1

type DSP1

TopOpeBRepDS_Point

param DSP2

type DSP2

TopOpeBRepDS_Point

rtype

bool

static MakePoint()
Parameters

IP

type IP

TopOpeBRep_VPointInter

rtype

TopOpeBRepDS_Point:param P2D:

type P2D

TopOpeBRep_Point2d

rtype

TopOpeBRepDS_Point:param FEI:

type FEI

TopOpeBRep_FaceEdgeIntersector

rtype

TopOpeBRepDS_Point:param S:

type S

TopoDS_Shape

rtype

TopOpeBRepDS_Point

property thisown

The membership flag

class TopOpeBRep_SequenceOfPoint2d(*args)

Bases: object

Append()
Assign()
ChangeFirst()
ChangeLast()
ChangeValue()
Clear()
Exchange()
First()
InsertAfter()
InsertBefore()
IsEmpty()
Last()
Length()
Lower()
Prepend()
Remove()
Reverse()
Set()
SetValue()
Size()
Split()
Upper()
Value()
begin()
cbegin()
cend()
static delNode()
end()
property thisown

The membership flag

class TopOpeBRep_ShapeIntersector(*args)

Bases: object

Return type

None

ChangeEdgesIntersector()
  • return the current intersection of two Edges.
    rtype

    TopOpeBRep_EdgesIntersector

ChangeFaceEdgeIntersector()
  • return the current intersection of a Face and an Edge.
    rtype

    TopOpeBRep_FaceEdgeIntersector

ChangeFacesIntersector()
  • return the current intersection of two Faces.
    rtype

    TopOpeBRep_FacesIntersector

CurrentGeomShape()
  • return geometric shape <Index> ( = 1 or 2 ) of current intersection.
    param Index

    type Index

    int

    rtype

    TopoDS_Shape

DumpCurrent()
Parameters

K

type K

int

rtype

None

GetTolerances()
  • return MAX of intersection tolerances with which FacesIntersector from TopOpeBRep was working.
    param tol1

    type tol1

    float

    param tol2

    type tol2

    float

    rtype

    None

Index()
Parameters

K

type K

int

rtype

int

InitIntersection()
  • Initialize the intersection of shapes S1,S2.
    param S1

    type S1

    TopoDS_Shape

    param S2

    type S2

    TopoDS_Shape

    rtype

    None* Initialize the intersection of shapes S1,S2.

    param S1

    type S1

    TopoDS_Shape

    param S2

    type S2

    TopoDS_Shape

    param F1

    type F1

    TopoDS_Face

    param F2

    type F2

    TopoDS_Face

    rtype

    None

MoreIntersection()
  • returns True if there are more intersection between two the shapes.
    rtype

    bool

NextIntersection()
  • search for the next intersection between the two shapes.
    rtype

    None

RejectedFaces()
Parameters

anObj

type anObj

TopoDS_Shape

param aReference

type aReference

TopoDS_Shape

param aListOfShape

type aListOfShape

TopTools_ListOfShape

rtype

None

Shape()
  • return the shape <Index> ( = 1 or 2) given to InitIntersection(). Index = 1 will return S1, Index = 2 will return S2.
    param Index

    type Index

    int

    rtype

    TopoDS_Shape

property thisown

The membership flag

class TopOpeBRep_ShapeIntersector2d(*args)

Bases: object

Return type

None

ChangeEdgesIntersector()
  • return the current intersection of two Edges.
    rtype

    TopOpeBRep_EdgesIntersector

CurrentGeomShape()
  • return geometric shape <Index> ( = 1 or 2 ) of current intersection.
    param Index

    type Index

    int

    rtype

    TopoDS_Shape

DumpCurrent()
Parameters

K

type K

int

rtype

None

Index()
Parameters

K

type K

int

rtype

int

InitIntersection()
  • Initialize the intersection of shapes S1,S2.
    param S1

    type S1

    TopoDS_Shape

    param S2

    type S2

    TopoDS_Shape

    rtype

    None

MoreIntersection()
  • returns True if there are more intersection between two the shapes.
    rtype

    bool

NextIntersection()
  • search for the next intersection between the two shapes.
    rtype

    None

Shape()
  • return the shape <Index> ( = 1 or 2) given to InitIntersection(). Index = 1 will return S1, Index = 2 will return S2.
    param Index

    type Index

    int

    rtype

    TopoDS_Shape

property thisown

The membership flag

class TopOpeBRep_ShapeScanner(*args)

Bases: object

Return type

None

AddBoxesMakeCOB()
Parameters

S

type S

TopoDS_Shape

param TS

type TS

TopAbs_ShapeEnum

param TA

default value is TopAbs_SHAPE

type TA

TopAbs_ShapeEnum

rtype

None

BoxSort()
Return type

TopOpeBRepTool_BoxSort

ChangeBoxSort()
Return type

TopOpeBRepTool_BoxSort

Clear()
Return type

None

Current()
Return type

TopoDS_Shape

DumpCurrentToString(TopOpeBRep_ShapeScanner self) → std::string
Index()
Return type

int

Init()
Parameters

E

type E

TopoDS_Shape

rtype

None:param X:

type X

TopOpeBRepTool_ShapeExplorer

rtype

None

More()
Return type

bool

Next()
Return type

None

property thisown

The membership flag

class TopOpeBRep_VPointInter(*args)

Bases: object

Return type

None

ArcOnS1()
Return type

TopoDS_Shape

ArcOnS2()
Return type

TopoDS_Shape

ChangeKeep()
  • updates VPointInter flag ‘keep’ with <keep>.
    param keep

    type keep

    bool

    rtype

    None

Dump()
Parameters

I

type I

int

param F

type F

TopoDS_Face

param OS

type OS

Standard_OStream

rtype

Standard_OStream:param F1:

type F1

TopoDS_Face

param F2

type F2

TopoDS_Face

param OS

type OS

Standard_OStream

rtype

Standard_OStream

Edge()
  • get the edge of shape I (1,2) containing the point. Returned shape is null if the VPoint is not on an edge of shape I (1,2).
    param I

    type I

    int

    rtype

    TopoDS_Shape

EdgeON()
  • set the shape Eon of shape I (1,2) containing the point, and parameter <Par> of point on <Eon>.
    param Eon

    type Eon

    TopoDS_Shape

    param Par

    type Par

    float

    param I

    type I

    int

    rtype

    None* get the edge of shape I (1,2) containing the point.

    param I

    type I

    int

    rtype

    TopoDS_Shape

EdgeONParameter()
  • get the parameter on edge of shape I (1,2) containing the point.
    param I

    type I

    int

    rtype

    float

EdgeParameter()
  • get the parameter on edge of shape I (1,2) containing the point
    param I

    type I

    int

    rtype

    float

EqualpP()
  • returns <True> if the 3d points and the parameters of the VPoints are same
    param VP

    type VP

    TopOpeBRep_VPointInter

    rtype

    bool

GetShapes()
Parameters

I1

type I1

int

param I2

type I2

int

rtype

None

Index()
Parameters

I

type I

int

rtype

None:rtype: int

IsInternal()
Return type

bool

IsMultiple()
  • Returns True if the point belongs to several intersection lines.
    rtype

    bool

IsOnDomS1()
Return type

bool

IsOnDomS2()
Return type

bool

IsVertex()
Parameters

I

type I

int

rtype

bool

IsVertexOnS1()
  • Returns True if the point is a vertex on the initial restriction facet of the first surface.
    rtype

    bool

IsVertexOnS2()
  • Returns True if the point is a vertex on the initial restriction facet of the second surface.
    rtype

    bool

Keep()
  • Returns value of myKeep (does not evaluate states) False at creation of VPoint. Updated by State(State from TopAbs,Integer from Standard)
    rtype

    bool

PThePointOfIntersectionDummy()
Return type

TopOpeBRep_PThePointOfIntersection

ParameterOnArc1()
Return type

float

ParameterOnArc2()
Return type

float

ParameterOnLine()
Return type

float

ParametersOnS1()
Parameters

u

type u

float

param v

type v

float

rtype

None

ParametersOnS2()
Parameters

u

type u

float

param v

type v

float

rtype

None

ParonE()
  • returns <false> if the vpoint is not given on arc <E>, else returns <par> parameter on <E>
    param E

    type E

    TopoDS_Edge

    param par

    type par

    float

    rtype

    bool

SetPoint()
Parameters

P

type P

IntPatch_Point

rtype

None

SetShapes()
Parameters

I1

type I1

int

param I2

type I2

int

rtype

None

ShapeIndex()
  • returns value of filed myShapeIndex = 0,1,2,3 0 means the VPoint is on no restriction 1 means the VPoint is on the restriction 1 2 means the VPoint is on the restriction 2 3 means the VPoint is on the restrictions 1 and 2
    rtype

    int* set value of shape supporting me (0,1,2,3).

    param I

    type I

    int

    rtype

    None

State()
  • get state of VPoint within the domain of geometric shape domain <I> (= 1 or 2).
    param I

    type I

    int

    rtype

    TopAbs_State* Set the state of VPoint within the domain of the geometric shape <I> (= 1 or 2).

    param S

    type S

    TopAbs_State

    param I

    type I

    int

    rtype

    None

SurfaceParameters()
  • get the parameter on surface of shape I (1,2) containing the point
    param I

    type I

    int

    rtype

    gp_Pnt2d

Tolerance()
Return type

float

TransitionLineArc1()
Return type

IntSurf_Transition

TransitionLineArc2()
Return type

IntSurf_Transition

TransitionOnS1()
Return type

IntSurf_Transition

TransitionOnS2()
Return type

IntSurf_Transition

UpdateKeep()
  • set myKeep value according to current states.
    rtype

    None

Value()
Return type

gp_Pnt

Vertex()
Parameters

I

type I

int

rtype

TopoDS_Shape

VertexOnS1()
  • Returns the information about the point when it is on the domain of the first patch, i-e when the function IsVertexOnS1 returns True. Otherwise, an exception is raised.
    rtype

    TopoDS_Shape

VertexOnS2()
  • Returns the information about the point when it is on the domain of the second patch, i-e when the function IsVertexOnS2 returns True. Otherwise, an exception is raised.
    rtype

    TopoDS_Shape

property thisown

The membership flag

class TopOpeBRep_VPointInterClassifier(*args)

Bases: object

Return type

None

Edge()
  • returns the edge containing the VPoint <VP> used in the last VPointPosition() call. Edge is defined if the state previously computed is ON, else Edge is a null shape.
    rtype

    TopoDS_Shape

EdgeParameter()
  • returns the parameter of the VPoint <VP> on Edge()
    rtype

    float

VPointPosition()
  • compute position of VPoint <VP> regarding with face <F>. <ShapeIndex> (= 1,2) indicates which (u,v) point of <VP> is used. when state is ON, set VP.EdgeON() with the edge containing <VP> and associated parameter. returns state of VP on ShapeIndex.
    param F

    type F

    TopoDS_Shape

    param VP

    type VP

    TopOpeBRep_VPointInter

    param ShapeIndex

    type ShapeIndex

    int

    param PC

    type PC

    TopOpeBRep_PointClassifier

    param AssumeINON

    type AssumeINON

    bool

    param Tol

    type Tol

    float

    rtype

    TopAbs_State

property thisown

The membership flag

class TopOpeBRep_VPointInterIterator(*args)

Bases: object

Return type

None:param LI: :type LI: TopOpeBRep_LineInter :rtype: None

ChangeCurrentVP()
Return type

TopOpeBRep_VPointInter

CurrentVP()
Return type

TopOpeBRep_VPointInter

CurrentVPIndex()
Return type

int

Init()
Parameters

LI

type LI

TopOpeBRep_LineInter

param checkkeep

default value is Standard_False

type checkkeep

bool

rtype

None:rtype: None

More()
Return type

bool

Next()
Return type

None

PLineInterDummy()
Return type

TopOpeBRep_PLineInter

property thisown

The membership flag

class TopOpeBRep_WPointInter(*args)

Bases: object

Return type

None

PPntOn2SDummy()
Return type

TopOpeBRep_PPntOn2S

Parameters()
Parameters

U1

type U1

float

param V1

type V1

float

param U2

type U2

float

param V2

type V2

float

rtype

None

ParametersOnS1()
Parameters

U

type U

float

param V

type V

float

rtype

None

ParametersOnS2()
Parameters

U

type U

float

param V

type V

float

rtype

None

Set()
Parameters

P

type P

IntSurf_PntOn2S

rtype

None

Value()
Return type

gp_Pnt

ValueOnS1()
Return type

gp_Pnt2d

ValueOnS2()
Return type

gp_Pnt2d

property thisown

The membership flag

class TopOpeBRep_WPointInterIterator(*args)

Bases: object

Return type

None:param LI: :type LI: TopOpeBRep_LineInter :rtype: None

CurrentWP()
Return type

TopOpeBRep_WPointInter

Init()
Parameters

LI

type LI

TopOpeBRep_LineInter

rtype

None:rtype: None

More()
Return type

bool

Next()
Return type

None

PLineInterDummy()
Return type

TopOpeBRep_PLineInter

property thisown

The membership flag

class topopebrep

Bases: object

static Print()
  • Prints the name of <TLC> as a String on the Stream <S> and returns <S>.
    param TLC

    type TLC

    TopOpeBRep_TypeLineCurve

    param OS

    type OS

    Standard_OStream

    rtype

    Standard_OStream

property thisown

The membership flag