How can I copy geometry along normal?

   5559   2   0
User Avatar
Member
4 posts
Joined: 7月 2017
Offline
Hello. I'm very new to Houdini and couldn't figure out how can I copy geometry along normal of points.
What am I doing wrong? Thank you in advance.
User Avatar
Member
686 posts
Joined: 2月 2017
Offline
You have to give your sphere a normal node and set it to “add normals to points” before you scatter.

and if you are confused by the orientations you receive:
your scattered instances will use their z-axis as the “up-direction”

Cheers
CYTE
Edited by CYTE - 2018年1月24日 16:35:44
User Avatar
Member
7837 posts
Joined: 9月 2011
Online
to align the normal to y, use quaternions instead.

After you have points with N copied from the sphere as CYTE said, use an attrib vop or wrangle to create orient from the dihedral (align vop) from {0,1,0} to N.

@orient = dihedral({0,1,0},@N);

or in vops: (N)->1 { signature: “Angle Axis”, from: , to: input1 } (matx)->0 { name: orient, type: vector4 }
  • Quick Links