TypeError: Unrecognized object: <draw3d.Points3D object at 0x7f83cdf68a00>
asimsalam opened this issue · 0 comments
When running the following code from ch03_walkthrough.ipynb
draw3d( Points3D((2,2,2),(1,-2,-2)), Arrow3D((2,2,2)), Arrow3D((1,-2,-2)), Segment3D((2,2,2), (1,-2,-2)) )
The following exception is thrown:
TypeError Traceback (most recent call last)
/media/data/asim/devel/python/math/Math-for-Programmers/Chapter 03/ch03_walkthrough.ipynb Cell 6 line 1
----> 1 draw3d(
2 Points3D((2,2,2),(1,-2,-2)),
3 Arrow3D((2,2,2)),
4 Arrow3D((1,-2,-2)),
5 Segment3D((2,2,2), (1,-2,-2))
6 )
File /media/data/asim/devel/python/math/Math-for-Programmers/Chapter 03/draw3d.py:84, in draw3d(origin, axes, width, save_as, azim, elev, xlim, ylim, zlim, xticks, yticks, zticks, depthshade, *objects)
81 ax = fig.add_subplot(111, projection='3d')
82 ax.view_init(elev=elev,azim=azim)
---> 84 all_vectors = list(extract_vectors_3D(objects))
85 if origin:
86 all_vectors.append((0,0,0))
File /media/data/asim/devel/python/math/Math-for-Programmers/Chapter 03/draw3d.py:76, in extract_vectors_3D(objects)
74 yield object.vector
75 else:
---> 76 raise TypeError("Unrecognized object: {}".format(object))
TypeError: Unrecognized object: <draw3d.Points3D object at 0x7f83cdf68a00>