<div dir="ltr">Hello, <div><br></div><div>there is no user macro in Gate allowing objects substraction. The best approach may be to code directly in C++ by creating a specific volume type (inheriting from GateVVolume, look for example GateBox).</div>
<div><br></div><div>Sincerely, </div><div>David</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 28, 2014 at 6:59 AM, Tasneem Rahman <span dir="ltr"><<a href="mailto:Tasneem.Rahman@student.adfa.edu.au" target="_blank">Tasneem.Rahman@student.adfa.edu.au</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-AU" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hi John,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Can you please tell me how can I subtract objects from one another in Gate_v6.1? For instance if I make one solid box and if I make another cylinder as a daughter
of the box, then can I subtract the cylinder from the box? Will it make a hole like that? Please let me know. Thanks.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Cheers,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Smita<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:gate-users-bounces@lists.opengatecollaboration.org" target="_blank">gate-users-bounces@lists.opengatecollaboration.org</a> [mailto:<a href="mailto:gate-users-bounces@lists.opengatecollaboration.org" target="_blank">gate-users-bounces@lists.opengatecollaboration.org</a>]
<b>On Behalf Of </b>John Apostolakis<br>
<b>Sent:</b> Wednesday, 28 May 2014 3:25 AM<br>
<b>To:</b> Débora Salvado<br>
<b>Cc:</b> <<a href="mailto:gate-users@lists.opengatecollaboration.org" target="_blank">gate-users@lists.opengatecollaboration.org</a>><br>
<b>Subject:</b> Re: [Gate-users] generic trapezoid volume (pinhole)<u></u><u></u></span></p>
</div>
</div><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">I am not sure if this will help:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">If all your pinholes are the same shape (or can be created by subtracting the same "generic trapezoid" shape from the bigger shape) then in Geant4 at least you only need to define one 'solid'.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Then you subtract it multiple times, with each copy positioned at a different location and/or with a different orientation. ( The orientation will be governed by the rotation matrix and the translation that you give it.)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I hope that I understood your issue - or that someone else can add the specialised GATE knowledge necessary to give better advice.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Regards,<u></u><u></u></p>
</div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:13.5pt;font-family:"Helvetica","sans-serif";color:black">John<u></u><u></u></span></p>
</div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:13.5pt;font-family:"Helvetica","sans-serif";color:black">===================================================<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:13.5pt;font-family:"Helvetica","sans-serif";color:black"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:13.5pt;font-family:"Helvetica","sans-serif";color:black">On May 27, 2014, at 5:50 PM, Débora Salvado wrote:<u></u><u></u></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div>
<p class="MsoNormal"><br>
<br>
<u></u><u></u></p>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Dear GATE users,<u></u><u></u></p>
</div>
<p class="MsoNormal">I'm trying to use the "generic trapezoid" volume to define a multi-pinhole collimator, with each pinhole focusing different parts of the FOV.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Consider the following set-up:<br>
<br>
/gate/world/daughters/name trap1<br>
/gate/world/daughters/insert trap<br>
/gate/trap1/geometry/setDx1 26. mm<br>
/gate/trap1/geometry/setDx2 26. mm<br>
/gate/trap1/geometry/setDz 5. mm<br>
/gate/trap1/geometry/setTheta 0. deg<br>
/gate/trap1/geometry/setDy1 26. mm<br>
/gate/trap1/geometry/setDy2 21. mm<br>
/gate/trap1/geometry/setDx3 21. mm<br>
/gate/trap1/geometry/setDx4 21. mm<br>
/gate/trap1/geometry/setPhi 90. deg<br>
/gate/trap1/geometry/setAlp1 0. deg<br>
/gate/trap1/geometry/setAlp2 0. deg<br>
/gate/trap1/setMaterial Air<br>
/gate/trap1/placement/setTranslation 0. 0. 0. mm<u></u><u></u></p>
</div>
<p class="MsoNormal">When I change the "theta" parameter, the face at +pDz goes up or down in the Y direction.<u></u><u></u></p>
</div>
<p class="MsoNormal">How can I make that same face move in the X direction (right or left)?<u></u><u></u></p>
</div>
<p class="MsoNormal">I tried to modify the phi/Alp1/Alp2 parameters, but the visualization either stays the same or it gives me an error...<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Thank you in advance, <br>
<br clear="all">
<u></u><u></u></p>
</div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal">Debora Salvado<u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal">_______________________________________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.opengatecollaboration.org" target="_blank">Gate-users@lists.opengatecollaboration.org</a><br>
<a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" target="_blank">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a><u></u><u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div></div></div>
</div>
<br>_______________________________________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.opengatecollaboration.org">Gate-users@lists.opengatecollaboration.org</a><br>
<a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" target="_blank">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a><br></blockquote></div><br><br clear="all"><div><br></div>
-- <br><div dir="ltr">David Sarrut, Phd<br>Directeur de recherche CNRS<br>CREATIS, UMR CNRS 5220, Inserm U 1044<div>Centre de lutte contre le cancer Léon Bérard<br>28 rue Laënnec, 69373 Lyon cedex 08<br>Tel : 04 78 78 51 51 / 06 74 72 05 42<br>
<a href="http://www.creatis.insa-lyon.fr/~dsarrut" target="_blank">http://www.creatis.insa-lyon.fr/~dsarrut</a><br>_________________________________</div><div> "2 + 2 = 5, for extremely large values of 2"<br>_________________________________</div>
</div>
</div>