Jump to content

How to keep curve length?


Recommended Posts

Hi all,

I have curves modified by edit SOP and want that curve

keep the same length with the unmodified one.

I also found an old post said "Resample SOP" could achieve this.

The attached file is the one I tried but I still didn't get what I want.

(I want "perimeter_mod_new == perimeter_ori")

Please give me some suggestion to get it done.

Thanks.

keep_length.hip

Edited by pyrochlore
Link to comment
Share on other sites

You could resample by lenght, so you'd know how much segments are in your curve (create an attrib to sore NPT)

after your edit sop resample again with same length

delete all PT with number > NPT

This will not be exactly accurate, but depending on what you what to achieve it could be ok.

(see attach file)

Or

You could store your perimeter value

edit your curve

store new perimeter

calculate the difference (perimeter1/perimeter2) and use a carve sop

(this would be accurate)

keep_length.hip

Edited by ben
Link to comment
Share on other sites

Hi,

Thanks for the suggestion from ben.

I made a comparison to these methods (see attach file)

and found the method using Carve SOP get least length deviation.

Even for this method, the deviation is up to 6% { (perimeter_mod_new - perimeter_ori)/perimeter_ori }

and I want the deviation down to 1%.

I don't know where the deviation comes?

Is there any better way to solve this?

keep_length.hip

Edited by pyrochlore
Link to comment
Share on other sites

Thanks, Michael.

That's a great solution I never thought.

In short, the method you provide is to apply the orient of segment in the modified curve to a copy of unmodified one.

So in the final curve we will have segment length equal to the unmodified curve and orient equal to the modified curve.

Hence the length of curve is kept the same.

This method is restricted to the case that the variation of each single segment is uniform.

The method will shrink\expand those segments to the original length.

It is not the same as we using Carve SOP, cutting the tail of the curve.

In my case, ben's solution fit my request more. (though the accuracy is not good)

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