Skip to content

2D geometry issues #3

@hlg

Description

@hlg

Great to see InViewer-Desktop support 2D geometries for cellspaces!
However there are a couple of issues some of which I have isolated in small sample files.

Sample 01 CS overlap

These are two cellspaces which clearly do not overlap, but appear in somehow wrong scale in the viewer. Their states should be centered, but are not.

InViewer-issues_01_cs-overlap
InViewer-issues_01_cs-overlap.gml.txt

Sample 02 CS/state/transition constellation

This is a more complex setting with two cellspaces, corresponding states and two transitions. It contains multiple issues, which can be seen in isolation in samples 03 and 04.

InViewer-issues_02_complex
InViewer-issues_02_complex.gml.txt

Sample 03 state offset

This file contains one of the cellspaces with its state from sample 02. Looking at the coordinates it can be seen that the state is clearly inside of the cellspace geometry, but appears outside. I added two states at the diagonal corners of the cellspace rectangle and they are not affected from the offset.

InViewer-issues_03_state-offset
InViewer-issues_03_state-offset.gml.txt

Sample 04 collinear

This file contains the other cellspace from sample 02. The polygon is scrambled in the viewer and not filled (for a much more messed up example, see sample 05). I suspect it to be caused by collinear points on some of the polygon edges. As soon as I remove those (modified cellspace in file), the issue is gone.

InViewer-issues_04_collinear
InViewer-issues_04_collinear.gml.txt

Sample 05 complex geometry

Here we have a cellspace polygon with many points. But the geometry is quite simple, the additional points are due to a faceted circular segment. InViewer-Desktop crashes with this file, but I could get it to display something instead by removing the last point which was unnecessarily repeated (sample 05-mod).

InViewer-issues_05_complex-mod
InViewer-issues_05_complex.gml.txt
InViewer-issues_05_complex-mod.gml.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions