wonder.js
Version:
25 lines (19 loc) • 1.24 kB
JavaScript
;
var BufferGeometryService$Wonderjs = require("../../../record/main/geometry/BufferGeometryService.js");
var ReallocatedPointsGeometryService$Wonderjs = require("../../../primitive/geometry/ReallocatedPointsGeometryService.js");
function getIndices16(index, param) {
var geometryRecord = param[/* geometryRecord */5];
return ReallocatedPointsGeometryService$Wonderjs.getUint16PointData(BufferGeometryService$Wonderjs.getInfoIndex(index), geometryRecord[/* indices16 */3], geometryRecord[/* indicesInfos */8]);
}
function getIndices32(index, param) {
var geometryRecord = param[/* geometryRecord */5];
return ReallocatedPointsGeometryService$Wonderjs.getUint32PointData(BufferGeometryService$Wonderjs.getInfoIndex(index), geometryRecord[/* indices32 */4], geometryRecord[/* indicesInfos */8]);
}
function getIndicesCount(index, param) {
var match = ReallocatedPointsGeometryService$Wonderjs.getInfo(BufferGeometryService$Wonderjs.getInfoIndex(index), param[/* geometryRecord */5][/* indicesInfos */8]);
return match[1] - match[0] | 0;
}
exports.getIndices16 = getIndices16;
exports.getIndices32 = getIndices32;
exports.getIndicesCount = getIndicesCount;
/* BufferGeometryService-Wonderjs Not a pure module */