sculpto
Public Member Functions | List of all members
scl::topology::plane Class Reference

#include <plane.h>

Inheritance diagram for scl::topology::plane:
scl::topology::grid scl::topology::basis< vertex >

Public Member Functions

 plane (int Width, int Height)
 
 ~plane () override=default
 
- Public Member Functions inherited from scl::topology::grid
int GetWidth () const
 
int GetHeight () const
 
 grid (int Width, int Height)
 
 ~grid () override=default
 
- Public Member Functions inherited from scl::topology::basis< vertex >
const mesh_type GetType () const
 
const std::vector< vertexGetVertices () const
 
const std::vector< u32GetIndices () const
 
const vec3GetBoundMin () const
 
const vec3GetBoundMax () const
 
std::vector< vertex >::const_iterator cbegin () const
 
std::vector< vertex >::const_iterator cend () const
 
 basis (mesh_type MeshType)
 
 basis (mesh_type MeshType, const std::vector< vertex > &Vertices, const std::vector< u32 > &Indices)
 
 basis (mesh_type MeshType, std::vector< vertex > &&Vertices, std::vector< u32 > &&Indices)
 
virtual ~basis ()=default
 

Additional Inherited Members

- Public Attributes inherited from scl::topology::basis< vertex >
mesh_type MeshType
 
std::vector< vertexVertices
 
std::vector< u32Indices
 
vec3 Min
 
vec3 Max
 

Detailed Description

Topology plane object class.

Definition at line 16 of file plane.h.

Constructor & Destructor Documentation

◆ plane()

scl::topology::plane::plane ( int  Width,
int  Height 
)
  • Topology plane object default constructor.
Parameters
Width,Height- plane size.

Definition at line 12 of file plane.cpp.

12 :
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
grid(int Width, int Height)
Definition: grid.cpp:12

◆ ~plane()

scl::topology::plane::~plane ( )
overridedefault

Topology plane object default destructor.


The documentation for this class was generated from the following files: