I am writing an application with its own GUI and I
am using OpenCascade to fillet shapes. What I want is the user
to be able to select an edge, then get some integer value from it
like a hash or an address. Put those ints in a list, and sometime a
afterwards I would like to get the TopoDS_Edge from the integer.
So my code would be like the following:
TopoDS_Edge E = pickedge();
int value = GetValueFromEdge(E);
TopoDS_Edge E = GetEdgeFromValue(value);
Any idea what GetValueFromEdge and GetEdgeFromValue could look like?
For example I could use HashCode to implement the GetValueFromEdge, but then for the other function I should search every Edge in my Shape for that hashcode witch isn't good for shapes with too many edges.
Thank you in advance