Advertisement
Guest User

libre

a guest
Sep 5th, 2012
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.86 KB | None | 0 0
  1.            if (first)
  2.             {
  3.                 if (originalPolyline->isClosed()){
  4.                     if (prevEntity->rtti()==RS2::EntityArc) {
  5.                         prevEntity = calculateOffset(&arcFirst, prevEntity, dist*num*neg);
  6.                         //bulge = arcFirst.getBulge(); <<- bulge of last entity is used to draw first entity
  7.                                                      //    if last entity arc first entity line, line is drawn as arc
  8.                     } else {
  9.                         bulge = 0.0;
  10.                         prevEntity = calculateOffset(&lineFirst, prevEntity, dist*num*neg);
  11.                     }
  12.                     v = calculateIntersection(prevEntity, currEntity);
  13.                 }
  14.                 if (!v.valid)
  15.                     v = currEntity->getStartpoint();
  16.                 first = false;
  17.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement