66 typedef memory::shared_ptr<gsPeriodicStitch<T> > uPtr;
89 const std::vector<size_t>& stitchIndices,
91 const size_t parametrizationMethod = 2);
99 std::vector<size_t> computeCorrections(
const std::vector<size_t>& stitchIndices,
121 : gsPeriodicParametrization<T>(mesh, verticesV0, paramsV0, verticesV1, paramsV1, list),
122 m_stitchIndices(this->indices(stitchVertices))
135 void calculate(
const size_t paraMethod);
140 void constructAndSolveEquationSystem(
const Neighbourhood &neighbourhood,
152 gsMesh<T> unfolded = createUnfoldedFlatMesh();
163 gsMesh<T> createUnfoldedFlatMesh()
const;
172 return (std::find(m_stitchIndices.begin(), m_stitchIndices.end(), vertexIndex)
173 != m_stitchIndices.end());
184 return ((m_corrections(beg, end) == 1) ||
185 (m_corrections(beg, end) == -1) ||
186 (m_corrections(end, beg) == 1) ||
187 (m_corrections(end, beg) == -1));
205 #ifndef GISMO_BUILD_LIB
206 #include GISMO_HPP_HEADER(gsPeriodicStitch.hpp)
Class that maintains parametrization This class Parametrization stores the mesh information and the t...
Definition: gsParametrization.h:46
gsPeriodicStitch(const gsMesh< T > &mesh, const gsMatrix< T > &verticesV0, const gsMatrix< T > ¶msV0, const gsMatrix< T > &verticesV1, const gsMatrix< T > ¶msV1, const gsMatrix< T > &stitchVertices, const gsOptionList &list=gsParametrization< T >::defaultOptions())
Definition: gsPeriodicStitch.h:114
Definition: gsPeriodicStitch.h:76
gsSparseMatrix< int > m_corrections
Definition: gsPeriodicStitch.h:198
Class that maintains the local neighbourhood properties.
Definition: gsParametrization.h:127
#define index_t
Definition: gsConfig.h:32
gsMesh< T > createRestrictedFlatMesh() const
Trims the mesh to [0, 1]^2.
Definition: gsPeriodicParametrization.hpp:154
Class Representing a triangle mesh with 3D vertices.
Definition: gsMesh.h:31
const std::vector< size_t > m_stitchIndices
indices of the vertices on the stitch
Definition: gsPeriodicStitch.h:200
Provides a list of labeled parameters/options that can be set and accessed easily.
Definition: gsPeriodicStitch.h:61
Nested class for plotting flat meshes restricted to [0, 1]^2.
Definition: gsPeriodicParametrization.h:32
gsMesh< T > createFlatMesh() const
Definition: gsPeriodicStitch.h:150
bool edgeIsInCorrections(index_t beg, index_t end) const
Definition: gsPeriodicStitch.h:182
Class which holds a list of parameters/options, and provides easy access to them. ...
Definition: gsOptionList.h:32
bool isOnStitch(size_t vertexIndex) const
Definition: gsPeriodicStitch.h:170
Abstract class with the functionality common to gsPeriodicStitch and gsPeriodicOverlap.
gsHalfEdgeMesh is a gsMesh implementation that handles Halfedges
Definition: gsHalfEdgeMesh.h:46