3DFace in CADImport

Discuss and ask questions about CAD .NET library.

Moderators: SDS, support, admin

Post Reply
sysxkh
Posts: 1
Joined: 19 Sep 2012, 08:06

3DFace in CADImport

Post by sysxkh » 19 Sep 2012, 08:50

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.

support
Posts: 3272
Joined: 30 Mar 2005, 11:36
Contact:

Re: 3DFace in CADImport

Post by support » 25 Sep 2012, 11:51

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.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Post Reply