src/Boundary/PlanarBoundary.cc
// 3D
// For now we only check cardinally aligned planes.
3D
For now we only check cardinally aligned planes.
3D For now we only check cardinally aligned planes .
inline
void
clipBoxWithPlane(const GeomPlane<Dim<3> >& plane,
                 Dim<3>::Vector& point) {
  if (plane.compare(point) == 1) {
    if (fuzzyEqual(std::abs(plane.normal().x()), 1.0)) {
      point.x(plane.point().x());
    } else if (fuzzyEqual(std::abs(plane.normal().y()), 1.0)) {
      point.y(plane.point().y());
    } else if (fuzzyEqual(std::abs(plane.normal().z()), 1.0)) {
      point.z(plane.point().z());
    }
  }
}
inline void clipBoxWithPlane ( const GeomPlane < Dim < 3 > > & plane , Dim < 3 > :: Vector & point ) { if ( plane . compare ( point ) == 1 ) { if ( fuzzyEqual ( std :: abs ( plane . normal ( ) . x ( ) ) , 1.0 ) ) { point . x ( plane . point ( ) . x ( ) ) ; } else if ( fuzzyEqual ( std :: abs ( plane . normal ( ) . y ( ) ) , 1.0 ) ) { point . y ( plane . point ( ) . y ( ) ) ; } else if ( fuzzyEqual ( std :: abs ( plane . normal ( ) . z ( ) ) , 1.0 ) ) { point . z ( plane . point ( ) . z ( ) ) ; } } }
3D
For now we only check cardinally aligned planes.
3D For now we only check cardinally aligned planes .