OCC.TopOpeBRepTool module

class OCC.TopOpeBRepTool.Handle_TopOpeBRepTool_DataMapNodeOfDataMapOfOrientedShapeC2DF(*args)

Bases: OCC.TCollection.Handle_TCollection_MapNode

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

The membership flag

class OCC.TopOpeBRepTool.Handle_TopOpeBRepTool_DataMapNodeOfDataMapOfShapeListOfC2DF(*args)

Bases: OCC.TCollection.Handle_TCollection_MapNode

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

The membership flag

class OCC.TopOpeBRepTool.Handle_TopOpeBRepTool_DataMapNodeOfDataMapOfShapeface(*args)

Bases: OCC.TCollection.Handle_TCollection_MapNode

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

The membership flag

class OCC.TopOpeBRepTool.Handle_TopOpeBRepTool_HBoxTool(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

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

The membership flag

class OCC.TopOpeBRepTool.Handle_TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox(*args)

Bases: OCC.TCollection.Handle_TCollection_MapNode

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

The membership flag

class OCC.TopOpeBRepTool.Handle_TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox2d(*args)

Bases: OCC.TCollection.Handle_TCollection_MapNode

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

The membership flag

class OCC.TopOpeBRepTool.Handle_TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeconnexity(*args)

Bases: OCC.TCollection.Handle_TCollection_MapNode

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

The membership flag

class OCC.TopOpeBRepTool.Handle_TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfSolidClassifier(*args)

Bases: OCC.TCollection.Handle_TCollection_MapNode

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

The membership flag

class OCC.TopOpeBRepTool.Handle_TopOpeBRepTool_ListNodeOfListOfC2DF(*args)

Bases: OCC.TCollection.Handle_TCollection_MapNode

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

The membership flag

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

Bases: object

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

The membership flag

value()
class OCC.TopOpeBRepTool.TopOpeBRepTool_AncestorsTool(*args, **kwargs)

Bases: object

static MakeAncestors(*args)
  • same as package method TopExp::MapShapeListOfShapes()
Parameters:
  • S (TopoDS_Shape &) –
  • TS (TopAbs_ShapeEnum) –
  • TA (TopAbs_ShapeEnum) –
  • M (TopTools_IndexedDataMapOfShapeListOfShape &) –
Return type:

void

thisown

The membership flag

OCC.TopOpeBRepTool.TopOpeBRepTool_AncestorsTool_MakeAncestors(*args)
  • same as package method TopExp::MapShapeListOfShapes()
Parameters:
  • S (TopoDS_Shape &) –
  • TS (TopAbs_ShapeEnum) –
  • TA (TopAbs_ShapeEnum) –
  • M (TopTools_IndexedDataMapOfShapeListOfShape &) –
Return type:

void

class OCC.TopOpeBRepTool.TopOpeBRepTool_BoxSort(*args)

Bases: object

AddBoxes()
Parameters:
  • S (TopoDS_Shape &) –
  • TS (TopAbs_ShapeEnum) –
  • TA (TopAbs_ShapeEnum) – default value is TopAbs_SHAPE
  • S
  • TS
  • TA – default value is TopAbs_SHAPE
Return type:

None

Return type:

None

AddBoxesMakeCOB()
Parameters:
  • S (TopoDS_Shape &) –
  • TS (TopAbs_ShapeEnum) –
  • TA (TopAbs_ShapeEnum) – default value is TopAbs_SHAPE
  • S
  • TS
  • TA – default value is TopAbs_SHAPE
Return type:

None

Return type:

None

Box()
Parameters:S (TopoDS_Shape &) –
Return type:Bnd_Box
Clear()
Return type:None
Compare()
Parameters:S (TopoDS_Shape &) –
Return type:TColStd_ListIteratorOfListOfInteger
Destroy()
Return type:None
HAB()
Return type:Handle_Bnd_HArray1OfBox
HABShape()
Parameters:I (Standard_Integer) –
Return type:TopoDS_Shape
HBoxTool()
Return type:Handle_TopOpeBRepTool_HBoxTool
MakeCOB()
Parameters:
  • S (TopoDS_Shape &) –
  • TS (TopAbs_ShapeEnum) –
  • TA (TopAbs_ShapeEnum) – default value is TopAbs_SHAPE
  • S
  • TS
  • TA – default value is TopAbs_SHAPE
Return type:

None

Return type:

None

MakeHAB()
Parameters:
  • S (TopoDS_Shape &) –
  • TS (TopAbs_ShapeEnum) –
  • TA (TopAbs_ShapeEnum) – default value is TopAbs_SHAPE
  • S
  • TS
  • TA – default value is TopAbs_SHAPE
Return type:

None

Return type:

None

static MakeHABCOB(*args)
Parameters:
  • HAB (Handle_Bnd_HArray1OfBox &) –
  • COB (Bnd_Box &) –
Return type:

void

SetHBoxTool()
Parameters:T (Handle_TopOpeBRepTool_HBoxTool &) –
Return type:None
TouchedShape()
Parameters:I (TColStd_ListIteratorOfListOfInteger &) –
Return type:TopoDS_Shape
thisown

The membership flag

OCC.TopOpeBRepTool.TopOpeBRepTool_BoxSort_MakeHABCOB(*args)
Parameters:
  • HAB (Handle_Bnd_HArray1OfBox &) –
  • COB (Bnd_Box &) –
Return type:

void

class OCC.TopOpeBRepTool.TopOpeBRepTool_C2DF(*args)

Bases: object

Face()
Return type:TopoDS_Face
IsFace()
Parameters:F (TopoDS_Face &) –
Return type:bool
IsPC()
Parameters:PC (Handle_Geom2d_Curve &) –
Return type:bool
PC()
Parameters:
  • f2d (float &) –
  • l2d (float &) –
  • tol (float &) –
Return type:

Handle_Geom2d_Curve

SetFace()
Parameters:F (TopoDS_Face &) –
Return type:None
SetPC()
Parameters:
  • PC (Handle_Geom2d_Curve &) –
  • f2d (float) –
  • l2d (float) –
  • tol (float) –
Return type:

None

thisown

The membership flag

class OCC.TopOpeBRepTool.TopOpeBRepTool_CLASSI

Bases: object

Add2d()
Parameters:S (TopoDS_Shape &) –
Return type:bool
ClassiBnd2d()
Parameters:
  • S1 (TopoDS_Shape &) –
  • S2 (TopoDS_Shape &) –
  • tol (float) –
  • checklarge (bool) –
Return type:

int

Classilist()
Parameters:
  • lS (TopTools_ListOfShape &) –
  • mapgreasma (TopTools_DataMapOfShapeListOfShape &) –
Return type:

bool

Classip2d()
Parameters:
  • S1 (TopoDS_Shape &) –
  • S2 (TopoDS_Shape &) –
  • stabnd2d12 (Standard_Integer) –
Return type:

int

GetBox2d()
Parameters:
  • S (TopoDS_Shape &) –
  • Box2d (Bnd_Box2d &) –
Return type:

bool

Getface()
Parameters:
  • S (TopoDS_Shape &) –
  • fa (TopOpeBRepTool_face &) –
Return type:

bool

HasInit2d()
Return type:bool
Init2d()
Parameters:Fref (TopoDS_Face &) –
Return type:None
thisown

The membership flag

class OCC.TopOpeBRepTool.TopOpeBRepTool_CORRISO(*args)

Bases: object

AddNewConnexity()
Parameters:
  • V (TopoDS_Vertex &) –
  • E (TopoDS_Edge &) –
Return type:

bool

Connexity()
Parameters:
  • V (TopoDS_Vertex &) –
  • Eds (TopTools_ListOfShape &) –
Return type:

bool

EdgeOUTofBoundsUV()
Parameters:
  • E (TopoDS_Edge &) –
  • onU (bool) –
  • tolx (float) –
  • parspE (float &) –
Return type:

int

EdgeWithFaultyUV()
Parameters:
  • E (TopoDS_Edge &) –
  • Ivfaulty (Standard_Integer &) –
  • EdsToCheck (TopTools_ListOfShape &) –
  • nfybounds (Standard_Integer) –
  • fyE (TopoDS_Shape &) –
  • Ifaulty (Standard_Integer &) –
Return type:

bool

Return type:

bool

EdgesOUTofBoundsUV()
Parameters:
  • EdsToCheck (TopTools_ListOfShape &) –
  • onU (bool) –
  • tolx (float) –
  • FyEds (TopTools_DataMapOfOrientedShapeInteger &) –
Return type:

bool

EdgesWithFaultyUV()
Parameters:
  • EdsToCheck (TopTools_ListOfShape &) –
  • nfybounds (Standard_Integer) –
  • FyEds (TopTools_DataMapOfOrientedShapeInteger &) –
  • stopatfirst (bool) – default value is Standard_False
  • EdsToCheck
  • nfybounds
  • FyEds
  • stopatfirst – default value is Standard_False
Return type:

bool

Return type:

bool

Eds()
Return type:TopTools_ListOfShape
Fref()
Return type:TopoDS_Face
GASref()
Return type:GeomAdaptor_Surface
GetnewS()
Parameters:newS (TopoDS_Face &) –
Return type:bool
Init()
Parameters:S (TopoDS_Shape &) –
Return type:bool
PurgeFyClosingE()
Parameters:
  • ClEds (TopTools_ListOfShape &) –
  • fyClEds (TopTools_ListOfShape &) –
Return type:

bool

Refclosed()
Parameters:
  • x (Standard_Integer) –
  • xperiod (float &) –
Return type:

bool

RemoveOldConnexity()
Parameters:
  • V (TopoDS_Vertex &) –
  • E (TopoDS_Edge &) –
Return type:

bool

S()
Return type:TopoDS_Shape
SetConnexity()
Parameters:
  • V (TopoDS_Vertex &) –
  • Eds (TopTools_ListOfShape &) –
Return type:

bool

SetUVRep()
Parameters:
  • E (TopoDS_Edge &) –
  • C2DF (TopOpeBRepTool_C2DF &) –
Return type:

bool

Tol()
Parameters:
  • I (Standard_Integer) –
  • tol3d (float) –
Return type:

float

TrslUV()
Parameters:
  • onU (bool) –
  • FyEds (TopTools_DataMapOfOrientedShapeInteger &) –
Return type:

bool

UVClosed()
Return type:bool
UVRep()
Parameters:
  • E (TopoDS_Edge &) –
  • C2DF (TopOpeBRepTool_C2DF &) –
Return type:

bool

thisown

The membership flag

class OCC.TopOpeBRepTool.TopOpeBRepTool_CurveTool(*args)

Bases: object

ChangeGeomTool()
Return type:TopOpeBRepTool_GeomTool
GetGeomTool()
Return type:TopOpeBRepTool_GeomTool
static IsProjectable(*args)
Parameters:
  • S (TopoDS_Shape &) –
  • C (Handle_Geom_Curve &) –
Return type:

bool

static MakeBSpline1fromPnt(*args)
Parameters:P (TColgp_Array1OfPnt) –
Return type:Handle_Geom_Curve
static MakeBSpline1fromPnt2d(*args)
Parameters:P (TColgp_Array1OfPnt2d) –
Return type:Handle_Geom2d_Curve
MakeCurves()
  • Approximates curves. Returns False in the case of failure
Parameters:
  • min (float) –
  • max (float) –
  • C3D (Handle_Geom_Curve &) –
  • PC1 (Handle_Geom2d_Curve &) –
  • PC2 (Handle_Geom2d_Curve &) –
  • S1 (TopoDS_Shape &) –
  • S2 (TopoDS_Shape &) –
  • C3DN (Handle_Geom_Curve &) –
  • PC1N (Handle_Geom2d_Curve &) –
  • PC2N (Handle_Geom2d_Curve &) –
  • Tol3d (float &) –
  • Tol2d (float &) –
Return type:

bool

static MakePCurveOnFace(*args)
Parameters:
  • S (TopoDS_Shape &) –
  • C (Handle_Geom_Curve &) –
  • TolReached2d (float &) –
  • first (float) – default value is 0.0
  • last (float) – default value is 0.0
  • S
  • C
  • TolReached2d
  • first – default value is 0.0
  • last – default value is 0.0
  • S
  • C
  • TolReached2d
  • first – default value is 0.0
  • last – default value is 0.0
Return type:

Handle_Geom2d_Curve

Return type:

Handle_Geom2d_Curve

Return type:

Handle_Geom2d_Curve

SetGeomTool()
Parameters:GT (TopOpeBRepTool_GeomTool &) –
Return type:None
thisown

The membership flag

OCC.TopOpeBRepTool.TopOpeBRepTool_CurveTool_IsProjectable(*args)
Parameters:
  • S (TopoDS_Shape &) –
  • C (Handle_Geom_Curve &) –
Return type:

bool

OCC.TopOpeBRepTool.TopOpeBRepTool_CurveTool_MakeBSpline1fromPnt(*args)
Parameters:P (TColgp_Array1OfPnt) –
Return type:Handle_Geom_Curve
OCC.TopOpeBRepTool.TopOpeBRepTool_CurveTool_MakeBSpline1fromPnt2d(*args)
Parameters:P (TColgp_Array1OfPnt2d) –
Return type:Handle_Geom2d_Curve
OCC.TopOpeBRepTool.TopOpeBRepTool_CurveTool_MakePCurveOnFace(*args)
Parameters:
  • S (TopoDS_Shape &) –
  • C (Handle_Geom_Curve &) –
  • TolReached2d (float &) –
  • first (float) – default value is 0.0
  • last (float) – default value is 0.0
  • S
  • C
  • TolReached2d
  • first – default value is 0.0
  • last – default value is 0.0
  • S
  • C
  • TolReached2d
  • first – default value is 0.0
  • last – default value is 0.0
Return type:

Handle_Geom2d_Curve

Return type:

Handle_Geom2d_Curve

Return type:

Handle_Geom2d_Curve

class OCC.TopOpeBRepTool.TopOpeBRepTool_DataMapIteratorOfDataMapOfOrientedShapeC2DF(*args)

Bases: OCC.TCollection.TCollection_BasicMapIterator

Initialize()
Parameters:aMap (TopOpeBRepTool_DataMapOfOrientedShapeC2DF &) –
Return type:None
Key()
Return type:TopoDS_Shape
Value()
Return type:TopOpeBRepTool_C2DF
thisown

The membership flag

class OCC.TopOpeBRepTool.TopOpeBRepTool_DataMapIteratorOfDataMapOfShapeListOfC2DF(*args)

Bases: OCC.TCollection.TCollection_BasicMapIterator

Initialize()
Parameters:aMap (TopOpeBRepTool_DataMapOfShapeListOfC2DF &) –
Return type:None
Key()
Return type:TopoDS_Shape
Value()
Return type:TopOpeBRepTool_ListOfC2DF
thisown

The membership flag

class OCC.TopOpeBRepTool.TopOpeBRepTool_DataMapIteratorOfDataMapOfShapeface(*args)

Bases: OCC.TCollection.TCollection_BasicMapIterator

Initialize()
Parameters:aMap (TopOpeBRepTool_DataMapOfShapeface &) –
Return type:None
Key()
Return type:TopoDS_Shape
Value()
Return type:TopOpeBRepTool_face
thisown

The membership flag

class OCC.TopOpeBRepTool.TopOpeBRepTool_DataMapNodeOfDataMapOfOrientedShapeC2DF(*args)

Bases: OCC.TCollection.TCollection_MapNode

GetHandle()

TopOpeBRepTool_DataMapNodeOfDataMapOfOrientedShapeC2DF_GetHandle(TopOpeBRepTool_DataMapNodeOfDataMapOfOrientedShapeC2DF self) -> Handle_TopOpeBRepTool_DataMapNodeOfDataMapOfOrientedShapeC2DF

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

The membership flag

class OCC.TopOpeBRepTool.TopOpeBRepTool_DataMapNodeOfDataMapOfShapeListOfC2DF(*args)

Bases: OCC.TCollection.TCollection_MapNode

GetHandle()

TopOpeBRepTool_DataMapNodeOfDataMapOfShapeListOfC2DF_GetHandle(TopOpeBRepTool_DataMapNodeOfDataMapOfShapeListOfC2DF self) -> Handle_TopOpeBRepTool_DataMapNodeOfDataMapOfShapeListOfC2DF

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

The membership flag

class OCC.TopOpeBRepTool.TopOpeBRepTool_DataMapNodeOfDataMapOfShapeface(*args)

Bases: OCC.TCollection.TCollection_MapNode

GetHandle()

TopOpeBRepTool_DataMapNodeOfDataMapOfShapeface_GetHandle(TopOpeBRepTool_DataMapNodeOfDataMapOfShapeface self) -> Handle_TopOpeBRepTool_DataMapNodeOfDataMapOfShapeface

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

The membership flag

class OCC.TopOpeBRepTool.TopOpeBRepTool_DataMapOfOrientedShapeC2DF(NbBuckets=1)

Bases: OCC.TCollection.TCollection_BasicMap

Assign()
Parameters:Other (TopOpeBRepTool_DataMapOfOrientedShapeC2DF &) –
Return type:TopOpeBRepTool_DataMapOfOrientedShapeC2DF
Bind()
Parameters:
  • K (TopoDS_Shape &) –
  • I (TopOpeBRepTool_C2DF &) –
Return type:

bool

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

The membership flag

class OCC.TopOpeBRepTool.TopOpeBRepTool_DataMapOfShapeListOfC2DF(NbBuckets=1)

Bases: OCC.TCollection.TCollection_BasicMap

Assign()
Parameters:Other (TopOpeBRepTool_DataMapOfShapeListOfC2DF &) –
Return type:TopOpeBRepTool_DataMapOfShapeListOfC2DF
Bind()
Parameters:
  • K (TopoDS_Shape &) –
  • I (TopOpeBRepTool_ListOfC2DF &) –
Return type:

bool

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

The membership flag

class OCC.TopOpeBRepTool.TopOpeBRepTool_DataMapOfShapeface(NbBuckets=1)

Bases: OCC.TCollection.TCollection_BasicMap

Assign()
Parameters:Other (TopOpeBRepTool_DataMapOfShapeface &) –
Return type:TopOpeBRepTool_DataMapOfShapeface
Bind()
Parameters:
  • K (TopoDS_Shape &) –
  • I (TopOpeBRepTool_face &) –
Return type:

bool

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

The membership flag

class OCC.TopOpeBRepTool.TopOpeBRepTool_FuseEdges(*args)

Bases: object

AvoidEdges()
  • set edges to avoid being fused
Parameters:theMapEdg (TopTools_IndexedMapOfShape &) –
Return type:None
Edges()
  • returns all the list of edges to be fused each list of the map represent a set of connex edges that can be fused.
Parameters:theMapLstEdg (TopTools_DataMapOfIntegerListOfShape &) –
Return type:None
Faces()
  • returns the map of modified faces.
Parameters:theMapFac (TopTools_DataMapOfShapeShape &) –
Return type:None
NbVertices()
  • returns the number of vertices candidate to be removed
Return type:int
Perform()
  • Using map of list of connex edges, fuse each list to one edge and then update myShape
Return type:None
ResultEdges()
  • returns all the fused edges. each integer entry in the map corresponds to the integer in the DataMapOfIntegerListOfShape we get in method Edges. That is to say, to the list of edges in theMapLstEdg(i) corresponds the resulting edge theMapEdge(i)
Parameters:theMapEdg (TopTools_DataMapOfIntegerShape &) –
Return type:None
Shape()
  • returns myShape modified with the list of internal edges removed from it.
Return type:TopoDS_Shape
thisown

The membership flag

class OCC.TopOpeBRepTool.TopOpeBRepTool_GeomTool(*args)

Bases: object

CompC3D()
Return type:bool
CompPC1()
Return type:bool
CompPC2()
Return type:bool
Define()
Parameters:
  • TypeC3D (TopOpeBRepTool_OutCurveType) –
  • CompC3D (bool) –
  • CompPC1 (bool) –
  • CompPC2 (bool) –
  • TypeC3D
  • GT (TopOpeBRepTool_GeomTool &) –
Return type:

None

Return type:

None

Return type:

None

DefineCurves()
Parameters:CompC3D (bool) –
Return type:None
DefinePCurves1()
Parameters:CompPC1 (bool) –
Return type:None
DefinePCurves2()
Parameters:CompPC2 (bool) –
Return type:None
GetTolerances()
Parameters:
  • tol3d (float &) –
  • tol2d (float &) –
  • tol3d
  • tol2d
  • relative (bool) –
Return type:

None

Return type:

None

NbPntMax()
Return type:int
SetNbPntMax()
Parameters:NbPntMax (Standard_Integer) –
Return type:None
SetTolerances()
Parameters:
  • tol3d (float) –
  • tol2d (float) –
  • tol3d
  • tol2d
  • relative (bool) –
Return type:

None

Return type:

None

TypeC3D()
Return type:TopOpeBRepTool_OutCurveType
thisown

The membership flag

class OCC.TopOpeBRepTool.TopOpeBRepTool_HBoxTool

Bases: OCC.MMgt.MMgt_TShared

AddBox()
Parameters:S (TopoDS_Shape &) –
Return type:None
AddBoxes()
Parameters:
  • S (TopoDS_Shape &) –
  • TS (TopAbs_ShapeEnum) –
  • TA (TopAbs_ShapeEnum) – default value is TopAbs_SHAPE
  • S
  • TS
  • TA – default value is TopAbs_SHAPE
Return type:

None

Return type:

None

Box()
Parameters:
  • S (TopoDS_Shape &) –
  • I (Standard_Integer) –
Return type:

Bnd_Box

Return type:

Bnd_Box

ChangeIMS()
Return type:TopOpeBRepTool_IndexedDataMapOfShapeBox
Clear()
Return type:None
static ComputeBox(*args)
Parameters:
  • S (TopoDS_Shape &) –
  • B (Bnd_Box &) –
Return type:

void

static ComputeBoxOnVertices(*args)
Parameters:
  • S (TopoDS_Shape &) –
  • B (Bnd_Box &) –
Return type:

void

static DumpB(*args)
Parameters:B (Bnd_Box &) –
Return type:void
Extent()
Return type:int
GetHandle()

TopOpeBRepTool_HBoxTool_GetHandle(TopOpeBRepTool_HBoxTool self) -> Handle_TopOpeBRepTool_HBoxTool

HasBox()
Parameters:S (TopoDS_Shape &) –
Return type:bool
IMS()
Return type:TopOpeBRepTool_IndexedDataMapOfShapeBox
Index()
Parameters:S (TopoDS_Shape &) –
Return type:int
Shape()
Parameters:I (Standard_Integer) –
Return type:TopoDS_Shape
thisown

The membership flag

OCC.TopOpeBRepTool.TopOpeBRepTool_HBoxTool_ComputeBox(*args)
Parameters:
  • S (TopoDS_Shape &) –
  • B (Bnd_Box &) –
Return type:

void

OCC.TopOpeBRepTool.TopOpeBRepTool_HBoxTool_ComputeBoxOnVertices(*args)
Parameters:
  • S (TopoDS_Shape &) –
  • B (Bnd_Box &) –
Return type:

void

OCC.TopOpeBRepTool.TopOpeBRepTool_HBoxTool_DumpB(*args)
Parameters:B (Bnd_Box &) –
Return type:void
class OCC.TopOpeBRepTool.TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox(*args)

Bases: OCC.TCollection.TCollection_MapNode

GetHandle()

TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox_GetHandle(TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox self) -> Handle_TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox

GetKey2()

TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox_GetKey2(TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox self) -> Standard_Integer

Key1()
Return type:TopoDS_Shape
Next2()
Return type:TCollection_MapNodePtr
SetKey2()

TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox_SetKey2(TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox self, Standard_Integer value)

Value()
Return type:Bnd_Box
thisown

The membership flag

class OCC.TopOpeBRepTool.TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox2d(*args)

Bases: OCC.TCollection.TCollection_MapNode

GetHandle()

TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox2d_GetHandle(TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox2d self) -> Handle_TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox2d

GetKey2()

TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox2d_GetKey2(TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox2d self) -> Standard_Integer

Key1()
Return type:TopoDS_Shape
Next2()
Return type:TCollection_MapNodePtr
SetKey2()

TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox2d_SetKey2(TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeBox2d self, Standard_Integer value)

Value()
Return type:Bnd_Box2d
thisown

The membership flag

class OCC.TopOpeBRepTool.TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeconnexity(*args)

Bases: OCC.TCollection.TCollection_MapNode

GetHandle()

TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeconnexity_GetHandle(TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeconnexity self) -> Handle_TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeconnexity

GetKey2()

TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeconnexity_GetKey2(TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeconnexity self) -> Standard_Integer

Key1()
Return type:TopoDS_Shape
Next2()
Return type:TCollection_MapNodePtr
SetKey2()

TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeconnexity_SetKey2(TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfShapeconnexity self, Standard_Integer value)

Value()
Return type:TopOpeBRepTool_connexity
thisown

The membership flag

class OCC.TopOpeBRepTool.TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfSolidClassifier(*args)

Bases: OCC.TCollection.TCollection_MapNode

GetHandle()

TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfSolidClassifier_GetHandle(TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfSolidClassifier self) -> Handle_TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfSolidClassifier

GetKey2()

TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfSolidClassifier_GetKey2(TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfSolidClassifier self) -> Standard_Integer

Key1()
Return type:TopoDS_Shape
Next2()
Return type:TCollection_MapNodePtr
SetKey2()

TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfSolidClassifier_SetKey2(TopOpeBRepTool_IndexedDataMapNodeOfIndexedDataMapOfSolidClassifier self, Standard_Integer value)

Value()
Return type:BRepClass3d_SolidClassifier
thisown

The membership flag

class OCC.TopOpeBRepTool.TopOpeBRepTool_IndexedDataMapOfShapeBox(NbBuckets=1)

Bases: OCC.TCollection.TCollection_BasicMap

Add()
Parameters:
  • K (TopoDS_Shape &) –
  • I (Bnd_Box &) –
Return type:

int

Assign()
Parameters:Other (TopOpeBRepTool_IndexedDataMapOfShapeBox &) –
Return type:TopOpeBRepTool_IndexedDataMapOfShapeBox
ChangeFromIndex()
Parameters:I (Standard_Integer) –
Return type:Bnd_Box
ChangeFromKey()
Parameters:K (TopoDS_Shape &) –
Return type:Bnd_Box
ChangeFromKey1()
Parameters:K (TopoDS_Shape &) –
Return type:Standard_Address
Clear()
Return type:None
Contains()
Parameters:K (TopoDS_Shape &) –
Return type:bool
FindFromIndex()
Parameters:I (Standard_Integer) –
Return type:Bnd_Box
FindFromKey()
Parameters:K (TopoDS_Shape &) –
Return type:Bnd_Box
FindFromKey1()
Parameters:K (TopoDS_Shape &) –
Return type:Standard_Address
FindIndex()
Parameters:K (TopoDS_Shape &) –
Return type:int
FindKey()
Parameters:I (Standard_Integer) –
Return type:TopoDS_Shape
ReSize()
Parameters:NbBuckets (Standard_Integer) –
Return type:None
RemoveLast()
Return type:None
Set()
Parameters:Other (TopOpeBRepTool_IndexedDataMapOfShapeBox &) –
Return type:TopOpeBRepTool_IndexedDataMapOfShapeBox
Substitute()
Parameters:
  • I (Standard_Integer) –
  • K (TopoDS_Shape &) –
  • T (Bnd_Box &) –
Return type:

None

thisown

The membership flag

class OCC.TopOpeBRepTool.TopOpeBRepTool_IndexedDataMapOfShapeBox2d(NbBuckets=1)

Bases: OCC.TCollection.TCollection_BasicMap

Add()
Parameters:
  • K (TopoDS_Shape &) –
  • I (Bnd_Box2d &) –
Return type:

int

Assign()
Parameters:Other (TopOpeBRepTool_IndexedDataMapOfShapeBox2d &) –
Return type:TopOpeBRepTool_IndexedDataMapOfShapeBox2d
ChangeFromIndex()
Parameters:I (Standard_Integer) –
Return type:Bnd_Box2d
ChangeFromKey()
Parameters:K (TopoDS_Shape &) –
Return type:Bnd_Box2d
ChangeFromKey1()
Parameters:K (TopoDS_Shape &) –
Return type:Standard_Address
Clear()
Return type:None
Contains()
Parameters:K (TopoDS_Shape &) –
Return type:bool
FindFromIndex()
Parameters:I (Standard_Integer) –
Return type:Bnd_Box2d
FindFromKey()
Parameters:K (TopoDS_Shape &) –
Return type:Bnd_Box2d
FindFromKey1()
Parameters:K (TopoDS_Shape &) –
Return type:Standard_Address
FindIndex()
Parameters:K (TopoDS_Shape &) –
Return type:int
FindKey()
Parameters:I (Standard_Integer) –
Return type:TopoDS_Shape
ReSize()
Parameters:NbBuckets (Standard_Integer) –
Return type:None
RemoveLast()
Return type:None
Set()
Parameters:Other (TopOpeBRepTool_IndexedDataMapOfShapeBox2d &) –
Return type:TopOpeBRepTool_IndexedDataMapOfShapeBox2d
Substitute()
Parameters:
  • I (Standard_Integer) –
  • K (TopoDS_Shape &) –
  • T (Bnd_Box2d &) –
Return type:

None

thisown

The membership flag

class OCC.TopOpeBRepTool.TopOpeBRepTool_IndexedDataMapOfShapeconnexity(NbBuckets=1)

Bases: OCC.TCollection.TCollection_BasicMap

Add()
Parameters:
  • K (TopoDS_Shape &) –
  • I (TopOpeBRepTool_connexity &) –
Return type:

int

Assign()
Parameters:Other (TopOpeBRepTool_IndexedDataMapOfShapeconnexity &) –
Return type:TopOpeBRepTool_IndexedDataMapOfShapeconnexity
ChangeFromIndex()
Parameters:I (Standard_Integer) –
Return type:TopOpeBRepTool_connexity
ChangeFromKey()
Parameters:K (TopoDS_Shape &) –
Return type:TopOpeBRepTool_connexity
ChangeFromKey1()
Parameters:K (TopoDS_Shape &) –
Return type:Standard_Address
Clear()
Return type:None
Contains()
Parameters:K (TopoDS_Shape &) –
Return type:bool
FindFromIndex()
Parameters:I (Standard_Integer) –
Return type:TopOpeBRepTool_connexity
FindFromKey()
Parameters:K (TopoDS_Shape &) –
Return type:TopOpeBRepTool_connexity
FindFromKey1()
Parameters:K (TopoDS_Shape &) –
Return type:Standard_Address
FindIndex()
Parameters:K (TopoDS_Shape &) –
Return type:int
FindKey()
Parameters:I (Standard_Integer) –
Return type:TopoDS_Shape
ReSize()
Parameters:NbBuckets (Standard_Integer) –
Return type:None
RemoveLast()
Return type:None
Set()
Parameters:Other (TopOpeBRepTool_IndexedDataMapOfShapeconnexity &) –
Return type:TopOpeBRepTool_IndexedDataMapOfShapeconnexity
Substitute()
Parameters:
  • I (Standard_Integer) –
  • K (TopoDS_Shape &) –
  • T (TopOpeBRepTool_connexity &) –
Return type:

None

thisown

The membership flag

class OCC.TopOpeBRepTool.TopOpeBRepTool_IndexedDataMapOfSolidClassifier(NbBuckets=1)

Bases: OCC.TCollection.TCollection_BasicMap

Add()
Parameters:
  • K (TopoDS_Shape &) –
  • I (BRepClass3d_SolidClassifier &) –
Return type:

int

Assign()
Parameters:Other (TopOpeBRepTool_IndexedDataMapOfSolidClassifier &) –
Return type:TopOpeBRepTool_IndexedDataMapOfSolidClassifier
ChangeFromIndex()
Parameters:I (Standard_Integer) –
Return type:BRepClass3d_SolidClassifier
ChangeFromKey()
Parameters:K (TopoDS_Shape &) –
Return type:BRepClass3d_SolidClassifier
ChangeFromKey1()
Parameters:K (TopoDS_Shape &) –
Return type:Standard_Address
Clear()
Return type:None
Contains()
Parameters:K (TopoDS_Shape &) –
Return type:bool
FindFromIndex()
Parameters:I (Standard_Integer) –
Return type:BRepClass3d_SolidClassifier
FindFromKey()
Parameters:K (TopoDS_Shape &) –
Return type:BRepClass3d_SolidClassifier
FindFromKey1()
Parameters:K (TopoDS_Shape &) –
Return type:Standard_Address
FindIndex()
Parameters:K (TopoDS_Shape &) –
Return type:int
FindKey()
Parameters:I (Standard_Integer) –
Return type:TopoDS_Shape
ReSize()
Parameters:NbBuckets (Standard_Integer) –
Return type:None
RemoveLast()
Return type:None
Set()
Parameters:Other (TopOpeBRepTool_IndexedDataMapOfSolidClassifier &) –
Return type:TopOpeBRepTool_IndexedDataMapOfSolidClassifier
Substitute()
Parameters:
  • I (Standard_Integer) –
  • K (TopoDS_Shape &) –
  • T (BRepClass3d_SolidClassifier &) –
Return type:

None

thisown

The membership flag

class OCC.TopOpeBRepTool.TopOpeBRepTool_ListIteratorOfListOfC2DF(*args)

Bases: object

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

The membership flag

class OCC.TopOpeBRepTool.TopOpeBRepTool_ListNodeOfListOfC2DF(*args)

Bases: OCC.TCollection.TCollection_MapNode

GetHandle()

TopOpeBRepTool_ListNodeOfListOfC2DF_GetHandle(TopOpeBRepTool_ListNodeOfListOfC2DF self) -> Handle_TopOpeBRepTool_ListNodeOfListOfC2DF

Value()
Return type:TopOpeBRepTool_C2DF
thisown

The membership flag

class OCC.TopOpeBRepTool.TopOpeBRepTool_ListOfC2DF

Bases: object

Append()
Parameters:
  • I (TopOpeBRepTool_C2DF &) –
  • I
  • theIt (TopOpeBRepTool_ListIteratorOfListOfC2DF &) –
  • Other (TopOpeBRepTool_ListOfC2DF &) –
Return type:

None

Return type:

None

Return type:

None

Assign()
Parameters:Other (TopOpeBRepTool_ListOfC2DF &) –
Return type:None
Clear()
Return type:None
Extent()
Return type:int
First()
Return type:TopOpeBRepTool_C2DF
InsertAfter()
Parameters:
  • I (TopOpeBRepTool_C2DF &) –
  • It (TopOpeBRepTool_ListIteratorOfListOfC2DF &) –
  • Other (TopOpeBRepTool_ListOfC2DF &) –
  • It
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • I (TopOpeBRepTool_C2DF &) –
  • It (TopOpeBRepTool_ListIteratorOfListOfC2DF &) –
  • Other (TopOpeBRepTool_ListOfC2DF &) –
  • It
Return type:

None

Return type:

None

IsEmpty()
Return type:bool
Last()
Return type:TopOpeBRepTool_C2DF
Prepend()
Parameters:
  • I (TopOpeBRepTool_C2DF &) –
  • I
  • theIt (TopOpeBRepTool_ListIteratorOfListOfC2DF &) –
  • Other (TopOpeBRepTool_ListOfC2DF &) –
Return type:

None

Return type:

None

Return type:

None

Remove()
Parameters:It (TopOpeBRepTool_ListIteratorOfListOfC2DF &) –
Return type:None
RemoveFirst()
Return type:None
Set()
Parameters:Other (TopOpeBRepTool_ListOfC2DF &) –
Return type:None
thisown

The membership flag

class OCC.TopOpeBRepTool.TopOpeBRepTool_PurgeInternalEdges(*args)

Bases: object

Faces()
  • returns the list internal edges associated with the faces of the myShape. If PerformNow was False when created, then call the private Perform method that do the main job.
Parameters:theMapFacLstEdg (TopTools_DataMapOfShapeListOfShape &) –
Return type:None
IsDone()
  • returns False if the list of internal edges has not been extracted
Return type:bool
NbEdges()
  • returns the number of edges candidate to be removed
Return type:int
Perform()
  • Using the list of internal edge from each face, rebuild myShape by removing thoses edges.
Return type:None
Shape()
  • returns myShape modified with the list of internal edges removed from it.
Return type:TopoDS_Shape
thisown

The membership flag

class OCC.TopOpeBRepTool.TopOpeBRepTool_REGUS

Bases: object

GetFsplits()
Parameters:Fsplits (TopTools_DataMapOfShapeListOfShape &) –
Return type:None
GetOshNsh()
Parameters:OshNsh (TopTools_DataMapOfShapeListOfShape &) –
Return type:None
Init()
Parameters:S (TopoDS_Shape &) –
Return type:None
InitBlock()
Return type:bool
MapS()
Return type:bool
NearestF()
Parameters:
  • e (TopoDS_Edge &) –
  • lof (TopTools_ListOfShape &) –
  • ffound (TopoDS_Face &) –
Return type:

bool

NextinBlock()
Return type:bool
REGU()
Return type:bool
S()
Return type:TopoDS_Shape
SetFsplits()
Parameters:Fsplits (TopTools_DataMapOfShapeListOfShape &) –
Return type:None
SetOshNsh()
Parameters:OshNsh (TopTools_DataMapOfShapeListOfShape &) –
Return type:None
static SplitF(*args)
Parameters:
  • Fanc (TopoDS_Face &) –
  • FSplits (TopTools_ListOfShape &) –
Return type:

bool

SplitFaces()
Return type:bool
static WireToFace(*args)
Parameters:
  • Fanc (TopoDS_Face &) –
  • nWs (TopTools_ListOfShape &) –
  • nFs (TopTools_ListOfShape &) –
Return type:

bool

thisown

The membership flag

OCC.TopOpeBRepTool.TopOpeBRepTool_REGUS_SplitF(*args)
Parameters:
  • Fanc (TopoDS_Face &) –
  • FSplits (TopTools_ListOfShape &) –
Return type:

bool

OCC.TopOpeBRepTool.TopOpeBRepTool_REGUS_WireToFace(*args)
Parameters:
  • Fanc (TopoDS_Face &) –
  • nWs (TopTools_ListOfShape &) –
  • nFs (TopTools_ListOfShape &) –
Return type:

bool

class OCC.TopOpeBRepTool.TopOpeBRepTool_REGUW(*args)

Bases: object

AddNewConnexity()
Parameters:
  • v (TopoDS_Vertex &) –
  • OriKey (Standard_Integer) –
  • e (TopoDS_Edge &) –
Return type:

bool

Connexity()
Parameters:
  • v (TopoDS_Vertex &) –
  • co (TopOpeBRepTool_connexity &) –
Return type:

bool

Fref()
Return type:TopoDS_Face
GetEsplits()
Parameters:Esplits (TopTools_DataMapOfShapeListOfShape &) –
Return type:None
GetOwNw()
Parameters:OwNw (TopTools_DataMapOfShapeListOfShape &) –
Return type:None
GetSplits()
Parameters:Splits (TopTools_ListOfShape &) –
Return type:bool
HasInit()
Return type:bool
Init()
Parameters:S (TopoDS_Shape &) –
Return type:None
InitBlock()
Return type:bool
MapS()
Return type:bool
NearestE()
Parameters:
  • loe (TopTools_ListOfShape &) –
  • efound (TopoDS_Edge &) –
Return type:

bool

NextinBlock()
Return type:bool
REGU()
Parameters:
  • istep (Standard_Integer) –
  • Scur (TopoDS_Shape &) –
  • Splits (TopTools_ListOfShape &) –
Return type:

bool

Return type:

bool

RemoveOldConnexity()
Parameters:
  • v (TopoDS_Vertex &) –
  • OriKey (Standard_Integer) –
  • e (TopoDS_Edge &) –
Return type:

bool

S()
Return type:TopoDS_Shape
SetEsplits()
Parameters:Esplits (TopTools_DataMapOfShapeListOfShape &) –
Return type:None
SetOwNw()
Parameters:OwNw (TopTools_DataMapOfShapeListOfShape &) –
Return type:None
SplitEds()
Return type:bool
UpdateMultiple()
Parameters:v (TopoDS_Vertex &) –
Return type:bool
thisown

The membership flag

class OCC.TopOpeBRepTool.TopOpeBRepTool_ShapeClassifier(*args)

Bases: object

ChangeSolidClassifier()
Return type:TopOpeBRepTool_SolidClassifier
ClearAll()
  • reset all internal data (SolidClassifier included)
Return type:None
ClearCurrent()
  • reset all internal data (except SolidClassified)
Return type:None
P2D()
Return type:gp_Pnt2d
P3D()
Return type:gp_Pnt
SameDomain()
Return type:int
  • set mode for next StateShapeShape call samedomain = true –> S,Sref are same domain –> point on restriction (ON S) is used to classify S. samedomain = false –> S,Sref are not domain –> point not on restriction of S (IN S) is used to classify S. samedomain value is used only in next StateShapeShape call
Parameters:samedomain (Standard_Integer) –
Return type:None
SetReference()
  • Set SRef as reference shape the next StateShapeReference(S,AvoidS) calls will classify S with SRef.
Parameters:SRef (TopoDS_Shape &) –
Return type:None
State()
  • return field myState
Return type:TopAbs_State
StateP2DReference()
  • classify point P2D with myRef
Parameters:P2D (gp_Pnt2d) –
Return type:None
StateP3DReference()
  • classify point P3D with myRef
Parameters:P3D (gp_Pnt) –
Return type:None
StateShapeReference()
  • classify shape S compared with reference shape. AvoidS is not used in classification; AvoidS may be IsNull(). (usefull to avoid ON or UNKNOWN state in special cases)
Parameters:
  • S (TopoDS_Shape &) –
  • AvoidS (TopoDS_Shape &) –
Return type:

TopAbs_State

  • classify shape S compared with reference shape. LAvoidS is list of S subshapes to avoid in classification (usefull to avoid ON or UNKNOWN state in special cases)
Parameters:
  • S (TopoDS_Shape &) –
  • LAvoidS (TopTools_ListOfShape &) –
Return type:

TopAbs_State

StateShapeShape()
  • classify shape S compared with shape SRef. samedomain = 0 : S1,S2 are not same domain samedomain = 1 : S1,S2 are same domain
Parameters:
  • S (TopoDS_Shape &) –
  • SRef (TopoDS_Shape &) –
  • samedomain (Standard_Integer) – default value is 0
Return type:

TopAbs_State

  • classify shape S compared with shape SRef. samedomain = 0 : S1,S2 are not same domain samedomain = 1 : S1,S2 are same domain
Parameters:
  • S (TopoDS_Shape &) –
  • SRef (TopoDS_Shape &) –
  • samedomain (Standard_Integer) – default value is 0
Return type:

TopAbs_State

  • classify shape S compared with shape SRef. AvoidS is not used in classification; AvoidS may be IsNull(). (usefull to avoid ON or UNKNOWN state in special cases)
Parameters:
  • S (TopoDS_Shape &) –
  • AvoidS (TopoDS_Shape &) –
  • SRef (TopoDS_Shape &) –
Return type:

TopAbs_State

  • classify shape S compared with shape SRef. LAvoidS is list of S subshapes to avoid in classification AvoidS is not used in classification; AvoidS may be IsNull(). (usefull to avoid ON or UNKNOWN state in special cases)
Parameters:
  • S (TopoDS_Shape &) –
  • LAvoidS (TopTools_ListOfShape &) –
  • SRef (TopoDS_Shape &) –
Return type:

TopAbs_State

thisown

The membership flag

class OCC.TopOpeBRepTool.TopOpeBRepTool_ShapeExplorer(*args)

Bases: object

Current()
  • Returns the current shape in the exploration.
Return type:TopoDS_Shape
DumpCurrentToString()

TopOpeBRepTool_ShapeExplorer_DumpCurrentToString(TopOpeBRepTool_ShapeExplorer self) -> std::string

Index()
Return type:int
Init()
Parameters:
  • S (TopoDS_Shape &) –
  • ToFind (TopAbs_ShapeEnum) –
  • ToAvoid (TopAbs_ShapeEnum) – default value is TopAbs_SHAPE
  • S
  • ToFind
  • ToAvoid – default value is TopAbs_SHAPE
Return type:

None

Return type:

None

More()
  • Returns True if there are more shapes in the exploration.
Return type:bool
NbShapes()
Return type:int
Next()
  • Moves to the next Shape in the exploration.
Return type:None
thisown

The membership flag

class OCC.TopOpeBRepTool.TopOpeBRepTool_ShapeTool(*args, **kwargs)

Bases: object

static AdjustOnPeriodic(*args)
  • ajust u,v values in UVBounds of the domain of the geometric shape <S>, according to Uperiodicity and VPeriodicity of the domain. <S> is assumed to be a face. u and/or v is/are not modified when the domain is not periodic in U and/or V .
Parameters:
  • S (TopoDS_Shape &) –
  • u (float &) –
  • v (float &) –
Return type:

void

static BASISCURVE(*args)
Parameters:
  • C (Handle_Geom_Curve &) –
  • E (TopoDS_Edge &) –
Return type:

Handle_Geom_Curve

Return type:

Handle_Geom_Curve

static BASISSURFACE(*args)
Parameters:
  • S (Handle_Geom_Surface &) –
  • F (TopoDS_Face &) –
Return type:

Handle_Geom_Surface

Return type:

Handle_Geom_Surface

static Closed(*args)
  • indicates wheter shape S1 is a closing shape on S2 or not.
Parameters:
  • S1 (TopoDS_Shape &) –
  • S2 (TopoDS_Shape &) –
Return type:

bool

static CurvesSameOriented(*args)
Parameters:
  • C1 (BRepAdaptor_Curve &) –
  • C2 (BRepAdaptor_Curve &) –
Return type:

bool

static EdgeData(*args)
  • Compute tangent T, normal N, curvature C at point of parameter P on curve BRAC. Returns the tolerance indicating if T,N are null.
Parameters:
  • BRAC (BRepAdaptor_Curve &) –
  • P (float) –
  • T (gp_Dir) –
  • N (gp_Dir) –
  • C (float &) –
Return type:

float

  • Same as previous on edge E.
Parameters:
  • E (TopoDS_Shape &) –
  • P (float) –
  • T (gp_Dir) –
  • N (gp_Dir) –
  • C (float &) –
Return type:

float

static EdgesSameOriented(*args)
Parameters:
  • E1 (TopoDS_Shape &) –
  • E2 (TopoDS_Shape &) –
Return type:

bool

static FacesSameOriented(*args)
Parameters:
  • F1 (TopoDS_Shape &) –
  • F2 (TopoDS_Shape &) –
Return type:

bool

static PeriodizeParameter(*args)
Parameters:
  • par (float) –
  • EE (TopoDS_Shape &) –
  • FF (TopoDS_Shape &) –
Return type:

float

static Pnt(*args)
  • Returns 3D point of vertex <S>.
Parameters:S (TopoDS_Shape &) –
Return type:gp_Pnt
static Resolution3d(*args)
Parameters:
  • SU (Handle_Geom_Surface &) –
  • Tol2d (float) –
  • F (TopoDS_Face &) –
  • Tol2d
Return type:

float

Return type:

float

static Resolution3dU(*args)
Parameters:
  • SU (Handle_Geom_Surface &) –
  • Tol2d (float) –
Return type:

float

static Resolution3dV(*args)
Parameters:
  • SU (Handle_Geom_Surface &) –
  • Tol2d (float) –
Return type:

float

static ShapesSameOriented(*args)
Parameters:
  • S1 (TopoDS_Shape &) –
  • S2 (TopoDS_Shape &) –
Return type:

bool

static SurfacesSameOriented(*args)
Parameters:
  • S1 (BRepAdaptor_Surface &) –
  • S2 (BRepAdaptor_Surface &) –
Return type:

bool

static Tolerance(*args)
  • Returns the tolerance of the shape <S>. If the shape <S> is Null, returns 0.
Parameters:S (TopoDS_Shape &) –
Return type:float
static UVBOUNDS(*args)
Parameters:
  • S (Handle_Geom_Surface &) –
  • UPeri (bool) –
  • VPeri (bool) –
  • Umin (float &) –
  • Umax (float &) –
  • Vmin (float &) –
  • Vmax (float &) –
  • F (TopoDS_Face &) –
  • UPeri
  • VPeri
  • Umin
  • Umax
  • Vmin
  • Vmax
Return type:

void

Return type:

void

thisown

The membership flag

OCC.TopOpeBRepTool.TopOpeBRepTool_ShapeTool_AdjustOnPeriodic(*args)
  • ajust u,v values in UVBounds of the domain of the geometric shape <S>, according to Uperiodicity and VPeriodicity of the domain. <S> is assumed to be a face. u and/or v is/are not modified when the domain is not periodic in U and/or V .
Parameters:
  • S (TopoDS_Shape &) –
  • u (float &) –
  • v (float &) –
Return type:

void

OCC.TopOpeBRepTool.TopOpeBRepTool_ShapeTool_BASISCURVE(*args)
Parameters:
  • C (Handle_Geom_Curve &) –
  • E (TopoDS_Edge &) –
Return type:

Handle_Geom_Curve

Return type:

Handle_Geom_Curve

OCC.TopOpeBRepTool.TopOpeBRepTool_ShapeTool_BASISSURFACE(*args)
Parameters:
  • S (Handle_Geom_Surface &) –
  • F (TopoDS_Face &) –
Return type:

Handle_Geom_Surface

Return type:

Handle_Geom_Surface

OCC.TopOpeBRepTool.TopOpeBRepTool_ShapeTool_Closed(*args)
  • indicates wheter shape S1 is a closing shape on S2 or not.
Parameters:
  • S1 (TopoDS_Shape &) –
  • S2 (TopoDS_Shape &) –
Return type:

bool

OCC.TopOpeBRepTool.TopOpeBRepTool_ShapeTool_CurvesSameOriented(*args)
Parameters:
  • C1 (BRepAdaptor_Curve &) –
  • C2 (BRepAdaptor_Curve &) –
Return type:

bool

OCC.TopOpeBRepTool.TopOpeBRepTool_ShapeTool_EdgeData(*args)
  • Compute tangent T, normal N, curvature C at point of parameter P on curve BRAC. Returns the tolerance indicating if T,N are null.
Parameters:
  • BRAC (BRepAdaptor_Curve &) –
  • P (float) –
  • T (gp_Dir) –
  • N (gp_Dir) –
  • C (float &) –
Return type:

float

  • Same as previous on edge E.
Parameters:
  • E (TopoDS_Shape &) –
  • P (float) –
  • T (gp_Dir) –
  • N (gp_Dir) –
  • C (float &) –
Return type:

float

OCC.TopOpeBRepTool.TopOpeBRepTool_ShapeTool_EdgesSameOriented(*args)
Parameters:
  • E1 (TopoDS_Shape &) –
  • E2 (TopoDS_Shape &) –
Return type:

bool

OCC.TopOpeBRepTool.TopOpeBRepTool_ShapeTool_FacesSameOriented(*args)
Parameters:
  • F1 (TopoDS_Shape &) –
  • F2 (TopoDS_Shape &) –
Return type:

bool

OCC.TopOpeBRepTool.TopOpeBRepTool_ShapeTool_PeriodizeParameter(*args)
Parameters:
  • par (float) –
  • EE (TopoDS_Shape &) –
  • FF (TopoDS_Shape &) –
Return type:

float

OCC.TopOpeBRepTool.TopOpeBRepTool_ShapeTool_Pnt(*args)
  • Returns 3D point of vertex <S>.
Parameters:S (TopoDS_Shape &) –
Return type:gp_Pnt
OCC.TopOpeBRepTool.TopOpeBRepTool_ShapeTool_Resolution3d(*args)
Parameters:
  • SU (Handle_Geom_Surface &) –
  • Tol2d (float) –
  • F (TopoDS_Face &) –
  • Tol2d
Return type:

float

Return type:

float

OCC.TopOpeBRepTool.TopOpeBRepTool_ShapeTool_Resolution3dU(*args)
Parameters:
  • SU (Handle_Geom_Surface &) –
  • Tol2d (float) –
Return type:

float

OCC.TopOpeBRepTool.TopOpeBRepTool_ShapeTool_Resolution3dV(*args)
Parameters:
  • SU (Handle_Geom_Surface &) –
  • Tol2d (float) –
Return type:

float

OCC.TopOpeBRepTool.TopOpeBRepTool_ShapeTool_ShapesSameOriented(*args)
Parameters:
  • S1 (TopoDS_Shape &) –
  • S2 (TopoDS_Shape &) –
Return type:

bool

OCC.TopOpeBRepTool.TopOpeBRepTool_ShapeTool_SurfacesSameOriented(*args)
Parameters:
  • S1 (BRepAdaptor_Surface &) –
  • S2 (BRepAdaptor_Surface &) –
Return type:

bool

OCC.TopOpeBRepTool.TopOpeBRepTool_ShapeTool_Tolerance(*args)
  • Returns the tolerance of the shape <S>. If the shape <S> is Null, returns 0.
Parameters:S (TopoDS_Shape &) –
Return type:float
OCC.TopOpeBRepTool.TopOpeBRepTool_ShapeTool_UVBOUNDS(*args)
Parameters:
  • S (Handle_Geom_Surface &) –
  • UPeri (bool) –
  • VPeri (bool) –
  • Umin (float &) –
  • Umax (float &) –
  • Vmin (float &) –
  • Vmax (float &) –
  • F (TopoDS_Face &) –
  • UPeri
  • VPeri
  • Umin
  • Umax
  • Vmin
  • Vmax
Return type:

void

Return type:

void

class OCC.TopOpeBRepTool.TopOpeBRepTool_SolidClassifier

Bases: object

Classify()
  • compute the position of point <P> regarding with the geometric domain of the solid <S>.
Parameters:
  • S (TopoDS_Solid &) –
  • P (gp_Pnt) –
  • Tol (float) –
Return type:

TopAbs_State

  • compute the position of point <P> regarding with the geometric domain of the shell <S>.
Parameters:
  • S (TopoDS_Shell &) –
  • P (gp_Pnt) –
  • Tol (float) –
Return type:

TopAbs_State

Clear()
Return type:None
Destroy()
Return type:None
LoadShell()
Parameters:S (TopoDS_Shell &) –
Return type:None
LoadSolid()
Parameters:S (TopoDS_Solid &) –
Return type:None
State()
Return type:TopAbs_State
thisown

The membership flag

class OCC.TopOpeBRepTool.TopOpeBRepTool_TOOL(*args, **kwargs)

Bases: object

static ClosedE(*args)
Parameters:
  • E (TopoDS_Edge &) –
  • vclo (TopoDS_Vertex &) –
Return type:

bool

static ClosedS(*args)
Parameters:F (TopoDS_Face &) –
Return type:bool
static CurvE(*args)
Parameters:
  • E (TopoDS_Edge &) –
  • par (float) –
  • tg0 (gp_Dir) –
  • Curv (float &) –
Return type:

bool

static CurvF(*args)
Parameters:
  • F (TopoDS_Face &) –
  • uv (gp_Pnt2d) –
  • tg0 (gp_Dir) –
  • Curv (float &) –
  • direct (bool) –
Return type:

bool

static EdgeONFace(*args)
Parameters:
  • par (float) –
  • ed (TopoDS_Edge &) –
  • uv (gp_Pnt2d) –
  • fa (TopoDS_Face &) –
  • isonfa (bool) –
Return type:

bool

static Getduv(*args)
Parameters:
  • f (TopoDS_Face &) –
  • uv (gp_Pnt2d) –
  • dir (gp_Vec) –
  • factor (float) –
  • duv (gp_Dir2d) –
Return type:

bool

static Getstp3dF(*args)
Parameters:
  • p (gp_Pnt) –
  • f (TopoDS_Face &) –
  • uv (gp_Pnt2d) –
  • st (TopAbs_State &) –
Return type:

bool

static IsClosingE(*args)
Parameters:
  • E (TopoDS_Edge &) –
  • F (TopoDS_Face &) –
  • E
  • W (TopoDS_Shape &) –
  • F
Return type:

bool

Return type:

bool

static IsQuad(*args)
Parameters:
  • E (TopoDS_Edge &) –
  • F (TopoDS_Face &) –
Return type:

bool

Return type:

bool

static IsonCLO(*args)
Parameters:
  • PC (Handle_Geom2d_Curve &) –
  • onU (bool) –
  • xfirst (float) –
  • xperiod (float) –
  • xtol (float) –
  • C2DF (TopOpeBRepTool_C2DF &) –
  • onU
  • xfirst
  • xperiod
  • xtol
Return type:

bool

Return type:

bool

static Matter(*args)
Parameters:
  • d1 (gp_Vec2d) –
  • d2 (gp_Vec2d) –
  • ref (gp_Vec) –
  • d1
  • d2
  • xx1 (gp_Dir) –
  • nt1 (gp_Dir) –
  • xx2 (gp_Dir) –
  • nt2 (gp_Dir) –
  • tola (float) –
  • Ang (float &) –
  • f1 (TopoDS_Face &) –
  • f2 (TopoDS_Face &) –
  • e (TopoDS_Edge &) –
  • pare (float) –
  • tola
  • Ang
Return type:

float

Return type:

float

Return type:

bool

Return type:

bool

static MatterKPtg(*args)
Parameters:
  • f1 (TopoDS_Face &) –
  • f2 (TopoDS_Face &) –
  • e (TopoDS_Edge &) –
  • Ang (float &) –
Return type:

bool

static MkShell(*args)
Parameters:
  • lF (TopTools_ListOfShape &) –
  • She (TopoDS_Shape &) –
Return type:

void

static NgApp(*args)
Parameters:
  • par (float) –
  • E (TopoDS_Edge &) –
  • F (TopoDS_Face &) –
  • tola (float) –
  • ngApp (gp_Dir) –
Return type:

bool

static NggeomF(*args)
Parameters:
  • uv (gp_Pnt2d) –
  • F (TopoDS_Face &) –
  • ng (gp_Vec) –
Return type:

bool

static Nt(*args)
Parameters:
  • uv (gp_Pnt2d) –
  • f (TopoDS_Face &) –
  • normt (gp_Dir) –
Return type:

bool

static OnBoundary(*args)
Parameters:
  • par (float) –
  • E (TopoDS_Edge &) –
Return type:

int

static OriinSor(*args)
Parameters:
  • sub (TopoDS_Shape &) –
  • S (TopoDS_Shape &) –
  • checkclo (bool) – default value is Standard_False
  • sub
  • S
  • checkclo – default value is Standard_False
Return type:

int

Return type:

int

static OriinSorclosed(*args)
Parameters:
  • sub (TopoDS_Shape &) –
  • S (TopoDS_Shape &) –
Return type:

int

static ParE(*args)
Parameters:
  • Iv (Standard_Integer) –
  • E (TopoDS_Edge &) –
Return type:

float

static ParE2d(*args)
Parameters:
  • p2d (gp_Pnt2d) –
  • e (TopoDS_Edge &) –
  • f (TopoDS_Face &) –
  • par (float &) –
  • dist (float &) –
Return type:

bool

static ParISO(*args)
Parameters:
  • p2d (gp_Pnt2d) –
  • e (TopoDS_Edge &) –
  • f (TopoDS_Face &) –
  • pare (float &) –
Return type:

bool

static Remove(*args)
Parameters:
  • loS (TopTools_ListOfShape &) –
  • toremove (TopoDS_Shape &) –
Return type:

bool

static SplitE(*args)
Parameters:
  • Eanc (TopoDS_Edge &) –
  • Splits (TopTools_ListOfShape &) –
Return type:

bool

static Tg2d(*args)
Parameters:
  • iv (Standard_Integer) –
  • E (TopoDS_Edge &) –
  • C2DF (TopOpeBRepTool_C2DF &) –
Return type:

gp_Vec2d

static Tg2dApp(*args)
Parameters:
  • iv (Standard_Integer) –
  • E (TopoDS_Edge &) –
  • C2DF (TopOpeBRepTool_C2DF &) –
  • factor (float) –
Return type:

gp_Vec2d

static TgINSIDE(*args)
Parameters:
  • v (TopoDS_Vertex &) –
  • E (TopoDS_Edge &) –
  • Tg (gp_Vec) –
  • OvinE (Standard_Integer &) –
Return type:

bool

static TggeomE(*args)
Parameters:
  • par (float) –
  • BC (BRepAdaptor_Curve &) –
  • Tg (gp_Vec) –
  • par
  • E (TopoDS_Edge &) –
  • Tg
Return type:

bool

Return type:

bool

static TolP(*args)
Parameters:
  • E (TopoDS_Edge &) –
  • F (TopoDS_Face &) –
Return type:

float

static TolUV(*args)
Parameters:
  • F (TopoDS_Face &) –
  • tol3d (float) –
Return type:

float

static TrslUV(*args)
Parameters:
  • t2d (gp_Vec2d) –
  • C2DF (TopOpeBRepTool_C2DF &) –
Return type:

void

static TrslUVModifE(*args)
Parameters:
  • t2d (gp_Vec2d) –
  • F (TopoDS_Face &) –
  • E (TopoDS_Edge &) –
Return type:

bool

static UVF(*args)
Parameters:
  • par (float) –
  • C2DF (TopOpeBRepTool_C2DF &) –
Return type:

gp_Pnt2d

static UVISO(*args)
Parameters:
  • PC (Handle_Geom2d_Curve &) –
  • isou (bool) –
  • isov (bool) –
  • d2d (gp_Dir2d) –
  • o2d (gp_Pnt2d) –
  • C2DF (TopOpeBRepTool_C2DF &) –
  • isou
  • isov
  • d2d
  • o2d
  • E (TopoDS_Edge &) –
  • F (TopoDS_Face &) –
  • isou
  • isov
  • d2d
  • o2d
Return type:

bool

Return type:

bool

Return type:

bool

static Vertex(*args)
Parameters:
  • Iv (Standard_Integer) –
  • E (TopoDS_Edge &) –
Return type:

TopoDS_Vertex

static Vertices(*args)
Parameters:
  • E (TopoDS_Edge &) –
  • Vces (TopTools_Array1OfShape &) –
Return type:

void

static WireToFace(*args)
Parameters:
  • Fref (TopoDS_Face &) –
  • mapWlow (TopTools_DataMapOfShapeListOfShape &) –
  • lFs (TopTools_ListOfShape &) –
Return type:

bool

static XX(*args)
Parameters:
  • uv (gp_Pnt2d) –
  • f (TopoDS_Face &) –
  • par (float) –
  • e (TopoDS_Edge &) –
  • xx (gp_Dir) –
Return type:

bool

static minDUV(*args)
Parameters:F (TopoDS_Face &) –
Return type:float
static outUVbounds(*args)
Parameters:
  • uv (gp_Pnt2d) –
  • F (TopoDS_Face &) –
Return type:

bool

static stuvF(*args)
Parameters:
  • uv (gp_Pnt2d) –
  • F (TopoDS_Face &) –
  • onU (Standard_Integer &) –
  • onV (Standard_Integer &) –
Return type:

void

thisown

The membership flag

static tryNgApp(*args)
Parameters:
  • par (float) –
  • E (TopoDS_Edge &) –
  • F (TopoDS_Face &) –
  • tola (float) –
  • ng (gp_Dir) –
Return type:

bool

static tryOriEinF(*args)
Parameters:
  • par (float) –
  • E (TopoDS_Edge &) –
  • F (TopoDS_Face &) –
Return type:

int

static tryTg2dApp(*args)
Parameters:
  • iv (Standard_Integer) –
  • E (TopoDS_Edge &) –
  • C2DF (TopOpeBRepTool_C2DF &) –
  • factor (float) –
Return type:

gp_Vec2d

static uvApp(*args)
Parameters:
  • f (TopoDS_Face &) –
  • e (TopoDS_Edge &) –
  • par (float) –
  • eps (float) –
  • uvapp (gp_Pnt2d) –
Return type:

bool

OCC.TopOpeBRepTool.TopOpeBRepTool_TOOL_ClosedE(*args)
Parameters:
  • E (TopoDS_Edge &) –
  • vclo (TopoDS_Vertex &) –
Return type:

bool

OCC.TopOpeBRepTool.TopOpeBRepTool_TOOL_ClosedS(*args)
Parameters:F (TopoDS_Face &) –
Return type:bool
OCC.TopOpeBRepTool.TopOpeBRepTool_TOOL_CurvE(*args)
Parameters:
  • E (TopoDS_Edge &) –
  • par (float) –
  • tg0 (gp_Dir) –
  • Curv (float &) –
Return type:

bool

OCC.TopOpeBRepTool.TopOpeBRepTool_TOOL_CurvF(*args)
Parameters:
  • F (TopoDS_Face &) –
  • uv (gp_Pnt2d) –
  • tg0 (gp_Dir) –
  • Curv (float &) –
  • direct (bool) –
Return type:

bool

OCC.TopOpeBRepTool.TopOpeBRepTool_TOOL_EdgeONFace(*args)
Parameters:
  • par (float) –
  • ed (TopoDS_Edge &) –
  • uv (gp_Pnt2d) –
  • fa (TopoDS_Face &) –
  • isonfa (bool) –
Return type:

bool

OCC.TopOpeBRepTool.TopOpeBRepTool_TOOL_Getduv(*args)
Parameters:
  • f (TopoDS_Face &) –
  • uv (gp_Pnt2d) –
  • dir (gp_Vec) –
  • factor (float) –
  • duv (gp_Dir2d) –
Return type:

bool

OCC.TopOpeBRepTool.TopOpeBRepTool_TOOL_Getstp3dF(*args)
Parameters:
  • p (gp_Pnt) –
  • f (TopoDS_Face &) –
  • uv (gp_Pnt2d) –
  • st (TopAbs_State &) –
Return type:

bool

OCC.TopOpeBRepTool.TopOpeBRepTool_TOOL_IsClosingE(*args)
Parameters:
  • E (TopoDS_Edge &) –
  • F (TopoDS_Face &) –
  • E
  • W (TopoDS_Shape &) –
  • F
Return type:

bool

Return type:

bool

OCC.TopOpeBRepTool.TopOpeBRepTool_TOOL_IsQuad(*args)
Parameters:
  • E (TopoDS_Edge &) –
  • F (TopoDS_Face &) –
Return type:

bool

Return type:

bool

OCC.TopOpeBRepTool.TopOpeBRepTool_TOOL_IsonCLO(*args)
Parameters:
  • PC (Handle_Geom2d_Curve &) –
  • onU (bool) –
  • xfirst (float) –
  • xperiod (float) –
  • xtol (float) –
  • C2DF (TopOpeBRepTool_C2DF &) –
  • onU
  • xfirst
  • xperiod
  • xtol
Return type:

bool

Return type:

bool

OCC.TopOpeBRepTool.TopOpeBRepTool_TOOL_Matter(*args)
Parameters:
  • d1 (gp_Vec2d) –
  • d2 (gp_Vec2d) –
  • ref (gp_Vec) –
  • d1
  • d2
  • xx1 (gp_Dir) –
  • nt1 (gp_Dir) –
  • xx2 (gp_Dir) –
  • nt2 (gp_Dir) –
  • tola (float) –
  • Ang (float &) –
  • f1 (TopoDS_Face &) –
  • f2 (TopoDS_Face &) –
  • e (TopoDS_Edge &) –
  • pare (float) –
  • tola
  • Ang
Return type:

float

Return type:

float

Return type:

bool

Return type:

bool

OCC.TopOpeBRepTool.TopOpeBRepTool_TOOL_MatterKPtg(*args)
Parameters:
  • f1 (TopoDS_Face &) –
  • f2 (TopoDS_Face &) –
  • e (TopoDS_Edge &) –
  • Ang (float &) –
Return type:

bool

OCC.TopOpeBRepTool.TopOpeBRepTool_TOOL_MkShell(*args)
Parameters:
  • lF (TopTools_ListOfShape &) –
  • She (TopoDS_Shape &) –
Return type:

void

OCC.TopOpeBRepTool.TopOpeBRepTool_TOOL_NgApp(*args)
Parameters:
  • par (float) –
  • E (TopoDS_Edge &) –
  • F (TopoDS_Face &) –
  • tola (float) –
  • ngApp (gp_Dir) –
Return type:

bool

OCC.TopOpeBRepTool.TopOpeBRepTool_TOOL_NggeomF(*args)
Parameters:
  • uv (gp_Pnt2d) –
  • F (TopoDS_Face &) –
  • ng (gp_Vec) –
Return type:

bool

OCC.TopOpeBRepTool.TopOpeBRepTool_TOOL_Nt(*args)
Parameters:
  • uv (gp_Pnt2d) –
  • f (TopoDS_Face &) –
  • normt (gp_Dir) –
Return type:

bool

OCC.TopOpeBRepTool.TopOpeBRepTool_TOOL_OnBoundary(*args)
Parameters:
  • par (float) –
  • E (TopoDS_Edge &) –
Return type:

int

OCC.TopOpeBRepTool.TopOpeBRepTool_TOOL_OriinSor(*args)
Parameters:
  • sub (TopoDS_Shape &) –
  • S (TopoDS_Shape &) –
  • checkclo (bool) – default value is Standard_False
  • sub
  • S
  • checkclo – default value is Standard_False
Return type:

int

Return type:

int

OCC.TopOpeBRepTool.TopOpeBRepTool_TOOL_OriinSorclosed(*args)
Parameters:
  • sub (TopoDS_Shape &) –
  • S (TopoDS_Shape &) –
Return type:

int

OCC.TopOpeBRepTool.TopOpeBRepTool_TOOL_ParE(*args)
Parameters:
  • Iv (Standard_Integer) –
  • E (TopoDS_Edge &) –
Return type:

float

OCC.TopOpeBRepTool.TopOpeBRepTool_TOOL_ParE2d(*args)
Parameters:
  • p2d (gp_Pnt2d) –
  • e (TopoDS_Edge &) –
  • f (TopoDS_Face &) –
  • par (float &) –
  • dist (float &) –
Return type:

bool

OCC.TopOpeBRepTool.TopOpeBRepTool_TOOL_ParISO(*args)
Parameters:
  • p2d (gp_Pnt2d) –
  • e (TopoDS_Edge &) –
  • f (TopoDS_Face &) –
  • pare (float &) –
Return type:

bool

OCC.TopOpeBRepTool.TopOpeBRepTool_TOOL_Remove(*args)
Parameters:
  • loS (TopTools_ListOfShape &) –
  • toremove (TopoDS_Shape &) –
Return type:

bool

OCC.TopOpeBRepTool.TopOpeBRepTool_TOOL_SplitE(*args)
Parameters:
  • Eanc (TopoDS_Edge &) –
  • Splits (TopTools_ListOfShape &) –
Return type:

bool

OCC.TopOpeBRepTool.TopOpeBRepTool_TOOL_Tg2d(*args)
Parameters:
  • iv (Standard_Integer) –
  • E (TopoDS_Edge &) –
  • C2DF (TopOpeBRepTool_C2DF &) –
Return type:

gp_Vec2d

OCC.TopOpeBRepTool.TopOpeBRepTool_TOOL_Tg2dApp(*args)
Parameters:
  • iv (Standard_Integer) –
  • E (TopoDS_Edge &) –
  • C2DF (TopOpeBRepTool_C2DF &) –
  • factor (float) –
Return type:

gp_Vec2d

OCC.TopOpeBRepTool.TopOpeBRepTool_TOOL_TgINSIDE(*args)
Parameters:
  • v (TopoDS_Vertex &) –
  • E (TopoDS_Edge &) –
  • Tg (gp_Vec) –
  • OvinE (Standard_Integer &) –
Return type:

bool

OCC.TopOpeBRepTool.TopOpeBRepTool_TOOL_TggeomE(*args)
Parameters:
  • par (float) –
  • BC (BRepAdaptor_Curve &) –
  • Tg (gp_Vec) –
  • par
  • E (TopoDS_Edge &) –
  • Tg
Return type:

bool

Return type:

bool

OCC.TopOpeBRepTool.TopOpeBRepTool_TOOL_TolP(*args)
Parameters:
  • E (TopoDS_Edge &) –
  • F (TopoDS_Face &) –
Return type:

float

OCC.TopOpeBRepTool.TopOpeBRepTool_TOOL_TolUV(*args)
Parameters:
  • F (TopoDS_Face &) –
  • tol3d (float) –
Return type:

float

OCC.TopOpeBRepTool.TopOpeBRepTool_TOOL_TrslUV(*args)
Parameters:
  • t2d (gp_Vec2d) –
  • C2DF (TopOpeBRepTool_C2DF &) –
Return type:

void

OCC.TopOpeBRepTool.TopOpeBRepTool_TOOL_TrslUVModifE(*args)
Parameters:
  • t2d (gp_Vec2d) –
  • F (TopoDS_Face &) –
  • E (TopoDS_Edge &) –
Return type:

bool

OCC.TopOpeBRepTool.TopOpeBRepTool_TOOL_UVF(*args)
Parameters:
  • par (float) –
  • C2DF (TopOpeBRepTool_C2DF &) –
Return type:

gp_Pnt2d

OCC.TopOpeBRepTool.TopOpeBRepTool_TOOL_UVISO(*args)
Parameters:
  • PC (Handle_Geom2d_Curve &) –
  • isou (bool) –
  • isov (bool) –
  • d2d (gp_Dir2d) –
  • o2d (gp_Pnt2d) –
  • C2DF (TopOpeBRepTool_C2DF &) –
  • isou
  • isov
  • d2d
  • o2d
  • E (TopoDS_Edge &) –
  • F (TopoDS_Face &) –
  • isou
  • isov
  • d2d
  • o2d
Return type:

bool

Return type:

bool

Return type:

bool

OCC.TopOpeBRepTool.TopOpeBRepTool_TOOL_Vertex(*args)
Parameters:
  • Iv (Standard_Integer) –
  • E (TopoDS_Edge &) –
Return type:

TopoDS_Vertex

OCC.TopOpeBRepTool.TopOpeBRepTool_TOOL_Vertices(*args)
Parameters:
  • E (TopoDS_Edge &) –
  • Vces (TopTools_Array1OfShape &) –
Return type:

void

OCC.TopOpeBRepTool.TopOpeBRepTool_TOOL_WireToFace(*args)
Parameters:
  • Fref (TopoDS_Face &) –
  • mapWlow (TopTools_DataMapOfShapeListOfShape &) –
  • lFs (TopTools_ListOfShape &) –
Return type:

bool

OCC.TopOpeBRepTool.TopOpeBRepTool_TOOL_XX(*args)
Parameters:
  • uv (gp_Pnt2d) –
  • f (TopoDS_Face &) –
  • par (float) –
  • e (TopoDS_Edge &) –
  • xx (gp_Dir) –
Return type:

bool

OCC.TopOpeBRepTool.TopOpeBRepTool_TOOL_minDUV(*args)
Parameters:F (TopoDS_Face &) –
Return type:float
OCC.TopOpeBRepTool.TopOpeBRepTool_TOOL_outUVbounds(*args)
Parameters:
  • uv (gp_Pnt2d) –
  • F (TopoDS_Face &) –
Return type:

bool

OCC.TopOpeBRepTool.TopOpeBRepTool_TOOL_stuvF(*args)
Parameters:
  • uv (gp_Pnt2d) –
  • F (TopoDS_Face &) –
  • onU (Standard_Integer &) –
  • onV (Standard_Integer &) –
Return type:

void

OCC.TopOpeBRepTool.TopOpeBRepTool_TOOL_tryNgApp(*args)
Parameters:
  • par (float) –
  • E (TopoDS_Edge &) –
  • F (TopoDS_Face &) –
  • tola (float) –
  • ng (gp_Dir) –
Return type:

bool

OCC.TopOpeBRepTool.TopOpeBRepTool_TOOL_tryOriEinF(*args)
Parameters:
  • par (float) –
  • E (TopoDS_Edge &) –
  • F (TopoDS_Face &) –
Return type:

int

OCC.TopOpeBRepTool.TopOpeBRepTool_TOOL_tryTg2dApp(*args)
Parameters:
  • iv (Standard_Integer) –
  • E (TopoDS_Edge &) –
  • C2DF (TopOpeBRepTool_C2DF &) –
  • factor (float) –
Return type:

gp_Vec2d

OCC.TopOpeBRepTool.TopOpeBRepTool_TOOL_uvApp(*args)
Parameters:
  • f (TopoDS_Face &) –
  • e (TopoDS_Edge &) –
  • par (float) –
  • eps (float) –
  • uvapp (gp_Pnt2d) –
Return type:

bool

class OCC.TopOpeBRepTool.TopOpeBRepTool_connexity(*args)

Bases: object

AddItem()
Parameters:
  • OriKey (Standard_Integer) –
  • Item (TopoDS_Shape &) –
  • OriKey
  • Item
Return type:

None

Return type:

None

AllItems()
Parameters:Item (TopTools_ListOfShape &) –
Return type:int
ChangeItem()
Parameters:OriKey (Standard_Integer) –
Return type:TopTools_ListOfShape
IsFaulty()
Return type:bool
IsInternal()
Parameters:Item (TopTools_ListOfShape &) –
Return type:int
IsMultiple()
Return type:bool
Item()
Parameters:
  • OriKey (Standard_Integer) –
  • Item (TopTools_ListOfShape &) –
Return type:

int

Key()
Return type:TopoDS_Shape
RemoveItem()
Parameters:
  • OriKey (Standard_Integer) –
  • Item (TopoDS_Shape &) –
  • Item
Return type:

bool

Return type:

bool

SetKey()
Parameters:Key (TopoDS_Shape &) –
Return type:None
thisown

The membership flag

class OCC.TopOpeBRepTool.TopOpeBRepTool_face

Bases: object

Ffinite()
Return type:TopoDS_Face
Finite()
Return type:bool
Init()
Parameters:
  • W (TopoDS_Wire &) –
  • Fref (TopoDS_Face &) –
Return type:

bool

IsDone()
Return type:bool
RealF()
Return type:TopoDS_Face
W()
Return type:TopoDS_Wire
thisown

The membership flag

class OCC.TopOpeBRepTool.TopOpeBRepTool_makeTransition

Bases: object

Getfactor()
Return type:float
HasRest()
Return type:bool
Initialize()
Parameters:
  • E (TopoDS_Edge &) –
  • pbef (float) –
  • paft (float) –
  • parE (float) –
  • FS (TopoDS_Face &) –
  • uv (gp_Pnt2d) –
  • factor (float) –
Return type:

bool

IsT2d()
Return type:bool
MkT2donE()
Parameters:
  • stb (TopAbs_State &) –
  • sta (TopAbs_State &) –
Return type:

bool

MkT3dproj()
Parameters:
  • stb (TopAbs_State &) –
  • sta (TopAbs_State &) –
Return type:

bool

MkT3onE()
Parameters:
  • stb (TopAbs_State &) –
  • sta (TopAbs_State &) –
Return type:

bool

MkTonE()
Parameters:
  • stb (TopAbs_State &) –
  • sta (TopAbs_State &) –
Return type:

bool

SetRest()
Parameters:
  • ES (TopoDS_Edge &) –
  • parES (float) –
Return type:

bool

Setfactor()
Parameters:factor (float) –
Return type:None
thisown

The membership flag

class OCC.TopOpeBRepTool.topopebreptool(*args, **kwargs)

Bases: object

static CorrectONUVISO(*args)
Parameters:
  • F (TopoDS_Face &) –
  • Fsp (TopoDS_Face &) –
Return type:

bool

static MakeFaces(*args)
  • Builds up the correct list of faces <LOFF> from <LOF>, using faulty shapes from map <MshNOK>. <LOF> is the list of <F>’s descendant faces. returns false if building fails
Parameters:
  • F (TopoDS_Face &) –
  • LOF (TopTools_ListOfShape &) –
  • MshNOK (TopTools_IndexedMapOfOrientedShape &) –
  • LOFF (TopTools_ListOfShape &) –
Return type:

bool

static Print(*args)
  • Prints <OCT> as string on stream <S>; returns <S>.
Parameters:
  • OCT (TopOpeBRepTool_OutCurveType) –
  • S (Standard_OStream &) –
Return type:

Standard_OStream

static PurgeClosingEdges(*args)
  • Fuse edges (in a wire) of a shape where we have useless vertex. In case face <FF> is built on UV-non-connexed wires (with the two closing edges FORWARD and REVERSED, in spite of one only), we find out the faulty edge, add the faulty shapes (edge,wire,face) to <MshNOK>. <FF> is a face descendant of <F>. <MWisOld>(wire) = 1 if wire is wire of <F> 0 wire results from <F>’s wire splitted. returns false if purge fails
Parameters:
  • F (TopoDS_Face &) –
  • FF (TopoDS_Face &) –
  • MWisOld (TopTools_DataMapOfShapeInteger &) –
  • MshNOK (TopTools_IndexedMapOfOrientedShape &) –
  • F
  • LOF (TopTools_ListOfShape &) –
  • MWisOld
  • MshNOK
Return type:

bool

Return type:

bool

static Regularize(*args)
  • Returns <False> if the face is valid (the UV representation of the face is a set of pcurves connexed by points with connexity 2). Else, splits <aFace> in order to return a list of valid faces.
Parameters:
  • aFace (TopoDS_Face &) –
  • aListOfFaces (TopTools_ListOfShape &) –
  • ESplits (TopTools_DataMapOfShapeListOfShape &) –
Return type:

bool

static RegularizeFace(*args)
  • Classify wire’s splits of map <OldWiresnewWires> in order to compute <aListOfFaces>, the splits of <aFace>.
Parameters:
  • aFace (TopoDS_Face &) –
  • OldWiresnewWires (TopTools_DataMapOfShapeListOfShape &) –
  • aListOfFaces (TopTools_ListOfShape &) –
Return type:

bool

static RegularizeShells(*args)
  • Returns <False> if the shell is valid (the solid is a set of faces connexed by edges with connexity 2). Else, splits faces of the shell; <OldFacesnewFaces> describes (face, splits of face).
Parameters:
  • aSolid (TopoDS_Solid &) –
  • OldSheNewShe (TopTools_DataMapOfShapeListOfShape &) –
  • FSplits (TopTools_DataMapOfShapeListOfShape &) –
Return type:

bool

static RegularizeWires(*args)
  • Returns <False> if the face is valid (the UV representation of the face is a set of pcurves connexed by points with connexity 2). Else, splits wires of the face, these are boundaries of the new faces to build up; <OldWiresNewWires> describes (wire, splits of wire); <ESplits> describes (edge, edge’s splits)
Parameters:
  • aFace (TopoDS_Face &) –
  • OldWiresNewWires (TopTools_DataMapOfShapeListOfShape &) –
  • ESplits (TopTools_DataMapOfShapeListOfShape &) –
Return type:

bool

thisown

The membership flag

OCC.TopOpeBRepTool.topopebreptool_CorrectONUVISO(*args)
Parameters:
  • F (TopoDS_Face &) –
  • Fsp (TopoDS_Face &) –
Return type:

bool

OCC.TopOpeBRepTool.topopebreptool_MakeFaces(*args)
  • Builds up the correct list of faces <LOFF> from <LOF>, using faulty shapes from map <MshNOK>. <LOF> is the list of <F>’s descendant faces. returns false if building fails
Parameters:
  • F (TopoDS_Face &) –
  • LOF (TopTools_ListOfShape &) –
  • MshNOK (TopTools_IndexedMapOfOrientedShape &) –
  • LOFF (TopTools_ListOfShape &) –
Return type:

bool

OCC.TopOpeBRepTool.topopebreptool_Print(*args)
  • Prints <OCT> as string on stream <S>; returns <S>.
Parameters:
  • OCT (TopOpeBRepTool_OutCurveType) –
  • S (Standard_OStream &) –
Return type:

Standard_OStream

OCC.TopOpeBRepTool.topopebreptool_PurgeClosingEdges(*args)
  • Fuse edges (in a wire) of a shape where we have useless vertex. In case face <FF> is built on UV-non-connexed wires (with the two closing edges FORWARD and REVERSED, in spite of one only), we find out the faulty edge, add the faulty shapes (edge,wire,face) to <MshNOK>. <FF> is a face descendant of <F>. <MWisOld>(wire) = 1 if wire is wire of <F> 0 wire results from <F>’s wire splitted. returns false if purge fails
Parameters:
  • F (TopoDS_Face &) –
  • FF (TopoDS_Face &) –
  • MWisOld (TopTools_DataMapOfShapeInteger &) –
  • MshNOK (TopTools_IndexedMapOfOrientedShape &) –
  • F
  • LOF (TopTools_ListOfShape &) –
  • MWisOld
  • MshNOK
Return type:

bool

Return type:

bool

OCC.TopOpeBRepTool.topopebreptool_Regularize(*args)
  • Returns <False> if the face is valid (the UV representation of the face is a set of pcurves connexed by points with connexity 2). Else, splits <aFace> in order to return a list of valid faces.
Parameters:
  • aFace (TopoDS_Face &) –
  • aListOfFaces (TopTools_ListOfShape &) –
  • ESplits (TopTools_DataMapOfShapeListOfShape &) –
Return type:

bool

OCC.TopOpeBRepTool.topopebreptool_RegularizeFace(*args)
  • Classify wire’s splits of map <OldWiresnewWires> in order to compute <aListOfFaces>, the splits of <aFace>.
Parameters:
  • aFace (TopoDS_Face &) –
  • OldWiresnewWires (TopTools_DataMapOfShapeListOfShape &) –
  • aListOfFaces (TopTools_ListOfShape &) –
Return type:

bool

OCC.TopOpeBRepTool.topopebreptool_RegularizeShells(*args)
  • Returns <False> if the shell is valid (the solid is a set of faces connexed by edges with connexity 2). Else, splits faces of the shell; <OldFacesnewFaces> describes (face, splits of face).
Parameters:
  • aSolid (TopoDS_Solid &) –
  • OldSheNewShe (TopTools_DataMapOfShapeListOfShape &) –
  • FSplits (TopTools_DataMapOfShapeListOfShape &) –
Return type:

bool

OCC.TopOpeBRepTool.topopebreptool_RegularizeWires(*args)
  • Returns <False> if the face is valid (the UV representation of the face is a set of pcurves connexed by points with connexity 2). Else, splits wires of the face, these are boundaries of the new faces to build up; <OldWiresNewWires> describes (wire, splits of wire); <ESplits> describes (edge, edge’s splits)
Parameters:
  • aFace (TopoDS_Face &) –
  • OldWiresNewWires (TopTools_DataMapOfShapeListOfShape &) –
  • ESplits (TopTools_DataMapOfShapeListOfShape &) –
Return type:

bool