# Easy3DMultiViews

| Support            | ![](assets/images/sample_programs/applies_to/cpp.svg) ![](assets/images/sample_programs/applies_to/cs.svg) ![](assets/images/sample_programs/applies_to/qt.svg)   |
|--------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Required licenses  | **Easy3D**                                                                                                                                                        |
| Recommended images | Any point cloud or mesh file in the folder `Sample Images/3D`                                                                                                     |
| Location           | `3D Processing/Easy3DMultiViews`                                                                                                                                  |

## Purpose

This sample program demonstrates how to:

- Load and display point clouds and meshes in multiple instances of the class `E3DViewer`. You can then navigate the 3D views independently.

![](assets/images/sample_programs/3d_processing_easy3dmultiviews.webp)

## Code highlights

1. Create a 3D viewer and display a sphere.
   ```c++
   viewer_ = new Easy3D::E3DViewer(0, 0, viewerRect_.Width(), viewerRect_.Height(), (void*)GetSafeHwnd());
   viewer_->InitRendering();
   Easy3D::EPointCloud pointCloud = Easy3D::EPointCloudFactory::CreateSphericPointCloud(Easy3D::E3DPoint(0, 0, 0), 5.0f, 50, 50);
   viewer_->AddRenderSource("Default", pointCloud);
   ```
