How to tell if a geometry is disjoint? #166
Answered
by
sgenoud
BarbourSmith
asked this question in
Modelling help
-
Beta Was this translation helpful? Give feedback.
Answered by
sgenoud
Sep 27, 2024
Replies: 1 comment
-
You can list the solids in the shape, with a function like that: function getSolids(compound) {
return Array.from(iterTopo(compound.wrapped, "solid"), (s) => new Solid(s));
} This is using the mechanism that I use to list all edges or faces of a shape exposed as a function. You can see it used here. Note I am not 100% sure of my answer (there might be edge cases about it in the underlying library that I am not aware of). Tell me if you find them. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
BarbourSmith
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can list the solids in the shape, with a function like that:
This is using the mechanism that I use to list all edges or faces of a shape exposed as a function.
You can see it used here.
Note I am not 100% sure of my answer (there might be edge cases about it in the underlying library that I am not aware of). Tell me if you find them.