SALOME documentation central
Function Documentation
def geompy.Import |
( |
|
self, |
|
|
|
theFileName, |
|
|
|
theFormatName | |
|
) |
| | |
Import a shape from the BREP or IGES or STEP file (depends on given format) with given name.
- Parameters:
-
| theFileName | The file, containing the shape. |
| theFormatName | Specify format for the file reading. Available formats can be obtained with InsertOp.ImportTranslators() method. If format 'IGES_SCALE' is used instead 'IGES' length unit will be set to 'meter' and result model will be scaled. |
- Returns:
- New GEOM_Object, containing the imported shape.
Example
def geompy.ImportBREP |
( |
|
self, |
|
|
|
theFileName | |
|
) |
| | |
def geompy.ImportIGES |
( |
|
self, |
|
|
|
theFileName | |
|
) |
| | |
def geompy.GetIGESUnit |
( |
|
self, |
|
|
|
theFileName | |
|
) |
| | |
Return length unit from given IGES file.
Example
def geompy.ImportSTEP |
( |
|
self, |
|
|
|
theFileName | |
|
) |
| | |
def geompy.Export |
( |
|
self, |
|
|
|
theObject, |
|
|
|
theFileName, |
|
|
|
theFormatName | |
|
) |
| | |
Export the given shape into a file with given name.
- Parameters:
-
| theObject | Shape to be stored in the file. |
| theFileName | Name of the file to store the given shape in. |
| theFormatName | Specify format for the shape storage. Available formats can be obtained with InsertOp.ImportTranslators() method. |
Example
def geompy.ExportBREP |
( |
|
self, |
|
|
|
theObject, |
|
|
|
theFileName | |
|
) |
| | |
def geompy.ExportIGES |
( |
|
self, |
|
|
|
theObject, |
|
|
|
theFileName | |
|
) |
| | |
def geompy.ExportSTEP |
( |
|
self, |
|
|
|
theObject, |
|
|
|
theFileName | |
|
) |
| | |
Copyright © 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS