ditrit/OGrEE-CLI

posXY unit is 'tiles' even if room is in meters (#216 OGrEE-3D)

Closed this issue · 2 comments

Cedrok commented on Jun 7
It's a CLI issue: by the posXYUnit is "tile" by default.
We need to retrieve the floorUnit attribute from parent room and map it to posXYUnit.

room.attributes[floorUnit] = "t" => rack.attributes[posXYUnit] = "tile"
room.attributes[floorUnit] = "m" => rack.attributes[posXYUnit] = "meter"
room.attributes[floorUnit] = "f" => rack.attributes[posXYUnit] = "foot"

Selon Cédric, pour le cas d'un rack:

  • posXYUnit sera toujours le floorUnit de la parent room
  • sizeUnit & heightUnit sont OK avec les valeurs par défaut
  • height et orientation sont obligatoirement donnés en param

We have 2 fixes, one on the API (issue216AlwaysTiles 613d9751ccc) and one on the CLI (issue100_posXY 6aca2f9). We believe the fix on the CLI to be the better one to use