Author Topic: 9 errors related to polygon clipping  (Read 1749 times)

mrliioadin

  • Newbie
  • *
  • Posts: 10
    • View Profile
9 errors related to polygon clipping
« on: April 29, 2016, 06:50:05 PM »
These all appeared today. Maybe with the latest update? Any thoughts?

Code
Assets/WorldPoliticalMap2DEdition/Scripts/MapEditor/PolygonClipping/Geom/Contour.cs(16,48): error CS1061: Type `Region' does not contain a definition for `points' and no extension method `points' of type `Region' could be found (are you missing a using directive or an assembly reference?)

Assets/WorldPoliticalMap2DEdition/Scripts/MapEditor/PolygonClipping/Geom/Contour.cs(16,32): error CS1502: The best overloaded method match for `System.Collections.Generic.List<UnityEngine.Vector3>.AddRange(System.Collections.Generic.IEnumerable<UnityEngine.Vector3>)' has some invalid arguments

Assets/WorldPoliticalMap2DEdition/Scripts/MapEditor/PolygonClipping/Geom/Contour.cs(16,32): error CS1503: Argument `#1' cannot convert `object' expression to type `System.Collections.Generic.IEnumerable<UnityEngine.Vector3>'

Assets/WorldPoliticalMap2DEdition/Scripts/MapEditor/PolygonClipping/PolygonClipper.cs(61,54): error CS1061: Type `Region' does not contain a definition for `points' and no extension method `points' of type `Region' could be found (are you missing a using directive or an assembly reference?)

Assets/WorldPoliticalMap2DEdition/Scripts/MapEditor/PolygonClipping/PolygonClipper.cs(61,31): error CS1502: The best overloaded method match for `PolygonClipping.Contour.AddRange(UnityEngine.Vector3[])' has some invalid arguments

Assets/WorldPoliticalMap2DEdition/Scripts/MapEditor/PolygonClipping/PolygonClipper.cs(61,31): error CS1503: Argument `#1' cannot convert `object' expression to type `UnityEngine.Vector3[]'

Assets/WorldPoliticalMap2DEdition/Scripts/MapEditor/PolygonClipping/PolygonClipper.cs(66,55): error CS1061: Type `Region' does not contain a definition for `points' and no extension method `points' of type `Region' could be found (are you missing a using directive or an assembly reference?)

Assets/WorldPoliticalMap2DEdition/Scripts/MapEditor/PolygonClipping/PolygonClipper.cs(66,31): error CS1502: The best overloaded method match for `PolygonClipping.Contour.AddRange(UnityEngine.Vector3[])' has some invalid arguments

Assets/WorldPoliticalMap2DEdition/Scripts/MapEditor/PolygonClipping/PolygonClipper.cs(66,31): error CS1503: Argument `#1' cannot convert `object' expression to type `UnityEngine.Vector3[]'


Kronnect

  • Administrator
  • Hero Member
  • *****
  • Posts: 5829
    • View Profile
Re: 9 errors related to polygon clipping
« Reply #1 on: April 30, 2016, 01:16:09 AM »
Hi!

Just checked the latest updates and everything is ok on my end. Try right-clicking the package folder and select Reimport. Ultimately delete the package and reimport it again.

Created new project and imported both 2D and Globe were ok from Asset Store, as well as latest updates on the forum and mixing them in the same project. No error at any case during importing and demos scenes were fine.

mrliioadin

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: 9 errors related to polygon clipping
« Reply #2 on: April 30, 2016, 10:12:45 AM »
Okay: Bad news... neither of those worked.

Good news. I did get it fixed. I had downloaded some stuff from Photon in the Asset Store to try to find some networking solutions. Deleting those packages fixed the problem. Any idea why?

I think I DLed this: https://www.assetstore.unity3d.com/en/#!/content/1786
and this: https://www.assetstore.unity3d.com/en/#!/content/45334

Not that important for me, but I am curious. I think I've ultimately found a different solution.

Kronnect

  • Administrator
  • Hero Member
  • *****
  • Posts: 5829
    • View Profile
Re: 9 errors related to polygon clipping
« Reply #3 on: April 30, 2016, 10:39:37 AM »
Really strange. Seems like a namespace clash but I'm curious to see that classes interfaces exist but with different function prototypes.
Glad you sort it anyway - I'm marking this as pending to investigate. Thanks.