2016-11-23 2 views

Antwort

1

Suppadech, ich schlage vor, Sie passieren zwei geschlossene Pfade die das ClipperOffset Objekt, in dem der zweite Weg in die ausgerichtet ist, entgegengesetzte Richtung zum ersten.

int main() 
    { 
    Paths subj(2); 
    Paths solution; 
    subj[0] << IntPoint(10,10) << IntPoint(100,10) << IntPoint(100,100) << IntPoint(10,100); 
    subj[1] << IntPoint(10,10) << IntPoint(10,100) << IntPoint(100,100) << IntPoint(100,10); 
    ClipperOffset co; 
    co.AddPaths(subj, jtSquare, etClosedPolygon); 
    co.Execute(solution, 5.0); 
    } 
Verwandte Themen