Skip to content

occwl Is it possible to get the adjacency of a brep entity? #25

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

Open
nylvy opened this issue Nov 11, 2022 · 1 comment
Open

occwl Is it possible to get the adjacency of a brep entity? #25

nylvy opened this issue Nov 11, 2022 · 1 comment

Comments

@nylvy
Copy link

nylvy commented Nov 11, 2022

As the question, if you can give guidance, thank you!

@JoeLambourne
Copy link
Contributor

Hi @nylvy,

occwl is build on OpenCascade. It is "a bit odd" with respect to adjacency, especially if you are used to working with other solid modeling kernels. The way OpenCascade works is that you have to make the adjacency query using higher level entries. For example, to find out if two faces are adjacent to each other then you need to query at the shell, solid or complex level. There are no pointers from edges to faces for example. For more detail see here.

If you would like to know about adjacent faces then the code you want is BottomUpFaceIterator.faces_from_edge().

A good example to look at is graph.py which can build a face adjacency graph for a solid.

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