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

Add ROI from coordinates #107

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

gacou54
Copy link

@gacou54 gacou54 commented Mar 4, 2024

This PR adds a new method, RTStruct.add_from_coordinates() where users can add a polygon from coordinates of x, y, z values.

This is how it looks for the user

rtstruct.add_roi_from_coordinates(
    coordinates=[
        [
            # Example of a contour
            [-20.0, -170.0, -559.0],
            [30.0, -170.0, -559.0],
            [30.0, -110.0, -559.0],
            [-20.0, -110.0, -559.0],
        ],
        [
            [-20.0, -170.0, -562.4],
            [30.0, -170.0, -562.4],
            [30.0, -110.0, -562.4],
            [-20.0, -110.0, -562.4],
        ]
    ]
)

@gacou54
Copy link
Author

gacou54 commented Mar 4, 2024

I just saw the issue #77 and PR #79. I had the same issue and made this PR but didn't see it. I imagine that the 2 PRs are equivalent. You can delete this one if #79 is better

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant