Jump to content

generate to fill up wire curves in tube meshes


tagosaku

Recommended Posts

Hi, I am looking for a smart method to fill up bunch of curves/wires inside of tube meshes. Tubes are imported from Maya/blender/3dmax. So far, I am using findshortestPath to fill up wire curves. However, because of using the findshortestPath. it creates bias and curves cannot fill outside bending area. Wires/curve don't need to be super straight from start to end, but no branch. And this tube exists couples, so looking for procedural way as much as possible. 

 

If anyone knows smart and better to generate wires procedurally, it would be great. Thanks! 

 

image.png.e4a6b20a98203637a9a158f7278eea23.png

findShortestPathInMesh_v004_del.hiplc

Edited by tagosaku
Link to comment
Share on other sites

Thanks for replies, AtomicPerception and Matt

Difficulties are that the asset(tubes) is provided. Then I cannot start from a curve SOP to build own tube shapes. Additionally, when using polyFrame SOP, it seems to not get same clean direction of tangent, either. 

Link to comment
Share on other sites

Hey Tagosaku !

What I would do is to first convert that tube into a polyline, extracting the pscale and the Normal as well.
Then, I'd copy circles to these points to create the cross-sections, scatter points on these cross-sections, and finally connect them.

Like so
placeLinesInTube.thumb.gif.5e2040f65dcff495acf6a8062e142f97.gif

Hope that helps !

findShortestPathInMesh_v004_del.hiplc

  • Like 1
Link to comment
Share on other sites

hi, Alain

This is a very elegant idea to generate curves. Thank you so much!!  I know this requires a clean topology unlike a remeshed polygon, but still great!! This is because we could use for an imported tree to generate a center spline and apply for wire deformer. I have been looking for this technique!!  

Edited by tagosaku
Link to comment
Share on other sites

You're right, this requires a clean tube (with the ends uncapped, and constant point number in the rows)

If your geometry isn't as clean as that (like you said, remeshed), then you could maybe use the Labs Straight Skeleton to generate the curve

It would be a bit harder to generate the pscale and Normal though, but not impossible

 

Glad you like it though !

Link to comment
Share on other sites

@tagosaku

Here's one other option for your wrangle with 4 lines only

You could add change last line to v@P += offset*ch("mult")*chramp("with",@curveu);  if you want to the curve off to spread according to the initial radious width variation of your curve... then detangle

image.thumb.png.00b20a14f826c0513e29625ca3c91d17.png

________________________________________________________________

Vincent Thomas   (VFX and Art since 1998)
Senior Env and Lighting  artist & Houdini generalist & Creative Concepts

 http://fr.linkedin.com/in/vincentthomas

 

 

Edited by vinyvince
Link to comment
Share on other sites

  • 2 weeks later...

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