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: Parameters: - S (TopoDS_Shape &) –
- T (TopoDSToStep_Tool &) –
- FP (Handle_Transfer_FinderProcess &) –
Return type: -
Error
()¶ Return type: TopoDSToStep_BuilderError
-
Init
()¶ Parameters: - S (TopoDS_Shape &) –
- T (TopoDSToStep_Tool &) –
- FP (Handle_Transfer_FinderProcess &) –
Return type:
-
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
-
static
-
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: -
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: Return type: -
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: -
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: -
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: Return type: -
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: Return type: Return type: -
Value
()¶ Return type: Handle_StepShape_ShellBasedSurfaceModel
-
thisown
¶ The membership flag
-
class
TopoDSToStep_MakeStepEdge
(*args)¶ Bases:
OCC.TopoDSToStep.TopoDSToStep_Root
Return type: Parameters: - E (TopoDS_Edge &) –
- T (TopoDSToStep_Tool &) –
- FP (Handle_Transfer_FinderProcess &) –
Return type: -
Error
()¶ Return type: TopoDSToStep_MakeEdgeError
-
Init
()¶ Parameters: - E (TopoDS_Edge &) –
- T (TopoDSToStep_Tool &) –
- FP (Handle_Transfer_FinderProcess &) –
Return type:
-
Value
()¶ Return type: Handle_StepShape_TopologicalRepresentationItem
-
thisown
¶ The membership flag
-
class
TopoDSToStep_MakeStepFace
(*args)¶ Bases:
OCC.TopoDSToStep.TopoDSToStep_Root
Return type: Parameters: - F (TopoDS_Face &) –
- T (TopoDSToStep_Tool &) –
- FP (Handle_Transfer_FinderProcess &) –
Return type: -
Error
()¶ Return type: TopoDSToStep_MakeFaceError
-
Init
()¶ Parameters: - F (TopoDS_Face &) –
- T (TopoDSToStep_Tool &) –
- FP (Handle_Transfer_FinderProcess &) –
Return type:
-
Value
()¶ Return type: Handle_StepShape_TopologicalRepresentationItem
-
thisown
¶ The membership flag
-
class
TopoDSToStep_MakeStepVertex
(*args)¶ Bases:
OCC.TopoDSToStep.TopoDSToStep_Root
Return type: Parameters: - V (TopoDS_Vertex &) –
- T (TopoDSToStep_Tool &) –
- FP (Handle_Transfer_FinderProcess &) –
Return type: -
Error
()¶ Return type: TopoDSToStep_MakeVertexError
-
Init
()¶ Parameters: - V (TopoDS_Vertex &) –
- T (TopoDSToStep_Tool &) –
- FP (Handle_Transfer_FinderProcess &) –
Return type:
-
Value
()¶ Return type: Handle_StepShape_TopologicalRepresentationItem
-
thisown
¶ The membership flag
-
class
TopoDSToStep_MakeStepWire
(*args)¶ Bases:
OCC.TopoDSToStep.TopoDSToStep_Root
Return type: Parameters: - W (TopoDS_Wire &) –
- T (TopoDSToStep_Tool &) –
- FP (Handle_Transfer_FinderProcess &) –
Return type: -
Error
()¶ Return type: TopoDSToStep_MakeWireError
-
Init
()¶ Parameters: - W (TopoDS_Wire &) –
- T (TopoDSToStep_Tool &) –
- FP (Handle_Transfer_FinderProcess &) –
Return type:
-
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
-
SetTolerance
()¶ TopoDSToStep_Root_SetTolerance(TopoDSToStep_Root self, Standard_Real value)
-
thisown
¶ The membership flag
-
-
class
TopoDSToStep_Tool
(*args)¶ Bases:
object
Return type: Parameters: - M (MoniTool_DataMapOfShapeTransient &) –
- FacetedContext (bool) –
Return type: -
Bind
()¶ Parameters: - S (TopoDS_Shape &) –
- T (Handle_StepShape_TopologicalRepresentationItem &) –
Return type:
-
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
-
Find
()¶ Parameters: S (TopoDS_Shape &) – Return type: Handle_StepShape_TopologicalRepresentationItem
-
Map
()¶ Return type: MoniTool_DataMapOfShapeTransient
-
PCurveMode
()¶ - Returns mode for writing pcurves (initialized by parameter write.surfacecurve.mode)
Return type: int
-
thisown
¶ The membership flag
-
class
TopoDSToStep_WireframeBuilder
(*args)¶ Bases:
OCC.TopoDSToStep.TopoDSToStep_Root
Return type: Parameters: - S (TopoDS_Shape &) –
- T (TopoDSToStep_Tool &) –
- FP (Handle_Transfer_FinderProcess &) –
Return type: -
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:
-
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:
-
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:
-
Init
()¶ Parameters: - S (TopoDS_Shape &) –
- T (TopoDSToStep_Tool &) –
- FP (Handle_Transfer_FinderProcess &) –
Return type:
-
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
-
static
-
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