ditrit/OGrEE-CLI

reworkOrientations: A building rotation is a float, not a vector

Closed this issue · 2 comments

The lexer should refuse a vector for a rotation.

cedrok@OGrEE3D:/Physical$> +bd:RWOR.SITE.BLDG2@[0,0]@[22.8,19.8,3]@[0,0]
successfully created object

cedrok@OGrEE3D:/Physical$> get RWOR/SITE/BLDG2
{
    "attributes": {
        "height": "3",
        "heightUnit": "m",
        "posXY": "{\"x\":0 ,\"y\":0 }",
        "posXYUnit": "m",
        "rotation": [
            0,
            0
        ],
        "size": "{\"x\":22.8 ,\"y\":19.8 }",
        "sizeUnit": "m"
    },
    "category": "building",
    "createdDate": "2023-01-17T17:06:33.949Z",
    "description": [],
    "domain": "RWOR",
    "id": "63c6d599b06691d246256edb",
    "lastUpdated": "2023-01-17T17:06:33.949Z",
    "name": "BLDG2",
    "parentId": "63c6d121b06691d246256ed9"
}

Fix added on issue137Rotation 49d4849

Merged into 'reworkOrientations'