Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. Be respectful, on topic and if you see a problem, Flag it.

If you would like to contact our Community Manager personally, feel free to send a private message or an email.

New feature: hexagonal pattern

jelte_steur814jelte_steur814 Member Posts: 459 PRO

I ran into multiple questions of people looking for hexagonal patterns on the forum.

There are great options at the moment with 'grid extrude' and 'fill pattern', but each embed the hex pattern in an existing function and cut off 'cells' at the edges.

For those looking to purely make a hex pattern, there are ways with linear pattern as well, but all of them require some multiple of patterns/transforms to complete.
So I figured this would be a nice project to maintain my FS coding skills.
So here goes!

Slide1.JPG

@all featurescript wizards:

I copied and adapted the native linear pattern feature and chose to put a lot of the underlying logic and simple math in the "computeLinearPatternTransforms" function at the bottom.
the native feature nowadays uses a builtin computeLinearPatternTransforms that includes the logic for 'skipping instances' as I understand.

Is there another way to build this feature to get the 'skip instances' functionality back?

Tagged:

Comments

Sign In or Register to comment.