Anim8or Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

An update to Anim8or, v1.00b, is available with a few bug fixes. Get your copy HERE. See the "ReadMe" file for details.

Author Topic: stl ascii export issues?  (Read 396 times)

bamman62

  • Jr. Member
  • **
  • Posts: 82
    • View Profile
stl ascii export issues?
« on: April 13, 2019, 06:04:23 am »

I've recently found myself using anim8or's stl ascii export feature to make simple geometries that can be parsed with relative ease in my own code, but there's something odd about the files that animator generates. While they work great, I've noticed that it has 9 vertices per loop defining each triangle (with the last 6 being duplicates of the first 3). While it has no influence on the functionality (apart from an increase in file size), I was curious as to why this might be the case. Below is a snippet from a cube made in anim8or and exported as an ascii stl file.

solid object01
  facet normal 0 1 0
   outer loop
    vertex -27.401 20.1845 -20.3473
    vertex 12.968 20.1845 14.3787
    vertex 12.968 20.1845 -20.3473
    vertex -27.401 20.1845 -20.3473
    vertex 12.968 20.1845 14.3787
    vertex 12.968 20.1845 -20.3473
    vertex -27.401 20.1845 -20.3473
    vertex 12.968 20.1845 14.3787
    vertex 12.968 20.1845 -20.3473
   endloop
  endfacet
  facet normal 0 1 0
   outer loop
    vertex -27.401 20.1845 -20.3473
    vertex -27.401 20.1845 14.3787
    vertex 12.968 20.1845 14.3787
    vertex -27.401 20.1845 -20.3473
    vertex -27.401 20.1845 14.3787
    vertex 12.968 20.1845 14.3787
    vertex -27.401 20.1845 -20.3473
    vertex -27.401 20.1845 14.3787
    vertex 12.968 20.1845 14.3787
   endloop
  endfacet
« Last Edit: April 13, 2019, 06:11:21 am by bamman62 »
Logged

Steve

  • Administrator
  • Hero Member
  • *****
  • Posts: 1723
    • View Profile
Re: stl ascii export issues?
« Reply #1 on: April 13, 2019, 05:57:13 pm »

Yikes! I guess I never looked at the output close enough. I just printed some files on my printer and they worked. I'll fix this!

#101-029 - ASCII STL export outputs each face 3 times.
Logged

Steve

  • Administrator
  • Hero Member
  • *****
  • Posts: 1723
    • View Profile
Re: stl ascii export issues?
« Reply #2 on: May 30, 2019, 12:42:23 am »

Fixed for the next release.
Logged