7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-27 00:26:13 +00:00
kicad/3d-viewer
Seth Hillbrand 5e0abadb23 Reorganize layer numbering
F_Cu = 0
B_Cu = 2
Remaining internal copper layers are even and incrementing

Non-copper layers are odd and incrementing.

This means that we can no longer do things like:
for( PCB_LAYER_ID layer = F_Cu; layer <= B_Cu; ++layer)
Instead, we have the class LAYER_RANGE:
for( PCB_LAYER_ID layer : LAYER_RANGE( F_Cu, B_Cu) )

Similarly, gt/lt tests should not refer to the integer value of the
layer.  We have functions such as IsCopperLayer to test whether a layer
is copper or not.

When using the connectivity RTree, the third dimension is layer, so we
provide B_Cu with the special INT_MAX value, ensuring that elements
between F_Cu and B_Cu will be identified.  There is a new, special
function GetBoardLayer() for interfacing with CN_ITEMS

Similarly, PNS layers remain unchanged and sequential.  A set of
interface functions is provided to map PNS layers to Board layers and
back.  This allows the PNS_LAYER_RANGE to function as expected
2024-09-06 23:07:58 +00:00
..
3d_cache Expunge some boost libs from 3d cache 2024-09-06 10:32:50 -07:00
3d_canvas Reorganize layer numbering 2024-09-06 23:07:58 +00:00
3d_model_viewer Add ability to embed files in various elements 2024-07-15 16:06:55 -07:00
3d_navlib Protect dynamic_cast dereference 2024-08-26 06:50:44 -07:00
3d_rendering Reorganize layer numbering 2024-09-06 23:07:58 +00:00
3d_viewer Reduce dependency on dynamic_cast. 2024-09-04 17:24:49 +01:00
common_ogl Support transparent background in 3D viewer PNG/clipboard export. 2024-02-29 17:11:53 +03:00
dialogs Reduce dependency on dynamic_cast. 2024-09-04 17:24:49 +01:00
3d_fastmath.cpp 3D Viewer: complete refactor of the 3D viewer. 2016-07-19 13:35:25 -04:00
3d_fastmath.h Cleanup: Replace C-only deprecated headers 2019-12-05 11:03:15 -08:00
3d_math.cpp Removed all exception specifiers since deprecated. 2017-06-12 13:54:55 -04:00
3d_math.h Fix source comment / documentation typos 2021-06-09 19:32:58 +00:00
3d_viewer_id.h 3d_viewer_id.h: minor fix. 2023-11-28 16:59:01 +01:00
CMakeLists.txt Add ability to embed files in various elements 2024-07-15 16:06:55 -07:00
credits.txt Fix various typos 2022-07-21 16:31:41 +00:00