Jump to content
Macha

How to extract a clean single NURBS curve

Recommended Posts

I have geometry from which I need to extract a clean NURBS curve (along some edges)

I can't get a clean result because the points are not ordered in sequence.

Does anybody have a good idea for this?

edgenurbs.hip

post-4013-130196679781_thumb.jpg

post-4013-130196680236_thumb.jpg

Share this post


Link to post
Share on other sites

here is one technique you can use

but you probably need to recreate your edge group according to it

the key is to create ordered point group

look at the file

edgenurbs_example.hip

Share this post


Link to post
Share on other sites

That's great Thomas. Now I know what the "Create ordered" tickbox is for :D

Do you think it would be possible to completely proceduralize the process?

Edited by Macha

Share this post


Link to post
Share on other sites

That's great Thomas. Now I know what the "Create ordered" tickbox is for :D

Do you think it would be possible to completely proceduralize the process?

I this something that could help?

edgenurbs_example-Kim.hipnc

Share this post


Link to post
Share on other sites

here is the fully procedural method if you have continuous curve without branching as in your case

it's based on neighboring points so it may be better than proximity searching if you have crazy curves

edgenurbs_procedural_reorder.hip

  • Like 3

Share this post


Link to post
Share on other sites

That's excellent. Thanks so much to both of you. I can chew on these files for a while. Great insights. :D

Edited by Macha

Share this post


Link to post
Share on other sites

here is the fully procedural method if you have continuous curve without branching as in your case

it's based on neighboring points so it may be better than proximity searching if you have crazy curves

Cool!! This solves a lot of problems!

Share this post


Link to post
Share on other sites

make sure the first point (0) is where you want your curve to start,otherwise you will have to shift it and play with it more.

Share this post


Link to post
Share on other sites

Hi guys liking both the sorting tools they are very conveniant and have often helped me out.

basically I'm new (like newborn XD) to python but I would like to make one more addition to the ant sort,

namely that it checks whether there is a point it is connected to.

I get the issue that sometimes the result is incorrect because another point (which should not be the next point)

is closer then the correct one, however the correct point is connected.

I would like the script to check for a connected option first before checking any other point.

any and all help would be greatly appreciated.

-edit nevermind the convert to nurbs also solved my problem, i'm an idiot XD

Edited by freaq

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

×