Skip to content

Commit 99faab8

Browse files
authored
Update BuildingShapeUtils.js
1 parent e81737d commit 99faab8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/extras/BuildingShapeUtils.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -409,14 +409,12 @@ class BuildingShapeUtils extends ShapeUtils {
409409
}
410410

411411
/**
412-
* Calculate the angle of the longest side of a shape with 90° vertices.
413-
* is begining / end duplicated?
412+
* Return the angle of the longest side of a shape with 90° vertices.
414413
*
415414
* @param {THREE.Shape} shape - the shape
416415
* @return {number}
417416
*/
418417
static longestSideAngle(shape) {
419-
const vecs = shape.extractPoints().shape;
420418
const lengths = BuildingShapeUtils.edgeLength(shape);
421419
const directions = BuildingShapeUtils.edgeDirection(shape);
422420
var index;

0 commit comments

Comments
 (0)