Stream: brlcad

Topic: example geometry


view this post on Zulip Sean (Jul 12 2018 at 19:07):

I just added some quick example geometry that shows three different methods for rounding an RCC, rounds.g in the db directory of a fresh build (r71159): Screen-Shot-2018-07-12-at-3.03.33-PM.png

view this post on Zulip Jaipal Singh (Jul 12 2018 at 19:08):

How did you construct it?

view this post on Zulip Sean (Jul 12 2018 at 19:11):

"svn up" and check them out

view this post on Zulip Jaipal Singh (Jul 12 2018 at 19:12):

Sure

view this post on Zulip Sean (Jul 12 2018 at 19:12):

all three utilize torus for rounding, that's perfect for rounding a cylinder with circular ends (i.e., RCCs)

view this post on Zulip Sean (Jul 12 2018 at 19:15):

the only question is how to apply the round, and there you'll find three methods. the first or third is typically the obvious solution, you union torus onto the end and fill the torus interior with a smaller cylinder. you can use just one cylinder that spans both ends (method1) or separate cylinders (method3) which is slightly more efficient for ray tracing.

view this post on Zulip Sean (Jul 12 2018 at 19:18):

with method2, it uses a slightly more advanced approach where we first carve out the corner (with a specifically positioned torus) and then just union our rounding torus. this preserves the original length of the cylinder being rounded, which is a useful property when the length matters.

view this post on Zulip Sean (Jul 12 2018 at 19:19):

you can preserve the length in method1 and method2, but we'd have to shorten down and move up our main cylinder by the rounding radius.

view this post on Zulip Jaipal Singh (Jul 12 2018 at 19:21):

Wow! These are good. I was close to method1 in terms of what I was trying to do but could never have thought of method2.

view this post on Zulip Jaipal Singh (Jul 12 2018 at 19:25):

Should I implement these in python?


Last updated: Oct 09 2024 at 00:44 UTC