1#include <gtest/gtest.h>
2#include <Unittests/unittests_common.hh>
7class OpenMeshDirectSettingProperties :
public OpenMeshBase {
12 virtual void SetUp() {
18 virtual void TearDown() {
35TEST_F(OpenMeshDirectSettingProperties, SetVertexPositionsDirectly) {
48 auto pos_pro = mesh_.points_property_handle();
50 auto point_vector = mesh_.property(pos_pro).data_vector();
52 auto vertex_count = point_vector.size();
54 EXPECT_EQ(4u, mesh_.n_vertices() ) <<
"Wrong number of vertices";
56 EXPECT_EQ(4u, vertex_count) <<
"Wrong number of vertices when counting direct point property vector";
Kernel::VertexHandle VertexHandle
Handle for referencing the corresponding item.
SmartVertexHandle add_vertex(const Point _p)
Kernel::Point Point
Coordinate type.