Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
-
None
-
New
Description
We are currently encoding three type of triangle in ShapeField:
- POINT: all three coordinates are equal
- LINE: two coordinates are equal
- TRIANGLE: all coordinates are different
Because we still have two unused bits, it might be worthy to encode this information in those two bits as follows:
- 0 0 : Unknown so this is an index created before adding this information. We can compute in this case the information while decoding for backwards compatibility.
- 1 0: The encoded triangle is a POINT
- 0 1: The encoded triangle is a LINE
- 1 1: The encoded triangle is a TRIANGLE
We can later leverage this information so we don't need to decode all dimensions in case of POINT and LINE and we are currently computing in some of the methods ithe type of triangle we are dealing with, This will go as well.
Attachments
Issue Links
- links to