did you try this:
var box1 = BABYLON.MeshBuilder.CreateBox("box1", {size: 2}, scene);
box1.position.x = -2.5;
// Kanten für Box 1
var box1Edges = [
// Untere Fläche
[new BABYLON.Vector3(-1, -1, -1), new BABYLON.Vector3(1, -1, -1)],
[new BABYLON.Vector3(1, -1, -1), new BABYLON.Vector3(1, -1, 1)],
[new BABYLON.Vector3(1, -1, 1), new BABYLON.Vector3(-1, -1, 1)],
[new BABYLON.Vector3(-1, -1, 1), new BABYLON.Vector3(-1, -1, -1)],
// Obere Fläche
[new BABYLON.Vector3(-1, 1, -1), new BABYLON.Vector3(1, 1, -1)],
[new BABYLON.Vector3(1, 1, -1), new BABYLON.Vector3(1, 1, 1)],
[new BABYLON.Vector3(1, 1, 1), new BABYLON.Vector3(-1, 1, 1)],
[new BABYLON.Vector3(-1, 1, 1), new BABYLON.Vector3(-1, 1, -1)],
// Vertikale Kanten
[new BABYLON.Vector3(-1, -1, -1), new BABYLON.Vector3(-1, 1, -1)],
[new BABYLON.Vector3(1, -1, -1), new BABYLON.Vector3(1, 1, -1)],
[new BABYLON.Vector3(1, -1, 1), new BABYLON.Vector3(1, 1, 1)],
[new BABYLON.Vector3(-1, -1, 1), new BABYLON.Vector3(-1, 1, 1)]
];
box1Edges.forEach(function(edge){
var line = BABYLON.MeshBuilder.CreateLines("box1edge", {points: edge}, scene);
line.color = new BABYLON.Color3(1, 0, 0);
line.parent = box1;
});
// box1.renderOutline = true;