A cube bounding box calculator test.

This commit is contained in:
Viktor Kovacs 2021-05-15 12:56:53 +02:00
parent ee271cb06b
commit bdfa2d2b85

View File

@ -79,7 +79,14 @@ describe ('Model Utils', function () {
});
});
it ('Bounding Box', function () {
it ('Mesh Bounding Box', function () {
var cube = testUtils.GetCubeMesh ();
let cubeBounds = OV.GetMeshBoundingBox (cube);
assert (OV.CoordIsEqual3D (cubeBounds.min, new OV.Coord3D (0.0, 0.0, 0.0)));
assert (OV.CoordIsEqual3D (cubeBounds.max, new OV.Coord3D (1.0, 1.0, 1.0)));
});
it ('Model Bounding Box', function () {
var model = new OV.Model ();
var mesh1 = new OV.Mesh ();