Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug #44

Open
Ang-LI-Joy opened this issue Oct 17, 2018 · 3 comments
Open

Bug #44

Ang-LI-Joy opened this issue Oct 17, 2018 · 3 comments

Comments

@Ang-LI-Joy
Copy link

Ang-LI-Joy commented Oct 17, 2018

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

@skemaikin
Copy link

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 (

@TaipanRex
Copy link
Owner

TaipanRex commented Aug 19, 2021

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.

@skemaikin
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants