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 Custom Feature: Bounding Cylinder

joshtargojoshtargo 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

Comments

  • EvanReeseEvanReese Member, Mentor Posts: 2,148 ✭✭✭✭✭

    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

    Evan Reese
  • joshtargojoshtargo Member Posts: 244 EDU

    Ooh, weird, can you link it so I can dig deeper?

    Thanks for playing around with it.

  • EvanReeseEvanReese Member, Mentor Posts: 2,148 ✭✭✭✭✭

    Thanks for sharing it https://cad.onshape.com/documents/97390ad3b27148a19fa88b97/w/08a37718f659a4c928047de2/e/324740245d6d1ed5e302239e

    Evan Reese
  • joshtargojoshtargo Member Posts: 244 EDU

    I'm working on it, your test is apparently good for finding problems.

  • EvanReeseEvanReese Member, Mentor Posts: 2,148 ✭✭✭✭✭

    haha, I'm just unlucky I guess

    Evan Reese
  • joshtargojoshtargo Member Posts: 244 EDU

    No, I'm just a bad coder. I needed edge cases.

  • EvanReeseEvanReese Member, Mentor Posts: 2,148 ✭✭✭✭✭

    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

    Evan Reese
Sign In or Register to comment.