|
MorphoGraphX
2.0-1-227
|
#include <Mesh.hpp>
Public Types | |
| enum | SurfView { SURF_VERTEX, SURF_LABEL, SURF_TRIANGLE, SURF_VIEW_COUNT } |
| Surface visualization type. More... | |
Public Member Functions | |
| Mesh (int id, const Stack *stack) | |
| Create an empty mesh attached to the stack. More... | |
| ~Mesh () | |
| Copy the mesh. More... | |
Global properties | |
Properties for both mesh and surface. If any of these properties are saved, it will be in the project file. | |
| int | id () const |
| Id of the current mesh. More... | |
| void | setId (int i) |
| Change the id of the mesh. More... | |
| int | userId () const |
| Id as seen by the user. More... | |
| const Stack * | stack () const |
| Returns the stack associated to this mesh. More... | |
| const QString & | file () const |
| Returns the name of the mesh file. More... | |
| void | setFile (const QString &file=QString()) |
| Set the name of the mesh file. More... | |
| bool | scaled () const |
| Returns true if the mesh is scaled. More... | |
| void | setScaled (bool on=true) |
| Set if the mesh is scaled. More... | |
| bool | transformed () const |
| Returns true if the mesh is transformed. More... | |
| void | setTransformed (bool on=true) |
| Set if the mesh is transformed. More... | |
| bool | showBBox () const |
| Returns true if the bounding box is shown. More... | |
| void | setShowBBox (bool on=true) |
| Set if the bounding box is shown. More... | |
| int | viewLabel () const |
| Returns the current label, without modifying it. More... | |
| void | setLabel (int l) |
| Sets the current label. More... | |
| int | nextLabel () |
| Increment the current label and return. More... | |
Mesh Attributes. These are saved along with the mesh and can be extended by the user. | |
| const Attributes & | attributes () const |
| Get the mesh attributes. More... | |
| Attributes & | attributes () |
| IntIntAttr & | parents () |
| Reference to the map from each label to its parent. More... | |
| const QString & | meshType () |
| Returns the mesh type. More... | |
| const QString & | setMeshType (const QString &mType) |
| Set the mesh type. More... | |
| bool | mesh3D () |
| Convenience function to tell if a 3D mesh (from viewpoint of rendering) More... | |
| IntPoint3fAttr & | labelCenter () |
| Reference to the map from label to a center position. More... | |
| IntPoint3fAttr & | labelNormal () |
| Reference to the map from label to a normal. More... | |
| IntPoint3fAttr & | labelCenterVis () |
| Reference to the map from label to a position. More... | |
| IntPoint3fAttr & | labelNormalVis () |
| Reference to the map from label to a normal. More... | |
| IntPoint3fAttr & | parentCenter () |
| Reference to the map from parent label to a position. More... | |
| IntPoint3fAttr & | parentNormal () |
| Reference to the map from parent label to a normal. More... | |
| IntPoint3fAttr & | parentCenterVis () |
| Reference to the map from parent label to a position. More... | |
| IntPoint3fAttr & | parentNormalVis () |
| Reference to the map from parent label to a normal. More... | |
| VtxPoint2fAttr & | texCoord2d () |
| Reference to a map of 2D texture coordinates, this is used to load 3D images like that from the Keyance. More... | |
| void | reset () |
| Reset the whole mesh and its attributes. More... | |
Structure | |
| vvGraph & | graph () |
| Get the VV graph of the mesh. More... | |
| const vvGraph & | graph () const |
| Get the VV graph of the mesh. More... | |
| vvGraph & | junctions () |
| Get the VV junction graph. More... | |
| const vvGraph & | junctions () const |
| Get the VV junction graph. More... | |
| const CellTissue & | tissue () const |
| Get the Cell Tissue. More... | |
| CellTissue & | tissue () |
| Get the Cell Tissue. More... | |
| cellGraph & | cells () |
| Get the cell graph. More... | |
| const cellGraph & | cells () const |
| Get the cell graph. More... | |
| bool | empty () const |
| True if the mesh is empty (i.e. More... | |
| CellTissue::DistNhbdS & | nhbdS () |
| Get the neighborhood object for the S graph. More... | |
| CellTissue::DistNhbdC & | nhbdC () |
| Get the neighborhood object for the cell graph. More... | |
| int | getLabel (const vertex &v1, const vertex &v2, const vertex &v3, const IntIntAttr &parents) |
| Returns the number of vertices in the mesh. More... | |
| int | getLabel (int label, const IntIntAttr &parents) |
| Returns the label or parent, given a label. More... | |
| bool | chkGraph (vvGraph &S) |
| Check the graph for consistency. More... | |
| bool | chkGraph () |
| IntIntVIdSetMap & | wallVId () |
| Reference to the map from each wall to the list of vertexes in the wall. More... | |
| const IntIntVIdSetMap & | wallVId () const |
| Returns the map from each wall to the list of vertexes in the wall. More... | |
| IntIntFloatAttr & | wallGeom () |
| Reference to the map from each wall to the length of the wall. More... | |
| IntIntSetMap & | labelNeighbors () |
| Reference to the map from labels to the set of neighbor labels. More... | |
| const IntIntSetMap & | labelNeighbors () const |
| Returns the map from labels to the set of neighbors labels. More... | |
| void | updateWallGeometry (float borderSize) |
| Update labelNeighbors, wallVId and wallGeom to reflect current data structure. More... | |
| bool | isBordTriangle (int label, vertex v, vertex n, vertex m, IntIntPair &rp) const |
True if (v,n,m) is on the border of the label. More... | |
| void | markBorder (float borderSize) |
| Mark all triangles closer than borderSize from a border as being a border triangle. More... | |
| void | updateCentersNormals () |
| Search for the vertex closest to position of cell center fills in labelCenter, labelNormal, labelCenterVis, labelNormalVis. More... | |
Surface methods | |
| TransferFunction | surfFct () const |
| Return the transfer function used to draw the surface in normal mode. More... | |
| void | setSurfFct (const TransferFunction &f) |
| Change the transfer function used to draw the surface in normal mode. More... | |
| bool | surfFctChanged () const |
| Returns true if the normal transfer function has been changed during the current process. More... | |
| TransferFunction | heatFct () const |
| Return the transfer function used to draw the surface in heat mode. More... | |
| void | setHeatFct (const TransferFunction &f) |
| Change the transfer function used to draw the surface in heat mode. More... | |
| bool | heatFctChanged () const |
| Returns true if the heat transfer function has been changed during the current process. More... | |
| float | opacity () const |
| Get the current opacity level of the surface. More... | |
| void | setOpacity (float f) |
| Change the current opactity level of the surface. More... | |
| float | brightness () const |
| Get the current brightness of the surface. More... | |
| void | setBrightness (float f) |
| Change the current brightness of the surface. More... | |
| bool | showSurface () const |
| True if the surface is currently visible to the user. More... | |
| void | setShowSurface (bool val=true) |
| Show the surface to the user. More... | |
| void | setShowVertex (const QString &s="", bool setView=true) |
| Set the surface vertex display. More... | |
| void | setShowTriangle (const QString &s="", bool setView=true) |
| Set the surface triangle display. More... | |
| void | setShowLabel (const QString &s="", bool setView=true) |
| Set the surface label display. More... | |
| bool | culling () const |
| Returns if the back surface is culled. More... | |
| void | setCulling (bool cul) |
| Cull the back surface. More... | |
| bool | blending () const |
| Return if the surface is rendered blended or not. More... | |
| void | setBlending (bool b) |
| Set the blending attribute. More... | |
| SurfView | surfView () const |
| Returns the current visualization for the surface. More... | |
| void | setSurfView (SurfView view) |
| Change the view mode. More... | |
| QString | surfVertexView () const |
| Returns the vertex visualization. More... | |
| QString | surfTriangleView () const |
| Returns the triangle visualization. More... | |
| QString | surfLabelView () const |
| Returns the label visualization. More... | |
| bool | showSignal () const |
| Convenience functions. More... | |
| bool | showLabels () const |
| bool | showHeat () const |
| bool | showWallHeat () const |
| bool | showTriangleValue () const |
| bool | useParents () |
| Returns if we should use parents or labels. More... | |
| void | setUseParents (bool val) |
| Show the color of the surface. More... | |
| bool & | hasImgTex () |
| True if the surface has a texture attached to it. More... | |
| const QImage & | imgTex () const |
| Get the current texture attached to the surface. More... | |
| QImage & | imgTex () |
| void | setImgTex (const QImage &img) |
| Set the texture attached to the surface. More... | |
| void | clearImgTex () |
| Remove any texture attached to the surface. More... | |
Updating the graphical representation | |
| void | updateAll () |
| To be called when the mesh structure changed. More... | |
| void | updateTriangles () |
| To be called if properties of the triangles changed. More... | |
| void | updateLines () |
| To be called if properties of the lines changed. More... | |
| void | updatePositions () |
| To be called if the position of the points changed. More... | |
| void | updateSelection () |
| To be called if the selection of the points changed. More... | |
| int | changes () const |
| Returns what changed in the current process. More... | |
Friends | |
| class | SetupProcess |
Mesh methods | |
| bool | showMesh () const |
| Is the mesh currently visible to the user. More... | |
| QString | meshView () const |
| Return the current view mode for the mesh. More... | |
| void | setShowMesh (bool show=true) |
| Set the mesh visibility. More... | |
| void | setMeshView (const QString &s, bool setShow=true) |
| Set the mesh display and view. More... | |
| bool | showAxis () const |
| Is the axis currently visible to the user. More... | |
| QString | axisView () const |
| Return the current view mode for the axis. More... | |
| void | setShowAxis (bool show=true) |
| Set the axis display. More... | |
| void | setAxisView (const QString &s, bool setShow=true) |
| Set the axis display and view. More... | |
| bool | showMeshLines () const |
| Are mesh lines visible. More... | |
| bool | showMeshPoints () const |
| Are mesh points visible. More... | |
| bool | showMeshCellMap () const |
| Are cell numbers visible. More... | |
| void | setShowMeshLines (bool show) |
| Set if the mesh lines are visible. More... | |
| void | setShowMeshPoints (bool show) |
| Set if the mesh points are visible. More... | |
| void | setShowMeshCellMap (bool show) |
| Set if the cell numbers are visible. More... | |
| std::vector< vertex > | selectedVertices () const |
| Returns a vector with the list of selected vertices. More... | |
| int | selectedCount () const |
| Returns the count of selected vertices (from S). More... | |
| std::vector< vertex > | activeVertices () const |
| Returns a vector with the list of active vertices. More... | |
| void | getConnectedVertices (const vvGraph &S, vvGraph &vSet) const |
| Starting with a set of vertices, extend to connected region. More... | |
| int | getConnectedRegions (const vvGraph &S, VVGraphVec &cellVId, VtxIntMap &vtxCell) const |
| Get a list of connected regions (3D cells) More... | |
| bool | clearSelection () |
| Clear selection. More... | |
| void | correctSelection (bool inclusive) |
| Correct selection. More... | |
| static void | getNhbd (const vvGraph &S, const vertex &v, float radius, VtxSet &nbs) |
| Get the neighborhood of a vertex. More... | |
Heat Map methods | |
The heat map associates a heat to a label or a wall. Heat map data is stored in the attributes, so it is save/restored with the mesh. | |
| typedef std::pair< vertex, SymmetricTensor > | VtxSymTensorPair |
| Tensor quantity for each vertex. More... | |
| IntFloatAttr & | labelHeat () |
| Reference to map of heat data by label. More... | |
| QString & | heatMapUnit () |
| Reference to the unit used for the current heat map. More... | |
| QString & | heatMapScaling () |
| Point2f & | heatMapBounds () |
| Return the upper and lower bounds for the heat. More... | |
| Point2f | calcHeatMapBounds () |
| Scale the heat map bounds to the existing range. More... | |
| IntIntFloatAttr & | wallHeat () |
| Reference to map of heat data by wall (i.e. More... | |
| Point2f & | wallHeatBounds () |
| Upper and lower bounds for the heat. More... | |
| QString & | wallHeatUnit () |
| Wall heat unit. More... | |
| TriVec3ColorbAttr & | triangleColor () |
| Triangle colors. More... | |
| TriIntAttr & | triangleIndex () |
| Triangle index for indexed color map mode. More... | |
| TriFloatAttr & | triangleValue () |
| Triangle value for interpolated color map mode. More... | |
| ColorbVec & | triangleValueColors () |
| Return the colormap for the triangle values. More... | |
| Point2f & | triangleValueBounds () |
| Return the upper and lower bounds for the triangle value. More... | |
| QString & | triangleValueUnit () |
| Reference to the unit used for triangle values. More... | |
| ColorbVec & | triangleIndexColors () |
| Return the colormap for the triangle values. More... | |
| CellVec2ColorbAttr & | cellColor () |
| Cell colors. More... | |
| bool | setAxisColor (const Colorb &pos, const Colorb &neg, const SymmetricTensor &s, Vec3Colorb &color) |
| Set an axis color based on sign. More... | |
| float | axisWidth () |
| float | setAxisWidth (float width) |
| float | axisOffset () |
| float | setAxisOffset (float offset) |
| IntSymTensorAttr & | cellAxis () |
| Cell axis tensor quantity for each cell. More... | |
| IntMatrix3fAttr & | cellAxisVis () |
| Cell axis for visualization. More... | |
| IntVec3ColorbAttr & | cellAxisColor () |
| Returns the map from label to cells axis colors (array of 3 Point3f) More... | |
| bool | setCellAxisColor (const Colorb &pos, const Colorb &neg) |
| Set the cell axis color based on the sign for each eigenvalue. More... | |
| QString | cellAxisType () |
| Return the type of the current cell axis. More... | |
| QString | setCellAxisType (const QString &s) |
| Set the type of the current cell axis. More... | |
| QString | cellAxisUnit () |
| Unit for the length of the cell axis. More... | |
| QString | setCellAxisUnit (const QString &s) |
| Unit for the length of the cell axis. More... | |
| void | clearCellAxis () |
| Remove any cell axis. More... | |
| TriSymTensorAttr & | triangleAxis () |
| Tensor quantity for each triangle. More... | |
| TriMatrix3fAttr & | triangleAxisVis () |
| Cell axis for visualization. More... | |
| TriVec3ColorbAttr & | triangleAxisColor () |
| Returns the map from label to cells axis colors (array of 3 Point3f) More... | |
| bool | setTriangleAxisColor (const Colorb &pos, const Colorb &neg) |
| Set the cell axis color based on the sign for each eigenvalue. More... | |
| VtxSymTensorAttr & | vertexAxis () |
| VtxMatrix3fAttr & | vertexAxisVis () |
| Cell axis for visualization. More... | |
| VtxVec3ColorbAttr & | vertexAxisColor () |
| Returns the map from label to cells axis colors (array of 3 Point3f) More... | |
| bool | setVertexAxisColor (const Colorb &pos, const Colorb &neg) |
| Set the cell axis color based on the sign for each eigenvalue. More... | |
| IntMatrix3fMap & | vvCorrespondence () |
| Returns a reference to the map of correspondence between vertices in mesh1 and mesh2 (store vertices positions) More... | |
| bool & | showVVCorrespondence () |
Signal methods. The signal can arise from a fluorescence intensity | |
projection, a curvature projection, or from another process. These methods specifies the range and the units. | |
| QString & | signalUnit () |
| Reference to the unit used for the signal. More... | |
| Point2f & | signalBounds () |
| Reference to the upper and lower bounds for the signal. More... | |
| const BoundingBox3f & | boundingBox () const |
| Reference to the mesh bounding box. More... | |
| BoundingBox3f & | boundingBox () |
| void | setBoundingBox (const BoundingBox3f &bbox) |
| Set the mesh bounding box. More... | |
| void | updateBBox () |
| Update the bounding box from the mesh. More... | |
| int & | ccTab () |
| Cell complex tab. More... | |
| QString & | ccName () |
| Current cell complex. More... | |
| QString & | deleteProcessName (QString &meshType) |
| Process use to to delete cells or vertices from different mesh types. More... | |
| IntVtxMap & | vMap () |
| Map vertex saveId to vertex. More... | |
| IntCellMap & | cMap () |
| Map cell saveId to cell. More... | |
| bool | readVertices (QIODevice &file, VtxVec &V, bool transform) |
| Read in vertices. More... | |
| bool | readVertexList (QIODevice &file, vvGraph &S) |
| Read in vertex list. More... | |
| bool | readNhbds (QIODevice &file, vvGraph &S) |
| Read in neighborhoods. More... | |
| bool | readCellMesh (QIODevice &file, bool transform) |
| Read in a cellular mesh. More... | |
| bool | read (QIODevice &file, bool transform) |
| Read in a mesh. More... | |
| bool | writeVertices (QIODevice &file, const vvGraph &S, bool transform) |
| Write out vertices. More... | |
| bool | writeVertexList (QIODevice &file, const vvGraph &S) |
| Write the vertex list. More... | |
| bool | writeNhbds (QIODevice &file, const vvGraph &S) |
| Write out neighborhoods. More... | |
| bool | writeCellMesh (QIODevice &file, bool transform) |
| Write out a cellular mesh. More... | |
| bool | write (QIODevice &file, bool transform) |
| Write out a mesh. More... | |
| static bool | meshFromTriangles (vvGraph &S, const std::vector< vertex > &vertices, const std::vector< Point3i > &triangles, bool checkUnique=true) |
| Create the mesh from a triangle list. More... | |
This class holds the actual mesh as a VV Graph and all sort of properties for it, including visualization ones.
Note that, in MorphoGraphX, the user sees the surface, or the mesh. The surface is continuous, when the mesh is the actual connectivity of the vertices.
| typedef std::pair<vertex, SymmetricTensor> mgx::Mesh::VtxSymTensorPair |
Tensor quantity for each vertex.
The tensors are encoded as three vectors: ev1, ev2, evals. Where ev1 and ev2 are the two first eigenvectors and evals is the vector with the three eigenvalues.
This map does not get drawn, but rather one populates vertexAxisVis with the correct scaling from this map.
| enum mgx::Mesh::SurfView |
| mgx::Mesh::Mesh | ( | int | id, |
| const Stack * | stack | ||
| ) |
Create an empty mesh attached to the stack.
Create an empty mesh attached to the stack
| mgx::Mesh::~Mesh | ( | ) |
Copy the mesh.
Mesh destructor
| std::vector<vertex> mgx::Mesh::activeVertices | ( | ) | const |
Returns a vector with the list of active vertices.
These are either the selected vertices, or all of them if no vertex was selected.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| Point2f mgx::Mesh::calcHeatMapBounds | ( | ) |
Scale the heat map bounds to the existing range.
|
inline |
|
inline |
Cell axis tensor quantity for each cell.
The tensors are encoded as three vectors: ev1, ev2, evals. Where ev1 and ev2 are the two first eigenvectors and evals is the vector with the three eigenvalues.
This map does not get drawn, but rather one populates cellAxisVis with the correct scaling from this map.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void mgx::Mesh::clearCellAxis | ( | ) |
Remove any cell axis.
|
inline |
| bool mgx::Mesh::clearSelection | ( | ) |
Clear selection.
Returns true if anything cleared
|
inline |
| void mgx::Mesh::correctSelection | ( | bool | inclusive | ) |
Correct selection.
Make sure the vertices are "correctly" selected. This means that:
|
inline |
|
inline |
|
inline |
|
inline |
| int mgx::Mesh::getConnectedRegions | ( | const vvGraph & | S, |
| VVGraphVec & | cellVId, | ||
| VtxIntMap & | vtxCell | ||
| ) | const |
Get a list of connected regions (3D cells)
Starting with a set of vertices, extend to connected region.
| int mgx::Mesh::getLabel | ( | const vertex & | v1, |
| const vertex & | v2, | ||
| const vertex & | v3, | ||
| const IntIntAttr & | parents | ||
| ) |
Returns the number of vertices in the mesh.
Returns the label or parent of the triangle (v1,v2,v3)
| int mgx::Mesh::getLabel | ( | int | label, |
| const IntIntAttr & | parents | ||
| ) |
Returns the label or parent, given a label.
|
static |
Get the neighborhood of a vertex.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| bool mgx::Mesh::isBordTriangle | ( | int | label, |
| vertex | v, | ||
| vertex | n, | ||
| vertex | m, | ||
| IntIntPair & | rp | ||
| ) | const |
True if (v,n,m) is on the border of the label.
rp will be set to the wall the triangle is on, if any.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Reference to the map from labels to the set of neighbor labels.
A label is neighbors of another ones if they share at least an edge of the mesh.
|
inline |
|
inline |
|
inline |
| void mgx::Mesh::markBorder | ( | float | borderSize | ) |
Mark all triangles closer than borderSize from a border as being a border triangle.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| bool mgx::Mesh::read | ( | QIODevice & | file, |
| bool | transform | ||
| ) |
Read in a mesh.
| bool mgx::Mesh::readCellMesh | ( | QIODevice & | file, |
| bool | transform | ||
| ) |
Read in a cellular mesh.
| bool mgx::Mesh::readNhbds | ( | QIODevice & | file, |
| vvGraph & | S | ||
| ) |
Read in neighborhoods.
| bool mgx::Mesh::readVertexList | ( | QIODevice & | file, |
| vvGraph & | S | ||
| ) |
Read in vertex list.
| bool mgx::Mesh::readVertices | ( | QIODevice & | file, |
| VtxVec & | V, | ||
| bool | transform | ||
| ) |
Read in vertices.
| void mgx::Mesh::reset | ( | ) |
Reset the whole mesh and its attributes.
In the end, the mesh is empty, so doesn't contain cells, texture and is neither scaled nor transformed. All of the attributes are deleted.
The next label stays untouched, as it is important to keep coordination between different meshes/stacks.
|
inline |
| int mgx::Mesh::selectedCount | ( | ) | const |
Returns the count of selected vertices (from S).
| std::vector<vertex> mgx::Mesh::selectedVertices | ( | ) | const |
Returns a vector with the list of selected vertices.
| bool mgx::Mesh::setAxisColor | ( | const Colorb & | pos, |
| const Colorb & | neg, | ||
| const SymmetricTensor & | s, | ||
| Vec3Colorb & | color | ||
| ) |
Set an axis color based on sign.
|
inline |
|
inline |
|
inline |
|
inline |
Set the cell axis color based on the sign for each eigenvalue.
|
inline |
|
inline |
|
inline |
| void mgx::Mesh::setFile | ( | const QString & | file = QString() | ) |
Set the name of the mesh file.
This is called when the mesh is loaded or saved. Processes that create a new mesh should call this without a parameter to reset the filename to null.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Set the cell axis color based on the sign for each eigenvalue.
|
inline |
Set the cell axis color based on the sign for each eigenvalue.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Tensor quantity for each triangle.
The tensors are encoded as three vectors: ev1, ev2, evals. Where ev1 and ev2 are the two first eigenvectors and evals is the vector with the three eigenvalues.
This map does not get drawn, but rather one populates triangleAxisVis with the correct scaling from this map.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void mgx::Mesh::updateAll | ( | ) |
To be called when the mesh structure changed.
| void mgx::Mesh::updateBBox | ( | ) |
Update the bounding box from the mesh.
| void mgx::Mesh::updateCentersNormals | ( | ) |
Search for the vertex closest to position of cell center fills in labelCenter, labelNormal, labelCenterVis, labelNormalVis.
| void mgx::Mesh::updateLines | ( | ) |
To be called if properties of the lines changed.
| void mgx::Mesh::updatePositions | ( | ) |
To be called if the position of the points changed.
| void mgx::Mesh::updateSelection | ( | ) |
To be called if the selection of the points changed.
| void mgx::Mesh::updateTriangles | ( | ) |
To be called if properties of the triangles changed.
| void mgx::Mesh::updateWallGeometry | ( | float | borderSize | ) |
Update labelNeighbors, wallVId and wallGeom to reflect current data structure.
| borderSize | Distance from the wall up to which the triangles are considered part of the wall. This is important mostly for signal intensity. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Reference to the map from each wall to the length of the wall.
The length is calculated as the sum of the edges making the wall. This means the number returned is will depend on the discretization of the surface.
|
inline |
|
inline |
|
inline |
|
inline |
Reference to the map from each wall to the list of vertexes in the wall.
A wall is identified as the interface between two labels, and as such, is given as a pair of labels. Note that there is a difference between the wall (i,j) and (j,i), as the first label is considered as the interior of the wall, and used as such when calculating the signal along a wall.
RSS Should this then be private?
|
inline |
| bool mgx::Mesh::write | ( | QIODevice & | file, |
| bool | transform | ||
| ) |
Write out a mesh.
| bool mgx::Mesh::writeCellMesh | ( | QIODevice & | file, |
| bool | transform | ||
| ) |
Write out a cellular mesh.
| bool mgx::Mesh::writeNhbds | ( | QIODevice & | file, |
| const vvGraph & | S | ||
| ) |
Write out neighborhoods.
| bool mgx::Mesh::writeVertexList | ( | QIODevice & | file, |
| const vvGraph & | S | ||
| ) |
Write the vertex list.
| bool mgx::Mesh::writeVertices | ( | QIODevice & | file, |
| const vvGraph & | S, | ||
| bool | transform | ||
| ) |
Write out vertices.
1.8.17