ForeverDavid / carve

Automatically exported from code.google.com/p/carve
Other
0 stars 0 forks source link

Example test_carve_polyhedrons_2 crashed #52

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create the project for VS2010 in windows 7 64 bit machine by CMake 2.8.9.  
2. Used boost_1_54_0 and /MT in CMAKE option.
3. Unselected 'BUILD_SHARED_LIBS'. 
4. 

What is the expected output? What do you see instead?
I don't know what is the expected output.

The program crashed and the following error message outputted:
WARNING! <0,0,0>==<0,0,1.0230769175768134e-008>
FACE LOOP ERROR: 0000000000AE3A10-0000000000EC0080 : 1
FACE LOOP ERROR: 0000000000AE3A60-0000000000EC00A8 : 1
FACE LOOP ERROR: 0000000000AE3A10-0000000000EC00A8 : -1
FACE LOOP ERROR: 0000000000AE3A38-0000000000EC0080 : -1
FACE LOOP ERROR: 0000000000AE3A38-0000000000AE3A60 : 1

What version of the product are you using? On what operating system?
Create the project for VS2010 in windows 7 64 bit machine by CMake 2.8.9.  

Please provide any additional information below.

Original issue reported on code.google.com by tanglaoy...@gmail.com on 13 Apr 2014 at 8:40

GoogleCodeExporter commented 9 years ago
Sorry, I didn't find the latest version has already fixed this bug. Now the 
problem is that how to output the result to OFF file (I don't know how to pick 
up the vertices and facets information from the result). Could anyone help me 
to write a output function?

Thanks,
Tang Laoya

void write_off(carve::mesh::MeshSet<3> *poly,char *file)
{
/// how to write this function to pick up the vertices and facets information 
from poly?
}

int main()
{
...
  carve::mesh::MeshSet<3> *is_poly = carve::csg::CSG().compute(&poly1,
                                                               &poly2,
                                                               carve::csg::CSG::A_MINUS_B);
    file="E:\\Users\\tang\\tang\\mesh\\CSG\\carve-clone\\mytest\\a3.off";
    write_off(is_poly,file);
...
}

Original comment by tanglaoy...@gmail.com on 16 Apr 2014 at 5:13

GoogleCodeExporter commented 9 years ago
Problem solved after got latest version. 
Thanks

Original comment by tanglaoy...@gmail.com on 17 Apr 2014 at 5:07