Copy operator - Normal alignement (How to build the correct vector ?).

   2353   3   2
User Avatar
Member
17 posts
Joined: May 2016
Offline
Hello guys,

I'm having some hard time to build the ‘correct’ vector for this system (attachement).
The result I'm looking for is a ‘perfect’ orthogonal/parallel orientation of the copied elements (the small cubes).

I have tried all the possible combo using the polyframe operator, but there is obviously something I completely miss.

Any advice is more than welcome.

Thanks.

Pascal.


Edited by PascalBkm - June 13, 2016 15:23:09

Attachments:
NormalDepress.jpg (164.5 KB)
NormalDepress.hip (71.3 KB)

User Avatar
Member
17 posts
Joined: May 2016
Offline
Ok I have a super dirty solution.
Looping through every faces, and building an up vector based on the first 2 points.

I'm still interested to see a clean method

Cheers.
Edited by PascalBkm - June 13, 2016 17:11:40

Attachments:
Resolved.jpg (175.4 KB)
NormalDepressResolved.hipnc (91.1 KB)

User Avatar
Member
4189 posts
Joined: June 2012
Offline
Try the attached - the main issue is that you need to stop the interpolation of the vectors when you scatter points, using an attributetransfer allows you to do that.

This page has all the attributes that copying uses:
http://archive.sidefx.com/docs/houdini15.0/copy/instanceattrs [archive.sidefx.com]
Edited by anon_user_37409885 - June 15, 2016 01:00:03

Attachments:
fixND.png (1016.7 KB)
NormalDepress_edited.hiplc (107.0 KB)

User Avatar
Member
17 posts
Joined: May 2016
Offline
Hi Artye,

That's indeed very sexy, thanks a lot for taking from your time to resolve this problem, and for posting the .hip
Cheers.
  • Quick Links