cli¶
Command-line interface for VisFEM.
Usage
visfem # launch the web app (same as visfem serve)
visfem renderers # list the built-in renderers and what each is for
visfem schema # reference of the dataset JSON fields
visfem example
The data-authoring commands read and write the data directory: DATA_DIR or VISFEM_DATA_DIR, else the bundled data.
cmd_renderers
¶
Print the built-in renderers with a one-line description each; returns 0.
cmd_validate_data
¶
Validate every dataset JSON and check its mesh files exist; returns 1 on a problem, else 0.
cmd_new_dataset
¶
Scaffold datasets/
cmd_fetch_ircadb
¶
Download 3D-IRCADb-01 and lay it out as a VisFEM dataset; returns 1 on error, else 0.
parse_connectivity
¶
Map part code -> meshed surface filename from an Open Knee(s) Connectivity.xml xml_text.
openknee_specimen_descriptor
¶
Return the dataset JSON for one Generation 2 specimen.
openknee_gen1_descriptor
¶
Return the dataset JSON for the Generation 1 tibiofemoral FEBio model.
cmd_fetch_openknee
¶
Fetch Open Knee(s) datasets; returns 2 for an unknown specimen, 1 on error, else 0.
build_parser
¶
Return the visfem parser; each subparser sets func and the commands default lists every subcommand.