This commit is contained in:
Leon van Kammen 2023-06-22 13:59:51 +02:00
parent 85dd26632c
commit ea8046b1d2
4 changed files with 0 additions and 8 deletions

View file

@ -1181,7 +1181,6 @@ const updatePredefinedView = (opts) => {
if( mesh.visible && (id == mesh.name || id.substr(1) == mesh.userData.class) ){ if( mesh.visible && (id == mesh.name || id.substr(1) == mesh.userData.class) ){
xrf.emit('selection',{...opts,frag}) xrf.emit('selection',{...opts,frag})
.then( () => { .then( () => {
console.log("selection event")
const margin = 1.2 const margin = 1.2
mesh.scale.multiplyScalar( margin ) mesh.scale.multiplyScalar( margin )
mesh.selection = new xrf.THREE.BoxHelper(mesh,0xff00ff) mesh.selection = new xrf.THREE.BoxHelper(mesh,0xff00ff)
@ -1229,7 +1228,6 @@ const updatePredefinedView = (opts) => {
if( v.args ) v = v.args[ xrf.roundrobin(v,xrf.model) ] if( v.args ) v = v.args[ xrf.roundrobin(v,xrf.model) ]
// wait for nested instances to arrive at the scene // wait for nested instances to arrive at the scene
setTimeout( () => traverseScene(v,scene), 100 ) setTimeout( () => traverseScene(v,scene), 100 )
console.dir(v)
if( v.string ) pviews.push(v.string) if( v.string ) pviews.push(v.string)
}else if( v.is( xrf.XRF.NAVIGATOR ) ) pviews.push(`${i}=${v.string}`) }else if( v.is( xrf.XRF.NAVIGATOR ) ) pviews.push(`${i}=${v.string}`)
} }

View file

@ -1181,7 +1181,6 @@ const updatePredefinedView = (opts) => {
if( mesh.visible && (id == mesh.name || id.substr(1) == mesh.userData.class) ){ if( mesh.visible && (id == mesh.name || id.substr(1) == mesh.userData.class) ){
xrf.emit('selection',{...opts,frag}) xrf.emit('selection',{...opts,frag})
.then( () => { .then( () => {
console.log("selection event")
const margin = 1.2 const margin = 1.2
mesh.scale.multiplyScalar( margin ) mesh.scale.multiplyScalar( margin )
mesh.selection = new xrf.THREE.BoxHelper(mesh,0xff00ff) mesh.selection = new xrf.THREE.BoxHelper(mesh,0xff00ff)
@ -1229,7 +1228,6 @@ const updatePredefinedView = (opts) => {
if( v.args ) v = v.args[ xrf.roundrobin(v,xrf.model) ] if( v.args ) v = v.args[ xrf.roundrobin(v,xrf.model) ]
// wait for nested instances to arrive at the scene // wait for nested instances to arrive at the scene
setTimeout( () => traverseScene(v,scene), 100 ) setTimeout( () => traverseScene(v,scene), 100 )
console.dir(v)
if( v.string ) pviews.push(v.string) if( v.string ) pviews.push(v.string)
}else if( v.is( xrf.XRF.NAVIGATOR ) ) pviews.push(`${i}=${v.string}`) }else if( v.is( xrf.XRF.NAVIGATOR ) ) pviews.push(`${i}=${v.string}`)
} }

View file

@ -1181,7 +1181,6 @@ const updatePredefinedView = (opts) => {
if( mesh.visible && (id == mesh.name || id.substr(1) == mesh.userData.class) ){ if( mesh.visible && (id == mesh.name || id.substr(1) == mesh.userData.class) ){
xrf.emit('selection',{...opts,frag}) xrf.emit('selection',{...opts,frag})
.then( () => { .then( () => {
console.log("selection event")
const margin = 1.2 const margin = 1.2
mesh.scale.multiplyScalar( margin ) mesh.scale.multiplyScalar( margin )
mesh.selection = new xrf.THREE.BoxHelper(mesh,0xff00ff) mesh.selection = new xrf.THREE.BoxHelper(mesh,0xff00ff)
@ -1229,7 +1228,6 @@ const updatePredefinedView = (opts) => {
if( v.args ) v = v.args[ xrf.roundrobin(v,xrf.model) ] if( v.args ) v = v.args[ xrf.roundrobin(v,xrf.model) ]
// wait for nested instances to arrive at the scene // wait for nested instances to arrive at the scene
setTimeout( () => traverseScene(v,scene), 100 ) setTimeout( () => traverseScene(v,scene), 100 )
console.dir(v)
if( v.string ) pviews.push(v.string) if( v.string ) pviews.push(v.string)
}else if( v.is( xrf.XRF.NAVIGATOR ) ) pviews.push(`${i}=${v.string}`) }else if( v.is( xrf.XRF.NAVIGATOR ) ) pviews.push(`${i}=${v.string}`)
} }

View file

@ -10,7 +10,6 @@ const updatePredefinedView = (opts) => {
if( mesh.visible && (id == mesh.name || id.substr(1) == mesh.userData.class) ){ if( mesh.visible && (id == mesh.name || id.substr(1) == mesh.userData.class) ){
xrf.emit('selection',{...opts,frag}) xrf.emit('selection',{...opts,frag})
.then( () => { .then( () => {
console.log("selection event")
const margin = 1.2 const margin = 1.2
mesh.scale.multiplyScalar( margin ) mesh.scale.multiplyScalar( margin )
mesh.selection = new xrf.THREE.BoxHelper(mesh,0xff00ff) mesh.selection = new xrf.THREE.BoxHelper(mesh,0xff00ff)
@ -58,7 +57,6 @@ const updatePredefinedView = (opts) => {
if( v.args ) v = v.args[ xrf.roundrobin(v,xrf.model) ] if( v.args ) v = v.args[ xrf.roundrobin(v,xrf.model) ]
// wait for nested instances to arrive at the scene // wait for nested instances to arrive at the scene
setTimeout( () => traverseScene(v,scene), 100 ) setTimeout( () => traverseScene(v,scene), 100 )
console.dir(v)
if( v.string ) pviews.push(v.string) if( v.string ) pviews.push(v.string)
}else if( v.is( xrf.XRF.NAVIGATOR ) ) pviews.push(`${i}=${v.string}`) }else if( v.is( xrf.XRF.NAVIGATOR ) ) pviews.push(`${i}=${v.string}`)
} }