#
# Example of faces, loops and edges components.
# This example has no holes.
#

#
# Positions array.  These are a list of all the verticies of the object;
#   no particular order is required here.
#
#  SE DAN LAS COORDENADAS SIN REPETIRLAS
#
  object "position list" class array type float rank 1 shape 2 items 7
data follows
    0.0000  0.0000   # point number 0
    0.5000  0.0000   # point number 1
    0.5000  0.5000   # point number 2
    1.0000  0.5000   # point number 3
    0.5000  0.5000   # point number 4
    1.0000  0.0000   # point number 5
    1.0000  1.0000   # point number 6

#
#  Edges array.  This is a list of connected points, by point number.  All
#  the edges associated with a particular face need to be listed together.
#  If points 10, 3 and 7 make a triangle, the list is "10 3 7" and the 10
#  is not repeated. 
#  Note that below, for readability, the connected points for
#  each loop are shown together. However, line breaks are not
#  significant to the importer, and all of the following numbers
#  could have been on the same line, or one to a line, with the
#  same result.
#   SE DICE QUE COORDENADAS FORMAN CADA ELEMENTO
#      EL INDEX A LA DERECHA SE CUENTA DONDE COMIENZA CADA ELEMENTO 
#      COMENZANDO DESDE ZERO
#
  object "edge list" class array type int rank 0 items 12 data follows
  0   1    2          # edge point index 0
  3   4    1          # edge point index 3
  1   5    3          # edge point index 6
  4   3    6          # edge point index 9
attribute "ref" string "positions"

#
#  Loops array.  This is a list of connected edges, by edge number.  Each
#  number is the edge index of where the next loop starts.
object "loop list" class array type int rank 0 items 4 data follows
  0     # loop index 0
  3     #  1
  6     #  2
  9     #  3
attribute "ref" string "edges"

#
#  Faces array.  This is list of which loops make faces.  If there are
#   no holes in the faces, this is list of all loops.  If two or more
#   loops actually describe the outside edges and inside hole edges of
#   a face, then this list contains the starting loop numbers of the
#   list of loops making up a face.
#
object "face list" class array type int rank 0 items 4 data follows
 0
 1
 2
 3
attribute "ref" string "loops"

#
#  data array. Dependent on faces.
#
#---------- Aqui va la data que se quiere mostrar (Valores de presión Presión)
#---------- calculados en el centro del elemento.
#---------- debe haber una forma de mostrar los valores de los vértices
   # 0 2.5 1.2 0.4 
#-----------
 object "data" class array type float rank 0 items 4 data follows
  0 
  2.5 
  1.2 
  0.4
 attribute "dep" string "faces"
#----------
#
#  Field definition to put the arrays together.
#
object "map" class field
   component "positions"    "position list"
   component "edges"        "edge list"
   component "loops"        "loop list"
   component "faces"        "face list"
   component "data"         "data"
end
