2024-04-28 12:47:25 发布
网友
如何在python中使用dxfwrite绘制六边形(或任何四边以上的多边形)形状?提前谢谢你。在
使用折线图元:
http://pythonhosted.org/dxfwrite/entities/polyline.html
from dxfwrite import DXFEngine as dxf dwg = dxf.drawing('polyline.dxf') points = [(0, 3), (2, 0), (5, 0), (7, 3), (5, 6), (2, 6)] polyline = dxf.polyline(points) polyline.close() dwg.add(polyline) dwg.save()
使用折线图元:
http://pythonhosted.org/dxfwrite/entities/polyline.html
相关问题 更多 >
编程相关推荐