-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
57,982 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
from shapely.geometry import Polygon | ||
from shapely.ops import cascaded_union | ||
|
||
from Geometry.Geom2D import Pnt | ||
from Skeleton.BoxSkeleton import NotBoxError | ||
from Skeleton.SlabSkeleton import SlabSkeleton | ||
from Skeleton.WallSkeleton import WallSkeleton | ||
from Skeleton.Skelet import Skelet | ||
import math | ||
|
||
|
||
class StoreySkeleton(Skelet): | ||
def __init__(self, levelSkeletons): | ||
super(StoreySkeleton, self).__init__() | ||
self.levels = [levelSkeleton.level for levelSkeleton in levelSkeletons] | ||
self.levelSkeletons = levelSkeletons | ||
self.wallSkeletons = [wallSkeleton for levelSkeleton in levelSkeletons | ||
for wallSkeleton in levelSkeleton.wallSkeletons] | ||
self.walls = [wall for level in self.levels | ||
for wall in level.walls] | ||
self.notModifiedWalls = [levelSkeleton.wallSkeletons for levelSkeleton in levelSkeletons] | ||
self.slabSkeletons = [levelSkeleton.slabSkeleton for levelSkeleton in levelSkeletons] | ||
self.height = self.levels[0].getHeightOverLowerLevel() | ||
|
||
def getWallsTotalLength(self): | ||
length = 0 | ||
for wallSkeleton in self.wallSkeletons: | ||
length += wallSkeleton.vecLength.magn() | ||
return length | ||
|
||
def getVoilesTotalLength(self): | ||
return sum(wallSkeleton.getVoilesLength() for wallSkeleton in self.wallSkeletons) | ||
|
||
def getPolys(self): | ||
return [wallSkeleton.poly for wallSkeleton in self.wallSkeletons] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.