ProMesh User Manual  v4.3.19

Functions to read and write meshes from/to files. More...

Functions

bool LoadMesh (Mesh *mesh, const char *filename)
 Loads a Mesh from File. The format is automatically recognized by the filname's suffix. Supported formats are: (ugx, vtu (ascii), obj, stl (ascii and binary), lgm, ng, ele, msh, asc, net, art). More...
 
bool SaveMesh (Mesh *mesh, const char *filename)
 Saves a Mesh to File. The format is automatically recognized by the filname's suffix. Supported formats are: (ugx, vtu (ascii), obj, stl (ascii), ncdf, smesh, ele, tikz/tex, asc, net, art). More...
 
bool ExportToUG3 (Mesh *mesh, const char *filenamePrefix, const char *lgmName, const char *problemName)
 Writes a mesh to the UG3 legacy format (.lgm and .ng) More...
 

Detailed Description

Functions to read and write meshes from/to files.

Function Documentation

◆ ExportToUG3()

bool ExportToUG3 ( Mesh mesh,
const char filenamePrefix,
const char lgmName,
const char problemName 
)

Writes a mesh to the UG3 legacy format (.lgm and .ng)

◆ LoadMesh()

bool LoadMesh ( Mesh mesh,
const char filename 
)

Loads a Mesh from File. The format is automatically recognized by the filname's suffix. Supported formats are: (ugx, vtu (ascii), obj, stl (ascii and binary), lgm, ng, ele, msh, asc, net, art).

◆ SaveMesh()

bool SaveMesh ( Mesh mesh,
const char filename 
)

Saves a Mesh to File. The format is automatically recognized by the filname's suffix. Supported formats are: (ugx, vtu (ascii), obj, stl (ascii), ncdf, smesh, ele, tikz/tex, asc, net, art).