8000 RFC to make SimplifyTopology() steps optional by ramcdona · Pull Request #603 · elalish/manifold · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
< 8000 ul class="pagehead-actions flex-shrink-0 d-none d-md-inline" style="padding: 2px 0;">
  • Notifications You must be signed in to change notification settings
  • Fork 129
  • RFC to make SimplifyTopology() steps optional #603

    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

    Merged
    merged 1 commit into from
    Nov 14, 2023

    Conversation

    ramcdona
    Copy link
    Contributor

    This is not intended for real inclusion.

    Each major step in SimplifyTopology() was made separately optional. While this is handy for debugging, it is unlikely the way to production. In particular, some of the steps may depend on one another in ways that this can violate.

    However, this gives a base for testing the optionality of steps in SimplifyTopology() and it provides a starting point for the discussion of how these options should be implemented in production.

    Copy link
    codecov bot commented Nov 10, 2023

    Codecov Report

    All modified and coverable lines are covered by tests ✅

    Comparison is base (bb6acf1) 91.41% compared to head (27879d3) 91.41%.
    Report is 7 commits behind head on master.

    Additional details and impacted files
    @@           Coverage Diff           @@
    ##           master     #603   +/-   ##
    =======================================
      Coverage   91.41%   91.41%           
    =======================================
      Files          35       35           
      Lines        4496     4497    +1     
    =======================================
    + Hits         4110     4111    +1     
      Misses        386      386           

    ☔ View full report in Codecov by Sentry.
    📢 Have feedback on the report? Share it here.

    Copy link
    Owner
    @elalish elalish left a comment

    Choose a reason for hiding this comment

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

    Thanks! Let's simplify.

    std::cout << "found " << numFlagged << " duplicate edges to split"
    << std::endl;
    }
    if (ManifoldParams().verbose && numFlagged > 0) {
    Copy link
    Owner

    Choose a reason for hiding this comment

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

    Check your clang-format

    8000
    for (int i = 0; i < nbEdges; ++i) {
    if (halfedge_[i].IsForward()) {
    entries.push_back({halfedge_[i].startVert, halfedge_[i].endVert, i});
    }
    Copy link
    Owner

    Choose a reason for hiding this comment

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

    splitPinchedVerts and splitDuplicateEdges are not optional - they rarely make a change, but when they do, it's necessary for manifoldness.

    Let's just put an early return after this section when ManifoldParams().cleanupTriangles = false and have that be the only new param.

    @ramcdona ramcdona force-pushed the SimplifyTopologyOptions branch from 221b09a to 27879d3 Compare November 14, 2023 17:27
    @ramcdona
    Copy link
    Contributor Author

    I think this should match what you're thinking.

    I force pushed over the earlier revision. That way, this is two simple changes from mainline rather than a ton of noise which is then immediately reverted.

    Copy link
    Owner
    @elalish elalish left a comment
    A4FE

    Choose a reason for hiding this comment

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

    Thanks!

    @elalish elalish merged commit 1a91d8d into elalish:master Nov 14, 2023
    @elalish elalish mentioned this pull request Nov 17, 2023
    cartesian-theatrics pushed a commit to cartesian-theatrics/manifold that referenced this pull request Mar 11, 2024
    Add option to skip cleaning up triangles in SimplifyTopology()
    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
    0