Skip to main content

Python package for fast marching method on tetrahedral meshes.

Project description

Requirements

Use

All default parameters are listed in this file. A more detailled example is available here.

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for SofaFMM, version 0.2.2
Filename, size File type Python version Upload date Hashes
Filename, size SofaFMM-0.2.2-py3-none-any.whl (6.3 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size SofaFMM-0.2.2.tar.gz (3.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page