[Gate-users] Origin of STL file not preserved

Jan Gajewski jan.gajewski at ifj.edu.pl
Thu Nov 17 16:13:37 CET 2022


Dear Guillaume,

I faced the same issue when doing a project. I had to implement a
complicated geometry in GATE, consisting of about 100 regions, and I
decided to use STL as well. I generated my STL files from autoCAD and
noticed that for GATE the whole region (all the vertices) needs to be
defined in the "positive" part of the coordinate system, so to have X,Y and
Z in positive coordinates. The solution for me was to shift the origin in
autoCAD to achieve this requirement by some artificial translation, even
quite large, [2,2,2] m in my case. Then to shift it back in GATE by
translation. Thus, I got the setup with properly aligned elements with
respect to each other, positioned in the centre (in the position I
expected) of the World region.

In my case I was moving each element separately. If I were doing the
project again, I would probably think of defining an empty region where I
would put all the elements (as daughters), and then move this region by
[-2,-2,-2] m. Anyway, the most important issue is to define the region in
STL in the positive part of the coordinate system. I do not remember
exactly, but this is probably not the GATE issue but even the STL
definition that all the vertices must be positive.

best


------------------------------------------------------------
Jan Gajewski


On Tue, 15 Nov 2022 at 17:23, ESLAM TAHA <emtaha at kau.edu.sa> wrote:

> Dear  Guillaume,
>
> I used to have the same issue. After creating STLs with SOLIDWORKS and
> importing them into Gate, I noticed that it is not positioned correctly
> within Gate. I solved this issue by importing the STL into Windows 3D
> Builder, where you can set the origin of the model to 0,0,0. After that, if
> you import the STL model in Gate, it will be positioned correctly.
>
>
> Best regards,
> Eslam
>
> ____________
> Eng. Eslam Mohammad Taha
> Medical Physics Engineer
> Nuclear Engineering Department
> King Abdulaziz University
> Jeddah, Saudi Arabia
> Email: emtaha at kau.edu.sa <ebarzangy at stu.kau.edu.sa>
>
> This email and any files transmitted with it are confidential and intended
> solely for the use of the individual or entity to whom they are addressed.
> If you have received this email in error please notify me immediately and
> delete this message from your computer system.   If you are not the
> intended recipient you are notified that disclosing, copying, distributing
> or taking any action in reliance on the contents of this information is
> strictly prohibited.
>
> On Tue, Nov 15, 2022 at 6:54 PM Josh Knowland <
> jknowland at lucernodynamics.com> wrote:
>
>> Hello,
>>
>> I use the STL import quite a lot and have never had problems. What
>> software are you using to make the STL files?
>> If you would like, you can send me your STL files and I can try.
>>
>> -josh
>>
>>
>>
>>
>>
>> -----Original Message-----
>> From: Gate-users <gate-users-bounces at lists.opengatecollaboration.org> On
>> Behalf Of Houyoux Guillaume
>> Sent: Tuesday, November 15, 2022 10:52 AM
>> To: gate-users at lists.opengatecollaboration.org
>> Subject: [Gate-users] Origin of STL file not preserved
>>
>> Dear users,
>>
>> I would like to import the geometry of an ionization chamber from a CAD
>> software to a STL file in order to define it in GATE. I have to mention
>> that I need all the pieces separately to attribute a different material to
>> each one of them.
>> However, it seems that GATE does not remember the origine of the space
>> where the chamber was first created, leading to all the pieces being
>> mispositioned in GATE.
>> Does anybody has an idea how to bypass this issue ? Is it really an issue
>> or am I doing something wrong ?
>>
>> Thank you in advance for your replies,
>>
>> Best regards,
>>
>> Guillaume.
>> Disclaimer : http://www.bordet.be/disclaimer/disclaimer.html
>>
>> L’Institut Jules Bordet a déménagé. Nouvelle adresse : 90, rue
>> Meylemeersch 1070 Anderlecht Het Jules Bordet Instituut is verhuisd. Nieuw
>> adres : 90, Mijlenmeersstraat 1070 Anderlecht
>> _______________________________________________
>> Gate-users mailing list
>> Gate-users at lists.opengatecollaboration.org
>> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
>> _______________________________________________
>> Gate-users mailing list
>> Gate-users at lists.opengatecollaboration.org
>> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
>
>
> Disclaimer: The information contained in this message is intended for the
> addressee only and may contain classified information. If you are not the
> addressee, please delete this message and notify the sender; you should not
> copy or distribute this message or disclose its contents to anyone. Any
> views or opinions expressed in this message are those of the individual(s)
> and not necessarily of the university. No reliance may be placed on this
> message without written confirmation from an authorized representative of
> its contents. No guarantee is implied that this message or any attachment
> is virus free or has not been intercepted and amended.
>
> إخلاء مسؤليه:  ان جميع المعلومات المتضمنة في هذه الرسالة تخص المستلم،
> وربما تتضمن معلومات سرية، واذا لم تكن انت المستلم فالرجاء الغاء الرسالة
> واشعار المرسل، كما يمنع نسخ او توزيع هذه الرسالة او افشاء محتوياتها لاخرين.
> ويجدر بالعلم ان جميع الآراء ووجهات النظر الواردة في هذه الرسالة تعتبر شخصية
> وليست بالضرورة منسوبة للجامعة. كما لايمكن ان يعتمد على هذه الرسالة ما لم
> تحصل على موافقة خطية من المسئول عن محتوياتها. كما لايوجد ضمان بان هذه
> الرسالة أو مرفقاتها خالية من الفيروسات أو انها لم يتم اعتراضها وتعديلها
>
> _______________________________________________
> Gate-users mailing list
> Gate-users at lists.opengatecollaboration.org
> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20221117/1e02d57a/attachment.html>


More information about the Gate-users mailing list