## Pad surface disappears if angle 270

Old bugs, solved problems and other topics that are no longer relevant are moved here

### Pad surface disappears if angle 270

Hi, Jaakko!
I have found that if one of the two angles of pad surface is 270 degrees, then the surface disappears from the geometry. Here is an example illustrating the problem:
Code: Select all
`% pads with 270 degreescell 1 0 inpad  -1 -10 cell 2 0 inpad  -2 -10% pads with almost 270cell 3 0 inpad  -3 -10 cell 4 0 inpad  -4 -10% pads with anohter anglescell 5 0 inpad  -5 -10 cell 6 0 inpad  -6 -10% other cellscell 10 0 outpad  1 2 3 4 5 6 -10cell 20 0 outside 10% with 270surf 1 pad 0 0 10 15   90 270 surf 2 pad 0 0 10 15      270 90  % almost 270surf 3 pad 31 0 10 15   90 270.000001 surf 4 pad 31 0 10 15      269.999999 90  % othersurf 5 pad 0 31 10 15   0 180 surf 6 pad 0 31 10 15   180 0  surf 10 sph 0 0 0 100plot 3 600 600 10 -20 50 -20 50mat inpad -11001.03c 1mat outpad -11001.03c 1`

I have attached the PNG image generated. A test run of my original input shows that the pads really disappear.
Attachments
pad_test_geom1.png (8.06 KiB) Viewed 4940 times
KTH Reactor Physics (Stockholm, Sweden) neutron.kth.se
Andrei Fokau

Posts: 77
Joined: Thu Mar 25, 2010 12:25 am
Location: KTH, Stockholm, Sweden

### Re: Pad surface disappears if angle 270

Andrei,

Go to testsurface.c, and change lines 115 and 136 from

if (((fabs(alpha) > 90) && (fabs(alpha) < 270)))

to

if (((fabs(alpha) > 90) && (fabs(alpha) <= 270)))

Does this solve your problem, or do you get more disappearing regions with some other angles? Can you run the geometry without errors (not just plot)?
- Jaakko

Jaakko Leppänen

Posts: 1962
Joined: Thu Mar 18, 2010 10:43 pm
Location: Espoo, Finland

### Re: Pad surface disappears if angle 270

Jaakko,

Yes, the issue is solved now.
So far it was the only case when objects were disappearing.
Attachments
The first pad is now filled with the material
test_pad270_geom1.png (3.34 KiB) Viewed 4917 times
KTH Reactor Physics (Stockholm, Sweden) neutron.kth.se
Andrei Fokau

Posts: 77
Joined: Thu Mar 25, 2010 12:25 am
Location: KTH, Stockholm, Sweden

### Re: Pad surface disappears if angle 270

This problem was fixed in update 1.1.13.
- Jaakko

Jaakko Leppänen