Parametric House
Parametric House · Digital File

Curve Cleaner

In this Grasshopper Python script, you can separate short curve fragments using a minimum-length threshold.

PH-Script-004

About this file

PH LABS 004
Curve Cleaner
Remove short and accidental curve fragments before modeling or fabrication.

Clean imported CAD drawings and curve collections before they cause problems in your Grasshopper workflow.

PH Tools 004 — Curve Cleaner measures every input curve and separates short fragments from valid geometry using an adjustable minimum-length threshold. Use the clean output before Offset, Extrude, Loft, intersections, nesting, CNC preparation, or fabrication. PH Tools 004 Curve Cleaner 01 Purpose

What It Does

✓ Analyze the length of every input curve
✓ Define an adjustable minimum-length threshold
✓ Separate valid curves from short fragments
✓ Sort clean curves by length
✓ Switch between ascending and descending order
✓ Preview clean and removed curves with separate colors
✓ Review operation details through the built-in Status and Help panels

Architectural Applications

PH Tools 004 Curve Cleaner 02 Architecture CAD Plan
Clean Imported CAD PlansRemove accidental fragments before offsetting room boundaries, creating surfaces, or extruding architectural walls.
Application concept — shown to explain where Curve Cleaner can be used. The architectural model is not included in the download.
PH Tools 004 Curve Cleaner 03 Architecture Facade
Prepare Façade Lines for PanelizationSeparate small drafting fragments before generating panels, openings, façade surfaces, or fabrication geometry.
Application concept — shown to explain where Curve Cleaner can be used. The façade model is not included in the download.
PH Tools 004 Curve Cleaner 04 Architecture Topography
Clean Site ContoursRemove unwanted contour fragments before generating terrain surfaces, site meshes, or topographical models.
Application concept — shown to explain where Curve Cleaner can be used. The topography model is not included in the download.
INCLUDED FILES

Rhino 7 + Rhino 8

The download includes separate ready-to-use Grasshopper files for Rhino 7 and Rhino 8, a connected example setup, custom viewport previews, and built-in Help and Status panels. No third-party plugins are required.

Simple Tools. Real Problems. PH Labs