PolyFEM
Loading...
Searching...
No Matches
polyfem::mesh::WildRemesher< WMTKMesh >::VertexAttributes Struct Reference

#include <WildRemesher.hpp>

Public Types

using VectorNd = WildRemesher< WMTKMesh >::VectorNd
 

Public Member Functions

VectorNd displacement () const
 Current displacement from rest position to current position.
 
VectorNd prev_position (const int i) const
 Previous position of the vertex.
 
VectorNd position_i (const int i) const
 Get the position of the vertex at different times.
 

Static Public Member Functions

static VertexAttributes edge_collapse (const VertexAttributes &v0, const VertexAttributes &v1, const CollapseEdgeTo collapse_to)
 

Public Attributes

VectorNd rest_position
 
VectorNd position
 
Eigen::MatrixXd projection_quantities
 Quantities to be projected (dim × n_quantities)
 
bool fixed = false
 
size_t partition_id = 0
 

Detailed Description

template<class WMTKMesh>
struct polyfem::mesh::WildRemesher< WMTKMesh >::VertexAttributes

Definition at line 327 of file WildRemesher.hpp.

Member Typedef Documentation

◆ VectorNd

template<class WMTKMesh >
using polyfem::mesh::WildRemesher< WMTKMesh >::VertexAttributes::VectorNd = WildRemesher<WMTKMesh>::VectorNd

Definition at line 329 of file WildRemesher.hpp.

Member Function Documentation

◆ displacement()

template<class WMTKMesh >
VectorNd polyfem::mesh::WildRemesher< WMTKMesh >::VertexAttributes::displacement ( ) const
inline

Current displacement from rest position to current position.

Returns
displacement of the vertex

Definition at line 343 of file WildRemesher.hpp.

References polyfem::mesh::WildRemesher< WMTKMesh >::VertexAttributes::position, and polyfem::mesh::WildRemesher< WMTKMesh >::VertexAttributes::rest_position.

◆ edge_collapse()

◆ position_i()

template<class WMTKMesh >
VectorNd polyfem::mesh::WildRemesher< WMTKMesh >::VertexAttributes::position_i ( const int  i) const
inline

Get the position of the vertex at different times.

Parameters
i0: rest position, 1–(n_quantities()//3): previous position, otherwise: current position
Returns
position i of the vertex

Definition at line 357 of file WildRemesher.hpp.

References polyfem::mesh::WildRemesher< WMTKMesh >::VertexAttributes::position, polyfem::mesh::WildRemesher< WMTKMesh >::VertexAttributes::prev_position(), polyfem::mesh::WildRemesher< WMTKMesh >::VertexAttributes::projection_quantities, and polyfem::mesh::WildRemesher< WMTKMesh >::VertexAttributes::rest_position.

Here is the call graph for this function:

◆ prev_position()

template<class WMTKMesh >
VectorNd polyfem::mesh::WildRemesher< WMTKMesh >::VertexAttributes::prev_position ( const int  i) const
inline

Previous position of the vertex.

Parameters
iin [0, n_quantities()//3) the i-th previous position
Returns
previous position i of the vertex

Definition at line 348 of file WildRemesher.hpp.

References polyfem::mesh::WildRemesher< WMTKMesh >::VertexAttributes::projection_quantities, and polyfem::mesh::WildRemesher< WMTKMesh >::VertexAttributes::rest_position.

Referenced by polyfem::mesh::WildRemesher< WMTKMesh >::VertexAttributes::position_i().

Here is the caller graph for this function:

Member Data Documentation

◆ fixed

template<class WMTKMesh >
bool polyfem::mesh::WildRemesher< WMTKMesh >::VertexAttributes::fixed = false

◆ partition_id

template<class WMTKMesh >
size_t polyfem::mesh::WildRemesher< WMTKMesh >::VertexAttributes::partition_id = 0

◆ position

◆ projection_quantities

◆ rest_position


The documentation for this struct was generated from the following files: