I'm seeing a serious defect in a sizable fraction of SketchUp models, namely the existence of duplicate faces.
By "duplicate", I mean, forFace a and Face b:
- The .to_s method returns the same string for a and b* .entityID is identical for a and b* Setting an custom attribute or changing Face properties affects both Face a and Face b
Note: The two faces are distinct visually and not connected or overlapping.
This makes a number of model manipulations impossible.
It's well known that the entityIDs of Faces are not persistent (and maybe not unique?), but this is far worse: saving references to Faces (for example, in a hash map with the key a custom ID attribute) is useless because one reference is referring to two faces.
In case this still isn't clear, here is the output of printing the string representation of all the Faces in a simple model (and also the entityID):
@unknownuser said:
face=#Sketchup::Face:0xf464498, id=52
face=#Sketchup::Face:0xf464498, id=52
face=#Sketchup::Face:0xf464240, id=98
face=#Sketchup::Face:0xf464128, id=1827
face=#Sketchup::Face:0xf464010, id=1841
face=#Sketchup::Face:0xf463f34, id=1848
face=#Sketchup::Face:0xf463e58, id=1855
face=#Sketchup::Face:0xf463d68, id=1863
The duplicate faces above (two windows) are both part of separate Groups; I haven't seen this bug in models without groups. If you continually select all entities in the model and "explode", the Faces are then all unique. So basically, this bug is likely due to Groups of Faces.
Any thoughts?