2

My situation is as follows. I have two 3d objects, one created inside Mathematica and the second an imported STL file, that I want to superimpose and view together inside Mathematica. I want to be able to manipulate them visually, as in the things you can do with a 3d output in Mathematica by clicking and dragging with a mouse.

Now, the two objects can be manipulated normally. However, when I superimpose them and try to do this, it makes Mathematica lag considerably! There is no smooth movement at all; I just see the end product of a mouse drag after waiting for 5-10 seconds.

Can someone please tell me what is going on? Here are example objects:

obj1

enter image description here

obj2

enter image description here

and plotted together using Show[]:

comparison = Show[obj1, obj2];
Show[%, ViewPoint -> {0, 0, Infinity}, Axes -> True, 
 AxesLabel -> {"x", "y", "z"}]

enter image description here

It is this third one that I have problems manipulating. Any suggestions?

ap21
  • 553
  • 2
  • 10
  • Without examples of obj1 and obj2 to work with, this may not be answerable. Can you, please, update your question with this information? Thanks! – CA Trevillian Jul 19 '21 at 13:44
  • The problem is that there is a whole notebook worth of content needed to make obj1. But let me see what I can do – ap21 Jul 19 '21 at 20:26
  • You might also try not wrapping it with Show before you again wrap it with Show. Perhaps this is causing issues. – CA Trevillian Jul 19 '21 at 22:05
  • I found the answer to my question in this post: https://mathematica.stackexchange.com/questions/214907/reduce-quality-of-an-imported-meshregion. The problem is that the imported STL is too large. I decimated the mesh using MeshLab, and my problem was solved! Should I state this as a proper answer below, or just delete the question? – ap21 Jul 20 '21 at 12:02

1 Answers1

0

I found the answer to my question in this post: Reduce quality of an imported MeshRegion.

The problem is that the imported STL is too large. I decimated the mesh using MeshLab, and my problem was solved!

ap21
  • 553
  • 2
  • 10