Jump to content

Trimmed Nurbs To Clean Polys via Skin or otherwise


archo_p

Recommended Posts

Hello!

Relatively new to houdini modelling.  I have some old experience with nurbs modelling from old Rhino days and have been using poly and boolean to some success, but when i'm making inherently 'nurbsy' forms I find it difficult to get back to clean polygons that have good topology preocedurally.  I think there is a simple solution here I am missing so just hoping for some best practices from the masters!  I have a trimmed nurbs surface that I want to get back to polys by skinning the profiles but with cross sections generated along the surface of the source nurbs surface.  Since its trimmed the UV curves of the nurbs aren't super useful.  My hope is to somehow get projected cross sections, convert and re-sample so they have the same number of points and use those as cross sections in a skin sop that takes the re-sampled trim profiles as U boundaries.  Any help or advice about how to approach would be much appreciated.  I am attaching a simple file with a null representing the shape I am hoping for called "idealShape_for_cleanpolys" and then a part of the network where I am crudely converting the profiles to polys for a skin operation, but obviously this has no U sections so is just a simple skin between the two profiles with no V information between the two profiles.

 

Cheers 
P

trimmedNurbsToCleanPoly.hiplc

  • Like 1
Link to comment
Share on other sites

Hi Archo,

you can create CAD-like shapes by transferring NURBS surface positions to parameterized polygon meshes through curve ramps.

shape_transfer.png.a5af9fa6b636ab16addc39d31f585713.pngshape_transfer_2.png.d1e89073eba476208c529019d61141e2.png

vector uvw = vertex(0, 'uv', i@vtxnum);
float deform_top = chramp('shape_top', uvw.x);
float deform_btm = chramp('shape_bottom', uvw.x);
uvw.y = fit01(uvw.y, deform_top, deform_btm);
v@P = primuv(1, 'P', 0, uvw);

shape_transfer.hipnc

  • Like 2
Link to comment
Share on other sites

Thanks @anim!  This is poly bridge/ray solution is exactly the kind of thing i was looking for, thank you!

@konstantin your example is very intriguing, will need to investigate that further to see what is going on there and how it might be of use.

Thank you for your help, this is great!

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