This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
NewerOlder