Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generalize geometrical objects #10

Open
stefanobortoli opened this issue Nov 7, 2018 · 2 comments
Open

generalize geometrical objects #10

stefanobortoli opened this issue Nov 7, 2018 · 2 comments

Comments

@stefanobortoli
Copy link

Hi, I found out that throughout the code, you implement first level shapes as subclass of serializable. It would be useful to have a generic superclass (e.g. Shape, or Geometry) so that one could define generic interfaces and then implement them accordingly. What do you think? This is just a suggestion, of course.

@lessthanoptimal
Copy link
Owner

that wouldn't be too hard to add. Would you sub divide it into even more categories?

@stefanobortoli
Copy link
Author

I guess it depends whether there are implications related to inheritance. Perhaps it could be useful to distinguish between "cartesian aligned objects" vs "arbitrary aligned objects". My limited understanding is that if we assume geometries to be aligned on the axis is it easier to compute projections and therefore other relational functions. Whereas if they can be rotate arbitrarily, then things can become nasty. I am thinking of IoT or IoV scenarios where it is useful to consider 3D but rather limited with respect to "abstract" mathematical properties. So, perhaps it would be easier to extend the pool of relational functions making some assumptions for some types of geometries. What do you think?

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

No branches or pull requests

2 participants