Feature suggestion: Chamfer/Fillet individual vertices

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
Post Reply
dnew92130
Posts: 1
Joined: Wed Sep 22, 2021 3:22 pm

Feature suggestion: Chamfer/Fillet individual vertices

Post by dnew92130 »

In Blender I can select individual vertices and bevel them (bevel being Chamfer and Fillet). The result of beveling the four top corners of a square comes out like this:
Blender beveled vertices
Blender beveled vertices
BevelVert.png (58.95 KiB) Viewed 1297 times
I tried to loft from a octagon to a square to a square and not only did I wind up with curved edges between those first two, I couldn't thicken it and other manipulations were problematic.

I asked (on reddit) how to do the Blender operation in FreeCAD and was shown a method involving multiple sketches and a datum plane for each corner. Straightforward but kind of tedious compared to chamfering edges. Then several people suggested that developers might be interested in adding such a feature to FreeCAD, so here I am, suggesting that such a feature might be useful for others as well.

(The reason *I* was doing it is the thing I'm putting in the box is that shape. I don't know if other people often need that effect.)

Thanks for your attention!
chrisb
Veteran
Posts: 54293
Joined: Tue Mar 17, 2015 9:14 am

Re: Feature suggestion: Chamfer/Fillet individual vertices

Post by chrisb »

Hi and welcome to the forum!

Not as easy as your proposal, but in FreeCAD you could do it with one sketch based corner pocket and then use a pattern for the other edges. At least when you want to change the size of all chamfers, there is an advantage with the parametric approach.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Yosyp
Posts: 39
Joined: Mon Jul 19, 2021 10:48 am
Contact:

Re: Feature suggestion: Chamfer/Fillet individual vertices

Post by Yosyp »

I'd love this feature too.
TheMarkster
Veteran
Posts: 5513
Joined: Thu Apr 05, 2018 1:53 am

Re: Feature suggestion: Chamfer/Fillet individual vertices

Post by TheMarkster »

Check the Ruled checkbox when making the loft to not get curved edges.
TheMarkster
Veteran
Posts: 5513
Joined: Thu Apr 05, 2018 1:53 am

Re: Feature suggestion: Chamfer/Fillet individual vertices

Post by TheMarkster »

Further updates are continued in the scripting forum here: https://forum.freecadweb.org/viewtopic.php?f=22&t=62597

Update #6 (update bevel.py and restart FreeCAD)
version 0.2021.09.29

Changes:
* add FilletEdges property (if true edges created by the bevel are filleted)
* add FilletRadius property

Note: only the edges created by the bevel operation are filleted, or at least, those are the only ones the macro tells OCC to fillet.

*********

Update #5 (need only update bevel.FCMacro, no need to restart FreeCAD)
Changes:

* add creation of bevel to document transaction for undo capability


*********
Update #4 (last one today I promise) new version 0.2021.09.28.rev4 (need to update bevel.py and restart FreeCAD)

Changes:

* fail more gracefully when the bevel can't be made
* don't claim children or hide them on failure

*******

Update #3 new version 0.2021.09.28.rev3 (need to update bevel.py and restart FreeCAD)

Changes:
* add Refine property
* fix crash on FreeCAD 0.20 where object had unrefined edges. Fix is to refine the object prior to making the bevels. The object itself is untouched, but the shape is refined before Bevel does its thing with it.

**********
Update #2: (only need to update the bevel.FCMacro file -- no FreeCAD restart necessary)
Changes:
* enable multiple object selection and create a Bevel object for each object selected.
* if no subobjects selected (no vertices) then UseAllVertices is set to True.

**********
Update: new version 0.2021.09.28.rev2 (only need to update the bevel.py file and restart FreeCAD)

Changes:

* claims children in the tree
* bug fix (failed when only 1 vertex selected)
* unhides children on delete
* UseAllVertices property. If true, bevels all vertices of the object.

I also tried it on a face and it worked, so should be able to use on planes and other 2D objects. Works on sketches, but breaks them. To use on a sketch make a face out of it first, and then bevel the face object.

Forgot to mention usage earlier, if it's not obvious: select one or more vertices and run the macro. All vertices must belong to the same object.

*********

Give this macro a go. Copy bevel.FCMacro and bevel.py into your macros folder. Bevel.svg is the toolbar icon.
Snip macro screenshot-92080e.png
Snip macro screenshot-92080e.png (52.12 KiB) Viewed 960 times
Edit: Tried it on an 8-sided prism:
Snip macro screenshot-15faea.png
Snip macro screenshot-15faea.png (56.41 KiB) Viewed 934 times
Attachments
bevel.FCMacro
(798 Bytes) Downloaded 34 times
bevel.py
(11.13 KiB) Downloaded 38 times
Bevel.svg
(13.07 KiB) Downloaded 42 times
Post Reply