I have cube model cube.iges and when i try to give unique id's to this model using TopTools_DataMapOfShapeInteger Class, it binds 24 unique id instead of 8.(If I don't bind anything, it counts 48 points total) I am using the code below to bind id's, is there any other way? or if there is not, is there a way to merge (weld) points close enough to get a cube shape with 8 unique points?
Thanks in advance...
int uniqueVertexId = 0;
for (ex.Init(getContext()->SelectedShape(), TopAbs_VERTEX); ex.More(); ex.Next())
TopoDS_Vertex aVertex = TopoDS::Vertex(ex.Current());