0
$\begingroup$

Suppose I have two (or multiple) Graphics3D objects that I am displaying together using Show:

data=Show[obj1, obj2]

The output of this Show command is another Graphics3D object.

But if I try to export this object in a 3d format, say in ply format:

Export["data.ply", data]

, then only obj1 is getting exported in the file.

How do I export both obj1 and obj2 in a single .ply file?

$\endgroup$
5
  • 1
    $\begingroup$ It is possible that obj2 contains primitives that Mathematica is not able to export. Did you check that obj2 on its own is exportable? $\endgroup$ – J. M.'s ennui Feb 17 at 6:30
  • $\begingroup$ Ah! So not everything that can be rendered in Mathematica is exportable? Let me check. $\endgroup$ – ap21 Feb 17 at 6:31
  • $\begingroup$ @J.M. You are partially right. My obj2 is a combination of Triangle primitives and outputs from ParametricPlot3D. Only the Triangles are getting exported. Why is that? $\endgroup$ – ap21 Feb 17 at 6:36
  • $\begingroup$ I have a correction. If I use .ply or .obj formats, then only the Triangles are getting exported. If I use .stl format, then the ParametricPlot3D outputs are also getting exported! $\endgroup$ – ap21 Feb 17 at 6:38
  • $\begingroup$ Could you please point me to a resource for understanding which file format supports what? And possibly, which formats support export colouring information? I only know of this one page: reference.wolfram.com/language/guide/… $\endgroup$ – ap21 Feb 17 at 6:39

Your Answer

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

Browse other questions tagged or ask your own question.