0
$\begingroup$

Since Sample Curve Node provides more flexible configuration, I want to recreate Curve to Points node by Sample Curve node:

  1. Curve to Points - Evaluated □
  2. Curve to Points - Count ☑
  3. Curve to Points - Length □

So I Figure out how to recreate Curve to Points - Count: enter image description here

But how to do the others?

NOTE: Using Repeat Zone isn't forbidden, but if you have any thoughts how to avoid it - you are welcome

I also tried to use Spline Parameter Node but it seems to be completelly ignored by Sample by Curve node.

$\endgroup$
5
  • 1
    $\begingroup$ Don't you want just a "Resample Curve"? $\endgroup$ Commented May 7 at 19:12
  • 2
    $\begingroup$ "Since Sample Curve Node provides more flexible configuration" - how so? What do you want to achieve? en.wikipedia.org/wiki/XY_problem You need neither a repeat or for each zone, as you can use "sample curve" node in a field. $\endgroup$ Commented May 7 at 21:39
  • $\begingroup$ @MarkusvonBroady, you can easily modify distributed points, by adjusting Factor or Length $\endgroup$ Commented May 8 at 11:52
  • $\begingroup$ I don't really get the reason putting xy problem under my question. Also for instance If someone would solve this task, that would be pretty good educational example for distributiong points on a curve $\endgroup$ Commented May 8 at 13:09
  • $\begingroup$ The resampling method using Length is a bit tricky since it does not always create curve segments with the given length of exactly $x$, but greater than or equal $x$. More information about how the Length method works you can find in my answer here: Resample Curve Node, length precision, maybe this helps you with recreating it by Sample Curve nodes. But what I explain there is the theory, the actual resulting segment lengths can differ afterwards, depending on the original curve. $\endgroup$ Commented May 9 at 7:48

1 Answer 1

1
$\begingroup$

From what I understand, you are trying to do this for educational purpose, as there isn't really any other point of doing this.

Here is a way you can do it

This setup uses indices of the original curves in order to split the points into groups and place them accordingly, giving you access to all three modes of the "curve to points" node without the need of using repeat zones or For each Zone

Node setup

Viewport

$\endgroup$
3
  • $\begingroup$ Unfortunately the OP did not answer to the comment by @DanielMöller if he basically just wants a Resample Curve node... but since he says he wants to do this for educational purposes, trying to recreate how you can get the same point distribution of the three methods from a Curve to Points by sampling the initial curve. Figuring out how the "Evaluated" methods works is what he has problems with - so just using a Resample Curve set to Evaluated like your setup to do all the work is probably not what he had in mind, because this "evaluation" is what he wants to recreate manually. $\endgroup$ Commented May 9 at 6:23
  • $\begingroup$ @GordonBrinkmann ah I see, getting the same point distribution as the evaluated mode is a lot more complicated, I'm not sure I have the will to dedicate myself into that. But if the proplem is just getting the amount of points from the evaluated mode without using the resample node, then maybe working with "spline resolution" and "point count" could work $\endgroup$ Commented May 9 at 14:59
  • $\begingroup$ The question clearly says he wants to recreate the three methods, Evaluated, Count and Length. Actually the amount of points for Evaluated is calculated easily, it is spline count × (1 + curve resolution × (control points - 1)). You only have to get the curve resolution from the curve properties tab into Geometry Nodes. $\endgroup$ Commented May 9 at 15:57

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.