Пример #1
0
void shapeInfoCalculator(const ShapeEntityItem * const shapeEntity, ShapeInfo &shapeInfo) {

    if (shapeEntity == nullptr) {

        //--EARLY EXIT--
        return;
    }

    ShapeInfo::PointCollection pointCollection;
    ShapeInfo::PointList points;
    pointCollection.push_back(points);

    GeometryCache::computeSimpleHullPointListForShape((int)shapeEntity->getShape(), shapeEntity->getScaledDimensions(), pointCollection.back());
    shapeInfo.setPointCollection(pointCollection);
}