fix (again)
This commit is contained in:
Родитель
a002d881fa
Коммит
f552b315c4
|
@ -82,6 +82,30 @@
|
|||
}
|
||||
}
|
||||
|
||||
function AxesHelper( size ) {
|
||||
size = size || 1;
|
||||
|
||||
var vertices = [
|
||||
0, 0, 0, size, 0, 0,
|
||||
0, 0, 0, 0, size, 0,
|
||||
0, 0, 0, 0, 0, size
|
||||
];
|
||||
|
||||
var colors = [
|
||||
1, 0, 0, 1, 0.6, 0,
|
||||
0, 1, 0, 0.6, 1, 0,
|
||||
0, 0, 1, 0, 0.6, 1
|
||||
];
|
||||
|
||||
var geometry = new THREE.BufferGeometry();
|
||||
geometry.addAttribute( 'position', new THREE.Float32BufferAttribute( vertices, 3 ) );
|
||||
geometry.addAttribute( 'color', new THREE.Float32BufferAttribute( colors, 3 ) );
|
||||
|
||||
var material = new THREE.LineBasicMaterial( { vertexColors: THREE.VertexColors } );
|
||||
|
||||
return new THREE.LineSegments(geometry, material);
|
||||
}
|
||||
|
||||
|
||||
window.addEventListener('DOMContentLoaded', () => {
|
||||
setTimeout(() => {
|
||||
|
|
|
@ -244,6 +244,30 @@
|
|||
}
|
||||
}
|
||||
|
||||
function AxesHelper( size ) {
|
||||
size = size || 1;
|
||||
|
||||
var vertices = [
|
||||
0, 0, 0, size, 0, 0,
|
||||
0, 0, 0, 0, size, 0,
|
||||
0, 0, 0, 0, 0, size
|
||||
];
|
||||
|
||||
var colors = [
|
||||
1, 0, 0, 1, 0.6, 0,
|
||||
0, 1, 0, 0.6, 1, 0,
|
||||
0, 0, 1, 0, 0.6, 1
|
||||
];
|
||||
|
||||
var geometry = new THREE.BufferGeometry();
|
||||
geometry.addAttribute( 'position', new THREE.Float32BufferAttribute( vertices, 3 ) );
|
||||
geometry.addAttribute( 'color', new THREE.Float32BufferAttribute( colors, 3 ) );
|
||||
|
||||
var material = new THREE.LineBasicMaterial( { vertexColors: THREE.VertexColors } );
|
||||
|
||||
return new THREE.LineSegments(geometry, material);
|
||||
}
|
||||
|
||||
|
||||
window.addEventListener('DOMContentLoaded', () => {
|
||||
setTimeout(() => {
|
||||
|
|
|
@ -131,6 +131,30 @@
|
|||
}
|
||||
}
|
||||
|
||||
function AxesHelper( size ) {
|
||||
size = size || 1;
|
||||
|
||||
var vertices = [
|
||||
0, 0, 0, size, 0, 0,
|
||||
0, 0, 0, 0, size, 0,
|
||||
0, 0, 0, 0, 0, size
|
||||
];
|
||||
|
||||
var colors = [
|
||||
1, 0, 0, 1, 0.6, 0,
|
||||
0, 1, 0, 0.6, 1, 0,
|
||||
0, 0, 1, 0, 0.6, 1
|
||||
];
|
||||
|
||||
var geometry = new THREE.BufferGeometry();
|
||||
geometry.addAttribute( 'position', new THREE.Float32BufferAttribute( vertices, 3 ) );
|
||||
geometry.addAttribute( 'color', new THREE.Float32BufferAttribute( colors, 3 ) );
|
||||
|
||||
var material = new THREE.LineBasicMaterial( { vertexColors: THREE.VertexColors } );
|
||||
|
||||
return new THREE.LineSegments(geometry, material);
|
||||
}
|
||||
|
||||
|
||||
window.addEventListener('DOMContentLoaded', () => {
|
||||
setTimeout(() => {
|
||||
|
|
|
@ -193,6 +193,30 @@
|
|||
return context.getImageData(0, 0, img.width, img.height);
|
||||
}
|
||||
}
|
||||
function AxesHelper( size ) {
|
||||
size = size || 1;
|
||||
|
||||
var vertices = [
|
||||
0, 0, 0, size, 0, 0,
|
||||
0, 0, 0, 0, size, 0,
|
||||
0, 0, 0, 0, 0, size
|
||||
];
|
||||
|
||||
var colors = [
|
||||
1, 0, 0, 1, 0.6, 0,
|
||||
0, 1, 0, 0.6, 1, 0,
|
||||
0, 0, 1, 0, 0.6, 1
|
||||
];
|
||||
|
||||
var geometry = new THREE.BufferGeometry();
|
||||
geometry.addAttribute( 'position', new THREE.Float32BufferAttribute( vertices, 3 ) );
|
||||
geometry.addAttribute( 'color', new THREE.Float32BufferAttribute( colors, 3 ) );
|
||||
|
||||
var material = new THREE.LineBasicMaterial( { vertexColors: THREE.VertexColors } );
|
||||
|
||||
return new THREE.LineSegments(geometry, material);
|
||||
}
|
||||
|
||||
|
||||
|
||||
window.addEventListener('DOMContentLoaded', () => {
|
||||
|
|
|
@ -343,6 +343,30 @@
|
|||
console.log('OpenCV.js is ready');
|
||||
openCVready = true
|
||||
}
|
||||
function AxesHelper( size ) {
|
||||
size = size || 1;
|
||||
|
||||
var vertices = [
|
||||
0, 0, 0, size, 0, 0,
|
||||
0, 0, 0, 0, size, 0,
|
||||
0, 0, 0, 0, 0, size
|
||||
];
|
||||
|
||||
var colors = [
|
||||
1, 0, 0, 1, 0.6, 0,
|
||||
0, 1, 0, 0.6, 1, 0,
|
||||
0, 0, 1, 0, 0.6, 1
|
||||
];
|
||||
|
||||
var geometry = new THREE.BufferGeometry();
|
||||
geometry.addAttribute( 'position', new THREE.Float32BufferAttribute( vertices, 3 ) );
|
||||
geometry.addAttribute( 'color', new THREE.Float32BufferAttribute( colors, 3 ) );
|
||||
|
||||
var material = new THREE.LineBasicMaterial( { vertexColors: THREE.VertexColors } );
|
||||
|
||||
return new THREE.LineSegments(geometry, material);
|
||||
}
|
||||
|
||||
|
||||
window.addEventListener('DOMContentLoaded', () => {
|
||||
setTimeout(() => {
|
||||
|
|
|
@ -409,6 +409,31 @@
|
|||
openCVready = true
|
||||
}
|
||||
|
||||
function AxesHelper( size ) {
|
||||
size = size || 1;
|
||||
|
||||
var vertices = [
|
||||
0, 0, 0, size, 0, 0,
|
||||
0, 0, 0, 0, size, 0,
|
||||
0, 0, 0, 0, 0, size
|
||||
];
|
||||
|
||||
var colors = [
|
||||
1, 0, 0, 1, 0.6, 0,
|
||||
0, 1, 0, 0.6, 1, 0,
|
||||
0, 0, 1, 0, 0.6, 1
|
||||
];
|
||||
|
||||
var geometry = new THREE.BufferGeometry();
|
||||
geometry.addAttribute( 'position', new THREE.Float32BufferAttribute( vertices, 3 ) );
|
||||
geometry.addAttribute( 'color', new THREE.Float32BufferAttribute( colors, 3 ) );
|
||||
|
||||
var material = new THREE.LineBasicMaterial( { vertexColors: THREE.VertexColors } );
|
||||
|
||||
return new THREE.LineSegments(geometry, material);
|
||||
}
|
||||
|
||||
|
||||
window.addEventListener('DOMContentLoaded', () => {
|
||||
setTimeout(() => {
|
||||
try {
|
||||
|
|
|
@ -271,6 +271,30 @@
|
|||
return mesh
|
||||
}
|
||||
}
|
||||
function AxesHelper( size ) {
|
||||
size = size || 1;
|
||||
|
||||
var vertices = [
|
||||
0, 0, 0, size, 0, 0,
|
||||
0, 0, 0, 0, size, 0,
|
||||
0, 0, 0, 0, 0, size
|
||||
];
|
||||
|
||||
var colors = [
|
||||
1, 0, 0, 1, 0.6, 0,
|
||||
0, 1, 0, 0.6, 1, 0,
|
||||
0, 0, 1, 0, 0.6, 1
|
||||
];
|
||||
|
||||
var geometry = new THREE.BufferGeometry();
|
||||
geometry.addAttribute( 'position', new THREE.Float32BufferAttribute( vertices, 3 ) );
|
||||
geometry.addAttribute( 'color', new THREE.Float32BufferAttribute( colors, 3 ) );
|
||||
|
||||
var material = new THREE.LineBasicMaterial( { vertexColors: THREE.VertexColors } );
|
||||
|
||||
return new THREE.LineSegments(geometry, material);
|
||||
}
|
||||
|
||||
|
||||
window.addEventListener('DOMContentLoaded', () => {
|
||||
setTimeout(() => {
|
||||
|
|
|
@ -257,6 +257,31 @@
|
|||
}
|
||||
}
|
||||
|
||||
function AxesHelper( size ) {
|
||||
size = size || 1;
|
||||
|
||||
var vertices = [
|
||||
0, 0, 0, size, 0, 0,
|
||||
0, 0, 0, 0, size, 0,
|
||||
0, 0, 0, 0, 0, size
|
||||
];
|
||||
|
||||
var colors = [
|
||||
1, 0, 0, 1, 0.6, 0,
|
||||
0, 1, 0, 0.6, 1, 0,
|
||||
0, 0, 1, 0, 0.6, 1
|
||||
];
|
||||
|
||||
var geometry = new THREE.BufferGeometry();
|
||||
geometry.addAttribute( 'position', new THREE.Float32BufferAttribute( vertices, 3 ) );
|
||||
geometry.addAttribute( 'color', new THREE.Float32BufferAttribute( colors, 3 ) );
|
||||
|
||||
var material = new THREE.LineBasicMaterial( { vertexColors: THREE.VertexColors } );
|
||||
|
||||
return new THREE.LineSegments(geometry, material);
|
||||
}
|
||||
|
||||
|
||||
window.addEventListener('DOMContentLoaded', () => {
|
||||
setTimeout(() => {
|
||||
try {
|
||||
|
|
|
@ -86,6 +86,31 @@
|
|||
}
|
||||
}
|
||||
|
||||
function AxesHelper( size ) {
|
||||
size = size || 1;
|
||||
|
||||
var vertices = [
|
||||
0, 0, 0, size, 0, 0,
|
||||
0, 0, 0, 0, size, 0,
|
||||
0, 0, 0, 0, 0, size
|
||||
];
|
||||
|
||||
var colors = [
|
||||
1, 0, 0, 1, 0.6, 0,
|
||||
0, 1, 0, 0.6, 1, 0,
|
||||
0, 0, 1, 0, 0.6, 1
|
||||
];
|
||||
|
||||
var geometry = new THREE.BufferGeometry();
|
||||
geometry.addAttribute( 'position', new THREE.Float32BufferAttribute( vertices, 3 ) );
|
||||
geometry.addAttribute( 'color', new THREE.Float32BufferAttribute( colors, 3 ) );
|
||||
|
||||
var material = new THREE.LineBasicMaterial( { vertexColors: THREE.VertexColors } );
|
||||
|
||||
return new THREE.LineSegments(geometry, material);
|
||||
}
|
||||
|
||||
|
||||
window.addEventListener('DOMContentLoaded', () => {
|
||||
|
||||
window.pageApp = new VRSimplestExample(document.getElementById('target'))
|
||||
|
|
Загрузка…
Ссылка в новой задаче