BoundingVolume.ts 371 Bytes
Newer Older
Hanadi's avatar
Hanadi committed
1
2
3
4
5
6
7
8
9
10
11
12
13
export class BoundingVolume {
    box?: number[];
    region?: number[];
    sphere?: number[];

    static fromJson(jsonObj: any) {
        const boundingVolume = new BoundingVolume();
        boundingVolume.box = jsonObj["box"];
        boundingVolume.region = jsonObj["region"];
        boundingVolume.sphere = jsonObj["sphere"];
        return boundingVolume;
    }
}