Direct slicing of CAD models for rapid prototyping