ChristopherChudzicki / math3d-react

A user-friendly 3d graphing calculator for the web. Create, share, and animate 3d mathematical scenes.
https://www.math3d.org
Mozilla Public License 2.0
244 stars 34 forks source link

Embed code for Math3d objects #348

Open lunarbrogue opened 2 years ago

lunarbrogue commented 2 years ago

I'm creating a Numbas assessment item involving use of a triple integral. Math3d is the simplest, fastest and most elegant tool I have yet found for visualising 3d mathematical phenomena (in my case, a tetrahedron and various other features related to the integral).

The only way I have been able to include a Math3d object in the question is as an iframe. But this has certain defaults that are undesirable - eg, left-hand sidebar accessible and open, topbar viewable.

It would be great if it were possible to embed a Math3d object (with suitable attribution) in such a way that only the graphic is shown or, more flexibly, there are options with the embed code widget that enable user configuration.

Thanks for building and offering to the world this excellent resource.

siriwarwick commented 1 year ago

Hi. This is a long overdue reply as I've just been sent this thread by a colleague. I use Math3d as well - I think it's wonderful. I have been using iframe to cut away everything but the graphics. For example, try embedding this.

Another way is to use Plotly in Javascript.

lunarbrogue commented 1 year ago

Thanks siriwarwick. That worked.