Boolean Union 2D Polygons - Is this possible?

Hi, Is possible to boolean union 2D polygons? I have a list of surfaces in varying planes and also some coplanar surfaces/polygons. I wish to merge only the coplanar surfaces or the polygons they are generated from. Is it possible with designscript maybe? or a node. I have tried the surface union node but that unions all surfaces regardless if coplanar or not.

WAB_Trace Pipes with Detail Lines_#3.dyn (95.6 KB)

Can you provide an image showing what you have and what you’re after? A Polygon is a closed curve, so multiple overlapping closed curves would be attainable via Geometry.Intersect, but I am not sure that is what you’re actually after.

Hi Jacob, I am trying to trace pipe networks with detail lines. I have got points and planes. I am trying sort all points that lie in the plane of a pipe.

EDIT: The strategy I am using is from the center lines of the pipes creating planes with a normal perp to direction of the pipe. Then I test whether a collection of all the corner and end points are on that plane by asking if they are contained within a giant polygon created on that plane. This gives me a list of points that are coplanar and describe the centerline run of a pipe or collection of pipes. I then use the line best fit through points to create the line. Later I will use this line to create a Detail Curve in the Revit project.

EDIT: WAB_Trace Pipes with Detail Lines_#4.dyn (137.8 KB)

pipes project.rvt (3.7 MB)

WAB_Trace Pipes with Detail Lines_#3.dyn (95.6 KB)

EDIT 3: I have a file that seems to work - WAB_Trace Pipes with Detail Lines_#5.dyn (128.4 KB)

WAB_Trace Pipes with Detail Lines_FINAL_#9.dyn (146.6 KB)

I wasn’t able to boolean union the 2d polygons instead I created giant polygons that caught all cases. This attached script creates a detail curve group in a plan view of any pipe network.

You don’t need a polygon to test if a point is coplanar, use a plane and intersect

You can union two polygons by converting to a surface