検索 - User list
Full Version: How to subdivide/split a face by points in a grid pattern
Root » Houdini Indie and Apprentice » How to subdivide/split a face by points in a grid pattern
bashorton
Hi, this might be a simple one, but I'm working on a procedural building model and want to create even divisions per each face to add windows ect. I feel like it should be simple but the divide sop doesn't respect the bounds of each face, and subdivide creates different sized divisions. My new thinking is to resample the edges then split the face at each point, in a grid pattern. Looking forward to hearing suggestions.

Mike_A
It's not clear to me exactly what you want to achieve here. As I'm reading it, you seem to be trying to achieve two mutually exclusive conditions. Subdivide or Divide (brickify) would seem to be the obvious options, but they don't seem to be meeting your needs. Can you clarify?
animatrix_
Hi,

You can do this easily with an extra float parameter called bysize for x and y divisions respectively:

max(2, ceil(ch("sizex") / ch("bysize")))

max(2, ceil(ch("sizey") / ch("bysize")))



bashorton
Thank you both, I think I've explained myself very badly, but here are some images that show the problem of using divide and subdivide. They both produce uneven faces which wouldn't work for my use. The grid was actually just for demonstration, think of it as a completely plain quad face I'm working with. Probably the answer is I should find a way to not get to this position in the first place, but the third image is what I'm looking to achieve.

Thanks!








bashorton
Just in case anyone was interested, this quad fill node in the modeler plugin suite does what I was looking for.

Modeler tools [alexeyvanzhula.gumroad.com]

julca
Hello @bashorton, I think @animatrix_ give you a good option.

I also done for the "SideFX Labs Tech Art Challenge 2021" the "divide equally" node which, even if it probably need more work, I still use it often in production and found it very usefull (I'm biased of course ):
Divide Equally [www.sidefx.com]
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB