renderfan Posted February 3, 2014 Share Posted February 3, 2014 Hello all! How can I cut Polygon Geometry with curve? Is it possible? Please see Image. Thank you very much!!! Quote Link to comment Share on other sites More sharing options...
Achraf Posted February 3, 2014 Share Posted February 3, 2014 Hey Renderfan, I think it depends on what you'd like to do with it. I would do this with a Surfsect, convert the grid to nurbs, resample the curve and create a nurbs ribbon by sweeping the curve with a line. Feed it into a surfsect and then convert it back to polygons. hope it helps Quote Link to comment Share on other sites More sharing options...
freaq Posted February 4, 2014 Share Posted February 4, 2014 there is an asset like this on orbolt!http://www.orbolt.com/asset/vosiloB_::poly_curve_split Quote Link to comment Share on other sites More sharing options...
renderfan Posted February 4, 2014 Author Share Posted February 4, 2014 @Condor29 Thank you, I did try this but it only works with quads. My geometry is not clean because I have triangles, quads and n-gons (picture in my first post is only example). It works good for simple plane but not for more complex geometry. @freaq Thank you for tip. I allways forget orbolt. I think the asset is locked and if I want change something it is not possible. And I like to learn from it how something like cut with curve can work All tips are welcome. Thank you again. 1 Quote Link to comment Share on other sites More sharing options...
rafaelfs Posted February 4, 2014 Share Posted February 4, 2014 You can extrude your curve and use a cookie sop with user defined operation. Cheers Quote Link to comment Share on other sites More sharing options...
petz Posted February 5, 2014 Share Posted February 5, 2014 maybe this is what you are looking for... hth. petz split_geo.hipnc 7 Quote Link to comment Share on other sites More sharing options...
zarti Posted February 6, 2014 Share Posted February 6, 2014 hi petz , your files ( and those of some other members ) are abolutely helpful not only about the topic you post those . ill use this occasion to write a sincere ' Thank You ! ' .cheers Quote Link to comment Share on other sites More sharing options...
freaq Posted February 7, 2014 Share Posted February 7, 2014 (edited) Hi Petz, I'm having some issue trying to see what you did in your polysplit node;yous eem to execute this: geo = hou.pwd().node("../null3").geometry().freeze() points = geo.points() attrib = geo.findPointAttrib("split_loc") return " ".join([point.attribValue(attrib) for point in points])however when I try to recreate this, I get errors even when switching the sop to python.even on say an attribcreate it seems to not work.... how do you force this string to be executed? Edited February 7, 2014 by freaq Quote Link to comment Share on other sites More sharing options...
Guest mantragora Posted February 7, 2014 Share Posted February 7, 2014 You need to set keyframe first and then paste the code there. Quote Link to comment Share on other sites More sharing options...
freaq Posted February 9, 2014 Share Posted February 9, 2014 I did that switched to python and still does not seem to work for me..gives me errors such as "ge" not found... which is quite bizarre... Quote Link to comment Share on other sites More sharing options...
Guest mantragora Posted February 9, 2014 Share Posted February 9, 2014 Order of operation is very important. Switch to Python FIRST, set keyframe and then paste the code. Quote Link to comment Share on other sites More sharing options...
freaq Posted February 11, 2014 Share Posted February 11, 2014 @ Mantagora I did that... still does not seem to work,even if I enter like this:geo = hou.pwd().node("../null3").geometry().freeze();points = geo.points();attrib = geo.findPointAttrib("split_loc");return " ".join([point.attribValue(attrib) for point in points]);error I get is an error occurred when processing "ge"I really hope someone can explain this cause I really want this to work as this is something I've been wanting to do for a long time. Quote Link to comment Share on other sites More sharing options...
Guest mantragora Posted February 11, 2014 Share Posted February 11, 2014 Ok, I got the error. Don't paste it into this field. RMB on it and pick Expression => Edit String (or Alt + E) and then paste/write your code 1. Switch to Python 2. Set keyframe 3. Alt + E 4. Paste/Write code Quote Link to comment Share on other sites More sharing options...
freaq Posted February 11, 2014 Share Posted February 11, 2014 aaaah got it thanks... man that was backwards xD weird to see alt + E matters... but owk something new is learned everyday... anyways you're a champ, would have never figured that one out thanks man! Quote Link to comment Share on other sites More sharing options...
whythisname Posted February 12, 2014 Share Posted February 12, 2014 (edited) More good stuff from petz, awesome! Thanks man I was recently also working on a tool to cut polygons with curves and I actually got quite far using the XYZDist node in vop sops. The hardest part I find is solving the boundaries when a curve doesn't go beyond the polygon edges, but I'm enjoying the challenge. The easy way is to just draw a line to the nearest point and use that to end the cut, but I'm trying to make it so it extends the curve with a straight line in the same direction as the last segment of the curve (similar to the asset on Orbolt) within vop (so no dirty foreach loops with clip nodes and such). Edited February 12, 2014 by whythisname Quote Link to comment Share on other sites More sharing options...
willow wafflebeard Posted November 13, 2015 Share Posted November 13, 2015 i got a song for petz! i just logged, to say i love you... i just logged, to say how much i care Quote Link to comment Share on other sites More sharing options...
Ber Posted December 14, 2016 Share Posted December 14, 2016 Thanks everyone, and especially Petz... Ber See ya! Quote Link to comment Share on other sites More sharing options...
davpe Posted December 14, 2016 Share Posted December 14, 2016 if you are still looking for an alternative ways try Break SOP. very straightforward and topology independent. the curve needs to be closed and extruded though. Quote Link to comment Share on other sites More sharing options...
petz Posted December 14, 2016 Share Posted December 14, 2016 in houdini 15 and up you can do this natively with the polysplitSop. just wire the curve into the second input. no need for any workaround anymore ... hth. petz 3 Quote Link to comment Share on other sites More sharing options...
konstantin magnus Posted March 5, 2021 Share Posted March 5, 2021 Here is a polysplit-based procedure to create gaps. Are there any cleaner and more reliable SOPs for this by now? gaps.hiplc Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.