matlab 3d pdf导出

时间:2015-08-24 16:33:53

标签: matlab 3d export

我试图使用这个脚本:

inv_bisbos_pil16div;
fig2u3d(ax,fname,'-pdf',0);

但是我收到了这些错误:

Error using single_mesh_resource_str (line 45)
#colors ~= #points and #colors ~= #faces and #colors not empty.

Error in populate_mesh_resource_str (line 28)
    cur_mesh_resource = single_mesh_resource_str(faces, points, face_vertex_data, i);

Error in fig2idtf (line 63)
mesh_resources = populate_mesh_resource_str(faces, surface_vertices, face_vertex_data);

Error in fig2u3d (line 233)
fig2idtf(fname,...

Error in PDF3DGenerator (line 9)
fig2u3d(ax,fname,'-pdf',0);

脚本inv_bisbos_pil16div实现以下说明:

fname ='test1';
figure('Name',fname);

hold on

K1=convhull(e_Se);
tr=[];

tr=trisurf(K1,e_Se(:,1),e_Se(:,2),e_Se(:,3));  

set(tr,'EdgeColor', 'g', 'FaceColor','r','facealpha',1.0);

%% view
axis(gca,'equal')
axis(gca,'tight')
view(gca,3)
ax=gca;

e_Se是一组提供的点。

0 个答案:

没有答案