Hey, in this lecture I'm going to show you how to create a line or curve attractor as a continuation to the previous lecture. We will continue to build on the same code from previous lecture by adding a line as an attractor. So first we will create two points in Rhino and reference them in grasshopper. To create a line, we will connect the two points using line between two points component and then we will add curve closest points component connect the line to its curve in an hour. grid points to its points input to find the closest points to our line. Now you can substitute the outputs of the curve closest point component with the outputs of the closest point.
And so you have your points transformed according to your line attractor. And we can now preview the solid difference output at the end of the code. In the coming lecture, we're going to build on this tutorial a bit and we're going to subtract a curved surface from the box stop