From: Adrian Bowyer (A.Bowyer@bath.ac.uk)
Date: Mon Dec 05 2005 - 01:49:54 EET
Quoting steve <firstname.lastname@example.org>:
> ChathamRes@aol.com wrote:
> > We have an application where increasing the number of triangles in an
> > STL file would be useful. Have you used commercially available software
> > to perform this type of function?
> Well, there are plenty of commercial 3D modelling tools with 'smooth'
> functions that would add more triangles - but they can't add
> information that wasn't already there. All they can do is to filter
> the information you've got - so they might round off corners that you
> intended to be sharp at the same time as they smooth off corners caused
> by not having enough triangles to start with.
If you wish to retain exactly the same geometric form, but to increase the
number of triangles by a factor of 4 (i.e. to double the linear resolution),
simply write a C++/Java/Python o.w.e. program that reads in an STL file and
decomposes each triangle into 4 by splitting the three edges in half and
joining those points to form an inverted triangle in the middle and three in
the corners, then write all 4 new triangles out to the new STL file.
That's the decomposition that was used by all those old 1980's programs that
generated fractal landscapes.
Of course you can run the program as many times as you want to refine the data
as much as you want (until you run out of double precision, but by then you'll
have filled your disc...).
This archive was generated by hypermail 2.1.7 : Mon Jan 02 2006 - 08:09:24 EET