Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function to get perimeter of a set of blocks/surfaces #172

Open
jamiebull1 opened this issue Sep 21, 2019 · 0 comments
Open

Function to get perimeter of a set of blocks/surfaces #172

jamiebull1 opened this issue Sep 21, 2019 · 0 comments
Assignees
Labels

Comments

@jamiebull1
Copy link
Owner

jamiebull1 commented Sep 21, 2019

A function to get geomeppy to return the outline of all blocks would be useful for visualisation of results, and also for adding a single zone above an existing building made up of multiple zones (#99).

The call signature would be something like:

def perimeter(surfaces, level="ground"):
    """Returns the contiguous perimeter/s in x,y coordinates of a collection of surfaces.

    If there are non-contiguous groups they will be returned separately.

    :param surfaces: List of surfaces.
    :param level: One of "ground" or "roof". Defaults to "ground".
    :return: List of lists of coordinates for each contiguous group of surfaces.
    """
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant