Skip to contents

Working with stl meshes

Reading meshes and working with centroids

Functions to import meshes and calculate centroids and sizes (areas)

read_stl()
Import STL mesh
centroid_location()
Calculate centroid location
centroid_size()
Calculate centroid size for an stl file
stl_area()
Calculate area of an stl mesh

PCSA and muscle force estimation

Functions for estimating PCSA from centroid data and muscle force from PCSA estimates

pcsa()
Estimate PCSA from from a pair of muscle attachment stl meshes.
muscle_force()
Estimate muscle force

Making ternary plots

Functions used to generate ternary plots

coords_to_ternary()
Process coordinates data.frame
interpolate_ternary()
Interpolate between two point in a coordinates object.
muscle_color_map()
Holliday Lab Muscle Color Map
muscle_fill_map()
Holliday Lab Muscle Color Map
means_by_muscle()
Means by Muscle

Working with Xfiber data

Functions to read and process data from Avizo Xfiber suitable for passing as the coords parameter to coords_to_ternary()

read_xfiber()
Import from Avizo xfiber Excel
read_xfiber_xml()
Import from Avizo xfiber XML
find_track_ends()
Reduce Xfiber tracks to vectors connecting the two endpoints

Generating Maya mel scripts

Functions for outputting mel scripts to create model + vector arrows in Maya.

make_mel()
Write mel file
xfiber_to_maya()
Generate Maya mel file from xfiber tracing
geom_shiftedtext()
geom for labeling geom_points

Utility functions

Functions that are not normally called directly, but which may be useful and are thus documented and exported.

xprod()
Cross-product of two 3d vectors
make_unit_vector()
Create a unit vector from a given vector
relative_proportion()
Calculate the relative proportion of the items of a given vector
write_arrows()
Write Maya arrows code