Brick wall generator... curves! How to split/access points?

   1655   0   0
User Avatar
Member
1 posts
Joined: June 2020
Offline
Hey

So I'm learning Houdini, fun software so far & I'm trying to make a procedural brick wall generator... The idea is to draw a curve & generate a wall on it & in the future add openings/etc/etc. For now, I'm on 1st stage.

Say I draw a curve (see attachment). I'd like to split it now based on either point type, say, creating an edge out of 2 corners, or based on the angle between points...

So far my thought process is as follows:

1. Split curve based on points/angle.
2. Scatter bricks on each edge, calculate the total brick count, figure out which brick is the last one on the edge & trim it down to size.
3. Capture the last edge brick segment to figure out the mix pattern for when the next edge mix segment.
4. Deal with curves that have bezier, so they are curved ( see attachment).

So far I think I can use scatter along with path logic +/- but I need to resample curve in equal edge distances that are the size of my bricks etc.

In any case... if any1 could me hint to what/where I need to google. That would be great!

My current logic relies on having some kind of node that is capable of producing attribute details with information about curves that then I can use to generate bricks in the following nodes...

Thanks for the help in advance.

Attachments:
2022_05_01---09-45-18_capture_3773.jpg (275.8 KB)

  • Quick Links