INNER CODE UNIT · JavaScript
image_path
MTASZTAKI/ApertusVR · plugins/languageAPI/jsAPI/nodeJsPlugin/js/api/index.js:149
var image_path = req.body.IDs[i]; // paths to the validation set images
var parentNode = ape.nbind.JsBindManager().createNode('dsa'+i, true);
parentNode.setPosition(ape.nbind.Vector3(10, 30, 10));
//parentNode.setOrientation(new ape.nbind.Quaternion(0.7071, -0.7071, 0, 0));
var manualMaterial = ape.nbind.JsBindManager().createManualMaterial("sda" + i, true);
var fileTexture = ape.nbind.JsBindManager().createFileTexture(image_path, true);
fileTexture.setFileName(image_path);
manualMaterial.setTexture(fileTexture);
//var parentNode1 = ape.nbind.JsBindManager().createNode('aaa' + i);
//parentNode1.setPosition(ape.nbind.Vector3(10, 30, 10));
//var text = "";
//if (image_path[image_path.length - 5] == 1)
// text = "Neoplastic";
//else text = "NotNeoplastic";
//var textGeometry = ape.nbind.JsBindManager().createText(text + i);
//textGeometry.setParentNodeJsPtr(parentNode1);