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 for POV-Ray
Switches Wye + 3Ways / Turnouts / Points

Track Switch Wye
//--------------------------------------------
#include "RT_System/RT_Track_Switch_Y_00.inc"
// returns: 'Switch_Length_', 'Rail_Distance_' !
//--------------------------------------------
object{ RT_Track_Switch_Y_00(
         1, //direction: 0= right,1=left
         90.80, //Switch_Radius,
         15.00, // Switch_Angle,
         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_Y_00
RT_Tracks_Switch_Y_00

Track Switch 3Ways Type A
//--------------------------------------------
#include "RT_System/RT_Track_Switch_3Ways_A_00.inc"
// returns: 'Switch_Length_', 'Rail_Distance_' !
//--------------------------------------------
object{ RT_Track_Switch_3Ways_A_00(
         1, //direction: 0= right,1=left
         90.80, //Switch_Radius,
         15.00, // Switch_Angle,
         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_3Ways_A_00
RT_Tracks_Switch_3Ways_A_00
for switches type A.

Track Switch 3Ways Type B
//--------------------------------------------
#include "RT_System/RT_Track_Switch_3Ways_B_00.inc"
// returns: 'Switch_Length_', 'Rail_Distance_' !
//--------------------------------------------
object{ RT_Track_Switch_3Ways_B_00(
         1, //direction: 0= right,1=left
         90.80, //Switch_Radius,
         15.00, // Switch_Angle,
         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_3Ways_B_00
RT_Tracks_Switch_3Ways_B_00
for switches 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