Visual Computing Library
Loading...
Searching...
No Matches
vcl::MeshSampler< MeshType > Class Template Reference

Public Types

using PointType = MeshType::VertexType::CoordType
 
using ScalarType = PointType::ScalarType
 
using ConstIterator = std::ranges::iterator_t< CoordView >
 

Public Member Functions

const MeshType & samples () const
 
const PointType & sample (uint i) const
 
std::size_t size () const
 
void clear ()
 
void resize (uint n)
 
void reserve (uint n)
 
void add (const PointType &p)
 
void set (uint i, const PointType &p)
 
template<VertexConcept VertexType>
void add (const VertexType &v)
 
template<VertexConcept VertexType>
void set (uint i, const VertexType &v)
 
template<EdgeConcept EdgeType>
void add (const EdgeType &e, double u, bool copyQuality=true)
 
template<EdgeConcept EdgeType>
void set (uint i, const EdgeType &e, double u, bool copyQuality=true)
 
template<FaceConcept FaceType>
void add (const FaceType &f, bool copyNormal=false, bool copyQuality=true)
 
template<FaceConcept FaceType>
void set (uint i, const FaceType &f, bool copyNormal=false, bool copyQuality=true)
 
template<FaceConcept FaceType>
void add (const FaceType &f, const std::vector< ScalarType > &barCoords, bool copyNormal=false, bool copyQuality=true)
 
template<FaceConcept FaceType>
void set (uint i, const FaceType &f, const std::vector< ScalarType > &barCoords, bool copyNormal=false, bool copyQuality=true)
 
template<FaceConcept FaceType>
void add (const FaceType &f, const PointType &barCoords, bool copyNormal=false, bool copyQuality=true)
 
template<FaceConcept FaceType>
void set (uint i, const FaceType &f, const PointType &barCoords, bool copyNormal=false, bool copyQuality=true)
 
ConstIterator begin () const
 
ConstIterator end () const
 

Private Types

using CoordView = decltype(View< typename MeshType::VertexIterator >()|views::coords)
 

Private Member Functions

template<FaceConcept FaceType>
void copyComponents (uint vi, const FaceType &f, bool copyNormal, bool copyQuality)
 
void setBirthElement (uint vi, const std::string &key, uint value)
 

Private Attributes

MeshType mMesh
 

The documentation for this class was generated from the following file: