### 3D mesh with pyramid shape - extrude a triangle

26

views

0

My question is somehow related to this one https://www.allanswered.com/post/pojqg/trianglemesh/

I would like to construct a cube, draw a right triangle on one side of the cube (the triangle edges are shorter than the cube's edge) and extrude it to the other side (see attached sketch). Then the mesh would be the cube minus the pyramid.

Does anyone know how to do it with Fenics?

I've found this https://fenicsproject.org/olddocs/dolfin/1.4.0/python/demo/documented/mesh-generation/python/documentation.html but it doesn't give many information on how to create the .off file.

I would like to construct a cube, draw a right triangle on one side of the cube (the triangle edges are shorter than the cube's edge) and extrude it to the other side (see attached sketch). Then the mesh would be the cube minus the pyramid.

Does anyone know how to do it with Fenics?

I've found this https://fenicsproject.org/olddocs/dolfin/1.4.0/python/demo/documented/mesh-generation/python/documentation.html but it doesn't give many information on how to create the .off file.

Community: FEniCS Project

Please login to add an answer/comment or follow this question.

for such geometry i would recommend you to do it using

http://gmsh.info/

or

https://github.com/nschloe/meshio