Tue, 12/21/2021 - 21:43
Forums:
Apologies if this was answered before, but how can I query upward topological connectivity in OpenCascade (e.g. shells using a face, edges using a vertices).
I am able to use TopExp_Explorer successfully to query downward topological adjacencies but not upward ones
Wed, 12/22/2021 - 00:27
TopoDS_Shape lists only it's children, but not parent shapes. To figure out where shapes are used you still need to traverse in top-bottom direction. Tools like TopExp::MapShapesAndAncestors() might be helpful to collect this information for the given shape.
Wed, 04/13/2022 - 04:25
https://opencascade.blogspot.com/2009/03/topology-and-geometry-in-open-c...
Wed, 04/13/2022 - 06:27
I tried this but the map is behaving weirdly. I have one object in the map. When I ask for the index of the map from prior knowledge it tells me the index is zero but when I ask for the object related to index 0, it gives me an OutOfRangeError - instead I have to send in index 1.
Wed, 04/13/2022 - 07:37
As I understood, you sent a face as an argument, but you try to obtain mapping of faces to upward solids. You will obtain correct result, if you push a solid (or a compound) instead of a single face.
As regards indexing, yes, OCCT containers starts indexing from 1 (Fortran hangover).
Wed, 04/13/2022 - 07:07
What worked was this: