311 |
return (__cells[__cellShape(I[0], I[1], I[2])]); |
return (__cells[__cellShape(I[0], I[1], I[2])]); |
312 |
} |
} |
313 |
|
|
|
/*! Returns the Index of the Cell contaning the Vertex \a V if none, returns |
|
|
error! |
|
|
*/ |
|
|
inline const Index Structured3DMesh::cellIndex(const Vertex& V) const |
|
|
{ |
|
|
return cellIndex(V.Vector3()); |
|
|
} |
|
|
|
|
314 |
/*! Returns the Index of the Cell contaning the point \a P if none, returns |
/*! Returns the Index of the Cell contaning the point \a P if none, returns |
315 |
error! |
error! |
316 |
*/ |
*/ |
355 |
*/ |
*/ |
356 |
inline const Index Structured3DMesh::vertexIndex(const Vertex& V) const |
inline const Index Structured3DMesh::vertexIndex(const Vertex& V) const |
357 |
{ |
{ |
358 |
const real_t& x = V.X(); |
const real_t& x = V.x(); |
359 |
const real_t& y = V.Y(); |
const real_t& y = V.y(); |
360 |
const real_t& z = V.Z(); |
const real_t& z = V.z(); |
361 |
|
|
362 |
const real_t& x0 = __verticesShape.a(0); |
const real_t& x0 = __verticesShape.a(0); |
363 |
const real_t& y0 = __verticesShape.a(1); |
const real_t& y0 = __verticesShape.a(1); |