24 #ifndef _GEMA_TRISURFACE_DISCONTINUITY_H_ 25 #define _GEMA_TRISURFACE_DISCONTINUITY_H_ 68 std::accumulate(cellIntersection.begin(),
69 cellIntersection.end(),
88 virtual void setGeometry(
double* dvec,
int nd,
int* ivec,
int ni)
115 int markAmbiguousEdges();
140 bool checkConsistency();
147 #endif // _GEMA_TRISURFACE_DISCONTINUITY_H_ int _numPoints
The number of points in the surface.
Definition: gmTriSurfaceDiscontinuity.h:99
double * _pointCoord
The coordinate vector. Size == _numPoints * 3.
Definition: gmTriSurfaceDiscontinuity.h:101
int index() const
Returns this discontinuity index in the father set.
Definition: gmDiscontinuity.h:42
virtual ~GmTriSurfaceDiscontinuity()
Destructor.
Definition: gmTriSurfaceDiscontinuity.cpp:42
virtual int numIntersections() const
A generic interface to return the number of intersections between the mesh and the user given geometr...
Definition: gmTriSurfaceDiscontinuity.h:41
Definition: gmBVHAcceleration.h:31
virtual void printGeometry(const GmLogCategory &logger, GmLogLevel level) const
Prints the discontinuity geometry information.
Definition: gmTriSurfaceDiscontinuity.cpp:62
virtual int numSegments() const
A generic interface to return the number of discontinuity "segments", where a segment depends on the ...
Definition: gmTriSurfaceDiscontinuity.h:38
const double * pointCoordinates() const
Returns the surface coordinates vector, organized as x1, y1, z1, x2, y2, z2, .... Size equal to numPo...
Definition: gmTriSurfaceDiscontinuity.h:47
virtual void setGeometry(double *dvec, int nd, int *ivec, int ni)
Sets the geometry. dvec should be a vector with coordinates (size nd * 3), nd the number of coordinat...
Definition: gmTriSurfaceDiscontinuity.h:88
int numPoints() const
Returns the number of surface points.
Definition: gmTriSurfaceDiscontinuity.h:44
bool reorderIntersections(CellIntersection &ci, const GmCellGeometryInfo *info)
For each cellIntersection[i] reorder its edges indexes to form a polygon with the intersection points...
Definition: gmTriSurfaceDiscontinuity.cpp:271
virtual size_t usedGeometryMemory() const
Returns an estimative of the memory used by the discontinuity geometry in bytes.
Definition: gmTriSurfaceDiscontinuity.h:63
virtual void printIntersections(const GmLogCategory &logger, GmLogLevel level) const
Prints the discontinuity-mesh intersection information.
Definition: gmTriSurfaceDiscontinuity.cpp:372
The geometric representation for a single discontinuity from the Discontinuity set....
Definition: gmDiscontinuity.h:35
Surface 3D representation for a discontinuity.
Definition: gmTriSurfaceDiscontinuity.h:32
Declaration of the gmBVHAcceleration class using https://github.com/madmann91/bvh/ header-only implem...
GmTriSurfaceDiscontinuity(const GmDiscontinuitySet *ds, int index, QString id, int groupIndex, const QVector< int > &psIndex)
Constructor.
Definition: gmTriSurfaceDiscontinuity.h:82
virtual size_t usedIntersectionMemory() const
Returns an estimative of the memory used by the intersection data in bytes.
Definition: gmTriSurfaceDiscontinuity.h:65
Declaration of the GmCellMesh interface class.
int * _triList
The list with triangle incidences. Size == _numTriangles * 3.
Definition: gmTriSurfaceDiscontinuity.h:102
GmLogLevel
Available log levels list.
Definition: gmLog.h:36
Class representing a category with multiple logging levels.
Definition: gmLog.h:58
Base interface for providing discontinuity geometry information for spatial indices.
Definition: gmDiscontinuitySet.h:48
Definition: gmCellGeometryInfo.h:153
virtual void clearGeometry()
Clears the original discontinuity geometry information, releasing memory.
Definition: gmTriSurfaceDiscontinuity.cpp:51
int numTriangles() const
Returns the number of surface triangles.
Definition: gmTriSurfaceDiscontinuity.h:50
arma::mat GmMatrix
The basic type for a GeMA matrix object. Currently based on an Armadillo matrix.
Definition: gmMatrix.h:38
virtual bool findIntersections(const GmLogCategory &logger)
Builds the element intersection list for this discontinuity.
Definition: gmTriSurfaceDiscontinuity.cpp:82
QString id() const
Returns the discontinuity id (name)
Definition: gmDiscontinuity.h:45
const int * triangleIncidences() const
Returns the incidence vector, organized as p11, p12, p13, p21, p22, p23, .... Size equal to numTriang...
Definition: gmTriSurfaceDiscontinuity.h:53
Declaration of the GmDiscontinuity class.
int _numTriangles
The number of triangles in the surface.
Definition: gmTriSurfaceDiscontinuity.h:100