How to make 3D model data (*.TXT Format)

This is a simple format that is composed of normal vectors and vertices.
If you have created the 3D model data according to this formula, then "3D Superimpose" or "3D SuperimposeCamera" can read it.

sample data cube.txt

The format is very simple.
First, write the number of vertices.
Second, write the number of faces.
This is an important that a face is composed of 3 vertices.

From the third line, write the information of the face.
- normal vectors(x, y, z)
- vertex_1(x, y, z, r, g, b, a)
- vertex_2(x, y, z, r, g, b, a)
- vertex_3(x, y, z, r, g, b, a)

The number of these informations and the number of faces must be equal.

After you have created the data, please save it with the extension TXT.

CAUTION
When you read this text file using "3D Superimpose" or "3D SuperimposeCamera", it takes some time.
For example, when you read about 300,000 polygons using Asus Nexus7 (2013), it takes about 160 sec.