2
$\begingroup$

I'm trying to conduct finite element analysis on imported .stl models from SketchUp. I can't seem to generate an ElementMesh. I think it may be something to do with intersecting boundaries, and this question asked here (3D internal subregion\ subregion) is perhaps relevant. Does anyone have any good methods of importing models into Mathematica, and then turning them into meshes?

https://www.dropbox.com/s/nd7e81g4qu9ddv0/plank1.stl?dl=0

<< NDSolve`FEM`
model = Import[plank1.stl"];  (*plank1.stl in linked dropbox file*)
repairModel = RepairMesh[model]; 
bmesh = ToBoundaryMesh[repairModel];

mesh = ToElementMesh[bmesh]
$\endgroup$
2
  • 3
    $\begingroup$ Have a look at the output of FindMeshDefects[model] perhaps that gives a clue what needs to be done to clean this up. $\endgroup$ – user21 Jan 10 '20 at 16:29
  • $\begingroup$ It appears that there are a number of 'overlapping faces'. Is there a way to mend this? $\endgroup$ – Hector Crean Jan 12 '20 at 17:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.