OCC.TopoDSToStep module

This package implements the mapping between CAS.CADShape representation and AP214 Shape Representation.The target schema is pms_c4 (a subset of AP214)How to use this Package :Entry point are context dependent. It can be :MakeManifoldSolidBrepMakeBrepWithVoidsMakeFacetedBrepMakeFacetedBrepAndBrepWithVoidsMakeShellBasedSurfaceModelEach of these classes call the BuilderThe class tool centralizes some common informations.

class SwigPyIterator(*args, **kwargs)

Bases: object

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

The membership flag

value()
class TopoDSToStep_Builder(*args)

Bases: OCC.TopoDSToStep.TopoDSToStep_Root

Return type:

None

Parameters:
  • S (TopoDS_Shape &) –
  • T (TopoDSToStep_Tool &) –
  • FP (Handle_Transfer_FinderProcess &) –
Return type:

None

Error()
Return type:TopoDSToStep_BuilderError
Init()
Parameters:
  • S (TopoDS_Shape &) –
  • T (TopoDSToStep_Tool &) –
  • FP (Handle_Transfer_FinderProcess &) –
Return type:

None

Value()
Return type:Handle_StepShape_TopologicalRepresentationItem
thisown

The membership flag

class TopoDSToStep_FacetedTool

Bases: object

static CheckTopoDSShape()
Parameters:SH (TopoDS_Shape &) –
Return type:TopoDSToStep_FacetedError
thisown

The membership flag

TopoDSToStep_FacetedTool_CheckTopoDSShape()
Parameters:SH (TopoDS_Shape &) –
Return type:TopoDSToStep_FacetedError
class TopoDSToStep_MakeBrepWithVoids(*args)

Bases: OCC.TopoDSToStep.TopoDSToStep_Root

Parameters:
  • S (TopoDS_Solid &) –
  • FP (Handle_Transfer_FinderProcess &) –
Return type:

None

Value()
Return type:Handle_StepShape_BrepWithVoids
thisown

The membership flag

class TopoDSToStep_MakeFacetedBrep(*args)

Bases: OCC.TopoDSToStep.TopoDSToStep_Root

Parameters:
  • S (TopoDS_Solid &) –
  • FP (Handle_Transfer_FinderProcess &) –
  • S
  • FP
Return type:

None

Return type:

None

Value()
Return type:Handle_StepShape_FacetedBrep
thisown

The membership flag

class TopoDSToStep_MakeFacetedBrepAndBrepWithVoids(*args)

Bases: OCC.TopoDSToStep.TopoDSToStep_Root

Parameters:
  • S (TopoDS_Solid &) –
  • FP (Handle_Transfer_FinderProcess &) –
Return type:

None

Value()
Return type:Handle_StepShape_FacetedBrepAndBrepWithVoids
thisown

The membership flag

class TopoDSToStep_MakeGeometricCurveSet(*args)

Bases: OCC.TopoDSToStep.TopoDSToStep_Root

Parameters:
  • SH (TopoDS_Shape &) –
  • FP (Handle_Transfer_FinderProcess &) –
Return type:

None

Value()
Return type:Handle_StepShape_GeometricCurveSet
thisown

The membership flag

class TopoDSToStep_MakeManifoldSolidBrep(*args)

Bases: OCC.TopoDSToStep.TopoDSToStep_Root

Parameters:
  • S (TopoDS_Solid &) –
  • FP (Handle_Transfer_FinderProcess &) –
  • S
  • FP
Return type:

None

Return type:

None

Value()
Return type:Handle_StepShape_ManifoldSolidBrep
thisown

The membership flag

class TopoDSToStep_MakeShellBasedSurfaceModel(*args)

Bases: OCC.TopoDSToStep.TopoDSToStep_Root

Parameters:
  • F (TopoDS_Face &) –
  • FP (Handle_Transfer_FinderProcess &) –
  • S (TopoDS_Solid &) –
  • FP
  • S
  • FP
Return type:

None

Return type:

None

Return type:

None

Value()
Return type:Handle_StepShape_ShellBasedSurfaceModel
thisown

The membership flag

class TopoDSToStep_MakeStepEdge(*args)

Bases: OCC.TopoDSToStep.TopoDSToStep_Root

Return type:

None

Parameters:
  • E (TopoDS_Edge &) –
  • T (TopoDSToStep_Tool &) –
  • FP (Handle_Transfer_FinderProcess &) –
Return type:

None

Error()
Return type:TopoDSToStep_MakeEdgeError
Init()
Parameters:
  • E (TopoDS_Edge &) –
  • T (TopoDSToStep_Tool &) –
  • FP (Handle_Transfer_FinderProcess &) –
