mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 14:18:24 +02:00
[WL21389] Avoid vector copy within shapeInfoCalculator.
Reviewed-by: Leander Hasty <leander@1stplayable.com> Changes Committed: modified: interface/src/Util.cpp
This commit is contained in:
parent
5b50b362f1
commit
d2350974b5
1 changed files with 2 additions and 2 deletions
|
@ -398,9 +398,9 @@ void runUnitTests() {
|
||||||
void shapeInfoCalculator(const ShapeEntityItem * const shapeEntity, ShapeInfo &shapeInfo) {
|
void shapeInfoCalculator(const ShapeEntityItem * const shapeEntity, ShapeInfo &shapeInfo) {
|
||||||
ShapeInfo::PointCollection pointCollection;
|
ShapeInfo::PointCollection pointCollection;
|
||||||
ShapeInfo::PointList points;
|
ShapeInfo::PointList points;
|
||||||
|
|
||||||
GeometryCache::computeSimpleHullPointListForShape(shapeEntity, points);
|
|
||||||
pointCollection.push_back(points);
|
pointCollection.push_back(points);
|
||||||
|
|
||||||
|
GeometryCache::computeSimpleHullPointListForShape(shapeEntity, pointCollection.back());
|
||||||
shapeInfo.setPointCollection(pointCollection);
|
shapeInfo.setPointCollection(pointCollection);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue