We have developed optimization methods for generating free-form surfaces. The main
applications are in the industrial on-line spectroscopic and machine visions measurements, where
spectral and spatial uniformity, good efficiency and pass-line stability are required parameters. We
used commercial software for ray-tracing engine. We have developed in-house optimization
routines, but used also build-in functions. In this work we have designed a speckle free alternative
for laser line generation based on the LED sources. The optical system is based on the collimation
part and a free-form mirror. Simulation results are presented.