sculpto
grid.h
Go to the documentation of this file.
1/*!****************************************************************//*!*
2 * \file grid.h
3 * \brief Topology grid object class definition module.
4 *
5 * \author Sabitov Kirill
6 * \date 29 June 2022
7 *********************************************************************/
8
9#pragma once
10
11#include "basis.h"
12#include "../vertex.h"
13
14namespace scl::topology
15{
17 class grid : public basis<vertex>
18 {
19 private:
20 int Width, Height;
21
22 public:
24 int GetWidth() const { return Width; }
26 int GetHeight() const { return Height; }
27
28 public:
29 /*!*
30 * Topology grid object basis constructor.
31 *
32 * \param Vertices - verticeies array.
33 * \param Indices - vertices indices.
34 */
35 grid(int Width, int Height);
36
38 ~grid() override = default;
39 };
40}
~grid() override=default
grid(int Width, int Height)
Definition: grid.cpp:12
int GetHeight() const
Definition: grid.h:26
int GetWidth() const
Definition: grid.h:24