优化:避免错误

pull/803/head
ChenX 5 years ago
parent f3daf88577
commit f680b2e665

@ -14,6 +14,7 @@ export function GenerateExtrudeEdgeGeometry(contourPoints: Vector3[][], height:
function GenerateExtrudeEdgeGeometryPoints(contourPoints: Vector3[], height: number): Vector3[]
{
if (contourPoints.length < 3) return [];
if (equalv3(contourPoints[0], arrayLast(contourPoints)))
contourPoints.pop();
let pts: Vector3[] = [];

Loading…
Cancel
Save