OK, time for another teapot. This one is a combination of the two in this earlier post. The code which creates the geometry of the teapot is copied from the Rust example, and the code which does the rendering is copied from the WebGL example.
Connecting the two is surprisingly simple. You just mark the functions and types you want to
wasm_bindgen macro and then you can
import them in your JS code.