Modeling of filament deposition rapid prototyping process with a closed form solution