Skip to content

Commit 4269086

Browse files
authored
Update buildingpart.js (#117)
1 parent 9f51b4d commit 4269086

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/buildingpart.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ class BuildingPart {
269269
const center = BuildingShapeUtils.center(this.shape, angle / 180 * Math.PI);
270270
const options = {
271271
center: center,
272-
angle: (360 - angle) / 360 * 2 * Math.PI,
272+
angle: angle / 180 * Math.PI,
273273
depth: this.options.roof.height,
274274
};
275275
const geometry = new WedgeGeometry(this.shape, options);

0 commit comments

Comments
 (0)