2d to 3d Detect - s-leger/archipack GitHub Wiki

2d to 3d Detect (available under archipack 1.35+)

This set of tools does compute all intersections of a set of curves and detect polygons.
Once detected you may choose between 3 select tools to select lines/polygons and create objects from selection.
You are able to use any select tool at any time, detected data remains valid until you reselect another set of curves and repress "Detect".
Detect find polygons for ~ 1k segment / second, so it may take some time.

2d to 3d video tutorial

Tool options

  • Bezier resolution : this tool only work with linear segments, resolution is the number of steps to estimate each bezier curved segment.
  • Extend end: try to extend segments to find intersections, allow to fill small gaps between lines. Typically 1 cm should be enougth, setting too high will require more time.
  • Extend all segs: Extend only work for line ends, when checked the tool will try to extend all segments instead (slowest, but may be safer in some situations).

Typical (generic) workflow

  1. Select one or more curves
  2. Expand "Detect" options, choose extend limit and extend all segs when apply (see Polygonize)
  3. press "Detect", wait till done ( ~ 1k segment/sec)
  4. press "Polygons / Lines / Points" to start a select tool
  5. Select one or many lines, using click and drag to select into an area.
  6. Use keyboard to generate your objects (see on-screen options)
  7. Repeat 5 and 6 according your needs, then Right click or press esc to exit

Architectural workflow

  1. Clean up, Detect and possibly use "Points" to fill missing parts
  2. select curves, and Detect
  3. Use "Polygons" to create openings objects (windows and doors)
  4. Use "Polygons" to create walls / slabs..
  5. Use "Lines" to output guide lines for fences

Select tools

(shortcut) Common select actions

  • (a) Select all / none
  • (i) Select inverse
  • (b) Select biggest than current (apply only on polygons)
  • (s) Save current selection
  • (l) Load saved selection
  • (shift) Unselect on click or click & drag to unselect in area
  • (ctrl) Select when area fully contains polygon (Deselect when shift is pressed)

Select Polygons

This tool allow to select areas and build objects from selection.

(shortcut) Select Polygons actions

  • (o) Selection as closed curves
  • (u) Union of selection boundary as closed curves
  • (f) 2d Surface using union of boundarys
  • (e) 3d Wall using union of boundarys
  • (w) start/exit a tool to create Window over selection
  • (d) start/exit a tool to create Door over selection
  • (r) Best fit rectangle of selection as closed curve

Creating walls / surfaces

Those actions are knife project based and so are view dependent ! Sometimes may fails in top view, so rotate your point of view a bit so you see the model under oblique angle. Lines must be all visibles, set view clip start / end according.

Creating windows / doors

This tool create one object at time.
With an area selected, pressig either w for a window or d for a door does start a special create tool. Press left mouse and drag to set the desired direction of opening, release to create the object. Pressing w or d when running the create tool cancel the action and allow to select another polygon.

Select Lines

This tool allow to select lines and build curves from selection.

(shortcut) Select Lines actions

  • (u) Union of selected lines as curve
  • (f) selected lines as curve

Select Points

This tool allow to select points and build curves from selection. Intended to fill missing parts of walls, eg when the wall is cut on openings like with doors.

(shortcut) Select Points actions

  • (alt + f) best fit rectangle around selected points as curve
  • (f) line as seen on screen as curve