Jump to content

Resample Curve by N attribute


Recommended Posts

hello,

i have a curve in 3d space with an organic shape and i want to resample it so it becomes jagged but maintaining its features. So i was thinking i should compare the tangent value of  each point with its next one and if the difference is big it means the curve is changing direction so i keep that point. If there is no big change in direction i remove points. But i have no idea how to implement this in Vop or Vex, i am new to Houdini. Any ideas?

curve.JPG

Link to comment
Share on other sites

yes tried that, also tried the reifne sop, not exactly the effect i was going for, but it works.

I think it requires more local control, imagine you did this by hand, and you had to make this curve jagged while retaining its features, so to make it more like what a hardsurface panel would look like. the two methods mentioned produce the result in the image below

crv.JPG

Link to comment
Share on other sites

Hi philpappas,

to extract main features of your curve you could first measure its curvature with the new measure SOP or by calculating the dot product of your tangents (see attachment).

image.png.f0279295bf609a151b75a828900097b0.png 

Afterwards a derivation of the curvature might be useful to only keep "break points" that are important to the visual appearance of your curve. I just would not know how to calculate this though.

curve_curvature.hiplc

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