Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add region triangulation #5

Open
ianmackenzie opened this issue Oct 28, 2017 · 0 comments
Open

Add region triangulation #5

ianmackenzie opened this issue Oct 28, 2017 · 0 comments

Comments

@ianmackenzie
Copy link
Member

ianmackenzie commented Oct 28, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant