Hello Kris, as far as I can see here, your main misunderstanding is about how a line
starting with "1" works.
You use it as if it would transform all the previous file contents encountered.
This is what I read from your post.
However, this is not what such a line does.
A line of type 1 simply takes another file, applies a transformation matrix plus coloring to it
and puts it into the current file as if it was there in that form.
So you always need a filename there.
What you tried to do is, you created some file,
and then wanted to transform it.
This requires that you split up the two things into 2 files.
One file will contain your triangles,
and the other will transform and colorize it and use it.
I hope I correctly read between your lines, because I really have difficulties understanding your English, sorry.
starting with "1" works.
You use it as if it would transform all the previous file contents encountered.
This is what I read from your post.
However, this is not what such a line does.
A line of type 1 simply takes another file, applies a transformation matrix plus coloring to it
and puts it into the current file as if it was there in that form.
So you always need a filename there.
What you tried to do is, you created some file,
and then wanted to transform it.
This requires that you split up the two things into 2 files.
One file will contain your triangles,
and the other will transform and colorize it and use it.
I hope I correctly read between your lines, because I really have difficulties understanding your English, sorry.