KiCad PCB EDA Suite
Loading...
Searching...
No Matches
eda_3d_model_viewer.cpp File Reference
#include <gal/opengl/kiglew.h>
#include <iostream>
#include "3d_rendering/opengl/3d_model.h"
#include "eda_3d_model_viewer.h"
#include "../3d_rendering/opengl/opengl_utils.h"
#include "../3d_cache/3d_cache.h"
#include <wx/dcclient.h>
#include <base_units.h>
#include <build_version.h>
#include <gal/opengl/gl_context_mgr.h>
#include <settings/common_settings.h>
#include <pgm_base.h>
#include <dpi_scaling_common.h>
#include <class_draw_panel_gal.h>
#include <macros.h>

Go to the source code of this file.

Macros

#define UNITS3D_TO_UNITSPCB   ( pcbIUScale.IU_PER_MM )
 Implements a model viewer canvas.
 
#define RANGE_SCALE_3D   8.0f
 

Macro Definition Documentation

◆ RANGE_SCALE_3D

#define RANGE_SCALE_3D   8.0f

Definition at line 86 of file eda_3d_model_viewer.cpp.

◆ UNITS3D_TO_UNITSPCB

#define UNITS3D_TO_UNITSPCB   ( pcbIUScale.IU_PER_MM )

Implements a model viewer canvas.

The purpose of the model viewer is to render 3d models that come in the original data from the files without any transformations. Scale conversion from 3d model units to pcb units

Definition at line 49 of file eda_3d_model_viewer.cpp.