Example of the Serialization Format
To illustrate the use of the serialization format, the following example shows how to create a planar surface object with one face:
A Planar Surface Object With One Face
# Major & minor version
0 1
1 # number of tags
# Tags
3 fin
1 # number of types
# Types
3 obj
# --------- Object 0 ----------
0 0 1
5 Geom3 # class
3 # version
2 # type
1 # voidsLabeled
1e-10 # gtol
0.0001 # resTol
4 # number of vertices
# Vertices
# X Y Z dom tol
0 0 0 -1 NAN
0 1 0 -1 NAN
2 0 0 -1 NAN
2 1 0 -1 NAN
4 # number of parameter vertices
# Parameter vertices
# vtx s t fac surf tol
1 0.25 0.25 -1 1 NAN
2 0.25 0.375 -1 1 NAN
3 0.5 0.25 -1 1 NAN
4 0.5 0.375 -1 1 NAN
4 # number of edges
# Edges
# vtx1 vtx2 s1 s2 dom curve tol
2 1 1 0 -1 -4 NAN
1 3 1 0 -1 -1 NAN
4 2 1 0 -1 -3 NAN
3 4 1 0 -1 -2 NAN
4 # number of parameter edges
# Parameter edges
# edg v1 v2 s1 s2 up down pcurve surf tol
1 2 1 0 1 1 0 1 1 NAN
2 1 3 0 1 1 0 2 1 NAN
3 4 2 0 1 1 0 3 1 NAN
4 3 4 0 1 1 0 4 1 NAN
1 # number of faces
# Faces
# up down surf tol
0 0 1 NAN
4 # number of curves
# Curves
# Curve 1
11 BezierCurve # class
1 # version
3 # sdim
0 # rational?
1 # degree
# control points
2 0 0
0 0 0
# Curve 2
11 BezierCurve # class
1 # version
3 # sdim
0 # rational?
1 # degree
# control points
2 1 0
2 0 0
# Curve 3
11 BezierCurve # class
1 # version
3 # sdim
0 # rational?
1 # degree
# control points
0 1 0
2 1 0
# Curve 4
11 BezierCurve # class
1 # version
3 # sdim
0 # rational?
1 # degree
# control points
0 0 0
0 1 0
1 # number of surfaces
# Surfaces
# Surface 1
9 BezierTri # class
1 # version
# control points
-2 -2 0
6 -2 0
-2 6 0
4 # number of parameter curves
# Parameter curves
# Parameter curve 1
11 BezierCurve # class
1 # version
2 # sdim
0 # rational?
1 # degree
# control points
0.25 0.375
0.25 0.25
# Parameter curve 2
11 BezierCurve # class
1 # version
2 # sdim
0 # rational?
1 # degree
# control points
0.25 0.25
0.5 0.25
# Parameter curve 3
11 BezierCurve # class
1 # version
2 # sdim
0 # rational?
1 # degree
# control points
0.5 0.375
0.25 0.375
# Parameter curve 4
11 BezierCurve # class
1 # version
2 # sdim
0 # rational?
1 # degree
# control points
0.5 0.25
0.5 0.375
# Attributes
0 # nof attributes