Jump to content

Cut polygon faces from polygon lines


Recommended Posts

Hey guys been awhile since I used Houdini, how can I cut polgygons with polgyon lines? I have a series of straight lines that I want to divide a box from (preferably only one face of the box that faces directly at them)

May be ray using min distance and a curvesect is what you want to try.

Link to comment
Share on other sites

  • 3 years later...

Did anybody succeed in re-building this? I guess somehow the curve positions get transferred into the split locations which seem to be in another context. Seems that it is made up by the primitive number, edge number and a divider. No idea how to convert the curve coordinates into this. Anybody an idea?

Afterwards I would disconnect the edges across the split to separate the polygons.

Could anybody help me out?

P.S.: Could this also work with polygons with more than four edges?

Link to comment
Share on other sites

Had a play, got something that sorta works. Reading the help page for polysplit, noticed it accepts a few different ways to define the cuts, including prim+uv, which is easy to get with vex and xyzdist.

 

post-7292-0-51459000-1447648865.gif

  1. One wrangle takes each point on the curve, uses xyzdist to get closest prim and uv of the target mesh.
  2. Second wrangle collects all the hitpoints and stores them in a single detail string, in a format polysplit expects.
  3. Polysplit uses details() expression to read that string into itself
  4. Groups pre/post split to isolate the new points, do things if required.

Bit glitchy, that vimeo one is obviously doing some clever things under the hood, but I'm guessing the core of how to drive the polysplit procedurally is something like this.

 

polysplit_procedural.hip

Edited by mestela
  • Like 2
  • Thanks 1
Link to comment
Share on other sites

  • 2 years 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...