.NET

Reply
*GPaolo
Message 1 of 4 (231 Views)

help for polyline3d

231 Views, 3 Replies
08-31-2006 08:11 AM
I need a big pleasure from all.
i have a collection of 3d point and i need to insert a new polyline 3d with
this point.

i have try some solution but i can only insert a 2D polyline.


Some sample or help?
Thank's in advance
GPaolo
*Paul Richardson
Message 2 of 4 (231 Views)

Re: help for polyline3d

08-31-2006 02:35 PM in reply to: *GPaolo
Point3dCollection pts = new Point3dCollection();
pts.Add(new Point3d(0, 0, 0));
pts.Add(new Point3d(10, 10, 10));
Polyline3d p3 = new Polyline3d(new Poly3dType(), pts, false);

There are different enums for the Poly3dType. Check the Object
Browser.

"GPaolo" wrote in message
news:5314014@discussion.autodesk.com...
I need a big pleasure from all.
i have a collection of 3d point and i need to insert a new polyline 3d with
this point.

i have try some solution but i can only insert a 2D polyline.


Some sample or help?
Thank's in advance
GPaolo
*GPaolo
Message 3 of 4 (231 Views)

Re: help for polyline3d

08-31-2006 10:50 PM in reply to: *GPaolo
many thank's
i don't have see the more easy solution.

"Paul Richardson" ha scritto nel messaggio
news:5314711@discussion.autodesk.com...
Point3dCollection pts = new Point3dCollection();
pts.Add(new Point3d(0, 0, 0));
pts.Add(new Point3d(10, 10, 10));
Polyline3d p3 = new Polyline3d(new Poly3dType(), pts, false);

There are different enums for the Poly3dType. Check the Object
Browser.

"GPaolo" wrote in message
news:5314014@discussion.autodesk.com...
I need a big pleasure from all.
i have a collection of 3d point and i need to insert a new polyline 3d with
this point.

i have try some solution but i can only insert a 2D polyline.


Some sample or help?
Thank's in advance
GPaolo
*Paul Richardson
Message 4 of 4 (231 Views)

Re: help for polyline3d

09-01-2006 02:54 AM in reply to: *GPaolo
Sometimes it's too easy to see. :smileyhappy: If your points are in an array or such
just loop through to .add them to the collection.

Point3dCollection pts = new Point3dCollection();
double[] ptsArr = {0, 0, 0, 10, 10, 10, 0, 10, 10};
int i = 0;
while ( i < ptsArr.Length )
{
pts.Add(new Point3d(ptsArr, ptsArr[i + 1], ptsArr[i + 2]));
i = i + 3;
}

"GPaolo" wrote in message
news:5315082@discussion.autodesk.com...
many thank's
i don't have see the more easy solution.

"Paul Richardson" ha scritto nel messaggio
news:5314711@discussion.autodesk.com...
Point3dCollection pts = new Point3dCollection();
pts.Add(new Point3d(0, 0, 0));
pts.Add(new Point3d(10, 10, 10));
Polyline3d p3 = new Polyline3d(new Poly3dType(), pts, false);

There are different enums for the Poly3dType. Check the Object
Browser.

"GPaolo" wrote in message
news:5314014@discussion.autodesk.com...
I need a big pleasure from all.
i have a collection of 3d point and i need to insert a new polyline 3d with
this point.

i have try some solution but i can only insert a 2D polyline.


Some sample or help?
Thank's in advance
GPaolo
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.