Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Conversation

@otmanesabir
Copy link

No description provided.

// Planes are infinite so the bounding box is infinite?
Vec3f minPoint = Vec3f::all(-Infty);
Vec3f maxPoint = Vec3f::all(Infty);
return CBoundingBox(minPoint, maxPoint);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code is needed as well in case if the plane is orthogonal to one of the axises

		for (int i = 0; i < 3; i++)
			if (m_normal.val[i] == 1) {
				minPoint.val[i] = m_origin.val[i];
				maxPoint.val[i] = m_origin.val[i];
				break;
			}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants