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

Crash in Boolean operation for unclosed polyhedrons #56

Open
GoogleCodeExporter opened this issue Mar 4, 2015 · 2 comments
Open

Crash in Boolean operation for unclosed polyhedrons #56

GoogleCodeExporter opened this issue Mar 4, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. load a1.ply and a2.ply to poly1 and poly2;
2.  run carve::mesh::MeshSet<3> *is_poly = 
csg.compute(&poly1,&poly2,csg.A_MINUS_B);
and crashed at line 899 of triangulator.cpp:
      CARVE_FAIL("didn't manage to link up hole!");

3. the file a1.ply and a2.ply is as follows:

//// a1.ply
ply
format ascii 1.0
element vertex 12
property double x
property double y
property double z
element face 6
property list ushort ushort vertex_indices
end_header
0 0 0
0 2 0
0 2 2
0 0 2
0 -2 2
0 -2 0
0 -2 -2
0 0 -2
0 2 -2
1 0 2
1 0 0
1 0 -2
4 0 1 2 3
4 0 3 4 5
4 0 5 6 7
4 0 7 8 1
4 0 3 9 10
4 0 10 11 7 

///// a2.ply
ply
format ascii 1.0
element vertex 8
property double x
property double y
property double z
element face 6
property list ushort ushort vertex_indices
end_header
2 1 -1
2 1 1
2 -1 1
2 -1 -1
-1 1 -1
-1 1 1
-1 -1 1
-1 -1 -1
4 0 1 2 3
4 4 7 6 5
4 0 4 5 1
4 1 5 6 2
4 3 2 6 7
4 0 3 7 4 
What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?
used the latest version from here:
http://carve.googlecode.com/archive/e82d852e4fb0baeabd9d96602d8bdace7d69f3cf.zip

Please provide any additional information below.
built on Windows 7 64bit + VS2012

Original issue reported on code.google.com by [email protected] on 18 Apr 2014 at 2:46

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