Plotting a triangle formed by 3d vectors in maple

Click For Summary

Homework Help Overview

The discussion revolves around plotting a triangle formed by three 3D vectors in Maple, specifically using the vectors pq, pr, and their cross product v. Participants are exploring the correct commands and methods to visualize this triangle effectively.

Discussion Character

  • Exploratory, Conceptual clarification, Problem interpretation

Approaches and Questions Raised

  • Participants discuss the use of the polygonplot command and its limitations regarding input formats. There are attempts to plot the triangle using different methods, including space curves and 3D plotting commands. Questions arise about the orientation of the triangle and the relationship between the vectors and the plotted shape.

Discussion Status

Some participants have offered guidance on using specific Maple commands to achieve the desired plot, while others express confusion about the distinctions between different data formats in Maple. Multiple interpretations of the problem and approaches are being explored, with no explicit consensus reached.

Contextual Notes

There is mention of potential misunderstandings regarding the geometric interpretation of the vectors and their arrangement, as well as the specific requirements of the homework task. The original poster has provided specific vector data for further clarification.

kyva1929
Messages
16
Reaction score
0
Suppose that I have three 3d vectors, pq, pr, and v, where v is the cross product of pq and pr.

I want to fill the triangle formed by these three vectors, as shown in the picture. But I'm having difficulties finding the right command doing so, I've tried the polygonplot and apparently it supports only input of vertexes in Cartesian point format.

http://math.rutgers.edu/courses/251/Lab_Backgrounds/Images/map1_image12.gif

thank you so much!
 
Last edited by a moderator:
Physics news on Phys.org
Two non-parallel vectors and their cross-product would be three sides determining a 3-d parallelepiped, or maybe a tetrahedron, but not a triangle.

One way to do a triangle and shade it in Maple would be to actually plot a portion of the plane in whatever color. Something like this for a triangle formed by two vectors:

restart:with(VectorCalculus):BasisFormat(false):
u:=<3|-3|-1>;v:=<-2|-3|2>;
plane:=s*u+t*v;
plot3d(plane,s=0..1-t,t=0..1,color=green,axes=boxed,style=patchcontour);
 
I misread the instruction given, however, I still have troubles with the orientation of the triangle.

I plot a triangle with P, Q, R being the vertexes, and I expected that two sides of the triangle should be parallel to the vectors PQ and PR. But it doesn't seem to be the case (I used P as the origin for the vectors).

I've checked the data multiple times and haven't yet been able to find the reason why it is so. Please take a look at that, thank you!

Here is the data:p = [10, 15, 10]
q = [15, 14, 16]
r = [15, 12, 9]

9u6lac.jpg

dr56rq.jpg


Thank you so much for the help!
 
I hadn't seen the polygonplot command before. Try this:

restart:with(VectorCalculus):BasisFormat(false):with(plots):
>p := <10| 15| 10>:
> q := <15| 14| 16>:
> r := <15| 12| 9>:
>
> t1:=spacecurve(t*p+(1-t)*q,t=0..1,color=blue,thickness=2):
> t2:=spacecurve(t*p+(1-t)*r,t=0..1,color=blue,thickness=2):
> t3:=spacecurve(t*r+(1-t)*q,t=0..1,color=blue,thickness=2):
> triangle:=polygonplot3d([p,q,r]):
> display({t1,t2,t3,triangle},axes=normal,labels=[x,y,z]);
 
LCKurtz said:
I hadn't seen the polygonplot command before. Try this:

restart:with(VectorCalculus):BasisFormat(false):with(plots):
>p := <10| 15| 10>:
> q := <15| 14| 16>:
> r := <15| 12| 9>:
>
> t1:=spacecurve(t*p+(1-t)*q,t=0..1,color=blue,thickness=2):
> t2:=spacecurve(t*p+(1-t)*r,t=0..1,color=blue,thickness=2):
> t3:=spacecurve(t*r+(1-t)*q,t=0..1,color=blue,thickness=2):
> triangle:=polygonplot3d([p,q,r]):
> display({t1,t2,t3,triangle},axes=normal,labels=[x,y,z]);

Thank you! It works with defining P Q and R in

>p := <10| 15| 10>:
> q := <15| 14| 16>:
> r := <15| 12| 9>:

this way, but I have no idea why it wouldn't work in the form [x,y,z] ?
 
I dunno. Maple's distinction between lists, vectors, and matrices is confusing to me too.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 24 ·
Replies
24
Views
4K
  • · Replies 2 ·
Replies
2
Views
42K
Replies
2
Views
5K
Replies
3
Views
2K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 29 ·
Replies
29
Views
8K
  • · Replies 4 ·
Replies
4
Views
3K
Replies
3
Views
5K