HoWil wrote: ↑Sun Jul 02, 2017 7:57 pm
Hi Chris_G ,
I am very interested in this... not for creating planes but for creating free-form objects with the help of Inkscape.
Is it possible to get a fast forward tutorial (including Inkscape) of one of the wings or another simple part?
BR,
HoWil
Look at the attached FC file. It has sketches, but it is the same as what you get when importing svg.
There are 2 rails and 3 profiles.
The profiles need to be rotated around their endpoints.
This piece of python does this (select a profile and run) :
Code: Select all
# rotates the selected NURBS edge around its endpoints
ANGLE = 90
s = FreeCADGui.Selection.getSelection()
for so in s:
for e in so.Shape.Edges:
c = e.Curve.copy()
stPt = c.StartPoint
enPt = c.EndPoint
pl = FreeCAD.Placement()
pl.Base = stPt
vec = enPt.sub(stPt)
pl.Rotation = FreeCAD.Rotation(vec,ANGLE)
for i in range(len(c.getPoles())):
c.setPole(i+1,pl.inverse().multVec(c.getPole(i+1))+stPt)
obj = FreeCAD.ActiveDocument.addObject("Part::Spline","Profile")
obj.Shape = c.toShape()
Then select the 2 rails and make a (PartWB) Ruled surface
Select this ruledSurface and the profiles and run "Sweep profile on 2 rails" tool in my WorkBench :

- sw2r-1.jpg (31.35 KiB) Viewed 4372 times
You get a point cloud. You can adjust the number of samples, or the displaymode ("wireframe" below).
Then you can run the approximation tool to get the surface :

- sw2r-2.jpg (42.73 KiB) Viewed 4372 times

- sw2r-3.jpg (34.93 KiB) Viewed 4372 times
Good luck
