Subject: CGAL users discussion list
List archive
- 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<double>
>::facets_begin() Line 293 + 0x3d bytes C++
booleantest.exe!CGAL::OFF_to_nef_3<CGAL::Nef_polyhedron_3<CGAL::Simple_cartesian<CGAL::Gmpq>,CGAL::SNC_indexed_items,bool>
>(std::basic_istream<char,std::char_traits<char> > & i_st,
CGAL::Nef_polyhedron_3<CGAL::Simple_cartesian<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.
- [cgal-discuss] Re: bugs of Boolean operations in CGAL 4.2 beta and 4.1?, (continued)
- [cgal-discuss] Re: bugs of Boolean operations in CGAL 4.2 beta and 4.1?, tang, 03/14/2013
- Re: [cgal-discuss] Re: bugs of Boolean operations in CGAL 4.2 beta and 4.1?, Sebastien Loriot (GeometryFactory), 03/15/2013
- [cgal-discuss] Re: bugs of Boolean operations in CGAL 4.2 beta and 4.1?, tang, 03/15/2013
- Re: [cgal-discuss] Re: bugs of Boolean operations in CGAL 4.2 beta and 4.1?, Sebastien Loriot (GeometryFactory), 03/15/2013
- [cgal-discuss] Re: bugs of Boolean operations in CGAL 4.2 beta and 4.1?, tang, 03/15/2013
- [cgal-discuss] Re: bugs of Boolean operations in CGAL 4.2 beta and 4.1?, tang, 03/15/2013
- Re: [cgal-discuss] Re: bugs of Boolean operations in CGAL 4.2 beta and 4.1?, Sebastien Loriot (GeometryFactory), 03/15/2013
- [cgal-discuss] Re: bugs of Boolean operations in CGAL 4.2 beta and 4.1?, tang, 03/15/2013
- [cgal-discuss] Re: bugs of Boolean operations in CGAL 4.2 beta and 4.1?, tang, 03/15/2013
- Re: [cgal-discuss] Re: bugs of Boolean operations in CGAL 4.2 beta and 4.1?, Sebastien Loriot (GeometryFactory), 03/15/2013
- [cgal-discuss] Re: bugs of Boolean operations in CGAL 4.2 beta and 4.1?, tang, 03/15/2013
- Re: [cgal-discuss] Re: bugs of Boolean operations in CGAL 4.2 beta and 4.1?, Sebastien Loriot (GeometryFactory), 03/15/2013
- [cgal-discuss] Re: bugs of Boolean operations in CGAL 4.2 beta and 4.1?, tang, 03/15/2013
- Re: [cgal-discuss] Re: bugs of Boolean operations in CGAL 4.2 beta and 4.1?, Sebastien Loriot (GeometryFactory), 03/15/2013
- [cgal-discuss] Re: bugs of Boolean operations in CGAL 4.2 beta and 4.1?, tang, 03/14/2013
Archive powered by MHonArc 2.6.18.