I'm new to Mathematica as this is the first class I've had to used it in my undergrad time as an aerospace engineer. Anyway, I have run into a problem that I can't figure out. I have created .STL's of a wing I have created in Solidworks. I can get them into Mathematica simply with the Import function but the model has 0 volume, as I understand .STL's are just shells. I need to convert this shell into a solid. I'm essentially looking for the opposite of ShellRegion. Additionally, I want to take a high number of cross section cuts and calculate the moment of inertia about the axis perpendicular to the load and parallel to the plane I'm looking at. And area as well. I don't really understand meshes, so that could be an issue. Any help would be appreciated. ScreenShot
It's always good to show what you have done so far because otherwise people here need to guess....
So I am guessing that you did something along the lines of:
m1 = Import["ExampleData/spikey.stl"];
Note that the region dimensions is 2.
m1 // RegionDimension 2
This means what you imported represents the surface of the object. Just the surface. And that does not have a volume:
If you import it as a
BoundaryMeshRegion that represents the region encapsulated by the surface:
m2 = Import["ExampleData/spikey.stl", "BoundaryMeshRegion"]; m2 // RegionDimension 3
Which the also has a volume:
For your mesh
FindMeshDefects[mr] finds overlapping faces which
RepairMesh can not fix. You'd need to fix those in the software that generated the STL.