Geom2
Current Version
2
Subtype of
Serializable
Fields
In the table above, the entity types are defined as follows:
VertexData
EdgeData
Description
The Geom2 type represents a geometry object in 2D that is not an assembly and is not virtual.
Example
A straight line in 2D:
# Major & minor version
0 1
1 # number of tags
# Tags
3 ls1
1 # number of types
# Types
3 obj
 
# --------- Object 0 ----------
 
0 0 1
5 Geom2 # class
2 # version
1 # type
1 # voidsLabeled
1e-10 # gtol
0.0001 # resTol
 
2 # number of vertices
# Vertices
# X Y dom tol
0 0 -1 NAN
1 1.5 -1 NAN
 
1 # number of edges
# Edges
# vtx1 vtx2 s1 s2 up down curve tol
1 2 0 1 0 0 1 NAN
 
1 # number of curves
# Curves
 
# Curve 1
11 BezierCurve # class
1 # version
2 # sdim
0 # rational?
1 # degree
# homogeneous control points
0 0
1 1.5
# Attributes
0 # nof attributes