MCPcopy Create free account
hub / github.com/microsoft/SandDance / normalizeData

Function normalizeData

docs/app/js/sanddance-app.js:99939–99946  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

99937 }
99938};
99939function normalizeData(data) {
99940 var header = data.header, attributes = data.attributes;
99941 if (!header || !attributes) return;
99942 data.length = header.vertexCount;
99943 if (attributes.POSITION) attributes.instancePositions = attributes.POSITION;
99944 if (attributes.NORMAL) attributes.instanceNormals = attributes.NORMAL;
99945 if (attributes.COLOR_0) attributes.instanceColors = attributes.COLOR_0;
99946}
99947var PointCloudLayer = function(_Layer) {
99948 (0, _inheritsDefault.default)(PointCloudLayer1, _Layer);
99949 var _super = _createSuper(PointCloudLayer1);

Callers 1

sanddance-app.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected