problem with extrude
I am trying to build a hexagonal shell. When I load the mesh into my program, I get an error and it tells me it doesn't correspond to 3d-Mesh.
I understand that the Extrude should form the geometry in 3 dimensions.
SetFactory("OpenCASCADE");
a=260;
a2 = 230;
Point(1) = {a,0,0};
Point(2) = {a/2,0.866*a,0};
Point(3) = {-a/2,0.866*a,0};
Point(4) = {-a,0,0};
Point(5) = {-a/2,-0.866*a,0};
Point(6) = {a/2,-0.866*a,0};
Point(8) = {a2,0,0};
Point(9) = {a2/2,0.866*a2,0};
Point(10) = {-a2/2,0.866*a2,0};
Point(11) = {-a2,0,0};
Point(12) = {-a2/2,-0.866*a2,0};
Point(13) = {a2/2,-0.866*a2,0};
Line(1) = {1,2};
Line(2) = {2,3};
Line(3) = {3,4};
Line(4) = {4,5};
Line(6) = {5,6};
Line(7) = {6,1};
Line(8) = {8,9};
Line(9) = {9,10};
Line(10) = {10,11};
Line(11) = {11,12};
Line(12) = {12,13};
Line(13) = {13,8};
Line Loop(14) = {1,2,3,4,6,7};
Line Loop(16) = {8,9,10,11,12,13};
Plane Surface(15) = {14};
Plane Surface(16) = {16};
Extrude {0, 0, 42} {
Surface{15};
Layers{42};
Recombine;
}
Extrude {0, 0, 42} {
Surface{16};
Layers{42};
Recombine;
}
BooleanDifference (3) = {Volume {2}; Delete; } {Volume {1}; Delete; };
Physical Volume(1) = {3};
Edited by Christophe Geuzaine