[cad-linux-dev] Re: yaml-based uber-converter db format

  • From: Bruno Postle <bruno@xxxxxxxxxx>
  • To: cad-linux-dev@xxxxxxxxxxxxx
  • Date: Fri, 6 Aug 2004 19:19:41 +0100

On Thu 29-Jul-2004 at 10:46 -0500, Eric Wilhelm wrote:
> 
> Chris has been making significant progress on the pythoncad<->yaml converter.
> 
> http://ericwilhelm.homeip.net/uber-converter/examples/

[Sorry on holiday so no time to have a thorough look]

My only objection is that this seems to assume that all lines have
only two points:

    ---
    ID: 0
    color: #ffff00
    endpoint 1:
        - 20.5447939296064
        - 9.09829239704423
    endpoint 2:
        - 18.4368488234314
        - 6.31923185945617
    layer: a
    linetype: bylayer
    type: line

The list of points is more naturally a list, which might look like
this (or something - I haven't got YAML available to do it properly):

    ---
    ID: 0
    color: #ffff00
    points:
        -
            - 20.5447939296064
            - 9.09829239704423
        -
            - 18.4368488234314
            - 6.31923185945617
    layer: a
    linetype: bylayer
    type: line

-- 
Bruno

Other related posts: