building activate action, polygon math