Polyhedral-net Splines
Loading...
Searching...
No Matches
VertexMapping.hpp
1#pragma once
2#include <algorithm>
3#include <vector>
4#include <stdexcept>
5#include <OpenMesh/Core/Mesh/PolyMesh_ArrayKernelT.hh>
6
7typedef OpenMesh::PolyMesh_ArrayKernelT<> MeshType;
8
16class VertexMapping {
17 public:
18 // Constructors & assignment
19 VertexMapping();
20 // VertexMapping(const std::vector<int>& indices, const std::vector<double>& values);
21 VertexMapping(const VertexMapping& other) = default;
22 VertexMapping& operator=(const VertexMapping& other) = default;
23
24 // Arithmetic operators
25 VertexMapping operator+(const VertexMapping& other) const;
26 VertexMapping operator-(const VertexMapping& other) const;
27 VertexMapping operator*(double scalar) const;
28 VertexMapping operator/(double scalar) const;
29 VertexMapping operator-() const;
30
35 std::vector<MeshType::VertexHandle> indices;
36
42 std::vector<double> mapping;
43 };
std::vector< double > mapping
The weights associated with each vertex in indices. The weights should sum to 1.0.
Definition VertexMapping.hpp:42
std::vector< MeshType::VertexHandle > indices
The VertexHandles of the vertices in the original mesh that contribute to this vertex in the subdivid...
Definition VertexMapping.hpp:35