Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- 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.
crazy Attractor Pattern feature coming soon, had to share
I had some breakthroughs on the feature the past few days so I had to share some images. I'm working on a new Attractor Pattern feature (impractical, I know), and having a great time playing with it! It's inspired by some of the work I've done with Rhino and Grasshopper in the past, and I wanted to see if I could do similar things with FeatureScript. Turns out I can. I'll make it public when I think it's ready. Sorry in advance to Onshape's servers for the amount of number-crunching . It's almost definitely going to be the heaviest feature in your tree.
Evan Reese
8
Comments
That looks really cool!! What is the purpose of the attractor-driven patterning?
Onshape, Inc.
Answer: It looks cool.
I love it. This does look really interesting. Adding visual style features like this is more useful that you may think. Its surprising where things like this get used.
I think you could get it working across your panels with a new feature instance per-panel. As long as your input parameters are the same and you use the same attractor, it ought to work. I'm not sure that the hexagons would line up at the corners exactly. I think if it doesn't work right now, it could be made to work with some code updates. You could also transform the panels to all line up on a flat plane, make your pattern in one feature, then transform them back. That would almost certainly work.
I am curious if @mark_leichliter could use a 3D spline or a Helix feature as the input for the attractor and then have the custom feature map to each face of the part as it goes around.
Onshape, Inc.
https://cad.onshape.com/documents/17627523c128e89232260008/v/69de3eb9cf75934c15e8700a/e/eb36b930236723a924bc1d96
@alnis is my personal account. @alnis_ptc is my official PTC account.
@alnis is my personal account. @alnis_ptc is my official PTC account.
It's worth noting that even if you could get an attractor setup within the feature tree, the rebuild time would eat your lunch since you have to use "apply per instance" feature patterns which will have a lot of extra computation you don't need. Your two patterns make 252 instances at about 29 seconds.
With the custom feature, I was able to make 4696 instances in about 29 seconds since it doesn't have the baggage of all of the extra stuff in each feature call. I'm just calculating transforms, and combining them, which are pretty lightweight math. And that's with me really not knowing how to optimize a feature (I'll be posting questions on that later).
@alnis is my personal account. @alnis_ptc is my official PTC account.
Can't wait - looks super interesting!
Here's a better example of a more realistic use-case. I expect to be ready to release it tomorrow sometime btw.
That is SUPER neat! Looking forward to using the feature and taking a look at your FS!
Onshape, Inc.
Eduardo Magdalena C2i Change 2 improve ☑ ¿Por qué no organizamos una reunión online?
Partner de PTC - Onshape Averigua a quién conocemos en común
These are some articles about performance in arrays I wrote some time ago
http://c2i.es/blog/close-2-circle-1/post/optimizacion-de-rendimiento-en-onshape-parte-i-294
Eduardo Magdalena C2i Change 2 improve ☑ ¿Por qué no organizamos una reunión online?
Partner de PTC - Onshape Averigua a quién conocemos en común