Jun Zhou
Jun Zhou

Reputation: 5

how to transform/stretch/shear a plot in maple with plot3d

here is my question.

test:=v^3;
plot3d(test,u=0..1-v, v=0..1);

How can I transform this plot in the right triangle into an equilateral triangle? So that the three edges of the plot are the same length. I wanna, squish it, or shear? any tools i can use? Or can I do it using some tricks to change the function?

enter image description here

Upvotes: -1

Views: 56

Answers (1)

acer
acer

Reputation: 7246

P := plot3d(v^3,u=0..1-v, v=0..1):

plottools:-transform((x,y,z)->[x+y/2,y*sqrt(3)/2,z])(P)

Seen with orientation=[-90,0,0] the first of those could be,

enter image description here

and the transformed result,

enter image description here

Upvotes: 0

Related Questions