polynomials_on_simplices.visualization.plot_triangles module¶
Functionality for plotting triangles.
-
plot_triangle_mesh
(triangles, vertices, *args, **kwargs)[source]¶ Plot a triangle mesh.
Parameters: - triangles – The triangles in the mesh (num_triangles by 3 array of integers).
- vertices – The vertices in the mesh (num_vertices by [23] array of floats).
- args – Further arguments passed to the plot command.
- kwargs – Keyword arguments. ‘fig’: Figure to populate. A new figure will be generated if this argument is not given. Further keyword arguments are passed to the plot command.
-
plot_triangle_mesh_2d
(triangles, vertices, *args, **kwargs)[source]¶ Plot a triangle mesh.
Parameters: - triangles – The triangles in the mesh (num_triangles by 3 array of integers).
- vertices – The vertices in the mesh (num_vertices by 2 array of floats).
- args – Further arguments passed to the plot command.
- kwargs – Keyword arguments. ‘fig’: Figure to populate. A new figure will be generated if this argument is not given. Further keyword arguments are passed to the plot command.
-
plot_triangle_mesh_3d
(triangles, vertices, *args, **kwargs)[source]¶ Plot a triangle mesh.
Parameters: - triangles – The triangles in the mesh (num_triangles by 3 array of integers).
- vertices – The vertices in the mesh (num_vertices by 3 array of floats).
- args – Further arguments passed to the plot command.
- kwargs – Keyword arguments. ‘fig’: Figure to populate. A new figure will be generated if this argument is not given. Further keyword arguments are passed to the plot command.
-
plot_triangle_mesh_wireframe
(triangles, vertices, *args, **kwargs)[source]¶ Plot a triangle mesh as a wireframe.
Parameters: - triangles – The triangles in the mesh (num_triangles by 3 array of integers).
- vertices – The vertices in the mesh (num_vertices by [23] array of floats).
- args – Further arguments passed to the plot command.
- kwargs – Keyword arguments passed to the plot command.
-
plot_triangle_mesh_wireframe_2d
(triangles, vertices, *args, **kwargs)[source]¶ Plot a triangle mesh as a wireframe.
Parameters: - triangles – The triangles in the mesh (num_triangles by 3 array of integers).
- vertices – The vertices in the mesh (num_vertices by 2 array of floats).
- args – Further arguments passed to the plot command.
- kwargs – Keyword arguments. ‘fig’: Figure to populate. A new figure will be generated if this argument is not given. ‘color’: Color of the wireframe. Further keyword arguments are passed to the plot command.
-
plot_triangle_mesh_wireframe_3d
(triangles, vertices, *args, **kwargs)[source]¶ Plot a triangle mesh as a wireframe.
Parameters: - triangles – The triangles in the mesh (num_triangles by 3 array of integers).
- vertices – The vertices in the mesh (num_vertices by 3 array of floats).
- args – Further arguments passed to the plot command.
- kwargs – Keyword arguments. ‘fig’: Figure to populate. A new figure will be generated if this argument is not given. ‘color’: Color of the wireframe. Further keyword arguments are passed to the plot command.