Group Abstract Group Abstract

Message Boards Message Boards

0
|
1.5K Views
|
3 Replies
|
0 Total Likes
View groups...
Share
Share this post:

How to plot (2D) the projection of two planes in a 3D graph?

Posted 1 year ago
POSTED BY: Marina Nebot
3 Replies

You enclose the lines into Graphics:

lineXZ = lines3D[[1]] /. {x_, y_, z_} :> {x, z};
lineYZ = lines3D[[2]] /. {x_, y_, z_} :> {y, z};
Graphics[lineXZ, Frame -> True]
Graphics[lineYZ, Frame -> True]
POSTED BY: Gianluca Gorni

I think you forgot a comma after the third point of datos. You can generate the two intersection lines using Mesh, and then extract the primitives:

lp = ListPlot3D[datos, InterpolationOrder -> 7, 
  MeshFunctions -> {#1 &, #2 &}, 
  Mesh -> {{puntoMinimo[[1]]}, {puntoMinimo[[2]]}}, 
  BoundaryStyle -> None]
lines3D = Cases[lp[[1]] // Normal, _Line, All]
Show[lp,
 Graphics3D[{Thick, lines3D, Opacity[.5], 
   InfinitePlane[puntoMinimo, {{0, 1, 0}, {0, 0, 1}}], 
   InfinitePlane[puntoMinimo, {{1, 0, 0}, {0, 0, 1}}]}]]
lines3D[[1]] /. {x_, y_, z_} :> {x, z}
lines3D[[2]] /. {x_, y_, z_} :> {y, z}
POSTED BY: Gianluca Gorni
Posted 1 year ago

Thanks, and how can I draw those graphs in a separate plot, outside the figure?

POSTED BY: Marina Nebot
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard