The polyline objects are overlapping, how to remove short curves?


I am looking for a solution to eliminate short curves when objects are overlapping. find 2 curves overlapping then delete object short. Please help

Hi @hoanguyen.rh,

Try using Curve.CreateBooleanUnion.

import rhinoscriptsyntax as rs
curve_ids = rs.GetObjects("Select curves to union", rs.filter.curve)
if curve_ids:
    rs.CurveBooleanUnion(curve_ids)
    rs.DeleteObjects(curve_ids)

– Dale

Thank @dale but it don’t remove all like curve boolean. Just remove a short edge