GeoRegression icon indicating copy to clipboard operation
GeoRegression copied to clipboard

generalize geometrical objects

Open stefanobortoli opened this issue 7 years ago • 2 comments

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.

stefanobortoli avatar Nov 07 '18 12:11 stefanobortoli

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

lessthanoptimal avatar Nov 10 '18 05:11 lessthanoptimal

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?

stefanobortoli avatar Nov 14 '18 07:11 stefanobortoli