AbstractBezierCurve.box can be used uninitialized
Initialized in AbstractBezierCurve.__init__
, the box
attribute is public but lazily generated iff min_max_box()
(or curve
) got called before. This is bad, especially if someone wants to use box_collision_check
.
Although mix_max_box()
just has to be computed once since it's Complexity is nlogn
I'd prefer to have it lazy.
I recommend to solve it analogously to #20 (closed) with @cached_property
Edited by Lars Quentin