I’d like to combine 3D curve and surface with Show in Mathematica 13.3. It is strange that the curve could not be hiden by the surface effectively even though the curve is behind the surface. The code is given as following,
The result is shown in the attached figure. Beside that there is no different If the curve is replaced by Mesh method as mesh thickness is set explicitly.
I guess the problem is the mixing of objects of different dimensions. If you use a Tube[] instead of a Line[] it seems to work correctly. I would do it like so:
Thank you very much for your reply. Yes, it works good! But there is a new problem. If the radius of the tube is two small, it sames that the “curve” is dashed. For example, if to set Line[p__] :> Tube[p, .005], the result is showing in the attached figure. I don’t know how to deal with it as the radius of the tube should be fixed in my applying.
Yes, it is. The problem appears to be related with the view direction from inside to outside of the torus. There is no issue when the view direction in the opposite side.