===Saving Mesh Data to a File===
[[CubeCAD|CUBECAD]] generates a triangulated mesh of surface and [[Solid Objects|solid objects]] and a linearized or polygonal mesh of [[Curve Objects|curve objects]]. The triangular surface mesh of surface and [[Solid Objects|solid objects]] are equivalent to [[EM.Cube|EM.CUBE]]'s native polymesh objects while the polygonal mesh of [[Curve Objects|curve objects]] are equivalent to polyline objects. The mesh data can be saved into an ASCII data file with a '''.msh''' file extension. The top part of this file contains coordinates of all the nodes involved in the mesh. Then comes the definition of the elements of faces. Each line defines the number of nodes in each element and the index of the nodes in the order presented in the previous node definition section. Thus, triangular elements (faces) have three node indices while the linear elements (bars)have two node indices.
Polymesh and polyline objects are already discretized and are not meshed again when [[EM.Cube|EM.CUBE]] generates a mesh of the structure in the Project Workspace. As such, polymesh and polyline objects preserve their nodes as they are saved into a mesh file.
[[File:meshfile1.png]]