两个人日本WWW免费版,日日噜狠狠噜天天噜AV,午夜精品乱人伦小说区,女人被添全过程A片添

模擬火車旗艦站

標(biāo)題: 緩和曲線連接軌道教程 [打印本頁(yè)]

作者: 我是好人川    時(shí)間: 2018-8-27 17:24
標(biāo)題: 緩和曲線連接軌道教程
連接軌道是很容易的,但是rw不允許連接時(shí)帶緩和曲線。這令我頭疼了兩年。。
今天上Google用了無(wú)數(shù)關(guān)鍵詞如"join tracks with easement", "two tracks easement", ...竟然在github(程序猿都很熟悉{:10_3874:})上找到了一個(gè)大佬的解決方案
地址:https://github.com/macph/easement-curve
點(diǎn)擊"clone or download"再點(diǎn)"download ZIP"

此大佬(用戶名macph)運(yùn)用了高數(shù)知識(shí),對(duì)rw中的緩和曲線線型(Euler Spiral,我以為是采用其近似——三次拋物線)分析,計(jì)算出rw中使用的緩和曲線參數(shù)值。他寫了一個(gè)python程序(請(qǐng)大家自行安裝python,baidu有教程)計(jì)算需要鋪設(shè)曲線的長(zhǎng)度

[attach]47613[/attach]

(嗯,沒(méi)學(xué)過(guò)數(shù)分,看一眼就不看了)

[attach]47614[/attach]
(在python環(huán)境下運(yùn)行此的__main__.py)

作者: 我是好人川    時(shí)間: 2018-8-27 17:26
本帖最后由 我是好人川 于 2018-8-27 17:48 編輯

廢話不多說(shuō)了,以下為作者的教程(即guide.md里的內(nèi)容,
下載的文件中包含有
)。需要一定英語(yǔ)閱讀能力?床欢梢詆oogle翻譯慢慢看。
也可以直接看https://github.com/macph/easement-curve/blob/master/docs/guide.md


Introduction
Starting up the GUI gives you this:
[attach]47615[/attach]
Let us get started with some examples of joining up tracks with easement curves.
Joining two straight tracks
Suppose we have two straight tracks, and we want to create a section with easement curves of radius of curvature 3,200 m to join them. The track rule we are using has a speed tolerance of 120 mph and minimum radius of curvature 1,000 m.
[attach]47616[/attach]

作者: 我是好人川    時(shí)間: 2018-8-27 17:43

Extending a track to join another
The second method calculates easement curves starting at a specific point and extended to join a straight track. The starting track can either be straight or curved, as long as it is in the same direction as the ending track. As the radius of curvature shown by Train Simulator for a track is only accurate to 1 decimal place, the tool uses an additional pair of coordinates to acquire a more accurate radius of curvature for the starting track. If the starting track is straight, the additional pair of coordinates can be left blank.

Suppose we want to extend an curved track to join with a straight track with easement curves, using a track rule with 60 mph speed tolerance and minimum radius 400 m:

[attach]47632[/attach]


Other ways of implementing the curve data
The above instructions show one way to recreate the curve in Train Simulator, but it may not always work because Train Simulator will only show radius of curvature and length for tracks with one decimal place - any hidden errors when laying down the track can easily blow up and make the curve unable to join the second track.

It is for that reason the results are laid out in a table with all the data required rather than a list of instructions.

One other way of laying down the track would be to look at the coordinates for the start and the end of the static curve, and lay down two straight tracks whose ends match up with those coordinates. Then, with Train Simulator's joining tool, the static curve is formed by joining those tracks without easements. The straight tracks are deleted and new easement curves created in place, both of which should join up with the starting and ending tracks without problems.



作者: 我是好人川    時(shí)間: 2018-8-27 17:56
總結(jié)一句:越用RW越感覺RW很不專業(yè)。。
想象有一天能有人開發(fā)出能裝下整個(gè)lkj信號(hào)數(shù)據(jù)、包含逼真物理引擎、調(diào)節(jié)鐵軌幾何線型的模擬火車軟件,但估計(jì)要賣1000$

作者: 我是好人川    時(shí)間: 2018-8-28 00:48
ARF-14 發(fā)表于 2018-8-28 00:17
國(guó)外早有大老發(fā)布,基于AutoCAD的 DXF For RW Tool 售價(jià)20歐元

我之前仔細(xì)研究過(guò)tracks.bin和track tile的文件結(jié)構(gòu),不算非常復(fù)雜。感覺寫一個(gè)類似的但稍微簡(jiǎn)單的程序不會(huì)很困難,就看你愿不愿意花這個(gè)功夫了。
作者: LOCO    時(shí)間: 2018-8-30 19:52
連接怎么不能開緩和曲線 直接就能對(duì)上{:10_3878:}
作者: 我是好人川    時(shí)間: 2018-8-30 23:23
[attach]47668[/attach]
如果不經(jīng)過(guò)精確計(jì)算,無(wú)法在AB之間用一段“緩和曲線-曲線-緩和曲線”連接
@LOCO

