KiCad PCB EDA Suite
Loading...
Searching...
No Matches
raytracing/create_scene.cpp File Reference

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).
 

Macro Definition Documentation

◆ UNITS3D_TO_UNITSPCB

#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.

Function Documentation

◆ buildBoardBoundingBoxPoly()

void buildBoardBoundingBoxPoly ( const BOARD aBoard,
SHAPE_POLY_SET aOutline 
)

◆ TransparencyControl()

static float TransparencyControl ( float  aGrayColorValue,
float  aTransparency 
)
static

Perform an interpolation step to easy control the transparency based on the gray color value and transparency.

Parameters
aGrayColorValue- diffuse gray value
aTransparency- control
Returns
transparency to use in material

Definition at line 58 of file raytracing/create_scene.cpp.

Referenced by RENDER_3D_RAYTRACE_BASE::setupMaterials().