getWireframeAttribute method
Implementation
getWireframeAttribute(BufferGeometry geometry) {
var currentAttribute = wireframeAttributes.get(geometry);
if (currentAttribute != null) {
var geometryIndex = geometry.index;
if (geometryIndex != null) {
// if the attribute is obsolete, create a new one
if (currentAttribute.version < geometryIndex.version) {
updateWireframeAttribute(geometry);
}
}
} else {
updateWireframeAttribute(geometry);
}
return wireframeAttributes.get(geometry);
}