Re: [svgwg] Rect decomposition is invalid (#753)

Another way to look at it is the famous engineering mantra: "don't repeat yourself" (DRY). Redundancies in data structures most often lead to problems, and this case is no exception. The solution is to get rid of the redundant "N+1"th vertex position.

By the way, 3D CAD data formats usually don't allow these types of redundancies, by cleanly defining the topology separately from the geometry. In the case of SVG paths, it's much simpler because a path represents a one-dimensional manifold, and there are only 2 homeomorphic classes of those: open curves and closed curves. So we don't need a full blown separation between topology and geometry, but we do need segment-completing Z (or change the wording of Z such that it doesn't add a new possibly zero-length path segment, but instead "extend the previous path segment if necessary to close the path geometrically", but this wouldn't be backward compatible with current marker behavior).

-- 
GitHub Notification of comment by dalboris
Please view or discuss this issue at https://github.com/w3c/svgwg/issues/753#issuecomment-567281895 using your GitHub account

Received on Thursday, 19 December 2019 01:02:54 UTC