旋转/放大/镜像/移动对象...
www.dimcax.com
旋转/放大/镜像/移动对象...
dotnetarx确实可以解决这个问题,但是...象我这样的初学者一开始就用这么强大的类反倒不好,所以,我自己研究了一下,发现还是挺简单的 public static void move(entity ent,point3d ptstart,point3d ptend) { ent.transformby(matrix3d.displacement(ptend - ptstart)); } public static void mirror(entity ent, line3d line) { ent.transformby(matrix3d.mirroring(line)); } public static void scale(entity ent,point3d center,float scaleall) { ent.transformby(matrix3d.scaling(scaleall,center)); } public static void rotate(entity ent, point3d center, double angle) { //new vector3d(0, 0, 1)应该是用来标识基准平面的,这里指的是在xy平面内旋转 ent.transformby(matrix3d.rotation(angle, new vector3d(0, 0, 1), center)); }
................
厉害
请问楼主怎样将一幅cad图由一个坐标系统转换到另一个坐标系统呢?