Boolean on polycurves

   4990   9   1
User Avatar
Member
10 posts
Joined: Nov. 2018
Offline
I am looking for a way to subtract polycurves from eachother, like a boolean operation, which turned out trickier than I thought (for a noob like me).
The curves are all flat on the XZ plane, so the edges are all intersecting.
I basically want to subtract the curves from each other to create a shape which I then can extrude and still have the original profile curve.
Any help is appreciated.
User Avatar
Member
8832 posts
Joined: July 2007
Offline
Boolean SOP, set both to Surface
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
77 posts
Joined: Feb. 2017
Offline
you can use end SOP to close straight one curve and extrude it along curve normal and than fill the cap, finally use it to boolean with other curves by intersect analysis / stitch SOP or try my Boolean Curve [vimeo.com] HDA to boolean other curves.

Furthermore, if you only want to get the profile curve, perhaps my Get Outline [vimeo.com] HDA can achieve it.

I must say Houdini is so good at solving curve (but does not have a handy curve SOP)…
Edited by zengchen - April 29, 2020 03:58:43
My Youtube Channel [www.youtube.com]
User Avatar
Member
10 posts
Joined: Nov. 2018
Offline
tamte
Boolean SOP, set both to Surface
Well, it works for subtracting but not for union. For union the overlapping edges remain, I do not get 1 curve outlining the 2 input curves.

@zengchen
I tried your boolean curve hda but for me it doesn't do anything. I can't even pick which boolean operation I want to use.
+1 for your signature though.
User Avatar
Member
8832 posts
Joined: July 2007
Offline
blackbeard
Well, it works for subtracting but not for union. For union the overlapping edges remain, I do not get 1 curve outlining the 2 input curves.
they do remain, but polygons are unified
so just append Divide SOP and check Remove Shared Edges if you want just outline
Edited by tamte - April 29, 2020 04:37:19

Attachments:
ts_2d_boolean.png (30.8 KB)
ts_2d_boolean.hip (102.5 KB)

Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
77 posts
Joined: Feb. 2017
Offline
blackbeard
I tried your boolean curve hda but for me it doesn't do anything. I can't even pick which boolean operation I want to use.
+1 for your signature though.
if you do not show the hip, i am hard to do further
Edited by zengchen - April 29, 2020 04:40:03
My Youtube Channel [www.youtube.com]
User Avatar
Member
10 posts
Joined: Nov. 2018
Offline
tamte
blackbeard
Well, it works for subtracting but not for union. For union the overlapping edges remain, I do not get 1 curve outlining the 2 input curves.
they do remain, but polygons are unified
so just append Divide SOP and check Remove Shared Edges if you want just outline
Awh nice, that Divide SOP made my day. Thanks a lot.
User Avatar
Member
77 posts
Joined: Feb. 2017
Offline
…so, your origin geometry is not curve but polygon?

but why you say "The curves are all flat on the XZ plane, so the edges are all intersecting"?

i am so curious why tamte can get the point from your words. ⊙﹏⊙∥
Edited by zengchen - April 29, 2020 06:01:42
My Youtube Channel [www.youtube.com]
User Avatar
Member
10 posts
Joined: Nov. 2018
Offline
zengchen
…so, your origin geometry is not curve but polygon?

but why you say "The curves are all flat on the XZ plane, so the edges are all intersecting"?

i am so curious why tamte can get the point from your words. ⊙﹏⊙∥

I'm sorry, now that I read it I see that it indeed is a bit confusing. In my case I'm dealing with circles which are set to polygon but since they can also be seen as curves I called them polycurves although they are much more precisely described as circle polygons, I guess.
Tamte probably just deduced from the term polycurve “Ah, he means the outer egde of whatever n-gon”
User Avatar
Member
915 posts
Joined: Sept. 2018
Offline
Can you share an example image of what you would need to do, or create?
Edited by PolyMarvels - Jan. 9, 2023 15:38:54
QA Specialist at Greyscalegorilla |PolyMarvels YT: https://www.youtube.com/channel/UCqXuTLiaL-jqvn3LK1XlwHg [www.youtube.com] | Instagram: https://www.instagram.com/polymarvels/?hl=en [www.instagram.com]
  • Quick Links