Chains a list of profile curves together. tol is the chaining tolerance.
chainProfile ( segs As List, _
tol As Number ) As List
Argument | Type | Description |
---|---|---|
segs | List | List of parts , where each part is a "curve" |
tol | Number | the chaining tolerance |
Child Line_1 As :Line
thruPoint1 = Point(0,0,0)
thruPoint2 = Point(2,0,0)
End Child
Child Line_2 As :Line
thruPoint1 = Point(2,0,0)
thruPoint2 = Point(1,2,0)
End Child
Child Line_3 As :Line
thruPoint1 = Point(1,2,0)
thruPoint2 = Point(0,0,0)
End Child
Intent >chainProfile({Line_1, Line_2, Line_3}, 0.001)
--> {{Root.Document_1.Root.Line_1, Root.Document_1.Root.Line_2, Root.Document_1.Root.Line_3}, {True, True, True}, True}
Child Line_4 As :Line
thruPoint1 = Point(10,10,0)
thruPoint2 = Point(12,10,0)
End Child
Child Line_5 As :Line
thruPoint1 = Point(12,10,0)
thruPoint2 = Point(10.75,12,0)
End Child
Child Line_6 As :Line
thruPoint1 = Point(11.25,12,0)
thruPoint2 = Point(10,10,0)
End Child
Intent >chainProfile({Line_4, Line_5, Line_6}, 0.001)
--> {{Root.Document_1.Root.Line_6, Root.Document_1.Root.Line_4, Root.Document_1.Root.Line_5}, {True, True, True}, False}
Intent >chainProfile({Line_4, Line_5, Line_6}, 1)
--> {{Root.Document_1.Root.Line_4, Root.Document_1.Root.Line_5, Root.Document_1.Root.Line_6}, {True, True, True}, True}