Return type:

None

Value()
Return type:Handle_StepShape_TopologicalRepresentationItem
thisown

The membership flag

class TopoDSToStep_MakeStepFace(*args)

Bases: OCC.TopoDSToStep.TopoDSToStep_Root

Return type:

None

Parameters:
  • F (TopoDS_Face &) –
  • T (TopoDSToStep_Tool &) –
  • FP (Handle_Transfer_FinderProcess &) –
Return type:

None

Error()
Return type:TopoDSToStep_MakeFaceError
Init()
Parameters:
  • F (TopoDS_Face &) –
  • T (TopoDSToStep_Tool &) –
  • FP (Handle_Transfer_FinderProcess &) –
Return type:

None

Value()
Return type:Handle_StepShape_TopologicalRepresentationItem
thisown

The membership flag

class TopoDSToStep_MakeStepVertex(*args)

Bases: OCC.TopoDSToStep.TopoDSToStep_Root

Return type:

None

Parameters:
  • V (TopoDS_Vertex &) –
  • T (TopoDSToStep_Tool &) –
  • FP (Handle_Transfer_FinderProcess &) –
Return type:

None

Error()
Return type:TopoDSToStep_MakeVertexError
Init()
Parameters:
  • V (TopoDS_Vertex &) –
  • T (TopoDSToStep_Tool &) –
  • FP (Handle_Transfer_FinderProcess &) –
Return type:

None

Value()
Return type:Handle_StepShape_TopologicalRepresentationItem
thisown

The membership flag

class TopoDSToStep_MakeStepWire(*args)

Bases: OCC.TopoDSToStep.TopoDSToStep_Root

Return type:

None

Parameters:
  • W (TopoDS_Wire &) –
  • T (TopoDSToStep_Tool &) –
  • FP (Handle_Transfer_FinderProcess &) –
Return type:

None

Error()
Return type:TopoDSToStep_MakeWireError
Init()
Parameters:
  • W (TopoDS_Wire &) –
  • T (TopoDSToStep_Tool &) –
  • FP (Handle_Transfer_FinderProcess &) –
Return type:

None

Value()
Return type:Handle_StepShape_TopologicalRepresentationItem
thisown

The membership flag

class TopoDSToStep_Root(*args, **kwargs)

Bases: object

GetTolerance()

TopoDSToStep_Root_GetTolerance(TopoDSToStep_Root self) -> Standard_Real

IsDone()
Return type:bool
SetTolerance()

TopoDSToStep_Root_SetTolerance(TopoDSToStep_Root self, Standard_Real value)

thisown

The membership flag

class TopoDSToStep_Tool(*args)

Bases: object

Return type:

None

Parameters:
  • M (MoniTool_DataMapOfShapeTransient &) –
  • FacetedContext (bool) –
Return type:

None

Bind()
Parameters:
  • S (TopoDS_Shape &) –
  • T (Handle_StepShape_TopologicalRepresentationItem &) –
Return type:

None

CurrentEdge()
Return type:TopoDS_Edge
CurrentFace()
Return type:TopoDS_Face
CurrentShell()
Return type:TopoDS_Shell
CurrentVertex()
Return type:TopoDS_Vertex
CurrentWire()
Return type:TopoDS_Wire
Faceted()
Return type:bool
Find()
Parameters:S (TopoDS_Shape &) –
Return type:Handle_StepShape_TopologicalRepresentationItem
Init()
Parameters:
  • M (MoniTool_DataMapOfShapeTransient &) –
  • FacetedContext (bool) –
Return type:

None

IsBound()
Parameters:S (TopoDS_Shape &) –
Return type:bool
Lowest3DTolerance()
Return type:float
Map()
Return type:MoniTool_DataMapOfShapeTransient
PCurveMode()
  • Returns mode for writing pcurves (initialized by parameter write.surfacecurve.mode)
Return type:int
SetCurrentEdge()
Parameters:E (TopoDS_Edge &) –
Return type:None
SetCurrentFace()
Parameters:F (TopoDS_Face &) –
Return type:None
SetCurrentShell()
Parameters:S (TopoDS_Shell &) –
Return type:None
SetCurrentVertex()
Parameters:V (TopoDS_Vertex &) –
Return type:None
SetCurrentWire()
Parameters:W (TopoDS_Wire &) –
Return type:None
SetSurfaceReversed()
Parameters:B (bool) –
Return type:None
SurfaceReversed()
Return type:bool
thisown

The membership flag

