sculpto
points.cpp
Go to the documentation of this file.
1/*!****************************************************************//*!*
2 * \file points.cpp
3 * \brief Topology objects points array (useful for creation dummy rendering object) class declaration module.
4 *
5 * \author Sabitov Kirill
6 * \date 10 July 2022
7 *********************************************************************/
8
9#include "sclpch.h"
10#include "points.h"
11
13{
14 Vertices.push_back({ vec3 { 0 }, vec3 { 0 } });
15 Indices.push_back(0);
16}
17
18scl::topology::points::points(const std::vector<vertex_point> &Points) : basis(mesh_type::POINTS)
19{
20 Vertices = Points;
21 Indices.resize(Points.size());
22 for (int i = 0; i < Points.size(); i++)
23 Indices.push_back(i);
24}
std::vector< vertex_point > Vertices
Definition: basis.h:22
std::vector< u32 > Indices
Definition: basis.h:23
mesh_type
Definition: vertex_array.h:18
Topology objects points array (useful for creation dummy rendering object) class declaration module.
Sculpto library prehompiled header. Defines common definitions, includes commonly used modules.