21 mcerr <<
"one should not call this function, since this object cannot be "
26box::box(
void) : dx(0), dy(0), dz(0), dxh(0), dyh(0), dzh(0), name(
"none") {
33 pvecerror(
"box(vfloat fdx, vfloat fdy, vfloat fdz, const String &fname)");
47 pvecerror(
"box(vfloat fdx, vfloat fdy, vfloat fdz, const String &fname)");
91 mfunname(
"void box::init_planes(void)");
100 for (
int n = 0; n < 6; ++n)
106 mfunname(
"virtual int check_point_inside(const point& fpt, const vec& dir)");
107#ifdef TRACE_find_embed_vol
108 mcout <<
"box::check_point_inside: \n";
110 mcout <<
"fpt=" << fpt <<
"dir=" << dir;
121#ifdef TRACE_find_embed_vol
122 mcout <<
"cond 1, returning 1\n";
128#ifdef TRACE_find_embed_vol
132 mcout <<
"cond 2, returning 0\n";
137#ifdef IMPROVED_BOUNDARY
141 if (dir.
x == 0.0)
return 0;
142 if ((fpt.
v.
x > 0 && dir.
x > 0) || (fpt.
v.
x < 0 && dir.
x < 0)) {
143#ifdef TRACE_find_embed_vol
144 mcout <<
"cond 3, returning 0\n";
150 if (dir.
y == 0.0)
return 0;
151 if ((fpt.
v.
y > 0 && dir.
y > 0) || (fpt.
v.
y < 0 && dir.
y < 0)) {
152#ifdef TRACE_find_embed_vol
153 mcout <<
"cond 4, returning 0\n";
159 if (dir.
z == 0.0)
return 0;
160 if ((fpt.
v.
z > 0 && dir.
z > 0) || (fpt.
v.
z < 0 && dir.
z < 0)) {
161#ifdef TRACE_find_embed_vol
162 mcout <<
"cond 5, returning 0\n";
167#ifdef TRACE_find_embed_vol
168 mcout <<
"finish, returning 1\n";
195 ((fpt.
v.
x > 0 && dir.
x > 0) || (fpt.
v.
x < 0 && dir.
x < 0))) {
196#ifdef TRACE_find_embed_vol
197 mcout <<
"cond 3, returning 0\n";
202 ((fpt.
v.
y > 0 && dir.
y > 0) || (fpt.
v.
y < 0 && dir.
y < 0))) {
203#ifdef TRACE_find_embed_vol
204 mcout <<
"cond 4, returning 0\n";
209 ((fpt.
v.
z > 0 && dir.
z > 0) || (fpt.
v.
z < 0 && dir.
z < 0))) {
210#ifdef TRACE_find_embed_vol
211 mcout <<
"cond 5, returning 0\n";
215#ifdef TRACE_find_embed_vol
216 mcout <<
"finish, returning 1\n";
227 Ifile <<
"box::print(l=" << l <<
"): " << s <<
'\n';
229 Ifile <<
" dx=" <<
dx <<
" dy=" <<
dy <<
" dz=" <<
dz <<
" prec=" <<
prec
231 Ifile <<
" dxh=" <<
dxh <<
" dyh=" <<
dyh <<
" dzh=" <<
dzh <<
'\n';
243 mfunname(
"virtual int box::range_ext(trajestep& fts, int s_ext) const");
263 strcat(nm,
name.c_str());
276 strcpy(nm,
"manip_box: ");
277 strcat(nm,
name.c_str());
279 strcpy(nm,
"manip_box: ");
288 Ifile <<
"manip_box::print(l=" << l <<
"): " << s <<
'\n';
310 strcpy(nm,
"sh_manip_box: ");
311 strcat(nm,
name.c_str());
313 strcpy(nm,
"sh_manip_box: ");
322 Ifile <<
"sh_manip_box::print(l=" << l <<
"): " << s <<
'\n';
#define macro_copy_body(type)
#define mfunnamep(string)
virtual int range_ext(trajestep &fts, int s_ext) const
virtual void income(gparticle *gp)
virtual void print(std::ostream &file, int l) const
virtual void get_components(ActivePtr< absref_transmit > &aref_tran)
virtual void chname(char *nm) const
virtual int check_point_inside(const point &fpt, const vec &dir) const
virtual void chname(char *nm) const
virtual absvol * Gavol(void) const
virtual void print(std::ostream &file, int l) const
virtual void get_components(ActivePtr< absref_transmit > &aref_tran)
virtual void print(std::ostream &file, int l) const
virtual absvol * Gavol(void) const
virtual void chname(char *nm) const
void ulsvolume_init(surface *fsurf[pqqsurf], int fqsurf, const String &fname, vfloat fprec)
virtual void print(std::ostream &file, int l) const
int range_ext(trajestep &fts, int s_ext) const
virtual void print(std::ostream &file, int l) const
virtual void print(std::ostream &file, int l) const
virtual void get_components(ActivePtr< absref_transmit > &aref_tran)
#define pvecerror(string)