Skip to content

v0.12.0

Compare
Choose a tag to compare
@unjuan unjuan released this 20 Nov 21:08
· 24 commits to master since this release

Rotabox v0.12.0

Added

  • Cython option

  • Rotabox tries by default to use a compiled cython module (cybounds.so or cybounds.pyd) for an about X5 speedup.

  • User needs to compile it for specific operating systems using the provided cybounds.c file.

  • [pre_check] BooleanProperty(False):
    A collision optimization switch for larger widgets in Cython.
    It's always considered True in Python but in Cython, for small widgets (under 45 points), the slight tax of the extra calculations outweighs any benefits in collision.

  • [read_bounds] A method to define [custom_bounds] by reading a Rotaboxer project file (.bounds file), e.g. self.custom_bounds = self.read_ bounds("images/car.bounds").

Removed

  • [hidden_bounds] were deemed an unnessesary complication in the recent refactoring, adding too much code for a mere application of a more general feature:
  • The ability to treat specific collisions specifically using multiple polygons and Rotabox' collision feedback.

Changed

  • Major refactoring to accomodate Cython.

  • Different balance between bounds calculation and collision detection.
    (The former, which was the major load, is twice as fast while the latter is slightly slower - an overall of about X1.5).

  • [draw_bounds] is now a NumericProperty (0 for False, 1 for bounds only, 2 for bounds & bounding boxes).

Rotaboxer (bounds editor) v0.12.0:

Added

  • Multiple points can be moved simultaneously with keyboard arrow keys.
    (Point multiselection (Ctrl+click) was already there since version 0.9 for transfering points between polygons.)