Skip to content

Polygons and polygonal meshes. #43

@lorenzoliuzzo

Description

@lorenzoliuzzo

Add a new Shape that represents a regular polygon and use it in meshes that use more complex shapes than triangles.
To do so, it will be necessary to implement an OBJ parser that reads a seq[Point3D] representing the nodes of the mesh and a seq[seq[int]] representing the sequence of shape indexes.
When we will check if a ray intersects the polygon we will break it in many triangles and iterate over them to find the hitted one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions