35 std::vector<GeoLib::Point*>
const*
const pnts(
39 ERR(
"Geometry '{:s}' not found.", input_name);
43 std::vector<GeoLib::Point*> new_pnts{};
44 new_pnts.reserve(pnts->size());
45 std::transform(pnts->cbegin(), pnts->cend(), std::back_inserter(new_pnts),
47 { return new GeoLib::Point(*point); });
49 _geo_objects.getPointVecObj(input_name)->getNameIDMapBegin(),
50 _geo_objects.getPointVecObj(input_name)->getNameIDMapEnd());
52 std::move(pnt_name_id_map));
54 std::vector<GeoLib::Polyline*>
const* plys(
60 _geo_objects.getPolylineVecObj(input_name)->getNameIDMapBegin(),
61 _geo_objects.getPolylineVecObj(input_name)->getNameIDMapEnd()};
63 std::move(ply_name_id_map));
66 std::vector<GeoLib::Surface*>
const* sfcs(
72 _geo_objects.getSurfaceVecObj(input_name)->getNameIDMapBegin(),
73 _geo_objects.getSurfaceVecObj(input_name)->getNameIDMapEnd()};
75 std::move(sfc_name_id_map));
80 std::vector<GeoLib::Polyline*>
const& polylines)
const
82 std::size_t
const n_plys = polylines.size();
83 std::vector<GeoLib::Polyline*> new_lines{n_plys,
nullptr};
85 for (std::size_t i = 0; i < n_plys; ++i)
87 if (polylines[i] ==
nullptr)
93 std::size_t
const nLinePnts(polylines[i]->getNumberOfPoints());
94 for (std::size_t j = 0; j < nLinePnts; ++j)
96 new_lines[i]->addPoint(polylines[i]->getPointID(j));