Skip to content

Conversation

@BradWhitlock
Copy link
Member

This PR resolves #1713.

  • Modified polygon/plane clipping to avoid adding uninitialized point to polygon
  • Filtered points while building output polygon
  • Added Point::isNearlyEqual() method
  • Integrated the supplied example program into the primal polygon tests
  • Updated RELEASE-NOTES.md

Copy link
Member

@kennyweiss kennyweiss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @BradWhitlock


/// Compare two polygons with a tolerance.
template <typename PolygonType, typename T>
bool polygonsEqual(const PolygonType& p1, const PolygonType& p2, T tol)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make sense to add this as an isNearlyEqual method to the Polygon class like you did for the Point class?

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

Successfully merging this pull request may close these issues.

Polygon clipping in primal is prone to making bad vertices in some cases.

5 participants