23
23
24
24
namespace itk
25
25
{
26
- /* *
27
- * Standard CellInterface:
28
- */
26
+
29
27
template <typename TCellInterface>
30
28
void
31
29
TetrahedronCell<TCellInterface>::MakeCopy(CellAutoPointer & cellPointer) const
@@ -34,32 +32,20 @@ TetrahedronCell<TCellInterface>::MakeCopy(CellAutoPointer & cellPointer) const
34
32
cellPointer->SetPointIds (this ->GetPointIds ());
35
33
}
36
34
37
- /* *
38
- * Standard CellInterface:
39
- * Get the topological dimension of this cell.
40
- */
41
35
template <typename TCellInterface>
42
36
unsigned int
43
37
TetrahedronCell<TCellInterface>::GetDimension() const
44
38
{
45
39
return Self::CellDimension;
46
40
}
47
41
48
- /* *
49
- * Standard CellInterface:
50
- * Get the number of points required to define the cell.
51
- */
52
42
template <typename TCellInterface>
53
43
unsigned int
54
44
TetrahedronCell<TCellInterface>::GetNumberOfPoints() const
55
45
{
56
46
return Self::NumberOfPoints;
57
47
}
58
48
59
- /* *
60
- * Standard CellInterface:
61
- * Get the number of boundary features of the given dimension.
62
- */
63
49
template <typename TCellInterface>
64
50
auto
65
51
TetrahedronCell<TCellInterface>::GetNumberOfBoundaryFeatures(int dimension) const -> CellFeatureCount
@@ -220,12 +206,6 @@ TetrahedronCell<TCellInterface>::EvaluatePosition(CoordRepType * x,
220
206
return false ;
221
207
}
222
208
223
- /* *
224
- * Standard CellInterface:
225
- * Get the boundary feature of the given dimension specified by the given
226
- * cell feature Id.
227
- * The Id can range from 0 to GetNumberOfBoundaryFeatures(dimension)-1.
228
- */
229
209
template <typename TCellInterface>
230
210
bool
231
211
TetrahedronCell<TCellInterface>::GetBoundaryFeature(int dimension,
@@ -271,26 +251,13 @@ TetrahedronCell<TCellInterface>::GetBoundaryFeature(int dimens
271
251
return false ;
272
252
}
273
253
274
- /* *
275
- * Standard CellInterface:
276
- * Set the point id list used by the cell. It is assumed that the given
277
- * iterator can be incremented and safely de-referenced enough times to
278
- * get all the point ids needed by the cell.
279
- */
280
254
template <typename TCellInterface>
281
255
void
282
256
TetrahedronCell<TCellInterface>::SetPointIds(PointIdConstIterator first)
283
257
{
284
258
std::copy_n (first, Self::NumberOfPoints, m_PointIds.begin ());
285
259
}
286
260
287
- /* *
288
- * Standard CellInterface:
289
- * Set the point id list used by the cell. It is assumed that the range
290
- * of iterators [first, last) contains the correct number of points needed to
291
- * define the cell. The position *last is NOT referenced, so it can safely
292
- * be one beyond the end of an array or other container.
293
- */
294
261
template <typename TCellInterface>
295
262
void
296
263
TetrahedronCell<TCellInterface>::SetPointIds(PointIdConstIterator first, PointIdConstIterator last)
@@ -304,101 +271,62 @@ TetrahedronCell<TCellInterface>::SetPointIds(PointIdConstIterator first, PointId
304
271
}
305
272
}
306
273
307
- /* *
308
- * Standard CellInterface:
309
- * Set an individual point identifier in the cell.
310
- */
311
274
template <typename TCellInterface>
312
275
void
313
276
TetrahedronCell<TCellInterface>::SetPointId(int localId, PointIdentifier ptId)
314
277
{
315
278
m_PointIds[localId] = ptId;
316
279
}
317
280
318
- /* *
319
- * Standard CellInterface:
320
- * Get a begin iterator to the list of point identifiers used by the cell.
321
- */
322
281
template <typename TCellInterface>
323
282
auto
324
283
TetrahedronCell<TCellInterface>::PointIdsBegin() -> PointIdIterator
325
284
{
326
285
return &m_PointIds[0 ];
327
286
}
328
287
329
- /* *
330
- * Standard CellInterface:
331
- * Get a const begin iterator to the list of point identifiers used
332
- * by the cell.
333
- */
334
288
template <typename TCellInterface>
335
289
auto
336
290
TetrahedronCell<TCellInterface>::PointIdsBegin() const -> PointIdConstIterator
337
291
{
338
292
return &m_PointIds[0 ];
339
293
}
340
294
341
- /* *
342
- * Standard CellInterface:
343
- * Get an end iterator to the list of point identifiers used by the cell.
344
- */
345
295
template <typename TCellInterface>
346
296
auto
347
297
TetrahedronCell<TCellInterface>::PointIdsEnd() -> PointIdIterator
348
298
{
349
299
return &m_PointIds[Self::NumberOfPoints - 1 ] + 1 ;
350
300
}
351
301
352
- /* *
353
- * Standard CellInterface:
354
- * Get a const end iterator to the list of point identifiers used
355
- * by the cell.
356
- */
357
302
template <typename TCellInterface>
358
303
auto
359
304
TetrahedronCell<TCellInterface>::PointIdsEnd() const -> PointIdConstIterator
360
305
{
361
306
return &m_PointIds[Self::NumberOfPoints - 1 ] + 1 ;
362
307
}
363
308
364
- /* *
365
- * Tetrahedron-specific:
366
- * Get the number of vertices defining the tetrahedron.
367
- */
368
309
template <typename TCellInterface>
369
310
auto
370
311
TetrahedronCell<TCellInterface>::GetNumberOfVertices() const -> CellFeatureCount
371
312
{
372
313
return Self::NumberOfVertices;
373
314
}
374
315
375
- /* *
376
- * Tetrahedron-specific:
377
- * Get the number of edges defined for the tetrahedron.
378
- */
379
316
template <typename TCellInterface>
380
317
auto
381
318
TetrahedronCell<TCellInterface>::GetNumberOfEdges() const -> CellFeatureCount
382
319
{
383
320
return Self::NumberOfEdges;
384
321
}
385
322
386
- /* *
387
- * Tetrahedron-specific:
388
- * Get the number of faces defined for the tetrahedron.
389
- */
390
323
template <typename TCellInterface>
391
324
auto
392
325
TetrahedronCell<TCellInterface>::GetNumberOfFaces() const -> CellFeatureCount
393
326
{
394
327
return Self::NumberOfFaces;
395
328
}
396
329
397
- /* *
398
- * Tetrahedron-specific:
399
- * Get the vertex specified by the given cell feature Id.
400
- * The Id can range from 0 to GetNumberOfVertices()-1.
401
- */
402
330
template <typename TCellInterface>
403
331
bool
404
332
TetrahedronCell<TCellInterface>::GetVertex(CellFeatureIdentifier vertexId, VertexAutoPointer & vertexPointer)
@@ -410,11 +338,6 @@ TetrahedronCell<TCellInterface>::GetVertex(CellFeatureIdentifier vertexId, Verte
410
338
return true ;
411
339
}
412
340
413
- /* *
414
- * Tetrahedron-specific:
415
- * Get the edge specified by the given cell feature Id.
416
- * The Id can range from 0 to GetNumberOfEdges()-1.
417
- */
418
341
template <typename TCellInterface>
419
342
bool
420
343
TetrahedronCell<TCellInterface>::GetEdge(CellFeatureIdentifier edgeId, EdgeAutoPointer & edgePointer)
@@ -429,11 +352,6 @@ TetrahedronCell<TCellInterface>::GetEdge(CellFeatureIdentifier edgeId, EdgeAutoP
429
352
return true ;
430
353
}
431
354
432
- /* *
433
- * Tetrahedron-specific:
434
- * Get the face specified by the given cell feature Id.
435
- * The Id can range from 0 to GetNumberOfFaces()-1.
436
- */
437
355
template <typename TCellInterface>
438
356
bool
439
357
TetrahedronCell<TCellInterface>::GetFace(CellFeatureIdentifier faceId, FaceAutoPointer & facePointer)
0 commit comments