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

Method doOffset

blocks/Clipper/samples/BasicBoolean/src/BasicBooleanApp.cpp:109–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109void BasicBooleanApp::doOffset()
110{
111 if( mOffsetType == 0 )
112 mPolyResult = calcSquareOffset( mPolyA, mOffsetDistance );
113 else if( mOffsetType == 1 )
114 mPolyResult = calcRoundOffset( mPolyA, mOffsetDistance );
115 else
116 mPolyResult = calcMiterOffset( mPolyA, mOffsetDistance );
117}
118
119void BasicBooleanApp::setup()
120{

Callers

nothing calls this directly

Calls 3

calcSquareOffsetFunction · 0.85
calcRoundOffsetFunction · 0.85
calcMiterOffsetFunction · 0.85

Tested by

no test coverage detected