MCPcopy Create free account
hub / github.com/FEniCS/dolfinx / vtk_pyramid

Function vtk_pyramid

cpp/dolfinx/io/cells.cpp:357–370  ·  view source on GitHub ↗

-----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

355}
356//-----------------------------------------------------------------------------
357std::vector<std::uint16_t> vtk_pyramid(int num_nodes)
358{
359 switch (num_nodes)
360 {
361 case 5:
362 return {0, 1, 3, 2, 4};
363 case 13:
364 return {0, 1, 3, 2, 4, 5, 8, 10, 6, 7, 9, 12, 11};
365 case 14:
366 return {0, 1, 3, 2, 4, 5, 8, 10, 6, 7, 9, 12, 11, 13};
367 default:
368 throw std::runtime_error("Unknown pyramid layout");
369 }
370}
371//-----------------------------------------------------------------------------
372std::vector<std::uint16_t> vtk_quadrilateral(int num_nodes)
373{

Callers 1

perm_vtkMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected