I posted this here first and look like this forum may be more appropriate.
https://forum.freecadweb.org/viewtopic.php?f=3&t=73934
I created a bspline from vertices thusly:
Code: Select all
import numpy as np
import Draft
points=30
zpoints=np.linspace(0,2.6,points)
sketch=FreeCAD.getDocument('testbspline').getObjectsByLabel('Sketch')
b=sketch[0].Shape.makeOffset2D(4).discretize(points)
for i,j in enumerate(b):
j.z=zpoints[i]
spline1 = Draft.make_bspline(b,closed=False)
However, I can't sweep a curve along this bspline.
Can anyone point out what is wrong?
I have attached a minimum working example.
Code: Select all
OS: Ubuntu 20.04.5 LTS (XFCE/xubuntu)
Word size of FreeCAD: 64-bit
Version: 0.21.
Build type: Release
Branch: unknown
Hash: 1282fdb7e8a721e9b411358d68daf8921b0bf50a
Python 3.8.10, Qt 5.12.8, Coin 4.0.0, Vtk 7.1.1, OCC 7.5.2
Locale: English/United States (en_US)
Installed mods:
* Assembly4 0.12.3
* fasteners 0.3.50
* sheetmetal 0.2.54
* Defeaturing
* Curves 0.5.2
* Behave-Dark-Colors 0.1.1
* Assembly3 0.11.3
* kicadStepUpMod 10.16.5
* PieMenu
* ProDarkThemePreferencePack 1.0.0