
2.3 编辑路径
在编辑路径的过程中主要用到的工具就是【选择工具】和【直接选择工具】,通过这两个工具来修改或者拖动路径。
2.3.1 选择锚点和路径段
在改变路径形状或编辑路径之前,必须选择路径的锚点或路径段。
1.选择锚点
选择工具箱中的【直接选择工具】选项,将鼠标移动到路径上,当锚点以空心正方形显示时单击鼠标左键,即选中该锚点,如图2-12所示。

图2-12
小知识
在选中一个锚点的情况下,按住【Shift】键的同时单击其他需要被选中的锚点,可以同时选中多个锚点。
还可以使用【套索工具】,在需要被选中的锚点周围拖动,按住【Shift】键并在其他锚点周围拖移可以同时选中其他锚点,如图2-13所示。

图2-13
2.选择路径段
选择工具箱中的【直接选择工具】选项,单击两个锚点中间的线段,可以选中该路径段,如图2-14所示。

图2-14
也可以使用【套索工具】在路径段周围拖动以选中该路径段,如图2-15所示。

图2-15
小知识
按住【Shift】键的同时并在其他路径段上框选,可以同时选中多个路径段。
2.3.2 连接路径
1.连接两条开放路径
绘制两条开放路径,如图2-16所示。选择工具箱中的【钢笔工具】选项,将鼠标指针移动到其中一条路径的端点上,选中锚点时单击鼠标左键,如图2-17所示。

图2-16

图2-17
将鼠标指针移动到另一条路径的端点上,指针发生变化,如图2-18所示。单击鼠标左键,如图2-19所示。两条路径连接起来,

图2-18

图2-19
2.连接两个端点
绘制如图2-20所示的路径。选择工具箱中的【直接选择工具】选项,选中需要连接的两个端点,如图2-21所示。

图2-20

图2-21
在选项栏中单击【连接所选终点】按钮,如图2-22所示。可以看到两个端点连接到一起,如图2-23所示。

图2-22

图2-23
3.连接两个或更多路径
选中多条路径,执行【对象】>【路径】>【连接】命令,所有路径连接成一条路径,如图2-24所示。

图2-24
如果只选择连接一条路径,它将转换成封闭路径,如图2-25所示。

图2-25
小知识
当所绘制的路径锚点未重合时,Illustrator将添加一个直线段来连接要连接的路径。当连接两个以上的路径时,Illustrator首先查找并连接彼此之间端点最近的路径。此过程将重复进行,直至连接完所有路径。
2.3.3 修改路径
绘制好的路径如果还有不满意的地方,可以用【直接选择工具】来移动路径上的锚点和控制点,拖动方向线来改变路径的形状。
选择工具箱中的【直接选择工具】选项,选中需要改变的锚点,可以看到被选中的锚点变成实心的,如图2-26所示。

图2-26
用鼠标拖曳选中的锚点,路径发生变化,如图2-27所示。

图2-27
小知识
使用【直接选择工具】,拖曳鼠标选中路径,选中的路径方向点是实心的,锚点是空心的,表示选中的是路径而不是锚点。
2.3.4 添加和删除锚点
添加锚点可以增强对路径的控制,也可以扩展开放路径,但最好不要添加多余的点。点数较少的路径更易于编辑、显示和打印,可以通过删除不必要的点来降低路径的复杂性。
选择工具箱中的【多边形工具】选项,在页面中绘制一个五边形,填充“CMYK黄”,如图2-28所示。

图2-28
选择工具箱中的【添加锚点工具】选项,在其中的一条边的中间位置添加一个锚点,如图2-29所示;使用同样的方法在其他四边上添加锚点,如图2-30所示。

图2-29

图2-30
选择工具箱中的【直接选择工具】选项,选中如图2-31所示的锚点,将其向下拖曳,如图2-32所示;使用同样的方法拖曳其他锚点,如图2-33所示。

图2-31

图2-32

图2-33
选择工具箱中的【删除锚点工具】选项,在需要删除的锚点处单击鼠标左键,如图2-34所示。

图2-34
小知识
不要使用【Delete】键和【Backspace】键或执行【编辑】>【剪切】和【编辑】>【清除】命令删除锚点,这些键和命令将删除该锚点和连接到该锚点的线段。
2.3.5 转换锚点
【转换锚点工具】可以使绘制形状的角变得平滑或者尖锐。
选择工具箱中的【转换锚点工具】选项,将鼠标放到需要转换的锚点上,单击并拖曳鼠标,可以看到锚点发生变化,如图2-35所示。使用同样的方法将其他锚点也转换成平滑的曲线,如图2-36所示。

图2-35

图2-36
选择工具箱中的【转换锚点工具】选项,在平滑点上单击鼠标左键,平滑曲线就变成了角点,如图2-37所示。

图2-37