rod_space

For visualization, see <rod_surface>.

  • Works with GeometryViewer: No.

  • Works with MeshViewer: No.

XML element: <rod_space>
C++ type: KGWrappedSpace<KGRod>
Child elements

Element

Description

rod

Attributes

Attribute

Type

Description

name

string

Example:

<rod_space name="example_rod_space">
    <rod radius="0.2" longitudinal_mesh_count="100" axial_mesh_count="12">
        <define name="n_turns_" value="5"/>
        <define name="n_segments_per_turn_" value="36"/>
        <define name="coil_radius_" value="1."/>
        <define name="height_per_turn_" value="1."/>
        <loop variable="i" start="0" end="{[n_turns_]*[n_segments_per_turn_]}" step="1">
            <vertex x="{[coil_radius_]*TMath::Cos(2.*TMath::Pi()*([i] mod [n_segments_per_turn_])/[n_segments_per_turn_])}" y="{[coil_radius_]*TMath::Sin(2.*TMath::Pi()*([i] mod [n_segments_per_turn_])/[n_segments_per_turn_])}" z="{[i]*[height_per_turn_]/[n_segments_per_turn_]}"/>
        </loop>
    </rod>
</rod_space>

Used as:

More information

Explained in: Complex Shapes in KGeoBag

Appears in the documentation:

Used in example configurations: