Get intersection size of two geometries
I've got some funky xml files containing closed complex 2d geometric forms (these represent owned property). I want to read these xml geometries into PathGeometry / PathFigures.
How do I get the cut surface between two of these PathGeometries?
And is there a way to get the size of the cut surface (e.g. in relation to the full size of one of the geometries).O开发者_C百科r should I rather use something else instead of PathGeometry to get the cross section?
Simpler than I would have thought:
PathGeometry firstGeometry;
PathGeometry secondGeometry;
PathGeometry intersectionGeometry = PathGeometry.Combine(firstGeometry, secondGeometry, GeometryCombineMode.Intersect, null);
精彩评论