|
KiCad PCB EDA Suite
|
#include <math/box2.h>Go to the source code of this file.
Functions | |
| BOX2I | CalcPlaceholderLocalBox (const FOOTPRINT *aFootprint) |
| Calculate a local space bounding box for a placeholder 3D model. | |
Calculate a local space bounding box for a placeholder 3D model.
Attempts pads first, then graphical items on fab/courtyard/silk layers, then falls back to the footprint bounding box.
Definition at line 33 of file 3d_placeholder_utils.cpp.
References PADSTACK::ALL_LAYERS, B_CrtYd, B_Fab, B_SilkS, F_CrtYd, F_Fab, F_SilkS, BOX2< Vec >::GetBottom(), FOOTPRINT::GetBoundingBox(), BOX2< Vec >::GetHeight(), BOX2< Vec >::GetLeft(), FOOTPRINT::GetOrientation(), BOX2< Vec >::GetOrigin(), FOOTPRINT::GetPosition(), BOX2< Vec >::GetRight(), BOX2< Vec >::GetTop(), BOX2< Vec >::GetWidth(), FOOTPRINT::GraphicalItems(), BOX2< Vec >::Merge(), pad, FOOTPRINT::Pads(), RotatePoint(), BOX2< Vec >::SetOrigin(), and BOX2< Vec >::SetSize().
Referenced by RENDER_3D_RAYTRACE_BASE::addPlaceholderToRaytracer(), and RENDER_3D_OPENGL::renderPlaceholderForFootprint().