|Message: Re: GDML MultiFuse.||Not Logged In (login)|
Click on the Forum title, e.g. on the "Forums by Category" page, to read a sequence of postings to the Forum and its threads all in one page. If you are only interested in one thread or the thread following a specific posting, click the thread or the posting, which takes you to a smaller page, which contains only the part you are interested in and may be easier to navigate.
Messages are "chained" if there are only replies at the first level, i.e. 1/1.html, 1/1/1.html etc. In case of "chained" messages the message number is replaced by the icon and there is no indentation.
Inline: Display the subject line only or also the text of the posting(s); for the choice "All" the "Outline" choices are switched off.
|1||0||1||no text / full text of posting|
|2||1||All||text for level 1 only / text for All postings|
Outline: Choose the depth of the posting thread, successive toggle controls provide increasing detail.
|1||2||1||2 levels / 1 level (original posting)|
|2||3||2||3 levels / 2 levels|
|3||3||All||3 levels / all levels (all postings)|
Hi Keith, in the example, the two position/rotation references refer to the second node of the multi-union; "node-1" and "node-2" define the multi-union structure and each of the nodes can have a transformation (position/rotation) associated to them and relative to the structure (in this case only "node-2" has these). A transformation associated to the whole multi-union structure gets defined as for a normal physical volume placement, i.e., for instance: <structure> <volume name="munion_log"> <materialref ref="ALU"/> <solidref ref="multiUnion"/> </volume> <volume name="TOP"> <materialref ref="AIR"/> <solidref ref="WorldBox"/> <physvol name="munion_phys"> <volumeref ref="munion_log"/> <positionref ref="munion_pos"/> <--- <rotationref ref="munion_rot"/> <--- </physvol> </volume> </structure> Cheers, Gabriele --------------- On Sat, 02 Mar 2019 07:59:15 GMT, Keith Sloan wrote: > I am trying to Implement GDML and Geant4 Workbenchs for FreeCAD (see > https://www.freecadweb.org/ ) i.e. Ability to import and export GDML > from FreeCAD. > > The GDML workbench in its current state is available at > https://github.com/KeithSloan/FreeCAD_Python_GDML > > I am currently trying to add support for Booleans. > > I have a test file that has a FreeCAD MultiFuse of two objects. I am > trying to code this up as a GDML MultiUnion. I not clear on the GDML > documentation. > > The GDML User Guide has > > Another way to describe Union Solid is by using the MultiUnion > construct, which offers possibility to make union of many solids. The > following example illustrates the construction of a MultiUnion > structure: > > Page 28 of 50 > > <box name="box_first" x="1" > <box name="box_second" x="4" > > y="5" z="20" /> y="4.5" z="18" /> > > <multiUnion name= ="multiUnion" > > <multiUnionNode name-"node-1"> > <solid ref="box_first" /> > </multiUnionNode> > <multiUnionNode name="node-2"> > <solid ref="box_second" /> > <positionref ref="union_position" /> > <rotationref ref="union_rotation" /> > </multiUnionNode> > </multiUnion> > > I am confused on the position and rotation references. Do these only > appear in the last solid? and apply to the combined object? And what > about the relevant Logical Volume for the MultiUnion? > > Hope you can help - Thanks >
|Inline Depth:||Outline Depth:||Add message:|