change the order of points

   1905   6   1
User Avatar
Member
5 posts
Joined: 9月 2022
オンライン
Hello guys,

I was wondering if there's any chance I can change the ptnum of my points ?
I'm still a beginner in Houdini and I'm trying to copy points planks to these points. I'm not 100% sure, but I've got a normals problem and I think it comes from the ptnum.

My points are in this order
(screen1), which makes the normal looks like this (screen2)


And this is how my planks look like when I'm copying them.



As I said, I think it's a problem coming from the normals, and that this problem is because of the ptnum. So if there's any way to change the points in a better way than the sort node, which didn't have what I was looking for, I'm all ears.

I'm working on a procedural balcony and trying to reproduce this variant ;

Thanks for your help!
Edited by tq_stn - 2024年7月29日 10:29:27

Attachments:
Capture d'écran 2024-07-29 152715.png (170.1 KB)
Capture d'écran 2024-07-29 152236.png (1.1 MB)
Capture d'écran 2024-07-29 152317.png (1.2 MB)
Capture d'écran 2024-07-29 152438.png (654.2 KB)

User Avatar
Member
375 posts
Joined: 8月 2018
オフライン
Your planks are being copied to your points. Your points are not evenly spaced - hence the spaces and overlaps.
There is quite a bit you need to understand to use copy to points like this: how the Resample SOP works, normal and up attributes etc. It really is well worth your time to study those.

For a simple straight line situation like this you'd be better off just using the 'Copy And Transform' SOP for each of the three sides and doing a merge.
Edited by Mike_A - 2024年7月29日 12:49:33
User Avatar
Member
5 posts
Joined: 9月 2022
オンライン
Mike_A
Your planks are being copied to your points. Your points are not evenly spaced - hence the spaces and overlaps.
There is quite a bit you need to understand to use copy to points like this: how the Resample SOP works, normal and up attributes etc. It really is well worth your time to study those.

For a simple straight line situation like this you'd be better off just using the 'Copy And Transform' SOP for each of the three sides and doing a merge.
Hello, thanks for your answer. I'll do it for the three sides and merge them then, thank you. Does this mean that there isn't a way to change the point order ?
User Avatar
Member
687 posts
Joined: 8月 2019
オフライン
tq_stn
Hello, thanks for your answer. I'll do it for the three sides and merge them then, thank you. Does this mean that there isn't a way to change the point order ?

Join SOP then Sort SOP by vertex order.
Edited by raincole - 2024年7月29日 13:36:21
User Avatar
Member
205 posts
Joined: 1月 2014
オフライン
This might help
https://www.sidefx.com/docs/houdini/copy/instanceattrs [www.sidefx.com]
I contribute to the beauty of this world
https://houdininotes.ivanlarinin.com/ [houdininotes.ivanlarinin.com]
User Avatar
Member
375 posts
Joined: 8月 2018
オフライン
As raincole says. One thing to note about this: it's the vertex order that controls curve connectivity, not the point order, hence raincole's guide to sort 'by vertex order'. If you're uncertain about the difference between points and vertices, that's another thing to add to your learning list. Have fun : )
User Avatar
Member
5 posts
Joined: 9月 2022
オンライン
Thanks for all of your answer guys, I guess I've got what I need!
  • Quick Links