作者: sm19538    時(shí)間: 2018-9-4 11:03
喲為......看的俺頭都大了
作者: zhuchaobaoji    時(shí)間: 2019-1-5 00:04
我是好人川 發(fā)表于 2018-8-30 23:23
如果不經(jīng)過(guò)精確計(jì)算,無(wú)法在AB之間用一段“緩和曲線-曲線-緩和曲線”連接
@LOCO

這種也好連接,從A到B,可以這么弄,先從A引出一條緩和+圓曲線+B‘,然后看看和B能否對(duì)齊,如果無(wú)法對(duì)齊,那就調(diào)整中間圓曲線長(zhǎng)度,直到B‘和B引出的直線完全重合,即B‘的直線和B的直線通過(guò)線路縫合按鈕,出現(xiàn)兩個(gè)灰色的按鈕即可。這樣一來(lái),這段曲線就可以使用了,剩下的任務(wù)就是通過(guò)移動(dòng)這條緩圓緩曲線,讓它和A和B重合,然后通過(guò)再次點(diǎn)擊線路縫合按鈕,出現(xiàn)A點(diǎn)和B點(diǎn)的道岔,把兩條多余的直線股部分全部刪除,再次點(diǎn)擊線路縫合按鈕,把線路縫合起來(lái),這樣就成功連接。對(duì)于大半徑曲線來(lái)說(shuō),更省時(shí)間,但是對(duì)于小半徑曲線,就需要極其精確的對(duì)準(zhǔn),長(zhǎng)度或許會(huì)精確到0.01米,這時(shí)候就需要非常大的耐心才能成功。我自己做了一條虛擬京哈齊鐵路,基本上都是這樣連接的,比如兩條線路的聯(lián)絡(luò)線,和一些普高同臺(tái)站的四端正線,都是通過(guò)這樣的方式連接的。畢竟無(wú)緩和曲線的拐彎,都只是用在道岔上的

作者: qwert19971211    時(shí)間: 2021-3-4 14:30
我是好人川 發(fā)表于 2018-8-30 23:23
如果不經(jīng)過(guò)精確計(jì)算,無(wú)法在AB之間用一段“緩和曲線-曲線-緩和曲線”連接
@LOCO

扯淡,這怎么接,我都服了,就沒(méi)人出來(lái)詳細(xì)說(shuō)一下怎么連接嗎,說(shuō)的方法一個(gè)比一個(gè)難懂,總不可能一點(diǎn)點(diǎn)實(shí)驗(yàn)吧

作者: qwert19971211    時(shí)間: 2021-3-4 15:27
zhuchaobaoji 發(fā)表于 2019-1-5 00:04
這種也好連接,從A到B,可以這么弄,先從A引出一條緩和+圓曲線+B‘,然后看看和B能否對(duì)齊,如果無(wú)法對(duì)齊 ...

你這方法你自己試過(guò)嗎,沒(méi)試過(guò)你拿出來(lái)干嘛,你自己對(duì)對(duì),看看在最后向b鏈接的時(shí)候能不能準(zhǔn)確的對(duì)接上

作者: zhuchaobaoji    時(shí)間: 2021-4-23 20:55
zhuchaobaoji 發(fā)表于 2019-1-5 00:04
這種也好連接,從A到B,可以這么弄,先從A引出一條緩和+圓曲線+B‘,然后看看和B能否對(duì)齊,如果無(wú)法對(duì)齊 ...

我要是沒(méi)試過(guò)指定不能拿出來(lái)說(shuō),問(wèn)題是你得多試幾次,緩和曲線的連接比僅僅只有圓曲線的連接要麻煩的多,一個(gè)彎都要連接半個(gè)多小時(shí),而且是曲線半徑越小的越費(fèi)時(shí)間。我至少通過(guò)這種方式,能做出來(lái)聯(lián)絡(luò)線,根本沒(méi)那么復(fù)雜

作者: 羅榮浩    時(shí)間: 2023-5-3 18:13
我是好人川 發(fā)表于 2018-8-30 23:23
如果不經(jīng)過(guò)精確計(jì)算,無(wú)法在AB之間用一段“緩和曲線-曲線-緩和曲線”連接
@LOCO

所以說(shuō),兩段鐵軌為什么要這樣分開?不能一直接下去嗎?
作者: 1956863622    時(shí)間: 2023-7-30 17:45
要一點(diǎn)一點(diǎn)試,兩個(gè)軌道高度要差不多





歡迎光臨 模擬火車旗艦站 (http://www.kitis.cn/) Powered by Discuz! X3.4