Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (first)
- {
- if (originalPolyline->isClosed()){
- if (prevEntity->rtti()==RS2::EntityArc) {
- prevEntity = calculateOffset(&arcFirst, prevEntity, dist*num*neg);
- //bulge = arcFirst.getBulge(); <<- bulge of last entity is used to draw first entity
- // if last entity arc first entity line, line is drawn as arc
- } else {
- bulge = 0.0;
- prevEntity = calculateOffset(&lineFirst, prevEntity, dist*num*neg);
- }
- v = calculateIntersection(prevEntity, currEntity);
- }
- if (!v.valid)
- v = currEntity->getStartpoint();
- first = false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement