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

Go to the source code of this file.

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).
 
static size_t addOutlineToRaytracerObjects (CONTAINER_2D &aObjContainer, const SHAPE_POLY_SET &aOutline, float aBiuTo3d, const BOARD_ITEM &aBoardItem)
 

Function Documentation

◆ addOutlineToRaytracerObjects()

◆ buildBoardBoundingBoxPoly()

void buildBoardBoundingBoxPoly ( const BOARD * aBoard,
SHAPE_POLY_SET & aOutline )
extern

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 1542 of file convert_shape_list_to_polygon.cpp.

References SHAPE_POLY_SET::AddOutline(), chain, BOARD::ComputeBoundingBox(), BOARD::GetBoundingBox(), BOX2< Vec >::GetEnd(), BOX2< Vec >::GetHeight(), BOX2< Vec >::GetOrigin(), BOX2< Vec >::GetWidth(), BOX2< Vec >::Inflate(), pcbIUScale, SHAPE_POLY_SET::RemoveAllContours(), VECTOR2< T >::x, and VECTOR2< T >::y.

Referenced by BuildFootprintPolygonOutlines(), and RENDER_3D_RAYTRACE_BASE::Reload().

◆ 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 59 of file raytracing/create_scene.cpp.

Referenced by RENDER_3D_RAYTRACE_BASE::setupMaterials().