How to subdivide/split a face by points in a grid pattern

   324   3   1
User Avatar
Member
17 posts
Joined: 2月 2022
オンライン
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.

Edited by bashorton - 2025年10月15日 09:24:57

Attachments:
split_face_along_points.hipnc (132.0 KB)
split_face_by_points.png (2.4 MB)

User Avatar
Member
393 posts
Joined: 8月 2018
オフライン
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?
User Avatar
Member
5048 posts
Joined: 2月 2012
オフライン
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")))



Attachments:
1.png (1.3 MB)
grid.gif (3.2 MB)

Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com] https://lnk.bio/animatrix [lnk.bio]
User Avatar
Member
17 posts
Joined: 2月 2022
オンライン
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!








Edited by bashorton - 2025年10月15日 15:19:39

Attachments:
split_face_by_points_04.png (2.1 MB)
split_face_by_points_03.png (1.8 MB)
split_face_by_points_02.png (1.7 MB)

  • Quick Links