I'm working on a ray tracing project in Python and want to include custom shapes, such as a human body, in my scenes. While basic shapes like spheres and cuboids are straightforward, I'm struggling to figure out how to implement more complex shapes.
1. Is there a preferred method for defining custom shapes in ray tracing projects using Python?
2. How can I go about creating a custom shape, like a human body, and integrate it into my existing ray tracing framework?
I've explored various resources (e.g. this), but most examples focus on basic geometric primitives. I would appreciate guidance or code snippets that demonstrate the process of defining and rendering a custom, non-trivial shape.