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

Reusing intersection points #1096

Open
IsabellaPa opened this issue Apr 15, 2024 · 2 comments
Open

Reusing intersection points #1096

IsabellaPa opened this issue Apr 15, 2024 · 2 comments

Comments

@IsabellaPa
Copy link

IsabellaPa commented Apr 15, 2024

Hello,
I have a 3D mesh and a plane. I can draw the intersection line by using the contour returned by intersect_with and it works lovely.
But I want to reuse the contour for further calculations. When I try to turn the contour into a Tube(contour.vertices) the sequence of points is not always correct and I tend to get a spiderweb like Tube instead of a circle.
I could alternatively use a Mesh version but mesh= Mesh([contour.vertices, contour.lines]) obviously doesn't draw any triangles.

In this specific case I want to layer different closed intersection lines and determine their common area.

Any help is appreciated!

@marcomusy
Copy link
Owner

Hello, have a look at the methods .join()
https://vedo.embl.es/autodocs/content/vedo/vedo.html?search=join

@IsabellaPa
Copy link
Author

Thank you, that was exactly was I was searching for!

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