wood floor: random plank lenght

   2091   3   3
User Avatar
Member
1004 posts
Joined: April 2017
Offline
Hi!

I'm trying to make a wood floor from a basic polygon shape. I'm using the Divide SOP to divide each plank at the same width.

I would like to know if there's a way to select all planks that are too long and split them. Note that some planks of my setup can end with more than one edge.

Thanks!

-Olivier

Attachments:
wood_floor_how.JPG (120.6 KB)

User Avatar
Member
13 posts
Joined: Feb. 2017
Offline
Hi Oliver,
Usually one would use the Measure node to set an attribute, then use that attribute in define a group etc..

Richard.
User Avatar
Member
1004 posts
Joined: April 2017
Offline
That's a good starting point. I'll check it out.

Thanks!

-Olivier
User Avatar
Member
670 posts
Joined: Sept. 2013
Offline
You can identify large pieces by their primintrinsics, eg:
i@group_cut = primintrinsic(0, "measuredperimeter", @primnum) > chf('cut');

How do you want to react to the case circled? Anyways, you can find obliquely cutted pieces by their primvertexcount:
primvertexcount(0, @primnum)>4

Attachments:
floor.hipnc (173.8 KB)

https://procegen.konstantinmagnus.de/ [procegen.konstantinmagnus.de]
  • Quick Links