X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmodel%2Fshape.cpp;h=4ee5b8f24299c74163c48d5bc3c5c7b46d5ae773;hb=57f4a76edbfd6c2b6077047e9fba31788d161b44;hp=c2d82613eff27d416fe7697d0a07da81eca183ed;hpb=df8e86cac65da6daedcab3e4ab1751de2f7e123a;p=blank.git diff --git a/src/model/shape.cpp b/src/model/shape.cpp index c2d8261..4ee5b8f 100644 --- a/src/model/shape.cpp +++ b/src/model/shape.cpp @@ -59,17 +59,9 @@ void Shape::Vertices( } } -void Shape::Outline( - OutlineModel::Buffer &out, - const OutlineModel::Position &elem_offset, - OutlineModel::Index idx_offset -) const { - for (const auto &pos : out_pos) { - out.vertices.emplace_back(elem_offset + pos); - } - for (auto idx : out_idx) { - out.indices.emplace_back(idx_offset + idx); - } +void Shape::Outline(OutlineModel::Buffer &out) const { + out.vertices.insert(out.vertices.end(), out_pos.begin(), out_pos.end()); + out.indices.insert(out.indices.end(), out_idx.begin(), out_idx.end()); } void Shape::SetShape(