Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
RapidTools
23
Years of Service
User Offline
Joined: 12th Jun 2003
Location:
Posted: 20th Jun 2003 12:32
I'm trying to write a STL file loader but I think that I'm hitting the limit of polygons that can be added to a mesh as a limb. The STL file format is used within the Rapid Prototyping Industry and describes and object by a triangle mesh. The format for Binary STL files couldn't be easier.

80 byte Header
4 Byte Unsigned Long Integer Number of facets in file

4 Byte Floating Point for i normal
4 Byte Floating Point for j normal
4 Byte Floating Point for k normal

4 Byte Floating Point for x for vertex 1
4 Byte Floating Point for y for vertex 1
4 Byte Floating Point for z for vertex 1

4 Byte Floating Point for x for vertex 2
4 Byte Floating Point for y for vertex 2
4 Byte Floating Point for z for vertex 2

4 Byte Floating Point for x for vertex 3
4 Byte Floating Point for y for vertex 3
4 Byte Floating Point for z for vertex 3

2 Byte filler

The attached code (if I've correctly attached it) shows my loader if you want to have a go yourself then substitute the open to Read 1, "torus.stl" with any STL file you can find

The problem is that STL files can define 100's of thousands of triangles so I would like so simple way of making an object from loads of Triangles.
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 20th Jun 2003 12:51
There is currently a limit of 65536 vertices per object, but this should hopefully be lifted with patch 5.

In the meantime, create another object whenever you reach that limit and continue adding limbs to that.
Beta1
23
Years of Service
User Offline
Joined: 28th Dec 2002
Location:
Posted: 20th Jun 2003 15:13
They are lifting the vertex limit? Yeah.

Suddenly vast memblock matrixes are a possibility!!!

IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 20th Jun 2003 15:56
I've already got 'em

I've just got to make what I've got a little cleverer.

Login to post a reply

Server time is: 2026-07-11 14:54:40
Your offset time is: 2026-07-11 14:54:40