pyvisgraph icon indicating copy to clipboard operation
pyvisgraph copied to clipboard

Bug

Open Ang-LI-Joy opened this issue 7 years ago • 3 comments

Help please. I didn't use shape to specify the obstacles. I just manually input the polygons like: polys = [[vg.Point(0.0,1.0), vg.Point(3.0,1.0), vg.Point(1.5,4.0)],[vg.Point(4.0,4.0), vg.Point(7.0,4.0), vg.Point(5.5,8.0)]] Is it wrong? The boundary is specified by the convex hull vertices of all points in a polygon. 2

Ang-LI-Joy avatar Oct 17 '18 07:10 Ang-LI-Joy

Help please. I didn't use shape to specify the obstacles. I just manually input the polygons like: polys = [[vg.Point(0.0,1.0), vg.Point(3.0,1.0), vg.Point(1.5,4.0)],[vg.Point(4.0,4.0), vg.Point(7.0,4.0), vg.Point(5.5,8.0)]] Is it wrong? The boundary is specified by the convex hull vertices of all points in a polygon.

Hi! Did you solve the problem? I have the same (

skemaikin avatar Aug 18 '21 16:08 skemaikin

These issues are most likely due to floating point issues as I see from the X and Y that the numbers are very large. See here take a look at "Floating point representation errors". I would try to make your coordinate system much smaller or see if changing COLIN_TOLERANCE to a smaller number helps.

TaipanRex avatar Aug 19 '21 02:08 TaipanRex

These issues are most likely due to floating point issues as I see from the X and Y that the numbers are very large. See here take a look at "Floating point representation errors". I would try to make your coordinate system much smaller or see if changing COLIN_TOLERANCE to a smaller number helps

Yes, scaling data solves the problem! Thank you!

skemaikin avatar Aug 19 '21 09:08 skemaikin