<p dir="auto">Any chance of adding this? I noticed the meshes have a visibility property, but I couldn't find a method to calculate visibility to the camera.</p>
<p dir="auto">(dev/examples/js/loaders/ObjectLoader.js from commit e3290e3f09)</p>
<p dir="auto">The ObjectLoader actually relies on the order of geometries to assign (child-) objects  to geometries. would it be possible to use unique id's instead? I am just experimenting with a php backend, that is converting Objects to ObjectLoader compatible json. Having a lot of objectgroups with children, keeping the geometries idx in sync with the order of geometries is quite complicated. Using a unique ID instead would be much cleaner.</p>
<p dir="auto">in Line 249 it fetches the geometry by data.geometry:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="    object = new THREE.Mesh( geometries[ data.geometry ], materials[ data.material ] );"><pre class="notranslate"><code class="notranslate">    object = new THREE.Mesh( geometries[ data.geometry ], materials[ data.material ] );
</code></pre></div>
<p dir="auto">this code could also access the geometry with a uuid in data.geometry, but the length method in line 55 won't work if json contains a geometries object instead of an array:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="    for ( var i = 0, l = json.geometries.length; i &lt; l; i ++ ) {"><pre class="notranslate"><code class="notranslate">    for ( var i = 0, l = json.geometries.length; i &lt; l; i ++ ) {
</code></pre></div>
<p dir="auto">same for the code that is adding the json geometris to the geometries array on line 157:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="    if ( data.name !== undefined ) geometry.name = data.name;
    geometries.push( geometry );"><pre class="notranslate"><code class="notranslate">    if ( data.name !== undefined ) geometry.name = data.name;
    geometries.push( geometry );
</code></pre></div>
<p dir="auto">changing this to</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="    if ( data.name !== undefined ) geometry.name = data.name;
    if (data.uuid !== undefined) geometries[data.uuid] = geometry;
    else geometries.push( geometry );"><pre class="notranslate"><code class="notranslate">    if ( data.name !== undefined ) geometry.name = data.name;
    if (data.uuid !== undefined) geometries[data.uuid] = geometry;
    else geometries.push( geometry );
</code></pre></div>
<p dir="auto">seems to work when I pass a json gemotries-array with uuid in every geometry.</p>
<p dir="auto">Cheers,<br>
Björn</p>