轴心点#

PDT的 轴心点 ,以下简称 PP ,旨在提供一个仅在编辑模式下旋转和缩放几何体的位置。它作为一个独立于3D游标的位置工作。然而,它也可以相对于对象几何体而放置。

轴心点菜单

../../../_images/addons_pdt_pivot_1.png

在这里,轴心点已经相对于选定的顶点被放置。

操作:#

大多数操作只在 编辑 模式下工作,所以如果你在任何其他模式下,这些操作是灰色的。

从顶部开始,第一行是 显示支点 按钮,旁边有三个输入。

要显示PP,请点击 显示 按钮,要删除它,请按 隐藏 按钮,当显示PP时,显示将变为隐藏。

你仍然可以使用PP的位置,无论你是否能看到它。

The three inputs are; Size Factor ranging from 0.2 to 2 and will adjust the relative size of the PP, the PP is drawn relative to the 3D View scale. The next is the Width and this determines how bold the PP arms are ranging from 1 to 5. The last is the Alpha and determines the translucency (Color Alpha) of the PP, values range from 0.2 to 1.

The next row shows the Pivot Location, values can be entered here, or the boxes may be "scrubbed" and the PP will move as you do so.

下一行是 To Selected ,它将PP定位在选定的几何体上。中间的按钮是 到光标 ,它将密件定位在三维光标位置。右边的按钮是 到原点 ,它将PP定位在所选物体的原点上,你必须有一个选定的物体。

../../../_images/addons_pdt_pivot_2.png

Here the PP has been located on the weighted center of the selected face.

下一行有 旋转角度 ,要想围绕PP旋转选定的几何体,首先要设置 角度 ,然后点击 旋转 。几何图形会围绕视图平面(一个与你的屏幕正常的轴)旋转。

../../../_images/addons_pdt_pivot_3.png

这里所选的几何体已经围绕PP旋转了30度。

下一行的左边是 Scale ,这个按钮是用来缩放所选几何体的PP。在Blender中,有很多方法可以围绕不同的轴进行缩放,所以我们决定不重复这些,这是我最常用的缩放功能。

右边的按钮是 Cursor To Pivot ,它将把3D游标定位到PP上,如果你想使用Blender的其他技术进行旋转、缩放等,但又想使用PP的位置,这就很有用。

PP不能用来移动几何体,我们决定在Blender中已经有足够的方法可以做到这一点。

通过两种措施设定尺度:#

在下面你会看到 尺度距离系统距离 的输入, 系统距离 只是 PDT设计 部分中 距离 的一个副本。这可以通过各种方法来设置,其中之一是选择两个顶点,然后使用PDT设计中的Set A/D 2D工具,或者你可以直接输入一个值。

在某些情况下,你知道模型中的一个尺寸,比如说两个顶点的尺寸是14.3个单位,这是不对的。你知道某个部分或整个网格需要缩放,所以这个尺寸变成16.2。你不需要自己计算比例系数,你只需要在 比例距离 中输入16.2,然后将 系统距离 设置为14.3,系统就会为你计算出比例,在这个例子中为 1.14085 。如果你只想在一个轴上进行缩放,就把另外两个轴设为1。

然后,你将选择所需的几何体,设置PP的位置,并使用PP的 缩放 按钮。

读取和写入PP到对象:#

You can write the PP location to the Object using the PP Write button, these are stored in the form a Custom Property, you will be required to confirm this, clicking OK on the popup accepts this operation, moving your cursor off the confirm dialogue cancels the operation. This facility allows you to store a PP location, easily readable, against each object, this could be, for example, the rotational center of a hydraulic cylinder for example, where you do not want this location to also be the object origin point.

You can then read back this information to place the PP using the PP Read button. If the custom property are not there, either because it hasn't been written, or because you have deleted it, an error is displayed.

../../../_images/addons_pdt_pivot_4.png

写入操作需要确认。

../../../_images/addons_pdt_pivot_5.png

这是对对象存储的自定义属性。