3
$\begingroup$

I have created a curve by using the Curve line node in Geometry Nodes.

Now I would like to get the point positions of curve points. Actually I need the vector position of the first point of the curve and the last one.

The curve shape is changing and I would like to know the dynamic vertex positions.

Thank you!

$\endgroup$

3 Answers 3

2
$\begingroup$

I found the answer myself and prepared you a shot, how to do it by using the Sample Index node.

enter image description here

$\endgroup$
2
$\begingroup$

Here is an alternative way to get global point positions in objects, like curves or mesh lines:

enter image description here

$\endgroup$
1
$\begingroup$

Best answers by Eric. You can found him at Mastodon: https://mstdn.social/@[email protected]

"Sadly you can´t simply use the 'attribute statistic' node to get the start and end location. The vector that you get will be the minimum and maximum coordinates in world space. I have a bent curve in my example. As you can see, the objects are placed in the global lower left and upper right corner of the curve object, but not at the endpoints." enter image description here

The best way:

"You can use a 'sample curve' node to pick the location, normal and tangent of a specific curve point. To sample the start of a curve you choose the 'curve factor' of 0. For the end you set it to 1. The curve factor is a value from 0 to 1 that runs along the whole curve. I often instance stuff, thats why i like to use the 'Endpoint Selection' method. Its the second screenshot. The integer value in the selection defines how many points you select from each side of the curve."

enter image description here

enter image description here

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .