1 /* This example creates a group of square geometries, each with a
2 * different fill color */
4 #pragma warning (disable: 4996) /* Windows strcpy warning off */
7 /* DOCSTART:tecgeo.txt*/
14 INTEGER4 VIsDouble
= 0;
15 INTEGER4 FileType
= 0;
16 INTEGER4 I
= 0; /* use to check return values */
19 /* Open the file and write the tecplot datafile
22 I
= TECINI112((char*)"Square Geometries",
30 double ZPos
= 0.0; /* N/A for squares */
34 INTEGER4 PosCoordMode
= 0; /* use grid coordinates */
36 /* opt not to attach the text to a given zone. When text is
37 * attached to a given zone, it is displayed only when the zone
40 INTEGER4 AttachToZone
= 0;
43 /* Set the Geometry Style Values */
44 INTEGER4 Color
= 0; /* set the outline color to
47 INTEGER4 IsFilled
= 1;
48 INTEGER4 GeomType
= 2; /* set the geometry type to
51 INTEGER4 LinePattern
= 5; /* set the line pattern to
54 double PatternLength
= .1;
55 double LineThick
= .2;
57 /* N/A for square geometries */
58 INTEGER4 NumPts
= 100;
59 INTEGER4 ArrowStyle
= 1;
60 INTEGER4 ArrowAttach
= 0;
62 double ArrowAngle
= 30;
63 INTEGER4 NumSegments
= 15;
64 INTEGER4 NumSegPts
= 25;
67 INTEGER4 Scope
= 1; /* set the text to "local", i.e.
68 * available in the current frame
71 INTEGER4 Clipping
= 1;
73 /* Specify the length of a side of the square. The units used
74 * are those defined with PosCoordMode.
76 float XGeomData
= 2.5;
78 float YGeomData
= 0; /* N/A for square geometries */
79 float ZGeomData
= 0; /* N/A for square geometries */
81 char * MFC
= new char[128];
82 strcpy(MFC
, "SQUARE");
84 for (INTEGER4 ii
= 0; ii
<= 7; ii
++)
86 INTEGER4 FillColor
= ii
;