Jump to content
Tbai

Fillet/smoothing multiple polys

Recommended Posts

Hello Marionette geniuses,

 

I'm trying to create a wrapper to fillet multiple 2D polys at once by a customisable radius input for a larger network in 2021. I got it to work on a single poly, but it just won't convert all vertexs on multiple objects. It only converts one of the polys as intended, the rest only got either the first or the last vertex converted.

 

I think I may misunderstand how 'list' works in the context for my lack of scripting knowledge...Lists don't return data respectively? how do I tell data goes back to the corresponding objects...?

Any tips would be much appreciated! See an example file attached.

 

Thanks in advance!

Fillet multiple polys v2021.vwx

  • Like 1

Share this post


Link to post

You were almost there. You got the list of vertices correct, but the hPoly input of the Change Vertex Type node needs to have the correct polys compared to the list of vertices. What I did was I "repeated" each of the poly handles so that the polys and vertices matched. I didn't duplicate them, I just repeated their handles in a list so the node would know to go back to that poly each time. This is one of those times when it is important that you have the same list lengths going into the inputs because if they are not the same length, the last item in the shorter list will simply be repeated over and over until the longer list is complete.

Fillet multiple polys v2021 SB.vwx

 

  • Like 1

Share this post


Link to post

Thank you @sbarrett for your very informative and detailed answer to my questions! That's excatly what I was looking for.

Still need to get my head around when to use Sequence and Series...😃

Share this post


Link to post

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

  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.


 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×
×
  • Create New...