Go to the documentation of this file.
22 #ifndef __triSurface_hpp__
23 #define __triSurface_hpp__
242 " error in reading triSurface from file.\n";
253 " error in writing triSurface to file.\n";
auto getTriangleAccessor() const
Obtain an object for accessing triangles.
INLINE_FUNCTION_HD triangleAccessor & operator=(const triangleAccessor &)=default
const uint32x3Field_D & vertices() const
#define fatalExit
Fatal exit.
INLINE_FUNCTION_HD realx3x3 operator()(uint32 i) const
realx3Field_D normals_
normal vector of triangles
INLINE_FUNCTION_H void clear()
Clear the vector, but keep the allocated memory unchanged.
INLINE_FUNCTION_HD ~triangleAccessor()=default
const auto & normals() const
INLINE_FUNCTION_HD uint32 numTrianlges() const
bool write(iOstream &os, const IOPattern &iop) const override
realx3Field_D points_
points of triangles
Kokkos::View< T * > deviceViewType1D
1D array (vector) with default device (memory space and execution space)
INLINE_FUNCTION_H triangleAccessor(uint32 numPoints, deviceViewType1D< realx3 > points, uint32 numTrianlges, deviceViewType1D< uint32x3 > vertices)
INLINE_FUNCTION_HD realx3x3 triangle(uint32 i) const
Interface class for any input stream
const realx3Field_D & points() const
deviceViewType1D< uint32x3 > dVectices_
~triSurface() override=default
uint32x3Field_D vertices_
vectices indices of triangles
INLINE_FUNCTION_HD realx3x3 operator[](uint32 i) const
deviceViewType1D< realx3 > dPoints_
INLINE_FUNCTION iIstream & operator>>(iIstream &str, AB3History &ab3)
INLINE_FUNCTION_HD uint32 numPoints() const
#define INLINE_FUNCTION_H
const repository * owner() const override
INLINE_FUNCTION iOstream & operator<<(iOstream &str, const AB3History &ab3)
triple< realx3 > realx3x3
uint32x3Field_D & vertices()
virtual const word & name() const
Return the name of the stream.
INLINE_FUNCTION_H auto & deviceViewAll()
Device view range [0,capcity)
bool read(iIstream &is, const IOPattern &iop) override
#define ioErrorInFile(fileName, lineNumber)
Report an error in file operation with supplied fileName and lineNumber.
INLINE_FUNCTION_H uint32 capacity() const
int32 lineNumber() const
Const access to the current stream line number.
realField_D area_
area of each triangle
triSurface(const objectFile &obj, repository *owner)
const auto & area() const
#define INLINE_FUNCTION_HD
A set of 3 variables that can be used for vector variables.
Interface class for any output stream.
bool append(const realx3x3Field_H &triangles)
INLINE_FUNCTION_H uint32 size() const
Size of the vector.