Ejemplo n.º 1
0
        public void scale1()
        {
            Point3d  center   = new Point3d(0, 0, 0);
            ObjectId objectId = InteractionUtil.getEntityId("\n 选择要移动的对象");

            objectId.QOpenForWrite(x => x.scale(center, 2));
        }
Ejemplo n.º 2
0
        public void move3()
        {
            Point3d  basePt   = new Point3d(0, 0, 0);
            Point3d  targetPt = new Point3d(100, 100, 0);
            ObjectId objectId = InteractionUtil.getEntityId("\n 选择要移动的对象");

            objectId.QOpenForWrite(x => x.moveByPoint3d(basePt, targetPt));
        }
Ejemplo n.º 3
0
        public void move2()
        {
            Point3d  basePt   = new Point3d(0, 0, 0);
            Point3d  targetPt = new Point3d(100, 100, 0);
            Vector3d vec      = targetPt - basePt;
            ObjectId objectId = InteractionUtil.getEntityId("\n 选择要移动的对象");

            objectId.QOpenForWrite(x => x.moveByVector3d(vec));
        }
Ejemplo n.º 4
0
        public void mirror2()
        {
            Point3d  basePt   = new Point3d(0, 0, 0);
            Point3d  targetPt = new Point3d(100, 100, 0);
            Line3d   line3d   = new Line3d(basePt, targetPt);
            ObjectId objectId = InteractionUtil.getEntityId("\n 选择要镜像的对象");

            objectId.QOpenForWrite(x => x.mirrorByLine3d(line3d));
        }
Ejemplo n.º 5
0
        public void explode1()
        {
            ObjectId objectId = InteractionUtil.getEntityId("\n 选择要更炸开的对象");

            if (objectId == ObjectId.Null)
            {
                return;
            }
            ObjectId[] objectIds = GoatExplodeUtil.Explode(objectId);
            GoatMessageUtil.msg(objectIds.Length.ToString());
        }
Ejemplo n.º 6
0
 public void line1()
 {
     var entityId = InteractionUtil.getEntityId("\nSpecify a Line", typeof(Line));
 }
Ejemplo n.º 7
0
        public void color2()
        {
            ObjectId objectId = InteractionUtil.getEntityId("\n 选择要更改颜色的对象");

            objectId.QOpenForWrite(1, Constant.entityColor);
        }
Ejemplo n.º 8
0
        public void delete2()
        {
            ObjectId objectId = InteractionUtil.getEntityId("\n 选择要删除的对象");

            objectId.QOpenForWrite(Constant.actionErase);
        }