Can ferreus_rmt be integrated through Typst WASM protocol to provide an iso-surface pacakge?

I’ve been following the Scientific Computing in Rust newsletter, and a recent package that got released is ferreus_rmt, RMT standing for Regularized Marching Tetrahedron (see the original article). I am interested in this package since so far, some of the 3D plotting capabilities of Typst are lacking (though getting a lot better). In particular, for plotting 3D functions, like the norm of complex functions (e.g. my post on a complex analysis plot), the current available packages use really basic meshes that don’t look good with things like singularities or rapid oscillations. Marching cubes or RMT provide better meshes, especially if one wants to plot things like level surfaces, where each level is assigned a specific color.

Thus, I am curious on if ferreus_rmt can be integrated through Typst WASM protocol to provide an iso-surface pacakge. I don’t program in Rust, and don’t understand the limitations of the minimal protocol to know if ferreus_rmt does anything incompatible with the protocol. Thanks for any info that can be provided on the potential or lack thereof of providing an iso-surface package through this crate.

1 Like