This tools is meant to convert STL files to SWC files using Mean Curcature Skeletons as implemented in the CGAL library. At the moment though the tool generates only a list of edges to represent a skelton, SWC support has yet to be added.
CMake
CGAL
Eigen3
Boost
mkdir build
cd build
cmake ..
make
./stl2swc <stl-file> <output-file> [<num-subdiv-steps> [<quality-speed-tradeoff [<medially-centered-speed-tradeoff>]]]
With the few experiment done so far, these seem like a useful set of parameters for neuronal meshes:
./stl2swc <stl-file> output.edges 1 0.3 0.4
The defaults used without explicit parameters are provided by CGAL:
./stl2swc <stl-file> output.edges 0 0.1 0.2