2006-09-28 03:51:33 +08:00
|
|
|
/* ----------------------------------------------------------------------
|
|
|
|
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
|
2007-01-30 08:22:05 +08:00
|
|
|
http://lammps.sandia.gov, Sandia National Laboratories
|
|
|
|
Steve Plimpton, sjplimp@sandia.gov
|
2006-09-28 03:51:33 +08:00
|
|
|
|
|
|
|
Copyright (2003) Sandia Corporation. Under the terms of Contract
|
|
|
|
DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains
|
|
|
|
certain rights in this software. This software is distributed under
|
|
|
|
the GNU General Public License.
|
|
|
|
|
|
|
|
See the README file in the top-level LAMMPS directory.
|
|
|
|
------------------------------------------------------------------------- */
|
|
|
|
|
|
|
|
#ifndef REGION_UNION_H
|
|
|
|
#define REGION_UNION_H
|
|
|
|
|
|
|
|
#include "region.h"
|
|
|
|
|
2007-01-30 08:22:05 +08:00
|
|
|
namespace LAMMPS_NS {
|
|
|
|
|
2006-09-28 03:51:33 +08:00
|
|
|
class RegUnion : public Region {
|
|
|
|
public:
|
2007-01-30 08:22:05 +08:00
|
|
|
RegUnion(class LAMMPS *, int, char **);
|
2006-09-28 03:51:33 +08:00
|
|
|
~RegUnion();
|
2010-01-12 04:25:07 +08:00
|
|
|
int inside(double, double, double);
|
2010-01-09 06:54:13 +08:00
|
|
|
int surface_interior(double *, double);
|
|
|
|
int surface_exterior(double *, double);
|
2006-09-28 03:51:33 +08:00
|
|
|
|
|
|
|
private:
|
|
|
|
int nregion;
|
|
|
|
int *list;
|
|
|
|
};
|
|
|
|
|
2007-01-30 08:22:05 +08:00
|
|
|
}
|
|
|
|
|
2006-09-28 03:51:33 +08:00
|
|
|
#endif
|