Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
gmsh
gmsh
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 111
    • Issues 111
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 5
    • Merge Requests 5
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • gmsh
  • gmshgmsh
  • Issues
  • #933

Closed
Open
Opened Jul 13, 2020 by Nicolas@Ormazabal

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 Sep 24, 2020 by Christophe Geuzaine
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: gmsh/gmsh#933