Lines Matching defs:tmp_path_helper
232 Geom::PathVector tmp_path_helper;
258 if (tmp_path_helper.size() > 0) {
259 if (Geom::are_near(tmp_path_helper[tmp_path_helper.size()-1].finalPoint(), append_path.finalPoint())) {
261 tmp_append.setInitial(tmp_path_helper[tmp_path_helper.size()-1].finalPoint());
262 tmp_path_helper[tmp_path_helper.size()-1].append(tmp_append);
263 } else if (Geom::are_near(tmp_path_helper[tmp_path_helper.size()-1].initialPoint(), append_path.initialPoint())) {
265 tmp_path_helper[tmp_path_helper.size()-1] = tmp_path_helper[tmp_path_helper.size()-1].reversed();
266 tmp_append.setInitial(tmp_path_helper[tmp_path_helper.size()-1].finalPoint());
267 tmp_path_helper[tmp_path_helper.size()-1].append(tmp_append);
268 } else if (Geom::are_near(tmp_path_helper[tmp_path_helper.size()-1].finalPoint(), append_path.initialPoint())) {
270 tmp_append.setInitial(tmp_path_helper[tmp_path_helper.size()-1].finalPoint());
271 tmp_path_helper[tmp_path_helper.size()-1].append(tmp_append);
272 } else if (Geom::are_near(tmp_path_helper[tmp_path_helper.size()-1].initialPoint(), append_path.finalPoint())) {
274 tmp_path_helper[tmp_path_helper.size()-1] = tmp_path_helper[tmp_path_helper.size()-1].reversed();
275 tmp_append.setInitial(tmp_path_helper[tmp_path_helper.size()-1].finalPoint());
276 tmp_path_helper[tmp_path_helper.size()-1].append(tmp_append);
277 } else if (Geom::are_near(tmp_path_helper[0].finalPoint(), append_path.finalPoint())) {
279 tmp_append.setInitial(tmp_path_helper[0].finalPoint());
280 tmp_path_helper[0].append(tmp_append);
281 } else if (Geom::are_near(tmp_path_helper[0].initialPoint(), append_path.initialPoint())) {
283 tmp_path_helper[0] = tmp_path_helper[0].reversed();
284 tmp_append.setInitial(tmp_path_helper[0].finalPoint());
285 tmp_path_helper[0].append(tmp_append);
287 tmp_path_helper.push_back(append_path);
289 if ( Geom::are_near(tmp_path_helper[tmp_path_helper.size()-1].finalPoint(),tmp_path_helper[tmp_path_helper.size()-1].initialPoint())) {
290 tmp_path_helper[tmp_path_helper.size()-1].close();
293 tmp_path_helper.push_back(append_path);
296 if (tmp_path_helper.size() > 0) {
297 tmp_path_helper[tmp_path_helper.size()-1] = tmp_path_helper[tmp_path_helper.size()-1];
298 tmp_path_helper[0] = tmp_path_helper[0];
306 if (Geom::are_near(tmp_path_helper[0].initialPoint(),base_a) &&
307 Geom::are_near(tmp_path_helper[0].finalPoint(),base_a))
309 tmp_path_helper[0].close();
310 if (tmp_path_helper.size() > 1) {
311 tmp_path_helper[tmp_path_helper.size()-1].close();
313 } else if (Geom::are_near(tmp_path_helper[tmp_path_helper.size()-1].initialPoint(),base_b) &&
314 Geom::are_near(tmp_path_helper[tmp_path_helper.size()-1].finalPoint(),base_b))
316 tmp_path_helper[0].close();
317 if (tmp_path_helper.size() > 1) {
318 tmp_path_helper[tmp_path_helper.size()-1].close();
320 } else if ((Geom::are_near(tmp_path_helper[0].initialPoint(),base_a) &&
321 Geom::are_near(tmp_path_helper[tmp_path_helper.size()-1].finalPoint(),base_b)) ||
322 (Geom::are_near(tmp_path_helper[0].initialPoint(),base_b) &&
323 Geom::are_near(tmp_path_helper[tmp_path_helper.size()-1].finalPoint(),base_a)))
325 Geom::Path close_path = Geom::Path(tmp_path_helper[tmp_path_helper.size()-1].finalPoint());
327 close_path.appendNew<Geom::LineSegment>(tmp_path_helper[0].initialPoint());
328 tmp_path_helper[0].append(close_path);
332 if (Geom::are_near(tmp_path_helper[0].finalPoint(),tmp_path_helper[0].initialPoint())) {
333 tmp_path_helper[0].close();
336 tmp_path.insert(tmp_path.end(), tmp_path_helper.begin(), tmp_path_helper.end());
337 tmp_path_helper.clear();