You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BUG: Fix WriteTriangleGeometry not writing out nodes/triangles
If no data arrays were selected, then the nodes and triangles would not
be written to disk.
Signed-off-by: Michael Jackson <mike.jackson@bluequartz.net>
@@ -194,7 +201,11 @@ class WriteTriangleGeometryTest
194
201
195
202
// Check header lines
196
203
197
-
QVector<QString> headers = {"# All lines starting with '#' are comments", "# DREAM.3D Nodes file", "# DREAM.3D Version " + SIMPLib::Version::Complete(), "# Node Data is X Y Z space delimited."};
204
+
QVector<QString> headers = {"# All lines starting with '#' are comments",
205
+
"# DREAM.3D Nodes file",
206
+
"# DREAM.3D Version " + SIMPLib::Version::Complete(),
207
+
"# Node Data is X Y Z.",
208
+
"# Indexing starts at 1"};
198
209
199
210
for(int i = 0; i < headers.size(); i++)
200
211
{
@@ -203,31 +214,29 @@ class WriteTriangleGeometryTest
203
214
DREAM3D_REQUIRE(line == headers[i])
204
215
}
205
216
206
-
// Check node count
217
+
line = inFileNodes.readLine(); // # Total Vertices: 347438
218
+
line = inFileNodes.readLine(); // Index,X,Y,Z,NodeType,
@@ -236,8 +245,12 @@ class WriteTriangleGeometryTest
236
245
237
246
// Check header lines
238
247
239
-
headers = {"# All lines starting with '#' are comments", "# DREAM.3D Triangle file", "# DREAM.3D Version " + SIMPLib::Version::Complete(), "# Each Triangle consists of 3 Node Ids.",
240
-
"# NODE IDs START AT 0."};
248
+
headers = {"# All lines starting with '#' are comments",
249
+
"# DREAM.3D Elements file",
250
+
"# DREAM.3D Version " + SIMPLib::Version::Complete(),
251
+
"# Element Data: Each line has the vertex index and any associated element data.",
252
+
"# Element Data is considered located at the centroid of the element.",
253
+
"# Indexing starts at 1"};
241
254
242
255
for(int i = 0; i < headers.size(); i++)
243
256
{
@@ -246,49 +259,20 @@ class WriteTriangleGeometryTest
0 commit comments