sculpto
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
12scl::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}
std::vector< vertex > Vertices
Definition: basis.h:22
plane(int Width, int Height)
Definition: plane.cpp:12
Topology plane object class implementation module.
Sculpto library prehompiled header. Defines common definitions, includes commonly used modules.