JMRI / XTrkCadReader

Convert XTrkCad layouts into JMRI panels
http://jmri.org/community/connections/XtrkCadReader/
Other
4 stars 6 forks source link

Add Bezier tracks import #14

Closed silverailscolo closed 3 years ago

silverailscolo commented 3 years ago

as per 5.2 file format, true LE bezier track items, not as curves

silverailscolo commented 3 years ago

I can merge and create the release after one of you has had a chance to check the output written by XtrkCadReader 2.2.4-ish:

     <!-- #7 Bezier segment -->
        <positionablepoint ident="A4" type="1" x="399.0162" y="232.92824166666668" connect1name="T3" connect2name="T1" class="jmri.jmrit.display.layoutEditor.configurexml.PositionablePointXml" />
        <positionablepoint ident="A5" type="1" x="442.7662" y="383.96990833333336" connect1name="T3" class="jmri.jmrit.display.layoutEditor.configurexml.PositionablePointXml" />
        <tracksegment ident="T3" connect1name="A4" type1="POS_POINT" connect2name="A5" type2="POS_POINT" mainline="no" hidden="no" dashed="no" bezier="yes"  hideConLines="yes" class="jmri.jmrit.display.layoutEditor.configurexml.TrackSegmentXml">
            <controlpoints>
                <controlpoint  index="0" x="399.75345" y="295.55445" />
                <controlpoint  index="1" x="410.47453333333334" y="383.96990833333336" />
            </controlpoints>
        </tracksegment>