Beispiel #1
0
		Bounds::Ptr expand(const BoundingBox &bounds) const {
			BoundingBox::Desc desc;
			desc.pose = bounds.getPose();
			desc.dimensions.set(
				bounds.getDimensions().v1 + skinThickness,
				bounds.getDimensions().v2 + skinThickness,
				bounds.getDimensions().v3 + skinThickness
			);
			return desc.create();
		}
Beispiel #2
0
CLBoundingBox::CLBoundingBox(const BoundingBox & bb)
    : mPosition(*bb.getPosition()),
    mDimensions(*bb.getDimensions())
{}