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 IndexedPolyfaceSubsetVisitor constructor to iterate "top" facets of a mesh #6773

Merged
merged 8 commits into from
May 30, 2024

Conversation

dassaf4
Copy link
Member

@dassaf4 dassaf4 commented May 29, 2024

New method IndexedPolyfaceSubsetVisitor.createNormalComparison makes it easy to iterate facets of a mesh that satisfy a normal condition, e.g., the "top" facets of a DTM while avoiding "side" or "skirt" facets. In particular, many Polyface API methods take a mesh or a visitor, so passing in this visitor allows for operations on filtered facets.

Motivated by conversations with Map and Booster teams.

Also:

  • Refactored and tested this visitor, which was not tested previously.
  • Preserve readIndex in PolyfaceQuery.visitorClientPointCount and PolyfaceQuery.visitorClientFacetCount
  • New optional PolyfaceVisitor.getVisitableFacetCount interface method allowing visitors to return facet count more efficiently.

@dassaf4 dassaf4 enabled auto-merge (squash) May 29, 2024 22:38
@dassaf4 dassaf4 merged commit 0c604c7 into master May 30, 2024
16 checks passed
@dassaf4 dassaf4 deleted the da4/top-facet-subset-visitor branch May 30, 2024 18:01
hl662 pushed a commit that referenced this pull request Jun 3, 2024
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.

2 participants