Parametric House
Parametric House · Digital File

Curve Gap Closer

In this Grasshopper Python script, you can find small gaps between open curve endpoints and repair them.

PH-Script-005

About this file

PH LABS 005
Curve Gap Closer
Find and close small gaps in architectural CAD curves before creating regions, surfaces, offsets, or room boundaries.

Small drafting gaps can prevent otherwise clean architectural curves from forming closed boundaries.

PH Tools 005 — Curve Gap Closer finds small gaps between open curve endpoints and repairs accepted pairs with visible straight connector segments. Set the largest distance you want to repair, inspect every proposed connection, and output closed curves that are ready for downstream Grasshopper operations.

What It Does

✓ Detects small gaps between open curve endpoints
✓ Displays every proposed connector before the result is used
✓ Pairs each endpoint with only one nearby endpoint
✓ Repairs accepted gaps with straight connector segments
✓ Separates closed curves, open curves, and unresolved endpoints
✓ Includes adjustable gap tolerance and an analysis-only mode
INCLUDED FILES

Rhino 7 + Rhino 8

The download includes separate ready-to-use Grasshopper files for Rhino 7 and Rhino 8, with a connected example, adjustable Maximum Gap control, analysis mode, repair outputs, Status, and Help. No external plugins are required.

Simple Tools. Real Problems. PH Labs