Jump to content

Help with porcedural building


StrangerSam

Recommended Posts

 

Hello :)

I'm working on a procedural building and actually i'm stuck with something. I've tried many thing but it doesn't work.
I'm trying to add or remove the number of the window when I change the size of the building.
I've wrote this and i've tried to add an offset to keep a space between 2 windows but I didn't find how.

vector mypt = getbbox_size("../box1")/getbbox_size("../box2"); //box2(window), box1(building)
float dist = distance(@P, mypt);
if(dist > ch("distance")){
removepoint(0, @ptnum);
}
if(dist < ch("distance")){
addpoint(0, @ptnum);
}

Is someone can help me with that :)
Thank you

https://youtu.be/iwNiS0YTCms

 

Edited by StrangerSam
Link to comment
Share on other sites

  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...