AnyCAD Rapid API 2023
Help you to create a better world!
载入中...
搜索中...
未找到
TransformTool类 参考

静态 Public 成员函数

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()

static TopoShape TransformTool.Copy ( TopoShape  shape)
static

复制一个新的Shape

参数
shape母体
返回
新的Shape

◆ Decompose()

static void TransformTool.Decompose ( Matrix4  mat,
Vector3  pos,
Quaternion  rot,
Vector3  scale 
)
static

矩阵分解

参数
mat矩阵
pos平移
rot旋转
scale缩放

◆ Mirror()

static TopoShape TransformTool.Mirror ( TopoShape  shape,
GAx1  axis 
)
static

Mirror the shape.

参数
shapethe input shape.
axisthe axis to mirror.
返回
the new shape.

◆ Rotation()

static TopoShape TransformTool.Rotation ( TopoShape  pShape,
GAx1  axis,
double  angle 
)
static

Rotate the shape.

参数
pShapethe input shape.
axisthe axis.
anglethe angle to rotate. by radians
返回
the new shape.

◆ Scale()

static TopoShape TransformTool.Scale ( TopoShape  pShape,
GPnt  center,
double  scale 
)
static

Scale the shape.

参数
pShapethe input shape.
centerthe scale center.
scalethe scale value.
返回
the new shape.

◆ Transform()

static TopoShape TransformTool.Transform ( TopoShape  pShape,
GTrsf  trf 
)
static

Transform the shape with arbitrary transfom.

参数
pShapethe input shape.
trfthe matrix
返回
the new shape.

◆ TransformByMatrix()

static TopoShape TransformTool.TransformByMatrix ( TopoShape  pShape,
Matrix4  matrix 
)
static

Transform the shape with 4x4 matrix.

参数
pShapethe input shape.
matrixthe matrix.
返回
the new shape.

◆ Translate()

static TopoShape TransformTool.Translate ( TopoShape  pShape,
GVec  vec 
)
static

Move the shape.

参数
pShapethe input shape.
vecthe direction and length of moving.
返回
the new shape.