<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; }--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi,<br>
</p>
<p><br>
</p>
<p>I am trying to do Boolean subtraction on two surface meshes. My mesh files are in .stl format. In Gmsh, I tried to define each mesh as volume using Modules>Geometry>Elementary entities>Add>Volume. It created a .geo file containing my .stl file name as a
command and used that as the script file.<br>
</p>
<p><br>
</p>
<p>Then I merged both files and tried to do the Boolean subtraction. It is giving me the following error,<br>
</p>
<p><br>
</p>
<p><strong>Error: Unknown OpenCASCADE entity with dimension 3 with tag 1</strong><br>
</p>
<p><strong>Error: '', line 3: Could not apply boolean operator</strong><br>
</p>
<p><br>
</p>
<p>My script looks like this,<br>
</p>
<p><br>
</p>
<div>Merge "left_ivc_vein.stl";</div>
<div>Surface Loop(1) = {1};</div>
<div>//+</div>
<div>Volume(1) = {1};</div>
<div>//+</div>
<div>Merge "left_ivc_filter.stl";</div>
<div>Surface Loop(2) = {2};</div>
<div>//+</div>
<div>Volume(2) = {2};</div>
<div>//+</div>
<div>SetFactory("OpenCASCADE");</div>
<div>BooleanDifference{ Volume{1}; }{ Volume{2}; Delete; }<br>
</div>
<div><br>
</div>
<div>I am new to Gmsh and I am not sure what I am doing wrong here. Any help is greatly appreciated.<br>
</div>
<div><br>
</div>
<div>Thanks,<br>
</div>
<div>Fariba<br>
</div>
<p><br>
</p>
</body>
</html>