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