Author Topic: does working SelectWindowPolygon just with 4 points ?  (Read 2298 times)

0 Members and 1 Guest are viewing this topic.

• Guest
does working SelectWindowPolygon just with 4 points ?
« on: October 20, 2010, 05:48:13 PM »
inside this area i have a circle..

// if I add the red row  SelectWindowPolygon return Error. without this its return the objects.

PromptSelectionOptions Opts = new PromptSelectionOptions();
Point3dCollection Polygon = new Point3dCollection(lpt.ToArray());
PromptSelectionResult res   = ed.SelectWindowPolygon(Polygon);

maybe I'm a stupid...but i Guess that a polygon could be have more then 4 vertex..

Jeff_M

• King Gator
• Posts: 3963
• C3D user & customizer
Re: does working SelectWindowPolygon just with 4 points ?
« Reply #1 on: October 20, 2010, 06:12:38 PM »
If you draw the polygon defined by the points you gave you get the item shown in the attached picture. I don't think WindowPolygons can cross like this.

• Guest
Re: does working SelectWindowPolygon just with 4 points ?
« Reply #2 on: October 20, 2010, 06:48:30 PM »
of course...if I give this shape I'm going to shot myself!
i talk about a shape with 4 or 5 vertex with a "sense" that it can be closed without intersections

Jeff H

• Needs a day job
• Posts: 6062
Re: does working SelectWindowPolygon just with 4 points ?
« Reply #3 on: October 20, 2010, 07:13:35 PM »
Yes you can

• Guest
Re: does working SelectWindowPolygon just with 4 points ?
« Reply #4 on: October 20, 2010, 07:23:40 PM »
ok...to write code after 1 am isn't a good choice...
now i must to verify the sequence of points! damn!

• Guest
Re: does working SelectWindowPolygon just with 4 points ?
« Reply #5 on: October 20, 2010, 07:38:34 PM »
ok , sorry but with this points i haven't intersections

that's a real situation.

the shape (black color)  is regular, without intersections (i moved out from others lines in order to show it)

under this points we have some entities but the selection fails!