mirror of https://github.com/CGAL/cgal
bug fix in dual for gmap
This commit is contained in:
parent
f1199c2fda
commit
08f6efc827
|
|
@ -2490,7 +2490,7 @@ namespace CGAL {
|
||||||
CGAL_assertion( is_without_boundary(dimension) );
|
CGAL_assertion( is_without_boundary(dimension) );
|
||||||
|
|
||||||
CGAL::Unique_hash_map< Dart_handle, Dart_handle,Hash_function > dual;
|
CGAL::Unique_hash_map< Dart_handle, Dart_handle,Hash_function > dual;
|
||||||
Dart_handle d, d2, res = amap.null_handle;
|
Dart_handle d, d2, res = amap.null_handle, newd;
|
||||||
|
|
||||||
// We clear amap. TODO return a new amap ?
|
// We clear amap. TODO return a new amap ?
|
||||||
amap.clear();
|
amap.clear();
|
||||||
|
|
@ -2499,11 +2499,12 @@ namespace CGAL {
|
||||||
for ( typename Dart_range::iterator it=darts().begin();
|
for ( typename Dart_range::iterator it=darts().begin();
|
||||||
it!=darts().end(); ++it)
|
it!=darts().end(); ++it)
|
||||||
{
|
{
|
||||||
dual[it] = amap.create_dart();
|
newd=amap.create_dart();
|
||||||
|
dual[it]=newd;
|
||||||
internal::Copy_dart_info_functor<Refs, Refs>::
|
internal::Copy_dart_info_functor<Refs, Refs>::
|
||||||
run(static_cast<Refs&>(amap), static_cast<Refs&>(*this),
|
run(static_cast<Refs&>(*this), static_cast<Refs&>(amap),
|
||||||
it, dual[it]);
|
it, newd);
|
||||||
if ( it==adart && res==amap.null_handle ) res = dual[it];
|
if ( it==adart && res==amap.null_handle ) { res=newd; }
|
||||||
}
|
}
|
||||||
|
|
||||||
// Then we link the darts by using the dual formula :
|
// Then we link the darts by using the dual formula :
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue