vesperin / scratchspace

a place for experimenting with stuff
0 stars 0 forks source link

Odd man out in the groups #1

Open martinschaef opened 8 years ago

martinschaef commented 8 years ago

If you run the example from the Readme, you get a few groupings that have one odd element:

    {
      "types": [
        "org.dyn4j.geometry.decompose.SweepLineState",
        "org.dyn4j.geometry.decompose.SweepLineVertex",
        "org.dyn4j.geometry.decompose.SweepLineEdge",
        "org.dyn4j.geometry.decompose.EarClippingVertex",
        "org.dyn4j.geometry.decompose.SweepLine"
      ],
      "labels": [
        "clipping",
        "sweep"
      ]
    },

Where EarClippingVertex is the odd man since it does not share "sweep" with the other four, and they do not share "clipping" with it.

Second example:

    {
      "types": [
        "com.jme3.cinematic.events.CinematicEvent",
        "com.jme3.cinematic.events.AnimationEvent",
        "com.jme3.animation.AnimationUtils",
        "com.jme3.animation.Animation",
        "com.jme3.cinematic.events.AnimationTrack"
      ],
      "labels": [
        "animation",
        "cinematic"
      ]
    },

Where CinematicEvent is odd.

And there are several more.

hsanchez commented 8 years ago

A few observations....

"Where EarClippingVertex is the odd man since it does not share "sweep" with the other four, and they do not share "clipping" with it."

it seems abnormal. Let me investigate. However, it seems that "EarClippingVertex" was placed in that group because it shared the word "Vertex" with "SweepLineVertex," which is in that group because of "Sweep".

Same thing happens to "CinematicEvent," which shares the word "Event" with "AnimationEvent".