Jump to content

convexify and inner rect


MENOZ

Recommended Posts

Hi Andrea,

This is just to give you some inspiration and answers partially to your second question - the Inner Rectangle.. Actually you can easily build most of the cityengine's tools pretty quickly in houdini. Play with the HUD slider to rebuild the shape.

Starting from this point you need to put this into a loop (foreach/hscript or python) and check which rectangle with the largest area.

There's no need to loop over every edge and build rectangles for each one, unless you want to get super accurate results. To gain some speed you can actually build shape starting from single edge only - but this approach can fail inside very stretchy polys.

Looking forward to some creative results :)

kuba

Link to comment
Share on other sites

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...