This example consists on a simple cylinder, like the one shown on the right.
It contains points, curves of type straight lines, circumference arcs and curved NURBS with circumference shape, and surfaces of the types planar, Coon and NURBS with cylindrical form, and there is a single volume.
Note: This model could be found at: Examples\Cylinder_ASCII.gid
This is the explanation of its content:
The GiD geometry ASCII file is wrote with rules of version 7.6, and without any problemtype (UNKNOWN)
The model has two layers, created with:
The layer number 1 is named 'Tops', is not frozen, visible, and with RGB color R=0, G=0, B=255 (blue)
The layer number 2 is named 'Lateral', is not frozen, visible, and with RGB color R=0, G=255, B=255 (cyan)
Last 0 denotes the end of layers block
There is no meshing information attached to entities.
Then four points (code=1) are defined:
the meaning of
1==type_point 1=point_id 1=label_on 2=label_on_selection_off 3=higherentities 0=num_conditions 0=id_material 2=layer 'Lateral' 0=has_mesh_data
the point 1 belong to 3 curves (1, 3 and 5) then higherentities must be 3
This define curves 1 and 2 that are straigth lines (type==2). In this model that close a volume all curves belong to two surfaces, then its higherentity counter is 2
The curve 1 starts in the point 1 and end in the point 2
Previous text define curves 3, 4 and 5 that are NURBS (type==11)
And curve 6 is a circumference arc (type==11)
is a 4x4 transformation matrix that moves the 2D arc to the final 3D location
Surface 1 is a NURBS surface (type==14), it has 4 boundary lines: 1, 4, 2, 3, with orientations same, same, diff, diff respectivelly
Its approximated center is (-2.67407 -2.47281 1.88473)
normal=(0.996741 -0.080672 0)
then are listed the control points, the knots u=(
and the weights=(
Surface 1 is a Coons surface (type==6), it has 4 boundary lines: 1, 5, 2, 6, with orientations diff, diff, same, same. Then is printed its approximated center and normal.
The shape of kind of surface is defined only by its boundary.
Surface 3 is like the 1 a NURBS surface (type==14), but in this case is trimming a planar squared shape.
Surface 4 is a planar surface (type==5), that is defined by a center an normal, and the trimming boundary lines.
This define the volume 1 (type==9) that is defined by 4 boundary surfaces: 1, 2, 4, 3 with orientations same, same, same, same.
and approximated center=(-1.72792 -2.54939 1.88473)
Last 0 is a NULL entity (type==0) that finish the definition of geometrical entities.