提交 eb315f02 编写于 作者: A Andreas Plesch 提交者: GitHub

helper functions in scope

上级 d324144d
......@@ -48,6 +48,8 @@
<script src="js/libs/earcut.js"></script>
<script>
THREE.ShapeUtils.triangulateShape = function ( contour, holes ) {
function removeDupEndPts(points) {
var l = points.length;
......@@ -64,8 +66,6 @@
}
}
THREE.ShapeUtils.triangulateShape = function ( contour, holes ) {
removeDupEndPts( contour );
holes.forEach( removeDupEndPts );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册