Commit 168005a8 authored by Pilar Cossio's avatar Pilar Cossio
Browse files

New Tutorial and Manual

parent ec7cdb27
......@@ -1006,6 +1006,10 @@ if(param.printrotmod) {
for(int n = 0; n < Model.nPointsModel; n++)
{
if(Model.points[n].radius < param.pixelSize){
cout << "Error: Radius less than Pixel size: use keyword NO_PROJECT_RADIUS in inputfile\n";
exit(1);
}
//Getting Centers of Sphere
i = floor(RotatedPointsModel[n].pos[0] / param.pixelSize + (myfloat_t) param.param_device.NumberPixels / 2.0f + 0.5f);
j = floor(RotatedPointsModel[n].pos[1] / param.pixelSize + (myfloat_t) param.param_device.NumberPixels / 2.0f + 0.5f);
......@@ -1016,7 +1020,8 @@ if(param.printrotmod) {
if (i < 0 || j < 0 || i >= param.param_device.NumberPixels || j >= param.param_device.NumberPixels)
{
if (DebugOutput >= 0) cout << "WARNING::: Model Point out of Projection map: " << i << ", " << j << "\n";
continue;
// continue;
exit(1);
}
......@@ -1048,7 +1053,8 @@ if(param.printrotmod) {
if (i < 0 || j < 0 || i >= param.param_device.NumberPixels || j >= param.param_device.NumberPixels)
{
if (DebugOutput >= 0) cout << "WARNING:::: Model Point out of Projection map: " << i << ", " << j << "\n";
continue;
// continue;
exit(1);
}
localproj[i * param.param_device.NumberPixels + j] += Model.points[n].density;//Model.NormDen;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment