void BoundingBox::computeAxisAlignedBox(std::vector<Vertex>& vertices)
{
    type = "Axis Aligned";
    
    min.setZero();
    max.setZero();
    
    for (VertexIter v = vertices.begin(); v != vertices.end(); v++) {
        expandToInclude(v->position);
    }
}
Пример #2
0
/*public*/
void
Envelope::expandToInclude(const Coordinate& p)
{
	expandToInclude(p.x, p.y);
}
Пример #3
0
	void AABB::expandToInclude( const AABB& aabb )
	{
		expandToInclude( aabb.Min );
		expandToInclude( aabb.Max );
	}