-
Notifications
You must be signed in to change notification settings - Fork 184
Description
Project
responseClass.saveViz
Describe the issue
When trying to execute responseClass.saveViz for the RM3, several errors are found:
Problem 1: Unrecognized field name "faces" Error in responseClass/saveViz (line 466)
Solution 1: change faces to face
problem 2: Index in position 2 exceeds array bounds. Error in responseClass/saveViz (line 472)
if max(bodyMesh(ibod).Points(:,3))+max(bodyMesh(ibod).deltaPos(:,3)) > maxHeight
This is due to both body.geometry.vertex and body.geometry.face being empty
solution 2: in lines 465 and 466 change
bodyMesh(ibod).Points = body(ibod).geometry.vertex;
bodyMesh(ibod).Conns = body(ibod).geometry.face;
to
readBodyMesh = stlread(body(ibod).geometryFile);
bodyMesh(ibod).Points = readBodyMesh.Points;
bodyMesh(ibod).Conns = readBodyMesh.ConnectivityList;