dragonfly_doe2.doe.polygon module

Templates for ‘Block Inputs’ that are of relative Redundance between rooms and story objects

class dragonfly_doe2.doe.polygon.Polygon(name, vertices)[source]

Bases: object

A Doe2 Polygon.

classmethod from_room(room: dragonfly.room2d.Room2D, tolerace=0.01)[source]

Note: Shouldn’t we ensure the points are in 2D. I’m not sure how it works. #TF: ooohhhhhhhhhh good catch!! Though is there not already built into DF something

of the sort for room.floor_geom? was operating off the assumption that obj.prop would be good to go as is? or am I misunderstanding the specifics in which should do check: raise exception if issue?

classmethod from_story(story: dragonfly.story.Story, tolerance=0.01)[source]

Note: I’m not sure if this is correct - shouldn’t we create a polygon per face? This is based on the initial code by Trevor so I didn’t change it.

to_inp() → str[source]

Return Room Polygons block input