Version: 6.3.1
Functions

Importing/exporting geometrical objects

All package methods, grouped by their purpose

Functions

def geompy.ImportFile
 Import a shape from the BREP or IGES or STEP file (depends on given format) with given name.
def geompy.Import
 Deprecated analog of ImportFile.
def geompy.ImportBREP
 Shortcut to ImportFile() for BREP format.
def geompy.ImportIGES
 Shortcut to ImportFile() for IGES format.
def geompy.GetIGESUnit
 Return length unit from given IGES file.
def geompy.ImportSTEP
 Shortcut to ImportFile() for STEP format.
def geompy.Export
 Export the given shape into a file with given name.
def geompy.ExportBREP
 Shortcut to Export() for BREP format.
def geompy.ExportIGES
 Shortcut to Export() for IGES format.
def geompy.ExportSTEP
 Shortcut to Export() for STEP format.

Function Documentation

def geompy.ImportFile (   self,
  theFileName,
  theFormatName 
)
Parameters:
theFileNameThe file, containing the shape.
theFormatNameSpecify 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.Import (   self,
  theFileName,
  theFormatName 
)
def geompy.ImportBREP (   self,
  theFileName 
)

Example

def geompy.ImportIGES (   self,
  theFileName 
)

Example

def geompy.GetIGESUnit (   self,
  theFileName 
)

Example

def geompy.ImportSTEP (   self,
  theFileName 
)

Example

def geompy.Export (   self,
  theObject,
  theFileName,
  theFormatName 
)
Parameters:
theObjectShape to be stored in the file.
theFileNameName of the file to store the given shape in.
theFormatNameSpecify format for the shape storage. Available formats can be obtained with InsertOp.ImportTranslators() method.

Example

def geompy.ExportBREP (   self,
  theObject,
  theFileName 
)

Example

def geompy.ExportIGES (   self,
  theObject,
  theFileName 
)

Example

def geompy.ExportSTEP (   self,
  theObject,
  theFileName 
)

Example

Copyright © 2007-2011 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