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

Wrong results by A_MINUS_B #68

Open
GoogleCodeExporter opened this issue Jul 11, 2015 · 0 comments
Open

Wrong results by A_MINUS_B #68

GoogleCodeExporter opened this issue Jul 11, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. get the attached models obj1.ply and obj2.ply
2. run the following code:
    carve::mesh::MeshSet<3> *obj1=readPLYasMesh("obj1.ply");
    carve::mesh::MeshSet<3> *obj2=readPLYasMesh("obj2.ply");
if(obj1->isClosed()==false)
{
    printf("obj1 is not closed\n");
}
if(obj2->isClosed()==false)
{
    printf("obj2 is not closed\n");
}
    carve::csg::CSG csg;
    obj1 = csg.compute(obj1,obj2,csg.A_MINUS_B);
    writePLY("obj1_result.ply", obj1, true);


3.

What is the expected output? What do you see instead?
The result obj1_result.ply is not correct. If you show the polygons in the 
range of 0<x<0.21, -0.05<y<0.1 and -1<z<3.1, the wrong polygon can be shown. In 
addition, the model is symmetric, and if you show polygons in the range of 
-0.21<x<0, -0.05<y<0.1 and -1<z<3.1, the polygons are correct.

What version of the product are you using? On what operating system?
latest version.

Please provide any additional information below.
please see attached files.

Original issue reported on code.google.com by tanglaoy...@gmail.com on 7 Aug 2014 at 12:39

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