Rapid prototyping of biomaterials