# easy3d_viewer

| Support            | ![](assets/images/sample_programs/applies_to/python.svg)               |
|--------------------|------------------------------------------------------------------------|
| Required licenses  | **Easy3D**                                                             |
| Recommended images | Any mesh or point cloud from the folder `Sample Images/3D/Easy3DMatch` |
| Location           | `OpenGL samples`                                                       |

## Purpose

This sample program demonstrates how to:

- Display a 3D resource (cloud or mesh) within an **eVision** 3DViewer using **OpenGL** and **SDL2**.

![](assets/images/sample_programs/python_specific-easy3d_viewer.webp)

## Code highlights

1. Create the SDL window and the E3DViewer.
   ```python
   window = SDL_CreateWindow(b"Easy3D - 3D Viewer Sample", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 800, 600, SDL_WINDOW_OPENGL)
   context = SDL_GL_CreateContext(window)
   SDL_GL_MakeCurrent(window, context)
   viewer = eVision.Easy3D.E3DViewer(eVision.Easy3D.EUIAPI.Qt)
   ```
