你已经派生过 geomesh
镜像自地址
https://gitee.com/sduem/geomesh.git
已同步 2025-08-03 18:26:51 +08:00
二进制文件未显示。
30
karst_cave/lofting.m
普通文件
30
karst_cave/lofting.m
普通文件
@@ -0,0 +1,30 @@
|
||||
function model = lofting(model,data_dir)
|
||||
%Constructed Irregular 3D volumes from 2D contour curves
|
||||
% example:
|
||||
% Comsol_with_Matlab_Start;
|
||||
% import com.comsol.model.util.*
|
||||
% model = ModelUtil.create('Model1');% ModelUtil.remove('Model');
|
||||
% model.modelNode.create('mod1');
|
||||
% model.geom.create('geom1', 3);
|
||||
% model.mesh.create('mesh1', 'geom1');
|
||||
% data_dir = pwd ;
|
||||
% model = lofting(model,data_dir)
|
||||
|
||||
CurveFiles = get_curveTxtFile(data_dir,[1:5],'curve');
|
||||
objectIPC = AndInterpolationCurve(model,CurveFiles);
|
||||
|
||||
model.geom("geom1").create("loft1", "Loft");
|
||||
model.geom("geom1").feature("loft1").selection("profile").set(objectIPC);
|
||||
model.geom("geom1").feature("loft1").set("facepartitioning", "grid");
|
||||
|
||||
% model.geom("geom1").create("pare1", "PartitionEdges");
|
||||
|
||||
try
|
||||
model.component("mod1").geom("geom1").run();
|
||||
catch
|
||||
warning('The automatic lofting failed, so the Partition Edges had to be added manually.');
|
||||
end
|
||||
mphlaunch(model);
|
||||
|
||||
|
||||
end
|
二进制
karst_cave/ptCloud2Curve.mlx
普通文件
二进制
karst_cave/ptCloud2Curve.mlx
普通文件
二进制文件未显示。
在新工单中引用
屏蔽一个用户