function RoomPackager.TopCornersOfBasePlate(O,P)local Q=O:CornersOfPart(P)local G=P.Position.Y local v={}for P,O in pairs(Q)do if O.Y>G then table.insert(v,O)end end return v end
--returns the four corners with the highest y components
--this is to catch when a user has flipped the baseplate upside down
function RoomPackager:TopCornersOfBasePlate(basePlate)
	local corners = self:CornersOfPart(basePlate)
	local centerY = basePlate.Position.Y
	local topCorners = {}
	for _, corner in pairs(corners) do
		--if a corner is higher globally than the center of the part, then
		--it is along the top-facing surface of the part
		if corner.Y > centerY then
			table.insert(topCorners, corner)
		end
	end
	return topCorners
end
