Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

It is valid a zero size array for <element_ids>, <element_connectivities> and <radius+normals> to create only nodes.


Example: to create a mesh with 4 nodes and 2 triangles in the current layer in use.

Code Block
languagexml
package require objarray 
set nodes_coordinates [objarray new doublearray -values {-4.64 -1.03 0.0 -4.65 1.66 0.0 -8.24 -1.03 0.0 -8.24 1.66 0.0}]
set element_connectivities [objarray new intarray -values {1 3 0 3 2 0}]
GiD_MeshPre create "" Triangle 3 -zero_based_array {} $nodes_coordinates {} $element_connectivities

...