Version: 6.5.0
Home
 All Data Structures Namespaces Files Functions Variables Groups
Functions
Importing and exporting meshes
Creating meshes

Functions

def CreateMeshesFromUNV
 Creates a Mesh object importing data from the given UNV file.
def CreateMeshesFromMED
 Creates a Mesh object(s) importing data from the given MED file.
def CreateMeshesFromSAUV
 Creates a Mesh object(s) importing data from the given SAUV file.
def CreateMeshesFromSTL
 Creates a Mesh object importing data from the given STL file.
def CreateMeshesFromCGNS
 Creates Mesh objects importing data from the given CGNS file.
def ExportToMED
 Deprecated, used only for compatibility! Please, use ExportToMEDX() method instead.
def ExportMED
 Exports the mesh in a file in MED format and chooses the version of MED format allowing to overwrite the file if it exists or add the exported data to its contents.
def ExportSAUV
 Exports the mesh in a file in SAUV format.
def ExportDAT
 Exports the mesh in a file in DAT format.
def ExportUNV
 Exports the mesh in a file in UNV format.
def ExportSTL
 Export the mesh in a file in STL format.
def ExportCGNS
 Exports the mesh in a file in CGNS format.

Detailed Description

Function Documentation

def smesh.CreateMeshesFromUNV (   self,
  theFileName 
)

Creates a Mesh object importing data from the given UNV file.

Returns
an instance of Mesh class
def smesh.CreateMeshesFromMED (   self,
  theFileName 
)

Creates a Mesh object(s) importing data from the given MED file.

Returns
a list of Mesh class instances
def smesh.CreateMeshesFromSAUV (   self,
  theFileName 
)

Creates a Mesh object(s) importing data from the given SAUV file.

Returns
a list of Mesh class instances
def smesh.CreateMeshesFromSTL (   self,
  theFileName 
)

Creates a Mesh object importing data from the given STL file.

Returns
an instance of Mesh class
def smesh.CreateMeshesFromCGNS (   self,
  theFileName 
)

Creates Mesh objects importing data from the given CGNS file.

Returns
an instance of Mesh class

References smesh.Concatenate().

def ExportToMED (   self,
  f,
  version,
  opt = 0,
  overwrite = 1 
)

Deprecated, used only for compatibility! Please, use ExportToMEDX() method instead.

Exports the mesh in a file in MED format and chooses the version of MED format allowing to overwrite the file if it exists or add the exported data to its contents

Parameters
fthe file name
versionvalues are SMESH.MED_V2_1, SMESH.MED_V2_2
optboolean parameter for creating/not creating the groups Group_On_All_Nodes, Group_On_All_Faces, ...
overwriteboolean parameter for overwriting/not overwriting the file
def ExportMED (   self,
  f,
  auto_groups = 0,
  version = MED_V2_2,
  overwrite = 1,
  meshPart = None 
)

Exports the mesh in a file in MED format and chooses the version of MED format allowing to overwrite the file if it exists or add the exported data to its contents.

Parameters
fis the file name
auto_groupsboolean parameter for creating/not creating the groups Group_On_All_Nodes, Group_On_All_Faces, ... ; the typical use is auto_groups=false.
versionMED format version(MED_V2_1 or MED_V2_2)
overwriteboolean parameter for overwriting/not overwriting the file
meshParta part of mesh (group, sub-mesh) to export instead of the mesh

References Mesh.GetIDSource().

def ExportSAUV (   self,
  f,
  auto_groups = 0 
)

Exports the mesh in a file in SAUV format.

Parameters
fis the file name
auto_groupsboolean parameter for creating/not creating the groups Group_On_All_Nodes, Group_On_All_Faces, ... ; the typical use is auto_groups=false.
def ExportDAT (   self,
  f,
  meshPart = None 
)

Exports the mesh in a file in DAT format.

Parameters
fthe file name
meshParta part of mesh (group, sub-mesh) to export instead of the mesh

References Mesh.GetIDSource().

def ExportUNV (   self,
  f,
  meshPart = None 
)

Exports the mesh in a file in UNV format.

Parameters
fthe file name
meshParta part of mesh (group, sub-mesh) to export instead of the mesh

References Mesh.GetIDSource().

def ExportSTL (   self,
  f,
  ascii = 1,
  meshPart = None 
)

Export the mesh in a file in STL format.

Parameters
fthe file name
asciidefines the file encoding
meshParta part of mesh (group, sub-mesh) to export instead of the mesh

References Mesh.GetIDSource().

def ExportCGNS (   self,
  f,
  overwrite = 1,
  meshPart = None 
)

Exports the mesh in a file in CGNS format.

Parameters
fis the file name
overwriteboolean parameter for overwriting/not overwriting the file
meshParta part of mesh (group, sub-mesh) to export instead of the mesh

References Mesh.GetIDSource(), and Mesh.mesh.

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