Foam::tmp<Foam::pointField> Foam::searchablePlate::points() const { tmp<pointField> tPts(new pointField(4)); pointField& pts = tPts(); pts[0] = origin_; pts[2] = origin_ + span_; if (span_.x() < span_.y() && span_.x() < span_.z()) { pts[1] = origin_ + point(0, span_.y(), 0); pts[3] = origin_ + point(0, 0, span_.z()); } else if (span_.y() < span_.z()) { pts[1] = origin_ + point(span_.x(), 0, 0); pts[3] = origin_ + point(0, 0, span_.z()); } else { pts[1] = origin_ + point(span_.x(), 0, 0); pts[3] = origin_ + point(0, span_.y(), 0); } return tPts; }
Foam::tmp<Foam::pointField> Foam::searchableCylinder::points() const { tmp<pointField> tPts(new pointField(2)); pointField& pts = tPts(); pts[0] = point1_; pts[1] = point2_; return tPts; }