0
$\begingroup$

I import a .STL Import[*.st,"VertexData"] file on mathematica and I remark that the number of vertices is increased comparing to the number given by Blender. However, the number of polygons is the same in both cases. here is an example of .stl file.

Blender:

Blender

Mathematica:

Mathematica

I am running mathematica 10.2 on Mac OS X.

enter image description here


The problem is do to Mathematica 10.2.0 on Mac OS X. I tried the same program on linux using Mathematica 10.0 and I get the right result. In addition I tried Mathematica 10.1.0.0 on Mac os x and it works correctly.

$\endgroup$

1 Answer 1

1
$\begingroup$
  1. Statistics from info panel of Blender: Verts: 14,444 Faces: 28,796

  2. Results from Mathematica: enter image description here

  3. As shown in the image below, the STL file has such a structure that a facet element brings with 3 vertexes. 28796 "facet"s and 86388 "vertex"s are counted in total. Two lines coloured in yellow shows there exists repetitive vertexes and it seems that Mathematica is able to merge them while importing. I guess the problem you got is caused by the computational precision error. Your system somehow failed to distinguish some repetitive vertexes.

enter image description here

$\endgroup$
2
  • $\begingroup$ I download the attached file and I executed the same function as in your answer and I get different results for the vertices. $\endgroup$ Dec 9, 2015 at 2:39
  • $\begingroup$ You are write. I think that there are a lot of vertex that repeated. So, I have used Union[] to get avoid the them and finally I get 14444 vertices $\endgroup$ Dec 9, 2015 at 13:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.