Skip to content

Commit 5c64054

Browse files
committed
capVol: use ma::getBoundingBox
- test/capVolSizeFields.h (CylBoundaryLayer): use ma::getBoundingBox which does PCU::Max. Signed-off-by: Aiden Woodruff <[email protected]>
1 parent ef89938 commit 5c64054

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

test/capVolSizeFields.h

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -116,20 +116,7 @@ class CylBoundaryLayer : public ma::AnisotropicFunction {
116116
CylBoundaryLayer(ma::Mesh* mesh): m(mesh) {
117117
ma::Vector bmin(HUGE_VAL, HUGE_VAL, HUGE_VAL),
118118
bmax(-HUGE_VAL, -HUGE_VAL, -HUGE_VAL);
119-
ma::Iterator *it = m->begin(0);
120-
ma::Entity *e;
121-
while ((e = m->iterate(it))) {
122-
ma::Vector p = ma::getPosition(m, e);
123-
124-
if (p.x() < bmin.x()) bmin.x() = p.x();
125-
if (p.x() > bmax.x()) bmax.x() = p.x();
126-
if (p.y() < bmin.y()) bmin.y() = p.y();
127-
if (p.y() > bmax.y()) bmax.y() = p.y();
128-
if (p.z() < bmin.z()) bmin.z() = p.z();
129-
if (p.z() > bmax.z()) bmax.z() = p.z();
130-
}
131-
m->end(it);
132-
119+
ma::getBoundingBox(mesh, bmin, bmax);
133120
ma::Vector len = bmax - bmin;
134121
if (len.x() > len.y() && len.x() > len.z()) {
135122
lion_oprint(1, "Shock2 along X axis.\n");

0 commit comments

Comments
 (0)