sculpto
Main Page
Namespaces
Classes
Files
File List
File Members
core
resources
topology
plane.cpp
Go to the documentation of this file.
1
/*!****************************************************************/
/*!*
2
* \file plane.h
3
* \brief Topology plane object class implementation module.
4
*
5
* \author Sabitov Kirill
6
* \date 08 July 2022
7
*********************************************************************/
8
9
#include "
sclpch.h
"
10
#include "
plane.h
"
11
12
scl::topology::plane::plane
(
int
Width,
int
Height) :
13
grid
(Width, Height)
14
{
15
for
(
float
i = 0; i <= Height; ++i)
16
for
(
float
j = 0; j <= Width; ++j)
17
Vertices
.push_back(
vertex
({ i, 0, j },
18
{ 0, 1, 0 },
19
{ 1, 0, 0 },
20
{ 0, 0, 1 },
21
{ i, j }));
22
}
scl::topology::basis< vertex >::Vertices
std::vector< vertex > Vertices
Definition:
basis.h:22
scl::topology::grid
Definition:
grid.h:18
scl::topology::plane::plane
plane(int Width, int Height)
Definition:
plane.cpp:12
plane.h
Topology plane object class implementation module.
sclpch.h
Sculpto library prehompiled header. Defines common definitions, includes commonly used modules.
scl::vertex
Definition:
vertex.h:81
Generated by
1.9.4