-
Notifications
You must be signed in to change notification settings - Fork 49
Home
Welcome to the blenderPolygons wiki!
Detect polygons from unordered splines (spaghettis) like in architectural 2d drawings within a single click. Fix precision issues filling small gaps between lines encountred when importing. Once detected, you are able to pick polygons with a select tool and extract curves from your selection.
Cleaning dxf files or redrawing walls in worst cases is often a painfull task. This script does automagically fix most issues encountred in imported cad drawings, eg: not well formed lines, and allow you to simply select needed polygons to get a clean curve of polygons boundarys.
Under the hood, i do write from scratch the cleaning code and intersection detection to handle precision and optimization issuees occuring on medium data sets using a spacial tree (rtree). Polygonization is only a wrapper arround shapely as it is realy powerfull and quick.
Install shapely
Setup the plugin as usual
Find it under view3d -> Tools -> Polgons
Select one or many curves, choose extend value to fill gaps (ideally 1cm should be sufficient) keep it as lower as possible to prevent filling of unwanted areas.
Push "Detect" and wait a bit while processing.
Under "Polygon"
- Use "Select / union" to pick polygons and follow on screen instructions.
- Use "all" to output all detected polygons.
Under "Lines"
- Use "Select / union" to pick lines and follow on screen instructions.
- Use "all" to output all non-intersecting detected lines.
Should you find an error or want to report success/issues ? Issues Tracker