Skip to content
Snippets Groups Projects
Commit 8c949071 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

No commit message

No commit message
parent f8f88bd4
No related branches found
No related tags found
No related merge requests found
SetFactory("OpenCASCADE");
Mesh.Algorithm = 6;
Mesh.CharacteristicLengthMin = 0.1;
Mesh.CharacteristicLengthMax = 0.1;
Point(1) = {0,0,0};
Point(2) = {1,0,0};
Point(3) = {1,1,0};
Point(4) = {0,1,0};
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(1) = {1};
Point(5) = {0.2,0.2,0};
Point(6) = {0.5,0.2,0};
Point(7) = {0.5,0.5,0};
Point(8) = {0.2,0.5,0};
Line(5) = {5,6};
Line(6) = {6,7};
Line(7) = {7,8};
Line(8) = {8,5};
Line Loop(2) = {5,6,7,8};
Plane Surface(2) = {2};
Disk(3) = {0.6, 0.6, 0, 0.5, 0.3};
BooleanFragments{ Surface{1}; Delete; }{ Surface{2:3}; Delete; }
rec = DefineNumber[1, Choices{0,1}, Name "recombine into prisms?"];
Extrude{0,0,0.3}{ Surface{1:5}; Layers{5}; Recombine rec; }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment