Python 三维图形转换为PDF
我无法解决如何在的python模式下将3D图形渲染为PDF文件。下面是一个图形示例:Python 三维图形转换为PDF,python,pdf-generation,pyprocessing,Python,Pdf Generation,Pyprocessing,我无法解决如何在的python模式下将3D图形渲染为PDF文件。下面是一个图形示例: size(400, 400, P3D) noStroke() background(0) directionalLight(100, 100, 100, 100, 100, -100) translate(width / 2, height / 2, 0) sphere(100) 我在脚本的开头加入了add_library(“pdf”),并进行了实验,但我无法让它渲染3D图像。将2D图像绘制为PDF效果很好
size(400, 400, P3D)
noStroke()
background(0)
directionalLight(100, 100, 100, 100, 100, -100)
translate(width / 2, height / 2, 0)
sphere(100)
我在脚本的开头加入了add_library(“pdf”)
,并进行了实验,但我无法让它渲染3D图像。将2D图像绘制为PDF效果很好