如何在python中沿着引导曲线放样曲面?

时间:2019-05-06 20:39:41

标签: python python-3.x

我正在尝试为发动机创建机舱进气口的轮廓,并且需要沿圆弧放样曲线以产生我的表面。我无法在splipy.surface_factory中使用扫掠实用程序,因为轮廓沿着引导曲线变化。使用splipy.surface_factory.loft不允许我使用引导曲线。

from splipy import curve_factory as cf
from splipy import surface_factory as sf
from splipy.io import STL

bezier_5 = cf.bezier([array2], quadratic=False, relative=False)
bezier_51 = cf.bezier([array3], quadratic=False, relative=False)
bezier_52 = cf.bezier([array4], quadratic=False, relative=False)
surface = sf.loft(bezier_5,bezier_51,bezier_52)
surface.refine(20)
with STL('temp.stl') as myfile:
    myfile.write(surface)

0 个答案:

没有答案