- Use inkscape to simplify path
- smooth points as far as possible, so that the points are either very clear tangent or very clear corners
- save
- load into FreeCAD as geometry
- create sketch, I used my script to create only arcs and straight lines.
Code: Select all
''' Approxamation of wires containing bezier curves by arcs '''
import FreeCAD
import Path
from PathScripts import PathUtils
import Draft
def shape2Sketch(shape):
# replace shape.edges with arcs
global test
newEdges = PathUtils.cleanedges(shape.Edges,2.0)
wire = Part.Wire([Part.Edge(i) for i in newEdges])
sketch = Draft.makeSketch(wire,autoconstraints=True,delete=True)
selection = FreeCADGui.Selection.getSelectionEx()
for s in selection:
shape2Sketch(s.Object.Shape)
- extrude with taper angle 20°
The result is not totally satisfactory, yet it is correct.