Functions | |
def | CreateMeshesFromUNV |
Create a Mesh object importing data from the given UNV file. More... | |
def | CreateMeshesFromMED |
Create a Mesh object(s) importing data from the given MED file. More... | |
def | CreateMeshesFromSAUV |
Create a Mesh object(s) importing data from the given SAUV file. More... | |
def | CreateMeshesFromSTL |
Create a Mesh object importing data from the given STL file. More... | |
def | CreateMeshesFromCGNS |
Create Mesh objects importing data from the given CGNS file. More... | |
def | CreateMeshesFromGMF |
Create a Mesh object importing data from the given GMF file. More... | |
def | ExportMED |
Export the mesh in a file in MED format allowing to overwrite the file if it exists or add the exported data to its contents. More... | |
def | ExportSAUV |
Export the mesh in a file in SAUV format. More... | |
def | ExportDAT |
Export the mesh in a file in DAT format. More... | |
def | ExportUNV |
Export the mesh in a file in UNV format. More... | |
def | ExportSTL |
Export the mesh in a file in STL format. More... | |
def | ExportCGNS |
Export the mesh in a file in CGNS format. More... | |
def | ExportGMF |
Export the mesh in a file in GMF format. More... | |
def | ExportToMED |
Deprecated, used only for compatibility! Please, use ExportMED() method instead. More... | |
These are methods of class smeshBuilder
def CreateMeshesFromUNV | ( | self, | |
theFileName | |||
) |
Create a Mesh object importing data from the given UNV file.
References smeshBuilder.geompyD.
def CreateMeshesFromMED | ( | self, | |
theFileName | |||
) |
Create a Mesh object(s) importing data from the given MED file.
References smeshBuilder.geompyD.
def CreateMeshesFromSAUV | ( | self, | |
theFileName | |||
) |
Create a Mesh object(s) importing data from the given SAUV file.
References smeshBuilder.geompyD.
def CreateMeshesFromSTL | ( | self, | |
theFileName | |||
) |
Create a Mesh object importing data from the given STL file.
References smeshBuilder.geompyD.
def CreateMeshesFromCGNS | ( | self, | |
theFileName | |||
) |
Create Mesh objects importing data from the given CGNS file.
References smeshBuilder.geompyD.
def CreateMeshesFromGMF | ( | self, | |
theFileName | |||
) |
Create a Mesh object importing data from the given GMF file.
GMF files must have .mesh extension for the ASCII format and .meshb for the binary format.
References smeshBuilder.Concatenate(), and smeshBuilder.geompyD.
def ExportMED | ( | self, | |
f, | |||
auto_groups = 0 , |
|||
version = MED_V2_2 , |
|||
overwrite = 1 , |
|||
meshPart = None , |
|||
autoDimension = True , |
|||
fields = [] , |
|||
geomAssocFields = '' |
|||
) |
Export the mesh in a file in MED format allowing to overwrite the file if it exists or add the exported data to its contents.
f | is the file name |
auto_groups | boolean parameter for creating/not creating the groups Group_On_All_Nodes, Group_On_All_Faces, ... ; the typical use is auto_groups=False. |
version | MED format version (MED_V2_1 or MED_V2_2, the latter meaning any current version). The parameter is obsolete since MED_V2_1 is no longer supported. |
overwrite | boolean parameter for overwriting/not overwriting the file |
meshPart | a part of mesh (group, sub-mesh) to export instead of the mesh |
autoDimension | if True (default), a space dimension of a MED mesh can be either
|
fields | list of GEOM fields defined on the shape to mesh. |
geomAssocFields | each character of this string means a need to export a corresponding field; correspondence between fields and characters is following:
|
References Mesh.GetIDSource().
def ExportSAUV | ( | self, | |
f, | |||
auto_groups = 0 |
|||
) |
Export the mesh in a file in SAUV format.
f | is the file name |
auto_groups | boolean 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 |
|||
) |
Export the mesh in a file in DAT format.
f | the file name |
meshPart | a part of mesh (group, sub-mesh) to export instead of the mesh |
References Mesh.GetIDSource().
def ExportUNV | ( | self, | |
f, | |||
meshPart = None |
|||
) |
Export the mesh in a file in UNV format.
f | the file name |
meshPart | a 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.
f | the file name |
ascii | defines the file encoding |
meshPart | a part of mesh (group, sub-mesh) to export instead of the mesh |
References Mesh.GetIDSource().
def ExportCGNS | ( | self, | |
f, | |||
overwrite = 1 , |
|||
meshPart = None |
|||
) |
Export the mesh in a file in CGNS format.
f | is the file name |
overwrite | boolean parameter for overwriting/not overwriting the file |
meshPart | a part of mesh (group, sub-mesh) to export instead of the mesh |
References Mesh.GetIDSource(), and Mesh.mesh.
def ExportGMF | ( | self, | |
f, | |||
meshPart = None |
|||
) |
Export the mesh in a file in GMF format.
GMF files must have .mesh extension for the ASCII format and .meshb for the bynary format. Other extensions are not allowed.
f | is the file name |
meshPart | a part of mesh (group, sub-mesh) to export instead of the mesh |
References Mesh.GetIDSource(), and Mesh.mesh.
def ExportToMED | ( | self, | |
f, | |||
version = MED_V2_2 , |
|||
opt = 0 , |
|||
overwrite = 1 , |
|||
autoDimension = True |
|||
) |
Deprecated, used only for compatibility! Please, use ExportMED() method instead.
Export the mesh in a file in MED format allowing to overwrite the file if it exists or add the exported data to its contents
f | the file name |
version | MED format version (MED_V2_1 or MED_V2_2, the latter meaning any current version). The parameter is obsolete since MED_V2_1 is no longer supported. |
opt | boolean parameter for creating/not creating the groups Group_On_All_Nodes, Group_On_All_Faces, ... |
overwrite | boolean parameter for overwriting/not overwriting the file |
autoDimension | if True (default), a space dimension of a MED mesh can be either
|