OCC.Core.IGESCAFControl module¶
IGESCAFControl module, see official documentation at https://www.opencascade.com/doc/occt-7.4.0/refman/html/package_igescafcontrol.html
-
class
IGESCAFControl_Reader
(*args)¶ Bases:
OCC.Core.IGESControl.IGESControl_Reader
- Creates a reader with an empty IGES model and sets ColorMode, LayerMode and NameMode to Standard_True.
- rtype
None* Creates a reader tool and attaches it to an already existing Session Clears the session if it was not yet set for IGES
- param theWS
- type theWS
XSControl_WorkSession
- param FromScratch
default value is Standard_True
- type FromScratch
bool
- rtype
None
-
Perform
()¶ - Parameters
theFileName –
- type theFileName
TCollection_AsciiString
- param theDoc
- type theDoc
TDocStd_Document
- rtype
bool* Translate IGES file given by filename into the document Return True if succeeded, and False in case of fail
- param theFileName
- type theFileName
char *
- param theDoc
- type theDoc
TDocStd_Document
- rtype
bool
-
SetColorMode
()¶ - Set ColorMode for indicate read Colors or not.
- param theMode
- type theMode
bool
- rtype
None
-
SetLayerMode
()¶ - Set LayerMode for indicate read Layers or not.
- param theMode
- type theMode
bool
- rtype
None
-
SetNameMode
()¶ - Set NameMode for indicate read Name or not.
- param theMode
- type theMode
bool
- rtype
None
-
Transfer
()¶ - Translates currently loaded IGES file into the document Returns True if succeeded, and False in case of fail
- param theDoc
- type theDoc
TDocStd_Document
- rtype
bool
-
property
thisown
¶ The membership flag
-
class
IGESCAFControl_Writer
(*args)¶ Bases:
OCC.Core.IGESControl.IGESControl_Writer
- Creates a writer with an empty IGES model and sets ColorMode, LayerMode and NameMode to Standard_True.
- rtype
None* Creates a reader tool and attaches it to an already existing Session Clears the session if it was not yet set for IGES
- param WS
- type WS
XSControl_WorkSession
- param scratch
default value is Standard_True
- type scratch
bool
- rtype
None
-
Perform
()¶ - Parameters
doc –
- type doc
TDocStd_Document
- param filename
- type filename
TCollection_AsciiString
- rtype
bool* Transfers a document and writes it to a IGES file Returns True if translation is OK
- param doc
- type doc
TDocStd_Document
- param filename
- type filename
char *
- rtype
bool
-
SetColorMode
()¶ - Set ColorMode for indicate write Colors or not.
- param colormode
- type colormode
bool
- rtype
None
-
SetLayerMode
()¶ - Set LayerMode for indicate write Layers or not.
- param layermode
- type layermode
bool
- rtype
None
-
SetNameMode
()¶ - Set NameMode for indicate write Name or not.
- param namemode
- type namemode
bool
- rtype
None
-
Transfer
()¶ - Transfers a document to a IGES model Returns True if translation is OK
- param doc
- type doc
TDocStd_Document
- rtype
bool* Transfers labels to a IGES model Returns True if translation is OK
- param labels
- type labels
TDF_LabelSequence
- rtype
bool* Transfers label to a IGES model Returns True if translation is OK
- param label
- type label
TDF_Label
- rtype
bool
-
property
thisown
¶ The membership flag
-
class
SwigPyIterator
(*args, **kwargs)¶ Bases:
object
-
advance
()¶
-
copy
()¶
-
decr
()¶
-
distance
()¶
-
equal
()¶
-
incr
()¶
-
next
()¶
-
previous
()¶
-
property
thisown
¶ The membership flag
-
value
()¶
-
-
class
igescafcontrol
¶ Bases:
object
-
static
DecodeColor
()¶ - Provides a tool for writing IGES file Converts IGES color index to CASCADE color
- param col
- type col
int
- rtype
Quantity_Color
-
static
EncodeColor
()¶ - Tries to Convert CASCADE color to IGES color index If no corresponding color defined in IGES, returns 0
- param col
- type col
Quantity_Color
- rtype
int
-
property
thisown
¶ The membership flag
-
static