mirror of https://github.com/CGAL/cgal
Fix the calculation of power in factorization
This commit is contained in:
parent
c3ce805672
commit
c99a7d0950
|
|
@ -1121,10 +1121,11 @@ public:
|
||||||
;
|
;
|
||||||
/// It can be proved that the first match location is the length of match
|
/// It can be proved that the first match location is the length of match
|
||||||
auto primitiveSize = itMatch - pp2.m_path.begin();
|
auto primitiveSize = itMatch - pp2.m_path.begin();
|
||||||
|
auto originalLength = pp1.length();
|
||||||
CGAL_assertion(pp1.length() % primitiveSize == 0);
|
CGAL_assertion(pp1.length() % primitiveSize == 0);
|
||||||
pp1.cut(primitiveSize);
|
pp1.cut(primitiveSize);
|
||||||
CGAL_assertion(pp1.is_closed());
|
CGAL_assertion(pp1.is_closed());
|
||||||
return std::make_pair(pp1, pp1.length() / primitiveSize);
|
return std::make_pair(pp1, originalLength / primitiveSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// @return the turn between dart number i and dart number i+1.
|
/// @return the turn between dart number i and dart number i+1.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue