BoundrayPath from array of Points
![]() 11/9/2008 10:52 AM
|
---|
Hello, I have an array of Points and would like to export a filled polygon. I probably need a hatch with DxfHatch.BoundaryPath.LineEdge objects. Do I need to add them to the BoundaryPath in a loop or is there a way to just pass the array? Thanks Vaclav |
![]() 11/9/2008 11:45 AM
|
---|
Hi Vaclav, It's probably easier to use the BoundaryPath.PolylineData. Set the polyline data to a new DxfHatch.BoundaryPath.Polyline instance and add your points to it. Wout |
![]() 11/9/2008 12:49 PM
|
---|
Hi Wout Thank you for your quick response! It works well. Adding code for the case anyone needs it C# Code:     private static void ExportPolygonSolid( |
![]() 11/9/2008 1:34 PM
|
---|
I am trying to add hatching to the function. When I run it I get the response I attached (screenshot). Vaclav C# Code:     private static void ExportPolygonSolid( |
![]() 11/10/2008 1:00 PM
|
---|
Hi Vaclav, Can you create a small program to reproduce the problem for me, that makes it easier for me to see what's wrong. Thanks! Wout |
![]() 11/10/2008 7:55 PM
|
---|
Hi Wout, I noticed the word Error is written out for each line that was missing in the hatching. If I change the shape I always get different number of Errors. I can shape the polygon so that I do not get any error. I think the last edge is missing from the polyline (when used the code I sent). I fixed the issue by using this code: C# Code:       Point2D l_pointOld = new Point2D( |