|
static TopoShape | Translate (TopoShape pShape, GVec vec) |
|
static TopoShape | Translate (TopoShape pShape, double x, double y, double z) |
|
static TopoShape | Rotation (TopoShape pShape, GAx1 axis, double angle) |
|
static TopoShape | Scale (TopoShape pShape, GPnt center, double scale) |
|
static TopoShape | Mirror (TopoShape shape, GAx1 axis) |
|
static TopoShape | Copy (TopoShape shape) |
|
static TopoShape | Transform (TopoShape pShape, GTrsf trf) |
|
static TopoShape | Transform (TopoShape pShape, GAx3 trf) |
|
static TopoShape | TransformByMatrix (TopoShape pShape, Matrix4 matrix) |
|
static TopoShape | TransformByMatrix (TopoShape pShape, Matrix4d matrix) |
|
static Matrix4 | ToMatrix4 (GAx3 ax) |
|
static Matrix4 | ToMatrix4 (GAx2 ax) |
|
static Matrix4 | ToMatrix4 (GTrsf trf) |
|
static GTrsf | ToTransform (Matrix4 mat) |
|
static Matrix4d | ToMatrix4d (GAx3 ax) |
|
static Matrix4d | ToMatrix4d (GAx2 ax) |
|
static Matrix4d | ToMatrix4d (GTrsf trf) |
|
static GTrsf | ToTransform (Matrix4d mat) |
|
static void | Decompose (Matrix4 mat, Vector3 pos, Quaternion rot, Vector3 scale) |
|
<> TransformTool
用于对TopoShape进行空间变换、复制
◆ Copy()
◆ Decompose()
矩阵分解
- 参数
-
mat | 矩阵
|
pos | 平移
|
rot | 旋转
|
scale | 缩放 |
◆ Mirror()
Mirror the shape.
- 参数
-
shape | the input shape.
|
axis | the axis to mirror.
|
- 返回
- the new shape.
◆ Rotation()
Rotate the shape.
- 参数
-
pShape | the input shape.
|
axis | the axis.
|
angle | the angle to rotate. by radians
|
- 返回
- the new shape.
◆ Scale()
Scale the shape.
- 参数
-
pShape | the input shape.
|
center | the scale center.
|
scale | the scale value.
|
- 返回
- the new shape.
◆ Transform()
Transform the shape with arbitrary transfom.
- 参数
-
pShape | the input shape.
|
trf | the matrix
|
- 返回
- the new shape.
◆ TransformByMatrix()
Transform the shape with 4x4 matrix.
- 参数
-
pShape | the input shape.
|
matrix | the matrix.
|
- 返回
- the new shape.
◆ Translate()
Move the shape.
- 参数
-
pShape | the input shape.
|
vec | the direction and length of moving.
|
- 返回
- the new shape.