Skip to content

Sum and difference bodies #23

Description

@b-butler

Description

Taking the sum or difference body of two shapes in 2D or 3D would not be difficult to implement and would be a nice feature. This could use duck typing to work with 2D or 3D vectors as well. I would recommend overwriting the __add__ and __sub__ methods of Poly classes for this.

Tasks

  • Create functions to calculate the sum and difference body and wrap results in the correct object
  • Use these functions to allow shape1 + shape2 and shape1 - shape2
  • Document these function
  • write unit tests for these functions

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions