28 std::vector<GeoLib::Point*>
const*
const pnts(
32 ERR(
"Geometry '{:s}' not found.", input_name);
36 std::vector<GeoLib::Point*> new_pnts{};
37 new_pnts.reserve(pnts->size());
38 std::transform(pnts->cbegin(), pnts->cend(), std::back_inserter(new_pnts),
40 { return new GeoLib::Point(*point); });
42 _geo_objects.getPointVecObj(input_name)->getNameIDMapBegin(),
43 _geo_objects.getPointVecObj(input_name)->getNameIDMapEnd());
45 std::move(pnt_name_id_map));
47 std::vector<GeoLib::Polyline*>
const* plys(
53 _geo_objects.getPolylineVecObj(input_name)->getNameIDMapBegin(),
54 _geo_objects.getPolylineVecObj(input_name)->getNameIDMapEnd()};
56 std::move(ply_name_id_map));
59 std::vector<GeoLib::Surface*>
const* sfcs(
65 _geo_objects.getSurfaceVecObj(input_name)->getNameIDMapBegin(),
66 _geo_objects.getSurfaceVecObj(input_name)->getNameIDMapEnd()};
68 std::move(sfc_name_id_map));
73 std::vector<GeoLib::Polyline*>
const& polylines)
const
75 std::size_t
const n_plys = polylines.size();
76 std::vector<GeoLib::Polyline*> new_lines{n_plys,
nullptr};
78 for (std::size_t i = 0; i < n_plys; ++i)
80 if (polylines[i] ==
nullptr)
86 std::size_t
const nLinePnts(polylines[i]->getNumberOfPoints());
87 for (std::size_t j = 0; j < nLinePnts; ++j)
89 new_lines[i]->addPoint(polylines[i]->getPointID(j));