Renders a 3D surface described by mathematical function