Vector lists require the following parameters, typically formatted as follows:
NumVertices<nl> [VertexX<spc>VertexY<spc>VertexZ<spc>MoveDrawFlag<nl> [...]]
where NumVertices is an integer defining the number of vertices making up the vector list, VertexX is a double defining a local X co-ordinate for a vertex, VertexY is a double defining a local Y co-ordinate for a vertex, VertexZ is a double defining a local Z co-ordinate for a vertex, MoveDrawFlag is an integer indicating whether a straight line should be drawn from the previous vertex to the current vertex (1) or not (0), <spc> is the space character and <nl> is the newline sequence.
Each vector list, analogous to a Polyline in AutoCAD, is made up of a number of vertices linked by straight lines.
Each vertex is defined as a point made up of an X, Y and Z co-ordinate and a move-draw flag. The MoveDrawFlag of the first vertex must be 0 (move). The number of vertices defined must match the value of the NumVerticesparameter.
For example, the following defines the parameters for a vector list that appears as a square:
5 0.0 0.0 0.0 0 1.0 0.0 0.0 1 1.0 1.0 0.0 1 0.0 1.0 0.0 1 0.0 0.0 0.0 1
All vertex co-ordinates are relative to the vector list's local axes.
Comments
Post new comment