class TopoDSToStep_WireframeBuilder(*args)

Bases: OCC.TopoDSToStep.TopoDSToStep_Root

Return type:

None

Parameters:
  • S (TopoDS_Shape &) –
  • T (TopoDSToStep_Tool &) –
  • FP (Handle_Transfer_FinderProcess &) –
Return type:

None

Error()
Return type:TopoDSToStep_BuilderError
GetTrimmedCurveFromEdge()
  • Extraction of Trimmed Curves from TopoDS_Edge for the Creation of a GeometricallyBoundedWireframeRepresentation
Parameters:
  • E (TopoDS_Edge &) –
  • F (TopoDS_Face &) –
  • M (MoniTool_DataMapOfShapeTransient &) –
  • L (Handle_TColStd_HSequenceOfTransient &) –
Return type:

bool

GetTrimmedCurveFromFace()
  • Extraction of Trimmed Curves from TopoDS_Face for the Creation of a GeometricallyBoundedWireframeRepresentation
Parameters:
  • F (TopoDS_Face &) –
  • M (MoniTool_DataMapOfShapeTransient &) –
  • L (Handle_TColStd_HSequenceOfTransient &) –
Return type:

bool

GetTrimmedCurveFromShape()
  • Extraction of Trimmed Curves from any TopoDS_Shape for the Creation of a GeometricallyBoundedWireframeRepresentation
Parameters:
  • S (TopoDS_Shape &) –
  • M (MoniTool_DataMapOfShapeTransient &) –
  • L (Handle_TColStd_HSequenceOfTransient &) –
Return type:

bool

Init()
Parameters:
  • S (TopoDS_Shape &) –
  • T (TopoDSToStep_Tool &) –
  • FP (Handle_Transfer_FinderProcess &) –
Return type:

None

Value()
Return type:Handle_TColStd_HSequenceOfTransient
thisown

The membership flag

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

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

class topodstostep

Bases: object

static AddResult()
  • Adds an entity into the list of results (binders) for shape stored in FinderProcess
Parameters:
  • FP (Handle_Transfer_FinderProcess &) –
  • Shape (TopoDS_Shape &) –
  • entity (Handle_Standard_Transient &) –
Return type:

void

  • Adds all entities recorded in Tool into the map of results (binders) stored in FinderProcess
Parameters:
  • FP (Handle_Transfer_FinderProcess &) –
  • Tool (TopoDSToStep_Tool &) –
Return type:

void

static DecodeBuilderError()
Parameters:E (TopoDSToStep_BuilderError) –
Return type:Handle_TCollection_HAsciiString
static DecodeEdgeError()
Parameters:E (TopoDSToStep_MakeEdgeError) –
Return type:Handle_TCollection_HAsciiString
static DecodeFaceError()
Parameters:E (TopoDSToStep_MakeFaceError) –
Return type:Handle_TCollection_HAsciiString
static DecodeVertexError()
  • Returns a new shape without undirect surfaces.
Parameters:E (TopoDSToStep_MakeVertexError) –
Return type:Handle_TCollection_HAsciiString
static DecodeWireError()
Parameters:E (TopoDSToStep_MakeWireError) –
Return type:Handle_TCollection_HAsciiString
thisown

The membership flag

topodstostep_AddResult()
  • Adds an entity into the list of results (binders) for shape stored in FinderProcess
Parameters:
  • FP (Handle_Transfer_FinderProcess &) –
  • Shape (TopoDS_Shape &) –
  • entity (Handle_Standard_Transient &) –
Return type:

void

  • Adds all entities recorded in Tool into the map of results (binders) stored in FinderProcess
Parameters:
  • FP (Handle_Transfer_FinderProcess &) –
  • Tool (TopoDSToStep_Tool &) –
Return type:

void

topodstostep_DecodeBuilderError()
Parameters:E (TopoDSToStep_BuilderError) –
Return type:Handle_TCollection_HAsciiString
topodstostep_DecodeEdgeError()
Parameters:E (TopoDSToStep_MakeEdgeError) –
Return type:Handle_TCollection_HAsciiString
topodstostep_DecodeFaceError()
Parameters:E (TopoDSToStep_MakeFaceError) –
Return type:Handle_TCollection_HAsciiString
topodstostep_DecodeVertexError()
  • Returns a new shape without undirect surfaces.
Parameters:E (TopoDSToStep_MakeVertexError) –
Return type:Handle_TCollection_HAsciiString
topodstostep_DecodeWireError()
Parameters:E (TopoDSToStep_MakeWireError) –
Return type:Handle_TCollection_HAsciiString