小编use*_*801的帖子

DeprecationWarning:为数组排序检测到非字符串对象。请改为输入“ C”,“ F”,“ A”或“ K”

from stl import mesh
from mpl_toolkits import mplot3d
from matplotlib import pyplot

# Create a new plot
figure = pyplot.figure()
axes = mplot3d.Axes3D(figure)

# Load the STL files and add the vectors to the plot
your_mesh = mesh.Mesh.from_file("/home/niroz/stl files/bottle/binary.stl")

axes.add_collection3d(mplot3d.art3d.Poly3DCollection(your_mesh.vectors))

# Auto scale to the mesh size
scale = your_mesh.points.flatten(-1)
axes.auto_scale_xyz(scale, scale, scale)

# Show the plot to the screen
pyplot.show()
Run Code Online (Sandbox Code Playgroud)

python 3d

6
推荐指数
1
解决办法
993
查看次数

标签 统计

3d ×1

python ×1