road intersections in a city asset

   6663   10   4
User Avatar
Member
194 posts
Joined: Aug. 2011
Offline
https://youtu.be/PDrALvAqsaI?t=11m19s [youtu.be]

I am working on a city asset. I have brought in lines from open street map for the roads, but I am not sure how to deal with intersections. I want something that looks like the video above. How to do?

thanks
User Avatar
Member
2536 posts
Joined: June 2008
Offline
Feek put his phone number on the video (SHOW MORE) Why don't you call him and ask him?
Using Houdini Indie 20.0
Windows 11 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
User Avatar
Member
194 posts
Joined: Aug. 2011
Offline
ha, yeah, i actually sent him an email, but i think maybe i had the wrong email address. i didn't notice the phone number! I wonder if it is still the same…

User Avatar
Member
1799 posts
Joined: Oct. 2010
Offline
have you tried the polyExpand2D sop? I been using it and abusing it for GIS based roads…
-G
User Avatar
Member
338 posts
Joined: Sept. 2006
Offline
Freek, also has a video on roads
https://www.youtube.com/watch?v=ijYkWaPkDMw
[youtube.com]
and yeah polyexpand2d is great for this sort of work as well
Cheers
Nick
User Avatar
Member
620 posts
Joined: Nov. 2013
Offline
grayOlorin
have you tried the polyExpand2D sop? I been using it and abusing it for GIS based roads…

It seemed error if input curve has intersections. How to deal with the cross lines?
User Avatar
Member
1799 posts
Joined: Oct. 2010
Offline
Try any of the following approaches in this hip file. Make sure you are using latest build as there are some bugs which have been fixed in recent builds (which would have cause a segfault). The example of the right is what I use

I do wish the node did handle this underneath the hood. I think that would be a valid RFE IMO

Credit to Ondrej for the dissolve trick! (which later led me to the carve trick)

Hope this helps!

Attachments:
polyExpandExample.hiplc (97.8 KB)

-G
User Avatar
Member
620 posts
Joined: Nov. 2013
Offline
grayOlorin
Try any of the following approaches in this hip file. Make sure you are using latest build as there are some bugs which have been fixed in recent builds (which would have cause a segfault). The example of the right is what I use

I do wish the node did handle this underneath the hood. I think that would be a valid RFE IMO

Credit to Ondrej for the dissolve trick! (which later led me to the carve trick)

Hope this helps!

I'll study it. Thank you very much!
User Avatar
Staff
1072 posts
Joined: July 2005
Offline
grayOlorin
Credit to Ondrej for the dissolve trick! (which later led me to the carve trick)

I only passed it on. It was pointed out to me by someone else.
User Avatar
Member
385 posts
Joined: July 2018
Offline
grayOlorin
Try any of the following approaches in this hip file. Make sure you are using latest build as there are some bugs which have been fixed in recent builds (which would have cause a segfault). The example of the right is what I use

I do wish the node did handle this underneath the hood. I think that would be a valid RFE IMO

Credit to Ondrej for the dissolve trick! (which later led me to the carve trick)

Hope this helps!
Awesome technique! what about variable width?? primary - secondary roads
User Avatar
Member
1737 posts
Joined: May 2006
Online
Would be great to have a surefire method, I always end up randomly stabbing at nodes until it works.

That said, this time I had luck with a intersection stitch sop.

Attachments:
polyExpandExample_stitch.hiplc (138.1 KB)
roads.JPG (71.1 KB)

http://www.tokeru.com/cgwiki [www.tokeru.com]
https://www.patreon.com/mattestela [www.patreon.com]
  • Quick Links