Reputation: 5
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?
Upvotes: -1
Views: 56
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,
and the transformed result,
Upvotes: 0