polynomials_on_simplices.geometry.mesh.basic_meshes.tet_meshes module¶
Geometries made up of tetrahedrons (polyhedron with four vertices).
-
general_tetrahedron_vertices
(tet_vertices, edge_resolution)[source]¶ Create the vertices of the a tetrahedron defined by its four vertices, subdivided into a number of smaller tetrahedrons.
Parameters: - tet_vertices – The four vertices of the tetrahedron.
- edge_resolution – Number of vertices along each edge of the tetrahedron.
Returns: n by 3 list of vertices.
-
rectangular_box_triangulation
(width_resolution, height_resolution, depth_resolution)[source]¶ Create a triangulation of a rectangular box (subdivision of the geometry into a set of tetrahedrons).
Parameters: - width_resolution – Number of vertices along the width of the rectangular box.
- height_resolution – Number of vertices along the height of the rectangular box.
- depth_resolution – Number of vertices along the depth of the rectangular box.
Returns: n by 4 list of tetrahedrons.
-
tetrahedron_triangulation
(edge_resolution)[source]¶ Create a triangulation of a tetrahedron (subdivision of the geometry into a set of tetrahedrons).
Parameters: edge_resolution – Number of vertices along each edge of the tetrahedron. Returns: n by 4 list of tetrahedrons.
-
tetrahedron_vertices
(edge_resolution)[source]¶ Create the vertices of the unit tetrahedron subdivided into a number of smaller tetrahedrons.
Parameters: edge_resolution – Number of vertices along each edge of the tetrahedron. Returns: n by 3 list of vertices.
-
unit_cube_vertices
(width_resolution, height_resolution, depth_resolution)[source]¶ Create the vertices of the unit cube.
Parameters: - width_resolution – Number of vertices along the width of the unit cube.
- height_resolution – Number of vertices along the height of the unit cube.
- depth_resolution – Number of vertices along the depth of the unit cube.
Returns: n by 3 list of vertices.