Version: 6.5.0
Home
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
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.

Detailed Description

Function Documentation

def geompy.ImportFile (   self,
  theFileName,
  theFormatName 
)

Import a shape from the BREP or IGES or STEP file (depends on given format) with given name.

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.GEOM_Object, containing the imported shape.

Example

References geompy.RaiseIfFailed().

def geompy.Import (   self,
  theFileName,
  theFormatName 
)

Deprecated analog of ImportFile()

References geompy.RaiseIfFailed().

def geompy.ImportBREP (   self,
  theFileName 
)

Shortcut to ImportFile() for BREP format.

Example

def geompy.ImportIGES (   self,
  theFileName 
)

Shortcut to ImportFile() for IGES format.

Example

def geompy.GetIGESUnit (   self,
  theFileName 
)

Return length unit from given IGES file.

Example

def geompy.ImportSTEP (   self,
  theFileName 
)

Shortcut to ImportFile() for STEP format.

Example

def geompy.Export (   self,
  theObject,
  theFileName,
  theFormatName 
)

Export the given shape into a file with given name.

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 
)

Shortcut to Export() for BREP format.

Example

def geompy.ExportIGES (   self,
  theObject,
  theFileName 
)

Shortcut to Export() for IGES format.

Example

def geompy.ExportSTEP (   self,
  theObject,
  theFileName 
)

Shortcut to Export() for STEP format.

Example

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