scimesh 0.3.2
Headless CPU-only 3D software renderer for scientific mesh visualization
Loading...
Searching...
No Matches
fs_mesh_converter.h File Reference

Convert FreeSurfer meshes (libfs) to scimesh Mesh objects. More...

#include <scimesh/mesh.h>
#include "libfs.h"
#include <vector>
#include <cmath>
Include dependency graph for fs_mesh_converter.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  scimesh
 

Functions

Mesh scimesh::convert_fs_mesh (const fs::Mesh &fs_mesh)
 Convert a FreeSurfer mesh to a scimesh Mesh (no colors).
 
Mesh scimesh::convert_fs_mesh (const fs::Mesh &fs_mesh, const Color &solid_color)
 Convert a FreeSurfer mesh to a scimesh Mesh with a solid color.
 
Mesh scimesh::convert_fs_mesh (const fs::Mesh &fs_mesh, const std::vector< uint8_t > &rgb_colors)
 Convert a FreeSurfer mesh with per-vertex RGB coloring.
 
Mesh scimesh::convert_fs_mesh (const fs::Mesh &fs_mesh, const std::vector< float > &morph_data, const std::vector< uint8_t > &rgb_colors)
 Convert a FreeSurfer mesh with per-vertex morphological data and RGB coloring.
 

Detailed Description

Convert FreeSurfer meshes (libfs) to scimesh Mesh objects.

FreeSurfer is a widely used neuroimaging software suite. Its mesh format (fs::Mesh) stores brain surface data with optional per-vertex morphological measurements and RGB coloring. These converters bridge between the FreeSurfer C++ API (libfs) and scimesh's rendering pipeline.

Definition in file fs_mesh_converter.h.