0
$\begingroup$

I have this GN setup:

enter image description here

I expected that if i unmute the mesh to curve node, that i got a curve...but i got...nothing.

Why don't i get a curve with half of the number of my resolution?

enter image description here

even the spreadsheet looks ok:

enter image description here

$\endgroup$
7
  • 1
    $\begingroup$ Is there a reason why you're not using the Resample Curve node to do that ? $\endgroup$
    – Gorgious
    Commented Nov 24, 2021 at 12:20
  • $\begingroup$ It’s just an example, It would like to know how I can delete vertices in a curve 😉 $\endgroup$
    – Chris
    Commented Nov 24, 2021 at 12:26
  • $\begingroup$ Alright I figured so. :) What about the Delete Geometry node then ? $\endgroup$
    – Gorgious
    Commented Nov 24, 2021 at 12:39
  • 1
    $\begingroup$ Btw to add my point of view to your question I think it's because a mesh's vertices are not spatially ordered (if a mesh contains only vertices, you can swap vertex indices without the mesh changing) whereas the order in which control points are defined in a spline define the shape of the spline. $\endgroup$
    – Gorgious
    Commented Nov 24, 2021 at 12:41
  • 1
    $\begingroup$ i.sstatic.net/wDh9r.png ? $\endgroup$
    – Gorgious
    Commented Nov 24, 2021 at 13:17

1 Answer 1

5
$\begingroup$

You can use a Delete Geometry node to selectively remove control points from a curve geometry without having to convert it to and from mesh geometry.

You can add any field output in the Selection input of the Delete Geometry node, so long at it can be evaluated as a boolean (True, False) for each control point of the curve geometry.

A Value of True (or number > 0) will delete the control point, when a value of False (number <= 0) will keep it.

enter image description here

$\endgroup$
3
  • 1
    $\begingroup$ GORGIOUS!!!!!!!🤗 $\endgroup$
    – Chris
    Commented Nov 24, 2021 at 13:54
  • 1
    $\begingroup$ @Chris hehe happy to help :) I changed the Q title to reflect more what you were trying to achieve hope you don't mind $\endgroup$
    – Gorgious
    Commented Nov 24, 2021 at 13:57
  • $\begingroup$ I don’t mind. Thanks your quick answer!!! $\endgroup$
    – Chris
    Commented Nov 24, 2021 at 14:28

You must log in to answer this question.

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