A simple user interface with which one can slice any mesh (with single or multiple components) in arbitarary directions and get either a rasterized image of the resultant contour or a mesh file (PLY) containing the vertices and edges of the contour.
The below instructions will help you install the mesh slicer on your local linux machine and give details on the user interface.
On Ubuntu/Debian, make sure you have installed the following packages
sudo apt-get install cmake xorg-dev libglu1-mesa-dev python-dev libglew-dev
Also install libigl and make sure its in your path. Its a header only library used to import/export mesh files
Clone the repository and all the dependencies
git clone --recursive-submodules https://github.com/nitinagarwal/mesh_slicer.git
mkdir build
cd build
cmake ..
make
After successful installation, you can import any meshfile with OFF format. For example:
./mesh_slicer ../mouseBrain.off ./output_directory
where:
To know more about mesh slicer press H
inside the UI.
If you use the code/data, please cite the following paper:
@article{agarwal2017mouse,
author = {Nitin Agarwal, Xiangmin Xu, Gopi Meenakshisundaram},
title = {Geometry Processing of Conventionally Produced Mouse Brain Slice Images},
journal = {Journal of Neuroscience Methods},
year = {2018}
}
Feel free to use the code for your own research or project. However keep in mind that this is a research code, thus it is NOT clean and might have unncessary variables and wierd inter-dependencies.
Mesh Slicer was created by Nitin Agarwal to help neuroscience researchers to generate 2D atlas images by slicing a Virtual 3D Mouse Brain Atlas Model in any arbitarary direction.