This video is titled pulled point example. In this video, we're going to take the pull point function, and we're going to apply it to our point matrices to see if we can produce variation in geometry using the pull point function. So we're going to start with just looking at our grid. So this is our 10 by 10 point grid, and look at what geometry we want to create, and how we might begin to vary that. So we'll first start with the geometry before we think about how we might use the pulled point to vary that. Let's just say we're going to draw something, create something from between three points. Let's create a simple arched line. So we'll go from i minus 1, j to i, j to i, j minus 1, something like that. So if we go back into the code, uncomment this section. So I've drawn that here. So adding a curve from i minus 1, j to i, j to i, j minus 1, and let's get rid of this grid. We'll run that, enter, enter. We're creating our little C-shaped line. So one way we might begin to think about changing this with a pulled point. Actually let's do it over here. I've this middle point, and what if I used this bottom point, i minus 1, j minus 1 and i, j as my two pulled points? I found points along that, between those two points, pulled points. I could create a curve that goes from curved to flattened as it's created across the matrix. So I know the two points that I need to input, these two points, i minus 1, j minus 1, and i, j. Then I have to think about how am I going to vary my values in the loop. So let's first set up the two points that function with the two points So I've just dropped in my pulled point function, and I'm going to call it here where I create my geometry. I know the two points that I'm creating between the first one, let's say this lower one, this is my 0.1 and the i, j, this is my 0.2. So I've put those in, that's my 0.1 and that's my 0.2. Even though I haven't determined what they are, where they're coming from yet, I have my value 0 and my value 2. So I know those. If I wanted to begin here, where both those points are coincident, I don't need to vary both point values as we saw from the last example. I just need to vary one. So I'm going to decide I'm going to vary the value 4.1. So if it begins at zero, then I'm going to start with a curve that looks like that. Because if that value is zero, and this value is whatever, it's going to create a point right on top of that. Then as this value 1 increases, that curve is going to get flatter. So that's what I need to set up. So what I've done is first to establish a value for value 2, which is going to be my maximum value, and I'm going to come up with a way to make that, so it's related to the matrix. If I'm creating a 10 by 10 matrix, I'm going to want some value that's derived from that since that's the number I'm getting towards as I go through my loop. So an easy way to do that is just to set value 2 equal to i max and j max. That way, if these values change, if my input for my grid changes, that value's going to change, and it's going to stay relative to the number of times that I'm going through the loop. Then the initial value that I'm going to set for value of one is zero. So the first time through value 1 is zero and value 2 is 100. It's 10 times 10. Then I do a little addition here. So I've created my first curve first time through, and then I add one to value01. Then the next time through it's going to be one. Next time through, it's going to be two, and it's going to do that, I go through this, JMAX and IMAX times, I go through the loop 100 times. So by the end, they should be equal or close to equal. I think there probably going to be like one off, but that's okay. We'll see what it does. So let's run this. So input x direction 10, enter y, 10. So that's not doing anything yet because I forgot to input my returned point value. So I need to change. So here I'm getting my pulled point, new point, and what do I want to change? Well I want to, instead of going up to this i, j point here, I want to go to my new point. So we're going to replace that i, j in here with new point. So the point that's being returned from the pull point function. Let's run that. So 10, 10. Now it's creating a progressive variation using that pulled point function. So as it gets closer to the end here, my curve is going to get flatter. So again, that progression is going to work because of the way that I set up this equation, with this being the maximum. If I do it at a different number, let's say five and five, it's still going to flatten out by the end. That would be the same if that number were higher also, say 20, 20. So I'm going to get a much greater gradiation in the flattening out.