This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set a=5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SceneJS.Geometry.prototype.setIndices = function (data) { | |
if (data.indices && this._core.indexBuf) { | |
this._boundary = null; | |
var core = this._core; | |
core.indexBuf.bind(); | |
core.indexBuf.setData(new Uint16Array(data.indices), data.indicesOffset || 0 ); | |
core.arrays.indices.set(data.indices, data.indicesOffset || 0 ); | |
this._engine.display.imageDirty = true; | |
} | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SceneJS.Geometry.prototype.setIndices = function (data) { | |
if (data.indices && this._core.indexBuf) { | |
this._boundary = null; | |
var core = this._core; | |
core.indexBuf.bind(); | |
core.indexBuf.setData(new Uint16Array(data.indices), data.indicesOffset || 0 ); | |
core.arrays.indices.set(data.indices, data.indicesOffset || 0 ); | |
this._engine.display.imageDirty = true; | |
} | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12345 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import "https://github.com/pavelvasev/vl_triang" | |
Scene { | |
Spheres { | |
radius: 0.03 | |
property var q: loadFile( Qt.resolvedUrl("d33.txt"),function(res) { | |
var lines = res.split("\n"); | |
var arr = []; | |
for (var i=0; i<lines.length; i++) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Scene { | |
text: "Подключение ThreeJS-объекта + параметры" | |
Param { | |
id: c1 | |
text: "count 1" | |
value: 500 | |
max: 10000 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Scene { | |
Param { | |
text: "rbig" | |
min: 1 | |
max: 20 | |
id: rbigParam | |
} | |
property var rbig: rbigParam.value | |
property var step: 15 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rectangle { | |
color: "red" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
var id_counter = 1; | |
Object.defineProperty(Object.prototype, "__uniqueId", { | |
writable: true | |
}); | |
Object.defineProperty(Object.prototype, "_uniqueId", { | |
get: function() { | |
if (this.__uniqueId == undefined) | |
this.__uniqueId = id_counter++; | |
return this.__uniqueId; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Scene { | |
Triangles { | |
positions: { | |
var a=[]; | |
for (var i=0; i<1000; i++) { | |
var x=Math.random(100), y=Math.random(100), z=Math.random(100); | |
for (var j=0; j<3*3; j++) | |
a.push( x+Math.random(10),y+Math.random(10),z+Math.random(10) ); | |
} | |
return a; |
OlderNewer