AttributeError: 'LineSegment' object has no attribute 'plotter'
Yeok-c opened this issue · 3 comments
LineSegment class can't plot in 2D nor in 3D. You can verify this as simple as:
`linesegment = LineSegment(Point([0, 1, 1]),Point([0, 2, 2]))
plot_3d(
linesegment.plotter()
)
Output:
AttributeError Traceback (most recent call last)
Cell In[95], line 4
1 linesegment = LineSegment(Point([0, 1]),Point([0, 2]))
3 plot_3d(
----> 4 linesegment.plotter()
5 )
AttributeError: 'LineSegment' object has no attribute 'plotter'`
Hi @Yeok-c!
Try to read the documentation more carefully. The methods you are looking for are plot_2d
and plot_3d
.
Take a look at the examples.
Thanks.
Hmm actually @Yeok-c has a point. The LineSegment
class is missing the plotter
method.
The fix is pretty easy. I'll get to it soon.
Sorry, I apologize! Thanks for letting me know!