Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Re: bugs of Boolean operations in CGAL 4.2 beta and 4.1?

Subject: CGAL users discussion list

List archive

[cgal-discuss] Re: bugs of Boolean operations in CGAL 4.2 beta and 4.1?


Chronological Thread 
  • From: tang <>
  • To:
  • Subject: [cgal-discuss] Re: bugs of Boolean operations in CGAL 4.2 beta and 4.1?
  • Date: Fri, 15 Mar 2013 07:20:01 -0700 (PDT)

Dear Dr. Loriot,

Thank you very much for your kindly reply. I modified that file as follows:

void
generic_print_polyhedron( std::ostream& out,
const Polyhedron& P,
Writer& writer) {
// writes P to `out' in the format provided by `writer'.
typedef typename Polyhedron::Vertex_const_iterator VCI;
typedef typename Polyhedron::Facet_const_iterator FCI;
typedef typename Polyhedron::Halfedge_around_facet_const_circulator
HFCC;
// Print header.
writer.write_header( out,
P.size_of_vertices(),
P.size_of_halfedges(),
P.size_of_facets());
for( VCI vi = P.vertices_begin(); vi != P.vertices_end(); ++vi) {
// writer.write_vertex( ::CGAL::to_double( vi->point().x()),
// ::CGAL::to_double( vi->point().y()),
// ::CGAL::to_double( vi->point().z()));
out << '\n' << vi->point().x()
<< ' ' << vi->point().y()
<< ' ' << vi->point().z();
}
...

and the output OFF files are attached. However, when do Boolean operations
by the program, the program crashed and the call stack is as follows:

msvcr100d.dll!_CxxThrowException(void * pExceptionObject, const
_s__ThrowInfo * pThrowInfo) Line 157 C++
> msvcp100d.dll!std::_Xlength_error(const char * _Message) Line 14
> C++
booleantest.exe!std::vector<unsigned __int64,std::allocator<unsigned
__int64> >::_Xlen() Line 1428 C++
booleantest.exe!std::vector<unsigned __int64,std::allocator<unsigned
__int64> >::reserve(unsigned __int64 _Count) Line 748 + 0xa bytes C++
booleantest.exe!CGAL::I_Scanner_OFF_facet_iterator::next_facet()
Line 173
C++

booleantest.exe!CGAL::I_Scanner_OFF_facet_iterator::I_Scanner_OFF_facet_iterator(CGAL::File_scanner_OFF
& s, unsigned __int64 cnt) Line 198 + 0xa bytes C++
booleantest.exe!CGAL::Scanner_OFF<CGAL::Cartesian&lt;double>
>::facets_begin() Line 293 + 0x3d bytes C++

booleantest.exe!CGAL::OFF_to_nef_3<CGAL::Nef_polyhedron_3&lt;CGAL::Simple_cartesian&lt;CGAL::Gmpq>,CGAL::SNC_indexed_items,bool>
>(std::basic_istream<char,std::char_traits&lt;char> > & i_st,
CGAL::Nef_polyhedron_3<CGAL::Simple_cartesian&lt;CGAL::Gmpq>,CGAL::SNC_indexed_items,bool>
& nef_union, bool verb) Line 167 + 0x15 bytes C++
booleantest.exe!BoolObject3(char * op, char * file1, char * file2,
char *
outfile) Line 40 C++
booleantest.exe!main() Line 61 C++


Could you please help me to take a look at it?

Thanks,
Zhanghong Tang

booleantest.zip
<http://cgal-discuss.949826.n4.nabble.com/file/n4656979/booleantest.zip>



--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/bugs-of-Boolean-operations-in-CGAL-4-2-beta-and-4-1-tp4656931p4656979.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.18.

Top of Page