27#include <easy3d/core/point_cloud.h>
28#include <easy3d/util/initializer.h>
38int main(
int argc,
char** argv) {
46 for (
int i=-5; i<5; ++i) {
47 for (
int j = -5; j < 5; ++j)
48 cloud->
add_vertex(
vec3(
static_cast<float>(i),
static_cast<float>(j), 0));
50 std::cout <<
"point cloud has " << cloud->n_vertices() <<
" points" << std::endl;
A data structure for point clouds.
Definition: point_cloud.h:45
Vertex add_vertex(const vec3 &p)
add a new vertex with position p
Definition: point_cloud.cpp:177
Definition: collider.cpp:182
void initialize(bool use_log_file, bool use_setting_file, const std::string &resource_dir)
Initialization of Easy3D.
Definition: initializer.cpp:35