Jump to content


How to extract a clean single NURBS curve


  • Please log in to reply
12 replies to this topic

#1 Macha

Macha

    Grand Master

  • Members
  • PipPipPipPipPip
  • 1,654 posts
  • Joined: 23-July 08
  • Location:The Small Big P
  • Name:Marc ♥

Posted 04 April 2011 - 05:26 PM

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?

Attached Thumbnails

  • Capture1.JPG
  • Capture.JPG

Attached Files


My Vimeo

LinkedIn

improve side effects - use haskell


#2 anim

anim

    Houdini Master

  • Members
  • PipPipPipPip
  • 920 posts
  • Joined: 23-August 07
  • Location:Slovakia, Bratislava
  • Name:Tomas Slancik

Posted 04 April 2011 - 06:03 PM

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

Attached Files


Tomas Slancik
Generalist
Slovakia

#3 Macha

Macha

    Grand Master

  • Members
  • PipPipPipPipPip
  • 1,654 posts
  • Joined: 23-July 08
  • Location:The Small Big P
  • Name:Marc ♥

Posted 04 April 2011 - 06:21 PM

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, 04 April 2011 - 07:01 PM.

My Vimeo

LinkedIn

improve side effects - use haskell


#4 kgoossens

kgoossens

    Initiate

  • Members
  • PipPip
  • 198 posts
  • Joined: 04-May 06
  • Location:Belgium, Antwerp
  • Name:Kim Goossens

Posted 05 April 2011 - 04:44 AM

View PostMacha, on 04 April 2011 - 06:21 PM, said:

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?

Attached Files


“It is not the strongest of the species that survive, nor the most intelligent, but the one most responsive to change.”

- Charles Darwin

#5 anim

anim

    Houdini Master

  • Members
  • PipPipPipPip
  • 920 posts
  • Joined: 23-August 07
  • Location:Slovakia, Bratislava
  • Name:Tomas Slancik

Posted 05 April 2011 - 05:49 AM

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

Attached Files


Tomas Slancik
Generalist
Slovakia

#6 Macha

Macha

    Grand Master

  • Members
  • PipPipPipPipPip
  • 1,654 posts
  • Joined: 23-July 08
  • Location:The Small Big P
  • Name:Marc ♥

Posted 05 April 2011 - 06:00 AM

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, 05 April 2011 - 06:01 AM.

My Vimeo

LinkedIn

improve side effects - use haskell


#7 kgoossens

kgoossens

    Initiate

  • Members
  • PipPip
  • 198 posts
  • Joined: 04-May 06
  • Location:Belgium, Antwerp
  • Name:Kim Goossens

Posted 05 April 2011 - 06:05 AM

View Postanim, on 05 April 2011 - 05:49 AM, said:

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!
“It is not the strongest of the species that survive, nor the most intelligent, but the one most responsive to change.”

- Charles Darwin

#8 hatrick

hatrick

    Illusionist

  • Members
  • PipPipPip
  • 439 posts
  • Joined: 05-January 09
  • Name:lucas riccabona

Posted 06 April 2011 - 12:23 AM

http://www.houdinito...ni.php?asset=37

#9 Barakooda

Barakooda

    Peon

  • Members
  • Pip
  • 78 posts
  • Joined: 12-November 10
  • Location:Israel
  • Name:Barak K.

Posted 24 May 2011 - 11:47 AM

Macha we talked about it long time ago...

http://forums.odforc...__fromsearch__1

#10 Barakooda

Barakooda

    Peon

  • Members
  • Pip
  • 78 posts
  • Joined: 12-November 10
  • Location:Israel
  • Name:Barak K.

Posted 24 May 2011 - 11:50 AM

ant_sort node
to use  it in this case all you need to do is
sort by Y
add the "ant sort" node
then sort by $ANT

Attached Files



#11 Barakooda

Barakooda

    Peon

  • Members
  • Pip
  • 78 posts
  • Joined: 12-November 10
  • Location:Israel
  • Name:Barak K.

Posted 24 May 2011 - 11:56 AM

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.

#12 Barakooda

Barakooda

    Peon

  • Members
  • Pip
  • 78 posts
  • Joined: 12-November 10
  • Location:Israel
  • Name:Barak K.

Posted 24 May 2011 - 11:58 AM

guys i`m sorry that i`m clumsy  !

hehehe

Attached Files






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users