@@ -31,7 +31,8 @@ namespace vcl {
31
31
/* *
32
32
* @brief Export the vertex coordinates of a mesh to a buffer.
33
33
*
34
- * This function exports the vertex coordinates of a mesh to a buffer. The
34
+ * This function exports the vertex coordinates of a mesh to a buffer. Vertices
35
+ * are stored in the buffer following the order they appear in the mesh. The
35
36
* buffer must be preallocated with the correct size (number of vertices times
36
37
* the number of coordinates per vertex).
37
38
*
@@ -75,9 +76,10 @@ void vertexCoordsToBuffer(
75
76
* @brief Export into a buffer the vertex indices for each triangle of a Mesh.
76
77
*
77
78
* This function exports the vertex indices of the triangles of a mesh to a
78
- * buffer. The buffer must be preallocated with the correct size (number of
79
- * faces times 3). The function assumes that the input mesh is a triangle mesh
80
- * (if there are polygonal faces, only the first three vertices are considered).
79
+ * buffer. Indices are stored following the order the faces appear in the mesh.
80
+ * The buffer must be preallocated with the correct size (number of faces times
81
+ * 3). The function assumes that the input mesh is a triangle mesh (if there are
82
+ * polygonal faces, only the first three vertices are considered).
81
83
*
82
84
* @note This function does not guarantee that the rows of the matrix
83
85
* correspond to the face indices of the mesh. This scenario is possible
@@ -120,8 +122,9 @@ void trianglesToBuffer(
120
122
* a mesh to a buffer.
121
123
*
122
124
* This function exports the selection status of the elements identified by
123
- * `ELEM_ID` of a mesh to a buffer. The buffer must be preallocated with the
124
- * correct size (number of elements).
125
+ * `ELEM_ID` of a mesh to a buffer. Values are stored in the buffer following
126
+ * the order the elements appear in the mesh. The buffer must be preallocated
127
+ * with the correct size (number of elements).
125
128
*
126
129
* Usage example with std::vector<bool>:
127
130
*
@@ -152,8 +155,9 @@ void elementSelectionToBuffer(const MeshType& mesh, auto* buffer)
152
155
* @brief Export the selection status of the vertices of a mesh to a buffer.
153
156
*
154
157
* This function exports the selection status of the vertices of a mesh to a
155
- * buffer. The buffer must be preallocated with the correct size (number of
156
- * elements).
158
+ * buffer. Values are stored in the buffer following the order the vertices
159
+ * appear in the mesh. The buffer must be preallocated with the correct size
160
+ * (number of elements).
157
161
*
158
162
* Usage example with std::vector<bool>:
159
163
*
@@ -180,7 +184,8 @@ void vertexSelectionToBuffer(const MeshType& mesh, auto* buffer)
180
184
* @brief Export the selection status of the faces of a mesh to a buffer.
181
185
*
182
186
* This function exports the selection status of the faces of a mesh to a
183
- * buffer. The buffer must be preallocated with the correct size (number of
187
+ * buffer. Values are stored in the buffer following the order the faces appear
188
+ * in the mesh. The buffer must be preallocated with the correct size (number of
184
189
* elements).
185
190
*
186
191
* Usage example with std::vector<bool>:
@@ -208,7 +213,8 @@ void faceSelectionToBuffer(const MeshType& mesh, auto* buffer)
208
213
* @brief Export the selection status of the edges of a mesh to a buffer.
209
214
*
210
215
* This function exports the selection status of the edges of a mesh to a
211
- * buffer. The buffer must be preallocated with the correct size (number of
216
+ * buffer. Values are stored in the buffer following the order the edges appear
217
+ * in the mesh. The buffer must be preallocated with the correct size (number of
212
218
* elements).
213
219
*
214
220
* Usage example with std::vector<bool>:
@@ -237,8 +243,9 @@ void edgeSelectionToBuffer(const MeshType& mesh, auto* buffer)
237
243
* buffer.
238
244
*
239
245
* This function exports the element normals identified by `ELEM_ID` of a mesh
240
- * to a buffer. The buffer must be preallocated with the correct size (number of
241
- * elements times 3).
246
+ * to a buffer. Normals are stored in the buffer following the order the
247
+ * elements appear in the mesh. The buffer must be preallocated with the correct
248
+ * size (number of elements times 3).
242
249
*
243
250
* @note This function does not guarantee that the rows of the matrix
244
251
* correspond to the element indices of the mesh. This scenario is possible
@@ -283,8 +290,10 @@ void elementNormalsToBuffer(
283
290
/* *
284
291
* @brief Export the vertex normals of a mesh to a buffer.
285
292
*
286
- * This function exports the vertex normals of a mesh to a buffer. The buffer
287
- * must be preallocated with the correct size (number of vertices times 3).
293
+ * This function exports the vertex normals of a mesh to a buffer. Normals are
294
+ * stored in the buffer following the order the vertices appear in the mesh. The
295
+ * buffer must be preallocated with the correct size (number of vertices times
296
+ * 3).
288
297
*
289
298
* @note This function does not guarantee that the rows of the matrix
290
299
* correspond to the vertex indices of the mesh. This scenario is possible
@@ -307,8 +316,9 @@ void vertexNormalsToBuffer(
307
316
/* *
308
317
* @brief Export the face normals of a mesh to a buffer.
309
318
*
310
- * This function exports the face normals of a mesh to a buffer. The buffer must
311
- * be preallocated with the correct size (number of faces times 3).
319
+ * This function exports the face normals of a mesh to a buffer. Normals are
320
+ * stored in the buffer following the order the faces appear in the mesh. The
321
+ * buffer must be preallocated with the correct size (number of faces times 3).
312
322
*
313
323
* @note This function does not guarantee that the rows of the matrix
314
324
* correspond to the face indices of the mesh. This scenario is possible when
@@ -333,8 +343,9 @@ void faceNormalsToBuffer(
333
343
* buffer having a value for each color component (RGBA).
334
344
*
335
345
* This function exports the element colors identified by `ELEM_ID` of a mesh
336
- * to a buffer. The buffer must be preallocated with the correct size (number of
337
- * elements times 4).
346
+ * to a buffer. Colors are stored in the buffer following the order the elements
347
+ * appear in the mesh. The buffer must be preallocated with the correct size
348
+ * (number of elements times 4).
338
349
*
339
350
* @note This function does not guarantee that the rows of the matrix
340
351
* correspond to the element indices of the mesh. This scenario is possible
@@ -389,8 +400,9 @@ void elementColorsToBuffer(
389
400
* value using the provided format).
390
401
*
391
402
* This function exports the element colors identified by `ELEM_ID` of a mesh to
392
- * a buffer. The buffer must be preallocated with the correct size (number of
393
- * elements).
403
+ * a buffer. Colors are stored in the buffer following the order the elements
404
+ * appear in the mesh. The buffer must be preallocated with the correct size
405
+ * (number of elements).
394
406
*
395
407
* @note This function does not guarantee that the rows of the matrix
396
408
* correspond to the element indices of the mesh. This scenario is possible when
@@ -425,8 +437,10 @@ void elementColorsToBuffer(
425
437
* @brief Export the vertex colors of a mesh to a buffer having a value for each
426
438
* color component (RGBA).
427
439
*
428
- * This function exports the vertex colors of a mesh to a buffer. The buffer
429
- * must be preallocated with the correct size (number of vertices times 4).
440
+ * This function exports the vertex colors of a mesh to a buffer. Colors are
441
+ * stored in the buffer following the order the vertices appear in the mesh. The
442
+ * buffer must be preallocated with the correct size (number of vertices times
443
+ * 4).
430
444
*
431
445
* @note This function does not guarantee that the rows of the matrix
432
446
* correspond to the vertex indices of the mesh. This scenario is possible
@@ -455,8 +469,9 @@ void vertexColorsToBuffer(
455
469
* color (the color is packed in a single 32 bit value using the provided
456
470
* format).
457
471
*
458
- * This function exports the vertex colors of a mesh to a buffer. The buffer
459
- * must be preallocated with the correct size (number of vertices).
472
+ * This function exports the vertex colors of a mesh to a buffer. Colors are
473
+ * stored in the buffer following the order the vertices appear in the mesh. The
474
+ * buffer must be preallocated with the correct size (number of vertices).
460
475
*
461
476
* @note This function does not guarantee that the rows of the matrix
462
477
* correspond to the vertex indices of the mesh. This scenario is possible when
@@ -480,8 +495,9 @@ void vertexColorsToBuffer(
480
495
* @brief Export the face colors of a mesh to a buffer having a value for each
481
496
* color component (RGBA).
482
497
*
483
- * This function exports the face colors of a mesh to a buffer. The buffer
484
- * must be preallocated with the correct size (number of faces times 4).
498
+ * This function exports the face colors of a mesh to a buffer. Colors are
499
+ * stored in the buffer following the order the faces appear in the mesh. The
500
+ * buffer must be preallocated with the correct size (number of faces times 4).
485
501
*
486
502
* @note This function does not guarantee that the rows of the matrix
487
503
* correspond to the face indices of the mesh. This scenario is possible
@@ -509,8 +525,9 @@ void faceColorsToBuffer(
509
525
* color (the color is packed in a single 32 bit value using the provided
510
526
* format).
511
527
*
512
- * This function exports the face colors of a mesh to a buffer. The buffer
513
- * must be preallocated with the correct size (number of faces).
528
+ * This function exports the face colors of a mesh to a buffer. Colors are
529
+ * stored in the buffer following the order the faces appear in the mesh. The
530
+ * buffer must be preallocated with the correct size (number of faces).
514
531
*
515
532
* @note This function does not guarantee that the rows of the matrix
516
533
* correspond to the face indices of the mesh. This scenario is possible when
@@ -535,8 +552,9 @@ void faceColorsToBuffer(
535
552
* buffer.
536
553
*
537
554
* This function exports the element quality identified by `ELEM_ID` of a mesh
538
- * to a buffer. The buffer must be preallocated with the correct size (number of
539
- * elements).
555
+ * to a buffer. Quality values are stored in the buffer following the order the
556
+ * elements appear in the mesh. The buffer must be preallocated with the correct
557
+ * size (number of elements).
540
558
*
541
559
* @note This function does not guarantee that the rows of the vector
542
560
* correspond to the element indices of the mesh. This scenario is possible when
@@ -562,8 +580,10 @@ void elementQualityToBuffer(const MeshType& mesh, auto* buffer)
562
580
/* *
563
581
* @brief Export the vertex quality of a mesh to a buffer.
564
582
*
565
- * This function exports the vertex quality of a mesh to a buffer. The buffer
566
- * must be preallocated with the correct size (number of vertices).
583
+ * This function exports the vertex quality of a mesh to a buffer. Quality
584
+ * values are stored in the buffer following the order the vertices appear in
585
+ * the mesh. The buffer must be preallocated with the correct size (number of
586
+ * vertices).
567
587
*
568
588
* @note This function does not guarantee that the rows of the vector
569
589
* correspond to the vertex indices of the mesh. This scenario is possible when
@@ -582,8 +602,9 @@ void vertexQualityToBuffer(const MeshType& mesh, auto* buffer)
582
602
/* *
583
603
* @brief Export the face quality of a mesh to a buffer.
584
604
*
585
- * This function exports the face quality of a mesh to a buffer. The buffer
586
- * must be preallocated with the correct size (number of faces).
605
+ * This function exports the face quality of a mesh to a buffer. Quality values
606
+ * are stored in the buffer following the order the faces appear in the mesh.
607
+ * The buffer must be preallocated with the correct size (number of faces).
587
608
*
588
609
* @note This function does not guarantee that the rows of the vector
589
610
* correspond to the face indices of the mesh. This scenario is possible when
0 commit comments