Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: plotting plane & a triangle
Replies: 3   Last Post: Aug 17, 2008 6:40 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
skunkwerk

Posts: 4
Registered: 8/16/08
plotting plane & a triangle
Posted: Aug 16, 2008 5:54 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi,
i'm working on developing some 3d software and I was hoping to use
mathematica to test the results of some of my code. Specifically, I'm
trying to visualize a plane and a triangle, to see if they intersect,
and if not, which side of the plane the triangle's points are on (I'm
calculating this using algebra, and need to check the results)

so far I've done:
(the triangle)
pl1 = Graphics3D[{Polygon[{{-80.2576, -594.271, 224.043}, {-120.608,
-588.635, 221.101}, {1.32756, -598.31,261.244}}]}]

(the plane)
pl2 = Plot3D[0.402395*x - 0.899308*y + 0.171241*z + 274.122 = 0,{x,
-10000, 10000}, {y, -10000, 10000}]

then:
Show[pl1, pl2]

questions:
1) the Polygon is displayed fine on its own, but the plane looks
completely flat along z=0 and is axis-aligned, so I'm not sure what's
wrong...
2) the final "Show" command results in a really flat graph that
doesn't show me anything... do I need to increase or fix the range?

any help would be much appreciated
thanks
imran




Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.