Jump to content

Align geo with normals on an oval shape


Recommended Posts

Hey, I'm working on a building generator and I can't find a way to align my windows properly when the base shape of the building is oval.

 

When it's a circle everything is okay : 

image.thumb.png.9b488f89356ea1bb321be454dfabe431.png

 

But when the shape starts to be oval, it looks like this : 

image.thumb.png.6f0e9eb7e0a7d9ef1acbc27770a06c36.png

 

Here's the vop network I built to align it with a circle shape, but not functionning with an oval shape :

image.thumb.png.30c43e3c5dcf089c205dbccf244c9ad1.png

 

I don't know what I miss to get it working...

Cheers,

Link to comment
Share on other sites

I finally managed to find a solution : 

image.thumb.png.eeb3ebef48a9a6d8f747ff224ac15795.png

I've separate the circle in two parts : one with the points where I copy my windows, and the other is the original geometry where I want my windows to be aligned with (to do this, just duplicate the circle and double the divisions, and then do a grouprange with an offset and keep the part you want to be the source of the copy (the points in blue are the ones from the original geo and the orange ones are those where I copy the geo))

 

image.thumb.png.ac5742c6003909052abf045ebd4d336f.png

Then, I compute normals based on the tangent u (with a polyframe sop) from the original geometry and I transfer it to the points I want to copy my windows over, and I rotate my windows by 90 and then boom, it's aligned.

I've attached a hipfile because I think my explanations are really non-understandable :D

 

Cheers,

 

Align_the_windows.hipnc

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...