sdfsdfs
This commit is contained in:
25
node_modules/pixi.js/lib/scene/graphics/shared/buildCommands/buildPolygon.js
generated
vendored
Normal file
25
node_modules/pixi.js/lib/scene/graphics/shared/buildCommands/buildPolygon.js
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
'use strict';
|
||||
|
||||
var Extensions = require('../../../../extensions/Extensions.js');
|
||||
var triangulateWithHoles = require('../utils/triangulateWithHoles.js');
|
||||
|
||||
"use strict";
|
||||
const emptyArray = [];
|
||||
const buildPolygon = {
|
||||
extension: {
|
||||
type: Extensions.ExtensionType.ShapeBuilder,
|
||||
name: "polygon"
|
||||
},
|
||||
build(shape, points) {
|
||||
for (let i = 0; i < shape.points.length; i++) {
|
||||
points[i] = shape.points[i];
|
||||
}
|
||||
return points;
|
||||
},
|
||||
triangulate(points, vertices, verticesStride, verticesOffset, indices, indicesOffset) {
|
||||
triangulateWithHoles.triangulateWithHoles(points, emptyArray, vertices, verticesStride, verticesOffset, indices, indicesOffset);
|
||||
}
|
||||
};
|
||||
|
||||
exports.buildPolygon = buildPolygon;
|
||||
//# sourceMappingURL=buildPolygon.js.map
|
Reference in New Issue
Block a user