Skip to content

Commit

Permalink
Update Geometry is now made faster
Browse files Browse the repository at this point in the history
  • Loading branch information
deepaksamuel committed Oct 18, 2019
1 parent 909cdca commit ce60a7f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Simple.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -903,8 +903,7 @@ void Simple::AddObject(QJsonObject json)
AddObject(mesh);
}



UpdateGeometry();
}


Expand All @@ -928,7 +927,7 @@ void Simple::AddObject(SimpleObject *obj)
ui->shapesList->setEnabled(true);
ui->objectTree->setCurrentItem(t);
on_objectTree_itemClicked(t,0);
UpdateGeometry();
//UpdateGeometry();
ui->addObject->setText("Add "+ ui->shapesList->currentText());

}
Expand Down Expand Up @@ -1089,6 +1088,7 @@ void Simple::on_duplicate_clicked()
}
}
}
UpdateGeometry();

}

Expand Down
2 changes: 1 addition & 1 deletion SimpleDetectorConstruction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ G4VPhysicalVolume* SimpleDetectorConstruction::Construct()
if(magFieldChanged==false)
magFieldChanged=obj->magFieldChanged();
Draw(obj);
if(ii<100)
//if(ii<100)
print(obj);
}
if(magFieldChanged) // do this only if magnetic field changed
Expand Down

0 comments on commit ce60a7f

Please sign in to comment.