Skip to content

Add region triangulation #5

Description

@ianmackenzie

Could be done by general Polygon2d triangulation (opensolid/geometry#29), but might be able to get away with a simpler approach - e.g. the Boost.Polygon library doesn't support triangulation but does support converting a polygon (possibly with holes) into a list of trapezoids, which can then trivially be converted into pairs of triangles. This means that triangles may not always meet properly at vertices, but for now if regions are only ever used for flat surfaces (e.g. planar base surfaces for extrusions or revolutions) then that should be fine.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions