sculpto
Main Page
Namespaces
Classes
Files
File List
File Members
core
resources
topology
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
12
scl::topology::points::points
() :
basis
(
mesh_type
::
POINTS
)
13
{
14
Vertices
.push_back({
vec3
{ 0 },
vec3
{ 0 } });
15
Indices
.push_back(0);
16
}
17
18
scl::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
}
scl::math::vec3< float >
scl::topology::basis
Definition:
basis.h:19
scl::topology::basis< vertex_point >::Vertices
std::vector< vertex_point > Vertices
Definition:
basis.h:22
scl::topology::basis< vertex_point >::Indices
std::vector< u32 > Indices
Definition:
basis.h:23
scl::topology::points::points
points()
Definition:
points.cpp:12
scl::mesh_type
mesh_type
Definition:
vertex_array.h:18
scl::mesh_type::POINTS
@ POINTS
points.h
Topology objects points array (useful for creation dummy rendering object) class declaration module.
sclpch.h
Sculpto library prehompiled header. Defines common definitions, includes commonly used modules.
Generated by
1.9.4