Real-time control of laser solid freeform fabrication