Resolving dxf entities into closed shapes
Posted: 15 Apr 2009, 22:35
Hi. For the following question, I am working only in 2 dimensions:
I have a dxf with multiple entities. These entities make up closed "shapes" -- there is a single "outer shape" and any number of shapes inside it. A single shape might be made up of multiple arcs and lines, etc.
Is there any built-in feature of CADImport that will automatically resolve all the entities in the .dxf into closed "shapes?" Once having done so, I want to be able to check for open shapes, overlapping shapes, etc., and finally to calculate the area of each shape (which can be highly irregular) and the length of the perimeter of each shape.
I have an idea on how I would do all this, but it would be a fair amount of work, and I don't want to launch into it if there are already built-in methods for doing some of this.
Thanks,
I have a dxf with multiple entities. These entities make up closed "shapes" -- there is a single "outer shape" and any number of shapes inside it. A single shape might be made up of multiple arcs and lines, etc.
Is there any built-in feature of CADImport that will automatically resolve all the entities in the .dxf into closed "shapes?" Once having done so, I want to be able to check for open shapes, overlapping shapes, etc., and finally to calculate the area of each shape (which can be highly irregular) and the length of the perimeter of each shape.
I have an idea on how I would do all this, but it would be a fair amount of work, and I don't want to launch into it if there are already built-in methods for doing some of this.
Thanks,