vihdzp / miratope-rs

A tool for building and visualizing polytopes.
MIT License
59 stars 16 forks source link

Add polytope cross-sections #23

Closed vihdzp closed 3 years ago

vihdzp commented 3 years ago

This would slice the polytope by some hyperplane to create a polytope of one rank lower.

galoomba1 commented 3 years ago

Currently works for polytopes without nonconvex polygon faces.

vihdzp commented 3 years ago

Seems to work for nonconvex polytopes too now. Closing this issue.

vihdzp commented 3 years ago

Galoomba kindly reminds me that this still doesn't work when slices pass through vertices and that it probably behaves weirdly in polygons. Reopening until we figure out what to do in these cases.

vihdzp commented 3 years ago

Actually, I'll instead close this issue and make further issues for problems that still exist with cross-sections.