Version: 6.3.1
Functions

Importing and exporting meshes

Creating meshes
Collaboration diagram for Importing and exporting meshes:

Functions

def smeshDC::smeshDC.CreateMeshesFromUNV
 Creates a Mesh object importing data from the given UNV file.
def smeshDC::smeshDC.CreateMeshesFromMED
 Creates a Mesh object(s) importing data from the given MED file.
def smeshDC::smeshDC.CreateMeshesFromSTL
 Creates a Mesh object importing data from the given STL file.
def smeshDC::Mesh.ExportToMED
 Deprecated, used only for compatibility! Please, use ExportToMEDX() method instead.
def smeshDC::Mesh.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 smeshDC::Mesh.ExportDAT
 Exports the mesh in a file in DAT format.
def smeshDC::Mesh.ExportUNV
 Exports the mesh in a file in UNV format.
def smeshDC::Mesh.ExportSTL
 Export the mesh in a file in STL format.

Function Documentation

def smeshDC.smeshDC.CreateMeshesFromMED (   self,
  theFileName 
) [inherited]

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

Returns:
a list of Mesh class instances

Definition at line 672 of file smeshDC.py.

00673                                                :
00674         aSmeshMeshes, aStatus = SMESH._objref_SMESH_Gen.CreateMeshesFromMED(self,theFileName)
00675         aMeshes = []
00676         for iMesh in range(len(aSmeshMeshes)) :
00677             aMesh = Mesh(self, self.geompyD, aSmeshMeshes[iMesh])
00678             aMeshes.append(aMesh)
00679         return aMeshes, aStatus

def smeshDC.smeshDC.CreateMeshesFromSTL (   self,
  theFileName 
) [inherited]

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

Returns:
an instance of Mesh class

Definition at line 683 of file smeshDC.py.

00684                                                 :
00685         aSmeshMesh = SMESH._objref_SMESH_Gen.CreateMeshesFromSTL(self,theFileName)
00686         aMesh = Mesh(self, self.geompyD, aSmeshMesh)
00687         return aMesh

def smeshDC.smeshDC.CreateMeshesFromUNV (   self,
  theFileName 
) [inherited]

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

Returns:
an instance of Mesh class

Definition at line 664 of file smeshDC.py.

00665                                                :
00666         aSmeshMesh = SMESH._objref_SMESH_Gen.CreateMeshesFromUNV(self,theFileName)
00667         aMesh = Mesh(self, self.geompyD, aSmeshMesh)
00668         return aMesh

def smeshDC.Mesh.ExportDAT (   self,
  f 
) [inherited]

Exports the mesh in a file in DAT format.

Parameters:
fthe file name

Definition at line 1691 of file smeshDC.py.

01692                           :
01693         self.mesh.ExportDAT(f)

def smeshDC.Mesh.ExportMED (   self,
  f,
  auto_groups = 0,
  version = MED_V2_2,
  overwrite = 1 
) [inherited]

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

Definition at line 1685 of file smeshDC.py.

01686                                                                         :
01687         self.mesh.ExportToMEDX(f, auto_groups, version, overwrite)

def smeshDC.Mesh.ExportSTL (   self,
  f,
  ascii = 1 
) [inherited]

Export the mesh in a file in STL format.

Parameters:
fthe file name
asciidefines the file encoding

Definition at line 1704 of file smeshDC.py.

01705                                    :
01706         self.mesh.ExportSTL(f, ascii)
01707 

def smeshDC.Mesh.ExportToMED (   self,
  f,
  version,
  opt = 0,
  overwrite = 1 
) [inherited]

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

Definition at line 1673 of file smeshDC.py.

01674                                                          :
01675         self.mesh.ExportToMEDX(f, opt, version, overwrite)

def smeshDC.Mesh.ExportUNV (   self,
  f 
) [inherited]

Exports the mesh in a file in UNV format.

Parameters:
fthe file name

Definition at line 1697 of file smeshDC.py.

01698                           :
01699         self.mesh.ExportUNV(f)

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