File tree Expand file tree Collapse file tree 2 files changed +615
-1
lines changed
Expand file tree Collapse file tree 2 files changed +615
-1
lines changed Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ class BuildingPart {
162162 ( calculatedOptions . roof . shape === 'flat' ? 0 : null ) ??
163163 ( calculatedOptions . roof . shape === 'dome' || calculatedOptions . roof . shape === 'pyramidal' ? BuildingShapeUtils . calculateRadius ( this . shape ) : null ) ??
164164 ( calculatedOptions . roof . shape === 'onion' ? BuildingShapeUtils . calculateRadius ( this . shape ) * 1.5 : null ) ??
165- ( calculatedOptions . roof . shape === 'skillion' ? ( calculatedOptions . roof . angle ? Math . cos ( calculatedOptions . roof . angle / 360 * 2 * Math . PI ) * shapeHeight : 22.5 ) : null ) ;
165+ ( calculatedOptions . roof . shape === 'skillion' ? ( calculatedOptions . roof . angle ? Math . cos ( calculatedOptions . roof . angle / 360 * 2 * Math . PI ) * shapeHeight : Math . cos ( 22.5 / 360 * 2 * Math . PI ) * shapeHeight ) : null ) ;
166166
167167 calculatedOptions . building . height = this . options . specified . building . height ??
168168 ( isNaN ( calculatedOptions . building . levels ) ? null : ( calculatedOptions . building . levels * 3 ) + calculatedOptions . roof . height ) ??
You can’t perform that action at this time.
0 commit comments