|
scimesh 0.3.2
Headless CPU-only 3D software renderer for scientific mesh visualization
|
#include <scimesh/transforms.h>#include <scimesh/math_utils.h>#include <glm/gtc/matrix_transform.hpp>
Go to the source code of this file.
Namespaces | |
| namespace | scimesh |
Functions | |
| void | scimesh::translate_mesh (Mesh &mesh, const Vec3 &translation) |
| Translate (move) a mesh by a displacement vector. | |
| void | scimesh::scale_mesh (Mesh &mesh, const Vec3 &scale) |
| Scale a mesh non-uniformly along each axis. | |
| void | scimesh::scale_mesh (Mesh &mesh, float uniform_scale) |
| Scale a mesh uniformly in all directions. | |
| void | scimesh::rotate_mesh (Mesh &mesh, float angle_radians, const Vec3 &axis) |
| Rotate a mesh around an arbitrary axis. | |
| void | scimesh::transform_mesh (Mesh &mesh, const Mat4 &matrix) |
| Apply an arbitrary 4×4 transformation matrix to a mesh. | |
| Mesh | scimesh::mesh_from_fs (const std::vector< float > &fs_vertices, const std::vector< uint32_t > &fs_faces, const std::vector< float > &per_vertex_values={}, const std::vector< uint8_t > &rgb_bytes={}, bool detect_transparency=false) |
| Convert a FreeSurfer-format mesh (flat vertex/face arrays) to a scimesh Mesh. | |