2023-12-10 10:54来源:m.sf1369.com作者:宇宇
1.直接用三维坐标点绘制,例如box左下角确定一点后右上角用@50,100,150,
2.将UCS坐标移动到所在平面后绘制二维点。
class CPoint3D{
public:
int X;
protected:
int Y;
private:
int Z;
public:
CPoint3D():X(0),Y(0),Z(0){cout<<the default conclassor is called!<<endl;}
CPoint3D(int xx,int yy,int zz):X(xx),Y(yy),Z(zz){cout<<the conclassor is called!<<endl;}
CPoint3D(CPoint3D &p):X(p.X),Y(p.Y),Z(p.Z){}
~CPoint3D(){Show();}
void SetXYZ(int x1,int y1,int z1){X=x1;Y=y1;Z=z1;}
int GetX(){return X;}
int GetY(){return Y;}
int GetZ(){return Z;}
void Show(){cout<<X=<<X<<,Y=<<Y<<,Z=<<Z<<endl;}
};
空间的立体感