Descriptions and Examples for the POV-Ray Raytracer by Friedrich A. Lohmüller
    Model Railroading / Railway Modelling with POV-Ray -
Italiano Italiano
Français français
Deutsch Deutsch

Home
- POV-Ray Tutorial

  Model Railroading
  Railway Modelling
  with POV-Ray
    Index of Content

  - Rail Track System
    for POV-Ray
    Basic Track Elements
    - Straight & Curved
   > Switches
    - Wye + 3Ways
    - Level Junctions

    - Simplified Using by
      RT_System_00.inc
      - Rail Tracks Elements
        with RT_System_00.inc

    - Track Layout with
      Model Scaled Tracks
      - H0 Scale Tracks
      - N Scale Tracks
      - Z Scale Tracks

    - Track Layout with
      scaled Tracks
      - Track Placement
      - Tracks Up & Down

    - Track Layout Examples
      - Simple cyclic
      - Simple eight

    - Download of the
      Rail Track System


                                                     

Rail Track System per POV-Ray
Switches / Turnouts / Points

Track Switch Type A
//--------------------------------------------
#include "RT_System/RT_Track_Switch_A_00.inc"
// returns: 'Switch_Radius_', 'Rail_Distance_' !
//--------------------------------------------
object{ RT_Track_Switch_A_00(
          0,//direction: 0=straight to 1=round
          20.00, // Switch_Length,  // meter
          20.0,  // Switch_Angle_,  // degrees
            1.5, // Ties_Per_Meter  // ~1.5
          ) //-----------------------
        scale<1,1,1> rotate<0,0,0>
        translate<0.00,0.00,0.00>
      } //------------------------------------ 


RT_Tracks_Switch_A_00
RT_Tracks_Switch_A_00

Track Switch Type B
//--------------------------------------------
#include "RT_System/RT_Track_Switch_B_00.inc"
// returns: 'Switch_Radius_', 'Rail_Distance_' !
//--------------------------------------------
object{ RT_Track_Switch_A_00(
          0,//direction: 0=straight to 1=round
          20.00, // Switch_Length,  // meter
          20.0,  // Switch_Angle_,  // degrees
            1.5, // Ties_Per_Meter  // ~1.5
          ) //-----------------------
        scale<1,1,1> rotate<0,0,0>
        translate<0.00,0.00,0.00>
      } //------------------------------------ 


RT_Tracks_Switch_B_00
RT_Tracks_Switch_B_00
Switch Type A
Switch Type B
Switch Type A
Geometry of Switch Type A
Switch Type B
Geometry of Switch Type B
Note: We can use switches of the same include file with different parameter one after the other, but we should
force POV-Ray to reload the according include file before calling a switch with changed parameters:
I.e.: The macro RT_Track_Switch_3Ways_A_00(...) returns: 'Switch_Radius_', 'Rail_Distance_'.

#undef RT_Track_Switch_3Ways_A_00_Inc_Temp
#include "RT_System/RT_Track_Switch_3Ways_A_00.inc"
This makes sure that parameters calculated and declared with the include file will be recalculated properly.
top

© Friedrich A. Lohmüller, 2011
www.f-lohmueller.de