Page 1 of 1

3DFace in CADImport

Posted: 19 Sep 2012, 08:50
by sysxkh
Hi,

I have read the post, 3D drawing in CADImport, but there are two questions about the code:
CAD3dFace ent3DFace = new CAD3dFace();
ent3DFace.Color = Color.Red;
ent3DFace.Point = new DPoint(100,100,100);
ent3DFace.Point1 = new DPoint(50,100,10);
ent3DFace.Point2 = new DPoint(100,50,50);
ent3DFace.Point3 = new DPoint(50,50,50);
ent3DFace.Flags = ent3DFace.Flags | 10;// line 1-2, 3-0 invisible

1.How can the point,point1,point2,point3 linked with each other orderly to make it looks like a square but not a cross?

2.What is the code means ? "ent3DFace.Flags = ent3DFace.Flags | 10;// line 1-2, 3-0 invisible". Is this code to make the lines orderly? If it makes lines orderly, how does it work?

thanks.

Re: 3DFace in CADImport

Posted: 25 Sep 2012, 11:51
by support
Hello.
3DFace entity provided for creating 3D object models. The code that you use will create 3DFace with 4 corners that linked orderly, as you specified. The visual "cross" because corner points 3D oriented. Flags specify invisible edges, so just two lines visible.

Alexander.