MCPcopy Create free account
hub / github.com/cinder/Cinder / DupOutPt

Function DupOutPt

blocks/Clipper/src/clipper.cpp:3348–3368  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3346//----------------------------------------------------------------------
3347
3348OutPt* DupOutPt(OutPt* outPt, bool InsertAfter)
3349{
3350 OutPt* result = new OutPt;
3351 result->Pt = outPt->Pt;
3352 result->Idx = outPt->Idx;
3353 if (InsertAfter)
3354 {
3355 result->Next = outPt->Next;
3356 result->Prev = outPt;
3357 outPt->Next->Prev = result;
3358 outPt->Next = result;
3359 }
3360 else
3361 {
3362 result->Prev = outPt->Prev;
3363 result->Next = outPt;
3364 outPt->Prev->Next = result;
3365 outPt->Prev = result;
3366 }
3367 return result;
3368}
3369//------------------------------------------------------------------------------
3370
3371bool JoinHorz(OutPt* op1, OutPt* op1b, OutPt* op2, OutPt* op2b,

Callers 2

JoinHorzFunction · 0.85
JoinPointsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected