semvec/pypi-packages huggingface dataset:
SofaFMM 0.2.2
Python package for fast marching method on tetrahedral meshes.

# Requirements
- sofa-framework : [https://www.sofa-framework.org/](https://www.sofa-framework.org/)
- FMM plugin for sofa : [https://gitlab.inria.fr/gdesrues1/sofafmm](https://gitlab.inria.fr/gdesrues1/sofafmm)
<br/>See the sofa doc to build a plugin : [https://www.sofa-framework.org/community/doc/using-sofa/build-a-plugin/](https://www.sofa-framework.org/community/doc/using-sofa/build-a-plugin/)

# Use

All default parameters are listed in [this file](https://gitlab.inria.fr/gdesrues1/sofafmm-python/blob/master/SofaFMM/defaultValues.py).
A more detailled example is available [here](https://gitlab.inria.fr/gdesrues1/sofafmm-python/blob/master/test.py).


    from SofaFMM import FMM, MeshTools
    import os

    my_parameters = {
        "RUNSOFA_PATH" : "path_to_sofa_build/bin/runSofa",
        "MESH" : os.getcwd()+"/mesh/tore.vtk",
        "BORDER" : "4 14 24 34 44 54 64 74 84 94 104 114 124 134 144 154 164 174 184 194 229 252 255",
        "EXPORT_AT_EACH_STEP" : "1",
        "EXPORT_PATH" : os.getcwd()+"/TestOutput/file_.vtk",
        "IT_MAX" : "20"
    }

    fmm = FMM()
    fmm.setParams(my_parameters)
    fmm.run()

And using paraview :
![DistanceMap_Torus](/dMap.png)