I’m loading this molecule (taken from https://www.rcsb.org/) by using this example of code . I have just added the following element to the “MOLECULES” object:
“5xnl”: “5xnl.pdb”
I get this error:
This is the line:
Is it a problem of too many atoms?
EDIT:
I debugged the loader and I saw that ther is an element missing in the atom array. The element is 1668:
I don’t have the access to threejs repository but the fix it’s easy:
Can anybody changes the source?
Also, with a so large amount of atoms, it would be better to create a version of PDBLoader with THREE.InstancedMesh.