[Gmsh] Error with intersecting facets STL file in gmsh

Harsh Menon hmenon at zee.aero
Thu Jul 22 01:41:49 CEST 2010


I have a solidworks model which I exported as an STL file. Then I used the
following test.geo

Geometry.Tolerance = 1.e-12;
MeshSize = 0.1 ;

Merge "refined.stl" ;

Point(1) = {-1.0,-1.0,-1.2, MeshSize};
Point(2) = { 1.4,-1.0,-1.2, MeshSize};
Point(3) = { 1.4, 1.4,-1.2, MeshSize};
Point(4) = {-1.0, 1.4,-1.2, MeshSize};

Line(1) = {1 , 2};
Line(2) = {2 , 3};
Line(3) = {3 , 4};
Line(4) = {4 , 1};


Line Loop(1) = {1, 2, 3, 4};
Plane Surface(2) = {1};

Extrude{0, 0, 2.432}{ Surface{2}; }

Surface Loop(1) = {1};
Surface Loop(2) = { 2, 13, 17, 21, 25, 26};

Volume(2) = {2,1};

Physical Volume("Fluid") = {2};

Physical Surface("Man ") = {1};
Physical Surface("Floor") = {2};
Physical Surface("Roof") = {17};
Physical Surface("Inlet") = {13};
Physical Surface("Outlet") = {21};
Physical Surface("Walls") = {25, 26};

When i do

gmsh -3 test.geo

I get the following error

Error:  Invalid PLC.
  Hint:  Use -d switch to check it.
Error   : Self intersecting surface mesh, computing intersections (this
could take a while)
Constructing Delaunay tetrahedralization.
  Creating initial tetrahedralization.
  Incrementally inserting points.

I see that I have intersecting facets but is there any thing i can do to fix
it? (either a switch in gmsh or something i should do in solidworks)
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20100721/453ddc87/attachment.html>