src/JsPlot3D.js
/**
     * if plotmesh is invalid it gets cleared. The point of this is that materials and such don't have to be recreated again and again
     * It checks the mesh.type, mesh.name and mesh.geometry.type if it matches with the parameter check
     * @return returns true if plotmesh is still valid and existant
     * @private
     */
if plotmesh is invalid it gets cleared. The point of this is that materials and such don't have to be recreated again and again
It checks the mesh.type, mesh.name and mesh.geometry.type if it matches with the parameter check
@return returns true if plotmesh is still valid and existant
@private
if plotmesh is invalid it gets cleared . The point of this is that materials and such don ' t have to be recreated again and again It checks the mesh . type mesh . name and mesh . geometry . type if it matches with the parameter check @return returns true if plotmesh is still valid and existant @private
IsPlotmeshValid(check)
    {
        let obj = this.plotmesh
        if(obj === null)
        {
            return false
        }
        if(obj.name === check || obj.type === check)
        {
            return true
        }
        return false
    }
IsPlotmeshValid ( check ) { let obj = this . plotmesh if ( obj === null ) { return false } if ( obj . name === check || obj . type === check ) { return true } return false }
if plotmesh is invalid it gets cleared.
if plotmesh is invalid it gets cleared .