Question about STL file

5 vues (au cours des 30 derniers jours)
Ano
Ano le 4 Déc 2018
Commenté : Cris LaPierre le 18 Oct 2019
Hello!
I have an STL file which contains the facets and vertices. My concern is about the way the facets are saved because I have noticed that the facets don't seem to have any common nodes with each other which is not obvious for me, so it would be very much appreciated if anyone can tell if this is normal or I am having some problem in my file!
Note: I have attached a screenshot of the STL file
Thank you and best regards!facets_stl.png
  2 commentaires
KSSV
KSSV le 4 Déc 2018
Modifié(e) : KSSV le 4 Déc 2018
Attach your file.....the faces/ triangles should be sharing nodes.
Ano
Ano le 4 Déc 2018
Thank you for you reply.
yes I agree that they should by they are not sharing nodes and the model seems to be correct!
Any ideas?!
Note: Please find attached the STL file and the facets and the nodes .
Thank you and best regards!

Connectez-vous pour commenter.

Réponse acceptée

Cris LaPierre
Cris LaPierre le 5 Déc 2018
Modifié(e) : Cris LaPierre le 5 Déc 2018
How are you reading the file into MATLAB? If I follow the example on the stlread documentation, I can import and plot the mesh.
data = stlread('femur.stl');
trimesh(data,'FaceColor','none','EdgeColor','k')
The interesting thing is the numbers from the various files are different.
  • stlread imports 33332x3 points and 66670x3 ConnectivityList
  • Your screenshot shows the values similar to what I see in ConnectivityList, but 178726x3 of them.
  • fv contains 66674x3 faces and 200022x3 vertices. How were faces and vertices created?
  9 commentaires
Poornima Jayamani
Poornima Jayamani le 15 Oct 2019
Hi, Cris your suggestions worked well in my case. i am trying to calculate the volume of a triangular meshed left atrium using divergence theorem. However, when i try to iterate through 1 to number of triangles , the loop picking the same point as a first and third point after 16th iteration . i am not sure what could be wrong with my code.
Cris LaPierre
Cris LaPierre le 18 Oct 2019
Hard to say without seeing your file, but it sounds like you might need to clean up your stl file first. How was it generated?
Consider checking to see if the file is 3D printable. Also consider running it through an stl repair routine (many available online) just in case.

Connectez-vous pour commenter.

Plus de réponses (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by