@MatrixRatrix wrote:
Hello,
I have a Polyline that has two line segments that overlap each other:
Example.3dm (31.8 KB)
I need the domain between these two overlapping segments:
import rhinoscriptsyntax as rs
curve = rs.GetObject(“Get Curve”, rs.filter.curve)
point = rs.GetPointOnCurve(curve, “Pick a test point”)
domain = rs.CurveDomain(curve)
cutpoint = rs.CurveClosestPoint( curve, point,0 );
print domain
print cutpointIn this case the returns domain is always from the top line, and I also need the bottom line domain, how can I choose which domain to return?
Top curve or bottom curve?
Domain closer to the start point, or closer to the end point??Any idea?
Posts: 7
Participants: 2