Jump to content
ElemKlimov

random rotate top face of polygon?

Recommended Posts

26 minutes ago, sant0s81 said:

@ElemKlimov

You have to check that the foreach nodes name is the same than in the expression :)

Your for each begin is named 2, in the expression is 1.

haha - i am soooo close. however, the top face are leaning. how to fix?

odf_coom_009.PNG

odf_coom_010.PNG

Share this post


Link to post
Share on other sites

@ElemKlimov

I guess your pivot (expression) is not correct.
Pivot has to be on the top face, not below.

Share this post


Link to post
Share on other sites
45 minutes ago, sant0s81 said:

@ElemKlimov

I guess your pivot (expression) is not correct.
Pivot has to be on the top face, not below.

i'm not sure - i copied your settings from previous. does this not match?

ch("../tube3/height")

odf_coom_011.PNG

Share this post


Link to post
Share on other sites

maybe it would be more easy if you upload the scene - difficult to see whats wrong.

Share this post


Link to post
Share on other sites

You are missing / 2 

ch("../tube3/height")/2

 

  • Like 1

Share this post


Link to post
Share on other sites

I think boolean solution is a better option, because the rotation forces a tightening on the top facet.

 

columns01_F.hip

columns.jpg

  • Like 1

Share this post


Link to post
Share on other sites

@flcc

yes, was wondering how to avoid that tightening...
Maybe combining the expression in the transform with something like ray?
Isnt boolean more heavy?
Anyway, thanks for the example hip! :)

Share this post


Link to post
Share on other sites

footprint left by a Giant, thousands of years ago...

(not that many nodes)

 

Rock_Footprint.jpg

Share this post


Link to post
Share on other sites

not quite sure if that’s what you are after but please take a look at the attached file:

rotate_prim.hiplc

  • Like 1
  • Thanks 1

Share this post


Link to post
Share on other sites

Here's a non-VEX approach, that doesn't even use any rotations.

I'm applying a linear gradient across the top face, and then using a Soft Transform to move the points up based on that mask. You do need Labs for the Gradient SOP.

 

columns01_soft_transform.hiplc

Annotation 2020-07-22 145602.png

  • Thanks 2

Share this post


Link to post
Share on other sites

Many solution here :)

@eikonoklastes, @dleonhardt
nice tricks
@petz
Don' really understand how it works. Not a rotation, a projection ?
could you explain a bit ?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×