Maple可以用投影命令 project 将空间图形(曲面、立体、空间曲线)投影到指定的平面上。
投影的基本命令是:
project(P, [A, B, C])
它将图形P投影到三点 A, B, C 所确定的平面上。
例 2.7.1 将以下曲面投影到xOy坐标面。
这是一个旋转抛物面。
解 输入以下命令:
with(plots):with(plottools):
qumian:=plot3d([u* sin(theta), u* cos(theta), u^2+1], u=-.5…1.5, theta=0…2*Pi, style=patch):
A:=[0,0,0]: B:=[1,0,0]: C:=[0,1,0]:
touying:=project(qumian, [A, B, C]):
display(qumian, touying, orientation=[40,70], lightmodel=light2,axes=boxed);
输出图形(投影为圆域):
例 2.7.2 将以下曲面投影到平面y=-3。
这是一个旋转抛物面。
解 输入以下命令:
with(plots): with(plottools):
qumian:=plot3d([usin(theta), ucos(theta), u^2+1], u=-.5…1.5, theta=0…2*Pi, style=patch):
A:=[1,-3,0]: B:=[0,-3,0]: C:=[0,-3,1]:
touying:=project(qumian, [A, B, C]):
display(qumian, touying, orientation=[40,70], lightmodel=light2,
axes=boxed, scaling=constrained);
输出图形:
例 2.7.3 将以下曲面投影到平面 x=-3。