mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-15 09:15:59 +08:00
Clipper should always throw clipperExceptions, not strings.
This commit is contained in:
parent
0571d22d5f
commit
adc9e749c4
@ -561,7 +561,7 @@ inline void RangeTest(const IntPoint& Pt, bool& useFullRange)
|
|||||||
if (useFullRange)
|
if (useFullRange)
|
||||||
{
|
{
|
||||||
if (Pt.X > hiRange || Pt.Y > hiRange || -Pt.X > hiRange || -Pt.Y > hiRange)
|
if (Pt.X > hiRange || Pt.Y > hiRange || -Pt.X > hiRange || -Pt.Y > hiRange)
|
||||||
throw "Coordinate outside allowed range";
|
throw clipperException("Coordinate outside allowed range");
|
||||||
}
|
}
|
||||||
else if (Pt.X > loRange|| Pt.Y > loRange || -Pt.X > loRange || -Pt.Y > loRange)
|
else if (Pt.X > loRange|| Pt.Y > loRange || -Pt.X > loRange || -Pt.Y > loRange)
|
||||||
{
|
{
|
||||||
@ -2386,8 +2386,8 @@ void Clipper::ProcessHorizontal(TEdge *horzEdge)
|
|||||||
|
|
||||||
void Clipper::UpdateEdgeIntoAEL(TEdge *&e)
|
void Clipper::UpdateEdgeIntoAEL(TEdge *&e)
|
||||||
{
|
{
|
||||||
if( !e->NextInLML ) throw
|
if( !e->NextInLML )
|
||||||
clipperException("UpdateEdgeIntoAEL: invalid call");
|
throw clipperException("UpdateEdgeIntoAEL: invalid call");
|
||||||
|
|
||||||
e->NextInLML->OutIdx = e->OutIdx;
|
e->NextInLML->OutIdx = e->OutIdx;
|
||||||
TEdge* AelPrev = e->PrevInAEL;
|
TEdge* AelPrev = e->PrevInAEL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user