Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Define a test for simple offset booleans (#998)
* Define a test for simple offset booleans This is intended to check for performance regressions - the BRL-CAD logic performing this operation using v2.4.5 ran considerably faster. Note - removing in-loop assertions for triangle count > 0 with the intermediate forms greatly increases the speed, but they are placed there deliberately to simulate what BRL-CAD does to validate the output of the booleans on an incremental basis. In the event of a boolean failure or invalid output being produced for any reason, we want to be able to capture the *exact* inputs responsible - which means we need to check after each boolean operation to validate the results and catch any bad intermediate states at the time they are produced. * formatting * More formatting * Per suggestion from elalish, simplify edge pair setup * Switch to a Status() check - appears to have the same slowing effect. * Move the checks out of the loops * Use initializer lists for better compactness * Restore in-loop checks with explanation * Simplify with += syntax. * Revert "Simplify with += syntax." Getting CI failure, see if this had an impact somehow... This reverts commit 55ca9a9. * Revert "Use initializer lists for better compactness" Still not passing?? Revert another commit. This reverts commit 89065dd. * Reapply "Simplify with += syntax." OK, starting from a passing state, see if this works. This reverts commit ba6027e. * Break the initialization changes down - start with faces array. * Initialize pts array * Ah ha. There it is. Indexing problem with second half of pnts setup. * formatting * Test * Revert "Test" This reverts commit c137a48. * See if the failure triggers if we only check once at the end. * Revert "See if the failure triggers if we only check once at the end." This reverts commit 35f0eb0.
- Loading branch information