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.
New Custom Feature: Bounding Cylinder
joshtargo
Member Posts: 244 EDU
I wanted to make primitive shapes of robot parts to play around with packaging. I found (and wrote) a Bounding Box FS, but there was nothing for Cylinders, and I now understand why. Determining the smallest cylinder that will completely enclose a group of bodies is non-trivial. Hopefully someone else finds this useful.
Link: Bounding Cylinder
3
Comments
wow yeah I'm not sure how I'd even start to code that. Nice work! I added it to my toolbar. I did play with it a bit and for most things it nails it. There was some odd behavior in a few cases
Ooh, weird, can you link it so I can dig deeper?
Thanks for playing around with it.
Thanks for sharing it https://cad.onshape.com/documents/97390ad3b27148a19fa88b97/w/08a37718f659a4c928047de2/e/324740245d6d1ed5e302239e
I'm working on it, your test is apparently good for finding problems.
haha, I'm just unlucky I guess
No, I'm just a bad coder. I needed edge cases.
I've definitely run into times where everything seemed to work because I only tested with axes aligned with the world XYZ, and only found issues when I tried odd coordinate systems