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

Assertion error when operating on degenerate area #8

Open
GoogleCodeExporter opened this issue Aug 25, 2015 · 0 comments
Open

Assertion error when operating on degenerate area #8

GoogleCodeExporter opened this issue Aug 25, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

In the shell, execute
    PYTHONPATH=.libs python -c 'import area; area.Area().Offset(1.0)'

The snippet should execute without error.  However, it encounters an assertion 
error instead:
python: kbool/src/graph.cpp:236: void Graph::AddLink(Node*, Node*, int): 
Assertion `begin && end' failed.
Aborted

Other operations such as Subtract also give similar errors when either
of their inputs are degenerate.

(I am using SVN revision 62 on 64-bit Ubuntu 10.04, but I have no reason to 
believe this is architecture-dependent)

The attached patch makes operations on degenerate Areas non-fatal, and appears 
to give expected results for the cases I've tested.

Original issue reported on code.google.com by [email protected] on 26 Sep 2010 at 6:46

Attachments:

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

No branches or pull requests

1 participant