KiCad PCB EDA Suite
|
#include "render_3d_raytrace_base.h"
#include "shapes3D/plane_3d.h"
#include "shapes3D/round_segment_3d.h"
#include "shapes3D/layer_item_3d.h"
#include "shapes3D/cylinder_3d.h"
#include "shapes3D/triangle_3d.h"
#include "shapes2D/layer_item_2d.h"
#include "shapes2D/ring_2d.h"
#include "shapes2D/polygon_2d.h"
#include "shapes2D/filled_circle_2d.h"
#include "shapes2D/round_segment_2d.h"
#include "accelerators/bvh_pbrt.h"
#include "3d_fastmath.h"
#include "3d_math.h"
#include <board.h>
#include <footprint.h>
#include <fp_lib_table.h>
#include <eda_3d_viewer_frame.h>
#include <project_pcb.h>
#include <base_units.h>
#include <core/profile.h>
Go to the source code of this file.
Macros | |
#define | UNITS3D_TO_UNITSPCB ( pcbIUScale.IU_PER_MM ) |
Scale conversion from 3d model units to pcb units. | |
Functions | |
static float | TransparencyControl (float aGrayColorValue, float aTransparency) |
Perform an interpolation step to easy control the transparency based on the gray color value and transparency. | |
void | buildBoardBoundingBoxPoly (const BOARD *aBoard, SHAPE_POLY_SET &aOutline) |
Get the complete bounding box of the board (including all items). | |
#define UNITS3D_TO_UNITSPCB ( pcbIUScale.IU_PER_MM ) |
Scale conversion from 3d model units to pcb units.
Definition at line 72 of file raytracing/create_scene.cpp.
void buildBoardBoundingBoxPoly | ( | const BOARD * | aBoard, |
SHAPE_POLY_SET & | aOutline | ||
) |
Get the complete bounding box of the board (including all items).
The vertex numbers and segment numbers of the rectangle returned. 1 ------------— |1 2| 0| |2 |0 3| ------------— 3
Definition at line 873 of file convert_shape_list_to_polygon.cpp.
References SHAPE_POLY_SET::AddOutline(), SHAPE_LINE_CHAIN::Append(), BOARD::ComputeBoundingBox(), BOARD::GetBoundingBox(), BOX2< Vec >::GetEnd(), BOX2< Vec >::GetHeight(), BOX2< Vec >::GetOrigin(), BOX2< Vec >::GetWidth(), BOX2< Vec >::Inflate(), EDA_IU_SCALE::mmToIU(), pcbIUScale, SHAPE_POLY_SET::RemoveAllContours(), SHAPE_LINE_CHAIN::SetClosed(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by BuildFootprintPolygonOutlines(), and RENDER_3D_RAYTRACE_BASE::Reload().
|
static |
Perform an interpolation step to easy control the transparency based on the gray color value and transparency.
aGrayColorValue | - diffuse gray value |
aTransparency | - control |
Definition at line 58 of file raytracing/create_scene.cpp.
Referenced by RENDER_3D_RAYTRACE_BASE::setupMaterials().