Can FreeCAD convert adjacent faces to an arc?
Forum rules
and Helpful information
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help
Also, be nice to others! Read the FreeCAD code of conduct!
Also, be nice to others! Read the FreeCAD code of conduct!
Can FreeCAD convert adjacent faces to an arc?
If I have several small faces side by side roughly describing an arc, is there a way to replace them with an arc plotted through the edges and/or vertexes of those faces?
Re: Can FreeCAD convert adjacent faces to an arc?
The object you are talking about is it a mesh or a part shape, i.e. a cad model?
In case it's a part shape we have a function accessible via Python to do this but currently there is no way to do it with the GUI.
In case it's a part shape we have a function accessible via Python to do this but currently there is no way to do it with the GUI.
Re: Can FreeCAD convert adjacent faces to an arc?
The Part function will approximate to a bspline, right? I wonder if there would be a good method to approximate to an arc... Maybe just take 3 points of a wire?
Re: Can FreeCAD convert adjacent faces to an arc?
The function is called replaceShape and the replacement shape can be everything, not just a b-spline. However, using this function is not easy because it works very low-level which means that depending on the model you have to replace wires, edges or vertexes too.
Re: Can FreeCAD convert adjacent faces to an arc?
One more FreeCAD secret I didn't know!
Re: Can FreeCAD convert adjacent faces to an arc?
Right now it's a simple, flat, profile shape. 1 face each top and bottom - same shape, connected with multiple flat and vertical rectangular faces.
The largest vertical faces need to stay flat. The ones I want to replace with curves, arcs, splines - whatever Heeks can translate to efficient curvy G-code - are the ones that approximate curves.
One characteristic separating the flat VS wannabe curves is the ones to remain flat are wider than they are tall and the others are taller than they are wide.
What could be done with this shape is delete one horizontal face then select the points to be curve-verted convert them then extrude back to the height of the original 3D model.
The largest vertical faces need to stay flat. The ones I want to replace with curves, arcs, splines - whatever Heeks can translate to efficient curvy G-code - are the ones that approximate curves.
One characteristic separating the flat VS wannabe curves is the ones to remain flat are wider than they are tall and the others are taller than they are wide.
What could be done with this shape is delete one horizontal face then select the points to be curve-verted convert them then extrude back to the height of the original 3D model.
Re: Can FreeCAD convert adjacent faces to an arc?
I think an example would be helpful.
Re: Can FreeCAD convert adjacent faces to an arc?
Here's an example file.
- Attachments
-
- striker-test - Copy.rar
- (85.05 KiB) Downloaded 34 times
Re: Can FreeCAD convert adjacent faces to an arc?
hi
is what these two macro meet your needs ?
Macro_cutLine
Macro_cutCircle
they are included in the macro Macro_WorkFeatures
the original object is not modified
mario
is what these two macro meet your needs ?
Macro_cutLine
Macro_cutCircle
they are included in the macro Macro_WorkFeatures
the original object is not modified
mario
Maybe you need a special feature, go into Macros_recipes and Code_snippets, Topological_data_scripting.
My macros on Gist.github here complete macros Wiki and forum.
My macros on Gist.github here complete macros Wiki and forum.
Re: Can FreeCAD convert adjacent faces to an arc?
How about some exact instructions on how to install your Work Feature addon? I found the macro folder and unzipped it to there. Now how do I make it actually work?