-
Notifications
You must be signed in to change notification settings - Fork 391
Add rounded slot feature #186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
@@ Coverage Diff @@
## master #186 +/- ##
==========================================
+ Coverage 94.82% 94.86% +0.03%
==========================================
Files 19 19
Lines 4116 4144 +28
==========================================
+ Hits 3903 3931 +28
Misses 213 213
Continue to review full report at Codecov.
|
|
Thanks a lot @bweissinger ! Some minor comments in the review. |
|
@adam-urbanczyk @jmwright Added changes to address noted issues. |
|
@bweissinger Looks good. Thanks for implementing this. |
|
Thanks for you work @bweissinger . Before we merge it, I think we need to still discuss the naming. I realized that |
Good catch. As far as actual function names, the only package I have any idea on would be Freecad. Looking at the Freecad console, the slot sketch command seems to be named In my experience, slot usually refers to a 2D sketch feature. If a CAD package does use 3D slots, they don't seem to have a 2D slot features. A notable exception is Solid Works. It has both, but the 3D feature is actually located under Unfortunately, the above programs all have a GUI to provide context. They could have both 2D and 3D, and name them both
With everything above in mind, a couple of possibilities includes:
|
|
@jmwright any thoughts on the name? |
|
@adam-urbanczyk I'm not sure. |
|
@jmwright I think in AutoCad there is a similar feature called "RoundedRect", but where there is one more degree of freedom namely the height of the rect. Our "slot" would be a special case of a rounded rect, where H = 2 * R. Maybe be it makes sense to generalize our slot to a rounded rect, which can be parameterized by width, height, edge_radius and where height defaults to 2 times egde_radius when not given by the user. |
|
I looked at the newest FreeCAD and in the sketcher UI I can see a @Hatatister you can create a rounded rectangle by using |
|
Slot2D sounds good to me as well. |
|
@adam-urbanczyk looks great to me! |
|
+1 |
|
Thanks for your contribution @bweissinger ! |
Adds basic functionality for creating slots. It uses the current point as the center point for the slot. Length is the overall end to end length of the slot, with direction set by angle in degrees. Addresses #158