Wrong Position of the Centroide when copying pieces to Point

   1474   3   2
User Avatar
Member
4 posts
Joined: Nov. 2020
Offline
Hi everyone,

I have the following problem:
I want to copy some pieces of geometry to the points of a sphere with the "copy to points" node. I'm using the classical simple node setup
Image Not Found
:

1. Creating some pieces with the "assemble" node
2. Transfering the pieces attributes to the target geometry with the "attributes from pieces" node
3. Using the "copy to points" node to do the trick

The only thing that's special in my setup is the way I create the pieces:
1. I take a sphere and build an array of a few copys of it with "copy and transform" node
2. I deform this geometry array with a "mountain" node
3. Then I use the "assemble" node to extract the pieces

The reaseon I'm doing this is that I get as many pieces as I want that are all shaped differently with only one mountain node!

The problem in the end is, that the different pieces have no individual centroides, even though I added a centroide attribute with an "extract centroide" node. As you can see in the image, the pieces are not copyed to the points by there center:

I'm struggeling with that problem for a few days now, I hope someone has an idea :-/

Best regards
Dennis
Edited by DReiche - June 14, 2023 09:01:28

Attachments:
Assembling_Test_2023-06-13.hiplc (243.5 KB)
Example_1.jpg (834.2 KB)

User Avatar
Member
384 posts
Joined: April 2017
Offline
Use the Match Size SOP to center each piece at the origin, then copy to points.
MOPs (Motion Operators for Houdini): http://www.motionoperators.com [www.motionoperators.com]
User Avatar
Member
4 posts
Joined: Nov. 2020
Offline
Ooooh yes,

that was the solution, thank you so much toadstorm :-D
It took me a minute to figure out, that I have to run the "match size" SOP through the pieces via a "foreach" SOP, but it works perfectly now.

Image Not Found



Two days of desperate search and a 2 minute solution...that's houdini :-))

Thanks and best regards

Attachments:
Example_2.jpg (613.0 KB)

User Avatar
Member
6 posts
Joined: March 2015
Offline
Not working
  • Quick Links