Jump to content

rotate object to face down


Recommended Posts

Hello I'm very stuck in this problem and I'm also very new to houdini :unsure:: , i've been looking for a way to align an object to -y direction  based on it's average normal because I want to unwrapp the whole object using cloth simulation but I dont want it to bend inwards , to avoid this, I manually rotate the object so its average normal direction faces down to the ground plane but I have to do this with many diferent objects  that's why I was looking for an automatic solution  , I managed to get the average vector of my normals and compare it with the normal of the plane , that gives me the diference between them but I don't know how to transfer or convert that radian value into a rotation to apply it to my objects in order to make them face down, I would apreciate very much any clue, or if there is a solution already done , i tried the best fit plane asset but I want exacly the oposite effect. thank you very much in advance for your help !

I attach some images explaining what I mean:

 these are my incoming geometries.

image.thumb.png.f5fb69373cc323dbe3acb450f7f6e353.pngimage.thumb.png.6bc06b7f1017fe0daa54e96589cb1054.png

 

and this is what I want to achieve.

image.thumb.png.710d1759c1318816647593afa0ea5ed9.pngimage.thumb.png.352e2d45a9256e12479b346b50368486.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...