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

#include <points.h>

Inheritance diagram for scl::topology::points:
scl::topology::basis< vertex_point >

Public Member Functions

 points ()
 
 points (const std::vector< vertex_point > &Points)
 
- Public Member Functions inherited from scl::topology::basis< vertex_point >
const mesh_type GetType () const
 
const std::vector< vertex_pointGetVertices () const
 
const std::vector< u32GetIndices () const
 
const vec3GetBoundMin () const
 
const vec3GetBoundMax () const
 
std::vector< vertex_point >::const_iterator cbegin () const
 
std::vector< vertex_point >::const_iterator cend () const
 
 basis (mesh_type MeshType)
 
 basis (mesh_type MeshType, const std::vector< vertex_point > &Vertices, const std::vector< u32 > &Indices)
 
 basis (mesh_type MeshType, std::vector< vertex_point > &&Vertices, std::vector< u32 > &&Indices)
 
virtual ~basis ()=default
 

Additional Inherited Members

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

Detailed Description

Topology objects points array class.

Definition at line 17 of file points.h.

Constructor & Destructor Documentation

◆ points() [1/2]

scl::topology::points::points ( )
  • Topology point array object default contructor (creates one point).
Parameters
None.

Definition at line 12 of file points.cpp.

13{
14 Vertices.push_back({ vec3 { 0 }, vec3 { 0 } });
15 Indices.push_back(0);
16}
std::vector< vertex_point > Vertices
Definition: basis.h:22
std::vector< u32 > Indices
Definition: basis.h:23
basis(mesh_type MeshType)
Definition: basis.h:47
math::vec3< float > vec3
Definition: base.h:38

◆ points() [2/2]

scl::topology::points::points ( const std::vector< vertex_point > &  Points)
  • Topology point array object contructor by array of points.
Parameters
Points- array of points.

Definition at line 18 of file points.cpp.

19{
20 Vertices = Points;
21 Indices.resize(Points.size());
22 for (int i = 0; i < Points.size(); i++)
23 Indices.push_back(i);
24}

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