I’ve created a meshS object describing the (3D) deformed shape of a 2D plane. I’d like to plot it in Matlab. I export it using savemesh: savemesh(ThNew,"defmshrl.mesh"); and then try the Matlab import with the ffmatlib utility ffreadmesh: [p,b,t,nv,nbe,nt,labels] = ffreadmesh('defmshrl.mesh'). The result is an error message:
Note: Edges not implemented
Index in position 1 exceeds array bounds. Index must not exceed 1.
Error in ffreadmesh (line 212)
regions=unique(t(5,:));
At a guess, this is because ffreadmesh is looking for tetrahedra, and a meshS object has triangles. Assuming this is correct, my questions are:
-
Is there any way to transfer meshS using the ffmatlib utilities?
-
If not, how should I go about it?