|
@@ -270,19 +270,32 @@ function OnRenders(path, rate){
|
|
|
comx.ply.renderer(vtkContext.Interface(), postManage, path, rate);
|
|
|
ui.canvas.update();
|
|
|
}
|
|
|
+function OnModifySpheres(x, y, z, radius, name){
|
|
|
+ var res = comx.ply.modifySpheres(vtkContext.Interface(), workData, parseFloat(x), parseFloat(y), parseFloat(z), parseFloat(radius), name);
|
|
|
+ ui.canvas.update();
|
|
|
+ return res;
|
|
|
+}
|
|
|
|
|
|
function OnSpheres(x, y, z, radius, name){
|
|
|
var res = comx.ply.setSpheres(vtkContext.Interface(), workData, parseFloat(x), parseFloat(y), parseFloat(z), parseFloat(radius), name);
|
|
|
ui.canvas.update();
|
|
|
return res;
|
|
|
}
|
|
|
-
|
|
|
+function OnModifyConnects(x, y, z, X, Y, Z, r, g, b, name){
|
|
|
+ var res = comx.ply.modifyConnects(vtkContext.Interface(), workData, x, y, z, X, Y, Z, r, g, b, name);
|
|
|
+ ui.canvas.update();
|
|
|
+ return res;
|
|
|
+}
|
|
|
function OnConnects(x, y, z, X, Y, Z, r, g, b, name){
|
|
|
var res = comx.ply.setConnects(vtkContext.Interface(), workData, x, y, z, X, Y, Z, r, g, b, name);
|
|
|
ui.canvas.update();
|
|
|
return res;
|
|
|
}
|
|
|
-
|
|
|
+function OnModifySpring(x, y, z, X, Y, Z, r, g, b, name){
|
|
|
+ var res = comx.ply.modifySprings(vtkContext.Interface(), workData, x, y, z, X, Y, Z, r, g, b, name);
|
|
|
+ ui.canvas.update();
|
|
|
+ return res;
|
|
|
+}
|
|
|
function OnSpring(x, y, z, X, Y, Z, r, g, b, name){
|
|
|
var res = comx.ply.setSprings(vtkContext.Interface(), workData, x, y, z, X, Y, Z, r, g, b, name);
|
|
|
ui.canvas.update();
|
|
@@ -293,25 +306,42 @@ function OnPic(){
|
|
|
comx.ply.pickup(vtkContext.Interface(), workData, "points", 0);
|
|
|
ui.canvas.update();
|
|
|
}
|
|
|
-
|
|
|
+function OnModifyBeams(seg, x1, y1, z1, x2, y2, z2, r, g, b, radius, name){
|
|
|
+ var res = comx.ply.modifyBeams(vtkContext.Interface(), workData, seg, x1, y1, z1, x2, y2, z2, r, g, b, radius, name);
|
|
|
+ ui.canvas.update();
|
|
|
+ return res;
|
|
|
+}
|
|
|
function OnBeams(seg, x1, y1, z1, x2, y2, z2, r, g, b, radius, name){
|
|
|
var res = comx.ply.setBeams(vtkContext.Interface(), workData, seg, x1, y1, z1, x2, y2, z2, r, g, b, radius, name);
|
|
|
ui.canvas.update();
|
|
|
return res;
|
|
|
}
|
|
|
|
|
|
+function OnModifyConstrains(x, y, z, name){
|
|
|
+ var res = comx.ply.modifyConstraints(vtkContext.Interface(), workData, x, y, z, name);
|
|
|
+ ui.canvas.update();
|
|
|
+ return res;
|
|
|
+
|
|
|
+}
|
|
|
function OnConstrains(x, y, z, name){
|
|
|
var res = comx.ply.setConstraints(vtkContext.Interface(), workData, x, y, z, name);
|
|
|
ui.canvas.update();
|
|
|
return res;
|
|
|
|
|
|
}
|
|
|
-
|
|
|
+function OnModifyArrows(x, y, z, xn, yn, zn, name){
|
|
|
+ return comx.ply.modifyArrows(vtkContext.Interface(), workData, x, y, z, xn, yn, zn, name);
|
|
|
+ ui.canvas.update();
|
|
|
+}
|
|
|
function OnArrows(x, y, z, xn, yn, zn, name){
|
|
|
return comx.ply.setArrows(vtkContext.Interface(), workData, x, y, z, xn, yn, zn, name);
|
|
|
ui.canvas.update();
|
|
|
}
|
|
|
|
|
|
+function OnModifyPoints(x, y, z, radius, name){
|
|
|
+ comx.ply.modifyPoints(vtkContext.Interface(), workData, x, y, z, radius, name);
|
|
|
+ ui.canvas.update();
|
|
|
+}
|
|
|
function OnSetPoints(x, y, z, radius, name){
|
|
|
comx.ply.setPoints(vtkContext.Interface(), workData, x, y, z, radius, name);
|
|
|
ui.canvas.update();
|
|
@@ -565,8 +595,10 @@ function OnPickUp() {
|
|
|
|
|
|
var rec = ui.canvas.hits[0];
|
|
|
var key = rec.keyRecord;
|
|
|
- var keyObj = ui.canvas.parseKey(key);
|
|
|
+ var keyObj = ui.canvas.parseKey(key);
|
|
|
+ console.log("keyObj", keyObj);
|
|
|
let id = findNodeIdByRId(model.acax_app.model.project.GetModel().pro_model, keyObj.sid);
|
|
|
+ console.log("id", id);
|
|
|
var path = model.getCurrentDirectory() + "data/brep/face" + id + ".brep";
|
|
|
|
|
|
comx.occio.GetFaceBrep(comx.occore.GetEntryEx(), keyObj.sid, path);
|
|
@@ -666,7 +698,6 @@ function OnOpenFile(fname) {
|
|
|
model.stop();
|
|
|
}, 100);
|
|
|
}
|
|
|
-
|
|
|
ui.cw_geometry_check.path = fname;
|
|
|
}
|
|
|
|