Skip to content

Element compute_geometry() needs to be private. #41

@petrasvestartas

Description

@petrasvestartas

Describe the bug

This method needs to be private:

def compute_geometry(self, include_features=False):

If you run it multiple times, elements are transformed multiple times again and again, changing it location.

I know that my_element.geometry property tries to cache, but still it does not prevent of running this method n-times.

Expected behavior

Two possibilities:
a) transformation is run only once
b) before transformation element is oriented back to its origin frame and then transformed.

Screenshots
Screenshot 2024-11-12 105532
Screenshot 2024-11-12 105554
Screenshot 2024-11-12 105609

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions