Surface lofting to form a cylinder

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
xianyu
Posts: 66
Joined: Mon Jun 27, 2022 7:34 am

Surface lofting to form a cylinder

Post by xianyu »

Hi~
I made two surfaces, generated by the following code. I want to extract the edges of these two surfaces and use the lofting command to generate a cylinder. What should I do?

Code: Select all

points = [Vector(0,0,0), ......]
surface = Part.BSplineSurface()    
surface.approximate(points)
surface.setVPeriodic()
obj.Shape = surface.toShape()
2.png
2.png (16.63 KiB) Viewed 1766 times
1.png
1.png (9.34 KiB) Viewed 1766 times
Freecad novice, A Python enthusiast
Post Reply