Jump to content
Sign in to follow this  
Izat

Curve parallel offset

Recommended Posts

Hey guys!

I tryed to make a parralel offset of curve so it moves evenly compared to it's original apperiance. I couldn't do it without sweep node. Because I needed not only normal pointing to proper direction but also needed it's magnitude to push points with proper strength. For this I used "Angle fix" option in sweep node. Other method gave me a proper normal, but it was normalized.

How would you do it with other methods?

curve_parallel_offset.hipnc

curve_parallel_offset.jpg

Share this post


Link to post
Share on other sites

Check out the node PolyExpand2D, it might help in certain situations.

Untitled-1.jpg

  • Like 1

Share this post


Link to post
Share on other sites

Hi Atom. Thanks for the reply.

Yes, I'm aware of Polyexpand node. In fact I liked it a lot, but it didn't give me the effect i wanted, although it gave another good result (attached the image). If it used on an open curve, it expands a curve in all directions, not thw way I wanted. But anyway I'll check it one more time, I may missed something about it.

vex doodles_1.jpg

vex doodles_1b.jpg

Share this post


Link to post
Share on other sites

Use Sweep SOP with the curve as backbone and a Line  SOP in the x direction, Enumerate SOP  the line points, then after the sweep, delete SOP the points which you don't want (group: @index==0), then Add SOP / by group

You'll still have to handle somehow the case where the curvature of the curve is less than the length of the line, you'll maybe have to read some differential geometry..

curves.png

  • Like 1

Share this post


Link to post
Share on other sites

Hey Antoine. Thanks for the tips.

Enumerate sop is totally new for me. Nice to be aware of it. Differential geometry? Hmmm. Have to check it soon.

I tryed to make it work and put it in same scene file, attached it. You can check it in spare time if everything is right.

curve_parallel_offset.hipnc

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
Sign in to follow this  

×