Elements icon indicating copy to clipboard operation
Elements copied to clipboard

Fix CSGs.

Open ikeough opened this issue 2 years ago • 0 comments

BACKGROUND:

CSGs for solids with surfaces that had convex outlines were broken. In the image below you can see a failed CSG where wide flange sections, which have concave outlines of their end faces, create errant CSG polygons. imageBad CSG polygons resulting from concave outlines.

DESCRIPTION: This PR applies tessellation for all faces to ensure that all CSG polygons have convex faces. The PR also moves the extension method Solid.ToCSG() to be an instance method on the solid class.

imageHealthy CSG cutting through elements with concave face outlines.

REQUIRED:

  • [x] All changes are up to date in CHANGELOG.md.

This change is Reviewable

ikeough avatar Jul 31 '22 18:07 ikeough