Take the 2-minute tour ×
LEGO® Answers is a question and answer site for LEGO® and building block enthusiasts. It's 100% free, no registration required.

I have an old set of 7851 curved tracks. I want to use the outer tracks (the ones with the bumpy surface). If I was to put one end down on a baseboard so that is tangent/parallel with the grid of studs, how many LDU in the X and Y direction would the other end be?

I'd also like to the know the X, Y cartesian coordinates (in LDU) of the middle 2 slots as well.

share|improve this question

1 Answer 1

up vote 5 down vote accepted

Well, obviously one way to measure that would be empirically - you have the tracks, you have the baseplates...

As for the maths, let's see... a full circle of these tracks has a diameter of 5 straight tracks as measured from the centre of the sleepers, that translates to 80 studs. The radius is 40 studs, or 800 ldu.

The outer, ridged track, is 2 to 3 studs further depending on which border you consider (and assuming you want borders instead of stud positions). So the radii for the border of that piece of track are 840 and 860.

So, assuming the track circle is centered around (0,0), and using the usual way of considering circles in math (counterclockwise from (1,0)), your first piece of outer track starts at (820,0) and (830,0).

There are 16 segments of track to a full circle, so the angle for one segment is 22,5°, or pi/8. So the end of your first track part is at (840*cos(pi/8),840*sin(pi/8)) to (860*cos(pi/8),860*sin(pi/8)), or (776.06,321.45) to (794.54,329.11)

Expanding further, you get the following segments for the short border of the outer track:

  1. (840.00,0.00)-(860.00,0.00)
  2. (776.06,321.45)-(794.54,329.11)
  3. (593.97,593.97)-(608.11,608.11)
  4. (321.45,776.06)-(329.11,794.54)
  5. (0.00,840.00)-(0.00,860.00)
  6. (-321.45,776.06)-(-329.11,794.54)
  7. (-593.97,593.97)-(-608.11,608.11)
  8. (-776.06,321.45)-(-794.54,329.11)
  9. (-840.00,0.00)-(-860.00,0.00)
  10. (-776.06,-321.45)-(-794.54,-329.11)
  11. (-593.97,-593.97)-(-608.11,-608.11)
  12. (-321.45,-776.06)-(-329.11,-794.54)
  13. (0.00,-840.00)-(0.00,-860.00)
  14. (321.45,-776.06)-(329.11,-794.54)
  15. (593.97,-593.97)-(608.11,-608.11)
  16. (776.06,-321.45)-(794.54,-329.11)

Hopefully that makes sense. Watch out, these are the coordinates of the borders; for the coordinates of the studs (that is, the center of the studs, which I think is more interesting, but I don't know what your goal is) we'll have to use a radius of 850, and move 10 ldu along the tangent to find the stud. So to find the stud after the segment, we'll do (850*cos(pi/8)-10*sin(pi/8),850*sin(pi/8)+10*cos(pi/8)). For each segment N starting from 1, the studs are as follow:

  • start stud: (850*cos((N-1)*pi/8)-10*sin((N-1)*pi/8) , 850*sin((N-1)*pi/8)+10*cos((N-1)*pi/8))
  • end stud: (850*cos(N*pi/8)+10*sin(N*pi/8) , 850*sin(N*pi/8)-10*cos(N*pi/8))

End the two studs in the center of the track are basically and end stud if the angle was pi/16, and the start stud of the next track, or:

  • first middle stud: (850*cos((N-1)*pi/8+pi/16)+10*sin((N-1)*pi/8+pi/16) , 850*sin((N-1)*pi/8+pi/16)-10*cos((N-1)*pi/8+pi/16))
  • second middle stud: (850*cos((N-1)*pi/8+pi/16)-10*sin((N-1)*pi/8+pi/16) , 850*sin((N-1)*pi/8+pi/16)+10*cos((N-1)*pi/8+pi/16))

The four studs of the first part of track are thus at coordinates:

  • start stud: (850.00,10.00)
  • first middle stud: (831.72,175.63)
  • second middle stud: (835.62,156.02)
  • end stud: (789.12,316.04)
share|improve this answer
    
Thanks Joubarc. I did want the coordinates of the stud slots themselves and I ended up working this out in a way you described. It turns out it's something like: x = 63.9411, y = 321.45 (assuming first stud is at (0,0) - not very nice integer numbers. –  Alan May 7 '12 at 1:18
1  
Well circles are so that it was more or less a given that you wouldn't get nice integer numbers; but on the other hand you can probably find places where studs are close enough that the parts may fit. Although not exactly related, you my want to read this to see track geometry examples which work by being close enough. –  Joubarc May 7 '12 at 19:16

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.