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

2D Points #16

Open
luvisdru9 opened this issue Oct 30, 2024 · 4 comments
Open

2D Points #16

luvisdru9 opened this issue Oct 30, 2024 · 4 comments

Comments

@luvisdru9
Copy link

Hello!
In 2D case, how to get the coordinate points of the convex hull of the calculation result?
24b52934-510a-44f1-99f5-38f6892ce8df
I entered the points as shown above, but all I got by iterating through qh.facets_.vertices_ were (0.00000, 0.00000)

@tomilov
Copy link
Owner

tomilov commented Oct 30, 2024

Hello!
qh.facets_.vertices_ is container of iterators. Its values points to the points you provide. That means (0.00000, 0.00000) is point in your data.

@luvisdru9
Copy link
Author

Thank you for your answer, but I still have some questions. So, in the 2D case, I have many facets, each facet contains a vertices_. Does each facet refer to a 2D triangle or a 2D line?

@tomilov
Copy link
Owner

tomilov commented Oct 31, 2024

Convex hull of finite set of points in 2D is convex polygon. So each facet is segment.

@luvisdru9
Copy link
Author

I got it. Thanks for your answer!

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

No branches or pull requests

2 participants