MCPcopy Create free account
hub / github.com/dalboris/vpaint / correctGeometry

Method correctGeometry

src/Gui/VectorAnimationComplex/KeyEdge.cpp:305–323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

303}
304
305void KeyEdge::correctGeometry()
306{
307 if(geometry())
308 {
309 if(isClosed())
310 {
311 // Fast hack to call linearSpline->curve()->resample(true).
312 // will not actually change the start and end position
313 geometry()->makeLoop();
314 geometry()->setLeftRightPos(Eigen::Vector2d(0,0), Eigen::Vector2d(0,0));
315 }
316 else
317 {
318 geometry()->setLeftRightPos(startVertex()->pos(), endVertex()->pos());
319 }
320
321 processGeometryChanged_();
322 }
323}
324
325void KeyEdge::setWidth(double newWidth)
326{

Callers 2

foreachFunction · 0.80
foreachFunction · 0.80

Calls 4

isClosedFunction · 0.85
makeLoopMethod · 0.80
setLeftRightPosMethod · 0.80
posMethod · 0.45

Tested by

no test coverage detected