Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/string/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 三维图形转换为PDF_Python_Pdf Generation_Pyprocessing - Fatal编程技术网

Python 三维图形转换为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效果很好

我无法解决如何在的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效果很好