-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.js
36 lines (35 loc) · 802 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
(function (root, factory) {
"use strict";
if (typeof exports === 'object') {
module.exports = factory(
require('./bvh'),
require('./bih'),
require('./aabb'),
require('./ray'),
require('./intersectinfo'));
} else if (typeof define === 'function' && define.amd) {
define([
'./bvh/index',
'./bih/index',
'./aabb/index',
'./ray/index',
'./intersectinfo/index',
], factory);
} else {
/* Not sure this makes much sense...
if(!root.BxH) root.BxH = {};
root.BxH = factory(
root.BxH.AABB,
root.BxH.SegmentHelpers,
root.BxH.TreeBuilders,
root.BxH.NodeHelpers);*/
}
}(this, function (BVH, BIH, AABB, Ray, IntersectInfo) {
return {
BVH : BVH,
BIH : BIH,
AABB: AABB,
Ray: Ray,
IntersectInfo: IntersectInfo
};
}));