A Finite Element Method of Light-activated Polymeric Materials