Code library

Signed-off-by: 刘明宏 <liuminghong@mail.sdu.edu.cn>
这个提交包含在:
刘明宏
2023-06-22 06:27:19 +00:00
提交者 Gitee
父节点 186f84784d
当前提交 90b2d9ba09
共有 13 个文件被更改,包括 898 次插入0 次删除

13
lib/AndPoint.m 普通文件
查看文件

@@ -0,0 +1,13 @@
function objectIPC = AndPoint(model,p)
% Add points that can be used for the endpoints of 3D irregular volumes
for np = 1:size(p,1)
PTname =['pt' num2str(n)];
model.geom("geom1").create(PTname, "Point");
model.geom("geom1").feature(PTname).setIndex("p", p(np,1), 0);
model.geom("geom1").feature(PTname).setIndex("p", p(np,2), 1);
model.geom("geom1").feature(PTname).setIndex("p", p(np,3), 2);
objectPT{n} = PTname;
end
model.geom('geom1').run;
end