Renaming function.

This commit is contained in:
Patrick Shriwise 2019-09-12 09:29:12 -05:00
parent 5bb3d582c9
commit 25df513a77
2 changed files with 3 additions and 3 deletions

View file

@ -214,7 +214,7 @@ protected:
static BoundingBox bounding_box_complex(std::vector<int32_t> rpn);
static void apply_demorgan(std::vector<int32_t>::iterator start,
std::vector<int32_t>::iterator stop);
static void remove_complements(std::vector<int32_t>& rpn);
static void remove_complement_ops(std::vector<int32_t>& rpn);
static std::vector<int32_t>::iterator
find_left_parenthesis(std::vector<int32_t>::iterator start,
const std::vector<int32_t>& rpn);

View file

@ -642,7 +642,7 @@ CSGCell::find_left_parenthesis(std::vector<int32_t>::iterator start,
return it;
}
void CSGCell::remove_complements(std::vector<int32_t>& rpn) {
void CSGCell::remove_complement_ops(std::vector<int32_t>& rpn) {
auto it = std::find(rpn.begin(), rpn.end(), OP_COMPLEMENT);
while (it != rpn.end()) {
// find the opening parenthesis (if any)
@ -659,7 +659,7 @@ void CSGCell::remove_complements(std::vector<int32_t>& rpn) {
BoundingBox CSGCell::bounding_box_complex(std::vector<int32_t> rpn) {
// remove complements by adjusting surface signs and operators
remove_complements(rpn);
remove_complement_ops(rpn);
// use the first token to set the bounding box
auto it = rpn.begin();