1
$\begingroup$

I want to export a 3D graphic object plot that I can rotate using the mouse or the trackpad, and send it via email to my collaborators, in such a way that they con rotate it too as they prefer. This would be much better than sending a static image or a video/.gif created by myself, because the collaborators (who do not use Mathematica) could explore the graphic details of the 3D object as they want.

Whenever I click on "export model" below the 3D image and choose one of the possible format, I receive a message like the following one:

Export[$Failed, %19, "X3D"]

Export::chtype: First argument $Failed is not a valid file specification.

$Failed

$\endgroup$
5
  • 1
    $\begingroup$ Maybe other 3D format such stl, obj,jvx $\endgroup$ – cvgmt Jan 2 at 14:10
  • 1
    $\begingroup$ There is online version of Mathematica. You can share the link of your code with your collaborators. open.wolframcloud.com/env/wpl/… $\endgroup$ – OkkesDulgerci Jan 2 at 14:10
  • $\begingroup$ @OkkesDulgerci Thank you, I will try. $\endgroup$ – Penelope Benenati Jan 2 at 14:35
  • $\begingroup$ @cvgmt thank you, I will try all the formats. $\endgroup$ – Penelope Benenati Jan 2 at 14:35
  • 1
    $\begingroup$ Actually the error message indicates that the filename is the problem, not the 3d-object or the file-format. The first argument to Export should be a valid file-name, but you provide $Failed. I think you will need to fix that first. Unfortunately we can't help you with that unless you provide the corresponding code... $\endgroup$ – Albert Retey Jan 3 at 15:19
6
$\begingroup$

There are several ways to do this. (BTW you should share minimal complete code of your example for other's to be able to help you efficiently).

1. Publish in Wolfram Cloud

Method bottomline: very simple and fast, does not need any software, works in a web browser even on mobile, but requires internet

Interactivity you have in Wolfram notebooks, from 3D graphics to Manipulate interfaces, etc. can be shared with other via publishing in Wolfram Cloud. Here is a simple example that you can check at https://wolfr.am/Sig1yEVu In this way not only your colleagues can get to rotate the cow, but also it is possible to add interactive interfaces.

CloudPublish[Manipulate[
Row[{PolyhedronData[g],ExampleData[{"Geometry3D","Cow"}]}],
{g,PolyhedronData[All]}],"TEMP"]

enter image description here

You can also publish the whole notebook. Ultimately you can take advantage of Wolfram Notebook Embedder and use it on personal websites (like for instance Wolfram Community is already doing, see many posts in http://wolfr.am/StaffPicks ). Make sure you understand Wolfram Cloud Credits system. Also check PermissionsGroup and CloudDeploy for flexible options on sharing permissions and access.

2. Free Wolfram Player

Method bottomline: high level of interactivity, iOS compatible, no need for internet, but requires FREE software installation.

If your colleagues are OK to install FREE Wolfram Player, which is very simple too, then your problem is solved by simply sending them the notebook. They will not be able to evaluate the code, but all interactivity will be available to them. The notebook will even open and work on a mobile iOS device, which I use a lot btw when for example someone sends me an email with a notebook and I am traveling.

3. Export 3D object to external service or format

Study docs around function Printout3D and related functions HERE. It can help you to use external service or file format (like .STL) to share 3D-interactive objects, for example:

Printout3D[ExampleData[{"Geometry3D","Beethoven"}],"IMaterialise"]

which you can check out here: https://bit.ly/388bpIs

enter image description here

$\endgroup$
3
  • 1
    $\begingroup$ Thank you a lot! Such a great and complete answer!! By the way, I would like to point out that I did not put any code in this question because I collaborate with a hedge fund, which prevents me completely from public anything "too specific." This also means for me to consider that I should avoid any other person access my code, i.e., there is also a very important privacy issue. $\endgroup$ – Penelope Benenati Jan 4 at 15:33
  • 2
    $\begingroup$ @PenelopeBenenati Thank you :-) I am very glad it helped. Also check PermissionsGroup and CloudDeploy for flexible options on sharing permissions and access via Cloud. Also if you do not want to expose some code, you can try to make up some toy fake example that reproduces the issue, that's usually what I do. Good luck and happy new year :-) $\endgroup$ – Vitaliy Kaurov Jan 4 at 16:05
  • 1
    $\begingroup$ Thank you for all your suggestions @VitaliyKaurov ! Happy New Year to you too! :-) $\endgroup$ – Penelope Benenati Jan 4 at 20:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.