0
$\begingroup$

Using geometry nodes, I would like to connect some vertices loaded from a CSV file. Connect them using circle profile along straight lines formed by adjacent vertices. I have found examples doing this using a Bezier curve, for example, but can't get it work by having vertices only.

edit: The vertices are ordered, so they should be connected in the order of the list containing them, eg, buy indices.

Can someone point me the right direction? Thanks!

enter image description here

The final thing what I want to render is shown in these photos:

enter image description here enter image description here

The blend file I made: https://drive.google.com/file/d/120u7sHj1ZQCXYJxo8kjS-z4y0LpDWNmE/view?usp=sharing

File containing the coordinates: https://drive.google.com/file/d/19KqS3f0PGAy5zQPAjqcIEFPUEO5DQY1f/view?usp=sharing

$\endgroup$
10
  • $\begingroup$ Just a stupid question: Where does the information come from, which vertex should be connected to which one? $\endgroup$
    – quellenform
    Oct 8, 2022 at 15:27
  • $\begingroup$ The vertices are ordered, so they should be connected in the order of the list containing them, eg, buy indices. I use them in OpenGL as LINE_STRIP. But, if you say that there is a more optimal type of order/list, then I can make it and use like that. I update my question, thanks for your time! $\endgroup$
    – Ponzifex
    Oct 8, 2022 at 16:15
  • $\begingroup$ OK, and would it be possible that you also attribute these vertices with the information to which segment they belong? (e.g. outer ring, inner ring, etc.) $\endgroup$
    – quellenform
    Oct 8, 2022 at 16:23
  • $\begingroup$ I don't quite understand the outer ring, inner ring part of the question. What I want is to draw a line that have thickness between adjacent vertices. I have updated my question again showing a photo what I want to render based on information from a CSV file. $\endgroup$
    – Ponzifex
    Oct 8, 2022 at 16:59
  • $\begingroup$ In your last photo, the connections between nails are arbitrary. It doesn't look as if the nails were ordered and someone just connected the nails as connecting the dots. It looks as if someone designed a shape, and then inserted nails into that shape, and then just arbitrarily used various nails to put fill the shape with a string. It could be done in geonodes, but the setup needs more data than just nails. How would an automatic measure know that those areas aren't supposed to be filled? i.imgur.com/QZ7kqB5.png $\endgroup$ Oct 8, 2022 at 17:09

1 Answer 1

0
$\begingroup$

If your vertices are in the right order, just position curve points on them:

$\endgroup$
5
  • $\begingroup$ Unfortunately, your solution doesn't show any result using my vertices. Also, curves not good for me, because the segments must be straight lines. I have updated my question with additional photos, what I want a realistic render from. Thanks for your time! $\endgroup$
    – Ponzifex
    Oct 8, 2022 at 17:21
  • $\begingroup$ @Ponzifex I don't know why Markus uses the node Arc here instead of Curve Line or Mesh Line, but if this example doesn't work for you, it's not because of this suggested solution. You get straight lines if you leave out the last two nodes. Maybe now would be the time for you to share your blend file with us so we can see what we are dealing with here. $\endgroup$
    – quellenform
    Oct 8, 2022 at 17:33
  • $\begingroup$ @quellenform curves is my Achilles' heel, but I'd need to resample a Curve Line, right? A mesh line would have to be converted to a curve for auto handles, though the question edit reveals the answer as incorrect. $\endgroup$ Oct 8, 2022 at 17:36
  • $\begingroup$ @MarkusvonBroady Yes, absolutely correct, a Curve Line would have to be subdivided with Resample Curve. Arc, on the other hand, would be just a single node, but superfluous computational effort, strictly speaking (which is not tragic, though). And yes, Mesh Line would also require Mesh to Curve. ...but as you also rightly pointed out: Obviously an XY problem. ;-) $\endgroup$
    – quellenform
    Oct 8, 2022 at 17:45
  • $\begingroup$ @quellenform I have added the .blend and the csv file to my question. Thanks! $\endgroup$
    – Ponzifex
    Oct 8, 2022 at 17:53

You must log in to answer this question.

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