POV-Ray : Newsgroups : povray.general : Impossible stl file conversion! : Re: Impossible stl file conversion! Server Time
15 Sep 2025 08:08:53 EDT (-0400)
  Re: Impossible stl file conversion!  
From: kurtz le pirate
Date: 11 Sep 2025 10:51:10
Message: <68c2e1de@news.povray.org>
On 10/09/2025 17:11, kurtz le pirate wrote:
> 
> The wiki page shows that the structure is very simple, and I think Perl* 
> is a very good candidate for this.
> 


Finally, I spent an hour and here is my first result ;)


I found this template on the web : 
<https://www.thingiverse.com/thing:7119375>. The downloaded STL file is 
in binary mode. I converted it to ASCII on this website : 
<https://3dcustomizer.net/tests/stl-bin-to-ascii.html>

Here is the first image to compare with the one on Thingiverse.


I also added an archive that contains :

* Stackable_crate_gridfinity-ascii.stl : the ascii stl file

* stl2pov.pl : the perl script

* Stackable_crate_gridfinity-ascii.inc : the mesh{} include file
   generated by the script

* test.pov : demo scene

* test.png : the image





Of course, there are quite a few things to add such as binary format, 
normals & mesh2{}, colors, etc.


-- 
kurtz le pirate
compagnie de la banquise


Post a reply to this message


Attachments:
Download 'test.png' (376 KB) Download 'stl2pov.tar.gz' (1239 KB)

Preview of image 'test.png'
test.png

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.