Anim8or Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

Ian Ross has just released a book on Anim8or. It's perect for a beginner and a good reference for experienced users. It contains detailed chapters on every aspect, with many examples. Get your own copy here: "Anim8or Tutorial Book"

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

bamman62

  • Jr. Member
  • **
  • Posts: 82
    • View Profile
stl ascii export issues?
« on: April 13, 2019, 02: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, 02:11:21 am by bamman62 »
Logged

Steve

  • Administrator
  • Hero Member
  • *****
  • Posts: 2124
    • View Profile
Re: stl ascii export issues?
« Reply #1 on: April 13, 2019, 01: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: 2124
    • View Profile
Re: stl ascii export issues?
« Reply #2 on: May 29, 2019, 08:42:23 pm »

Fixed for the next release.
Logged