posXY unit is 'tiles' even if room is in meters (#216 OGrEE-3D)
Closed this issue · 2 comments
helderbetiol commented
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"
helderbetiol commented
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