Jeff Young
7e8f2cdb94
Simplify highlighting logic.
Fixes https://gitlab.com/kicad/code/kicad/issues/8410
4 years ago
jean-pierre charras
5e8b23af64
3D viewer: add missing initialization of the line width of the grid.
Fixes #9082
https://gitlab.com/kicad/code/kicad/issues/9082
4 years ago
jean-pierre charras
d98e93de7e
3D viewer: fix color issues when using the colors stackup:
- Add missing Yellow (.gbrjob predefined color) in list
- silkscreen colors: add .gbrjob predefined colors in list
- Use a default body color (FR4) for dielectric material not in known list
4 years ago
jean-pierre charras
e1bbb717f6
3D viewer: ensure 3D shapes are loaded when switching 3D shapes visibility option to ON.
Fixes #8959
https://gitlab.com/kicad/code/kicad/issues/8959
4 years ago
jean-pierre charras
a43ca978df
3D viewer: do not build the board 3D data during 3D frame creation, but after.
Building the 3D data is time consuming, so creating the data after the 3D
frame is shown is better, and the build activity is visible, especially on Linux.
4 years ago
Marek Roszko
4df3cb912d
Remove another leaky wx/log.h header
5 years ago
jean-pierre charras
a06f965ffa
3Dviewer: fix incorrect drawing of a 3d model hovered by the mouse pointer.
Was due to a recent change in 3D code.
5 years ago
Jeff Young
ac58a3f9f0
Add preference for 3d-model-highlight-on-rollover.
Fixes https://gitlab.com/kicad/code/kicad/issues/8349
5 years ago
Ian McInerney
ecd9bf696e
Be consistent about using nullptr instead of 0
0 can be too easily overloaded into an int, so ensure we use nullptr
when we mean pointers.
5 years ago
Mario Luzeiro
e92dc96767
3D-Viewer: fix issue with solder mask
Fixes https://gitlab.com/kicad/code/kicad/issues/8272
5 years ago
Mario Luzeiro
cdc8fd3804
3D-Viewer: improve edge texture clamping of end segments
Fixes https://gitlab.com/kicad/code/kicad/issues/8245
5 years ago
Wayne Stambaugh
926cc3a00d
3D Viewer: more code cleaning and naming improvements.
5 years ago
Wayne Stambaugh
1c7a5c46e5
3D Viewer: member variable and method naming improvements.
A few build improvements thrown in for a good measure.
5 years ago
Wayne Stambaugh
710e621c6a
3D Viewer: remove all instances of "c" prefix from file names.
5 years ago
Wayne Stambaugh
8416c1fc37
3D Viewer: remove all instances of "C" prefix from object names.
5 years ago
Dominik Wernberger
caf300aa33
Fix memory leak
5 years ago
Wayne Stambaugh
4d128b819a
3D viewer code cleaning round 3.
5 years ago
jean-pierre charras
e6550fb92e
3D viewer: fix a draw issue: missing holes.
Fixes #6608
https://gitlab.com/kicad/code/kicad/issues/6608
5 years ago
Jeff Young
7f360a7188
Some renaming in 3D code for better SNR. Also formatting fixes.
5 years ago
Jeff Young
9c7c05c161
Mostly formatting cleanup but a few type-casting cleanups too.
5 years ago
Jeff Young
bdbb68f813
MODULE -> FOOTPRINT.
5 years ago
Jeff Young
63a54d003e
More module -> footprint.
5 years ago
Jeff Young
9106cc19bf
Yet another tranche of module -> footprint.
5 years ago
Jeff Young
fc9cf1d827
More module -> footprint.
5 years ago
Jeff Young
52a46341db
More module -> footprint.
5 years ago
Jeff Young
84dd5108ba
Remove some "class_" prefixes from files.
5 years ago
Ian McInerney
11e6cac42b
Introduce EGL backend support for the OpenGL canvas
wxWidgets 3.1.5+ on Linux will compile with the Wayland EGL
canvas as the backend instead of the X11 backend. This requires a
version of GLEW compiled with the proper EGL defines and a different
header/code for certain parts that are X11 GLEW specific.
This introduces an in-tree version of GLEW that will be built with the
GLEW_EGL flag then statically linked into the KiCad executables when
EGL support is needed.
5 years ago
Mario Luzeiro
753383d6ec
3D-Viewer: disable layer subtraction operations on non realistic mode
5 years ago
Wayne Stambaugh
4ea3914d4e
Coverity fixes.
CIDs: 312996, 305508, 305509, 305510, 312992, 312997, 312994, 312995,
312968, and 306650.
5 years ago
Mario Luzeiro
9454f9df92
3D-Viewer: OpenGL, enable by default the AA
fixes an issue that disables AA when it back from Raytracing mode
5 years ago
Mario Luzeiro
89fea36ddd
3D-Viewer: OpenGL, remove outline polygons where it intersects a hole at edge of board
5 years ago
Mario Luzeiro
5e371b5f29
3D-Viewer: OpenGL, fix z-fight issue
5 years ago
Mario Luzeiro
78b461a41d
3D-Viewer: OpenGL outline, implement an outline board cut
5 years ago
Seth Hillbrand
f8a4edb1c9
First pass renaming module to footprint
This is mostly in comments and the few remainin text strings that
reference module
5 years ago
Jeff Young
07f139381b
Nullptr safety.
Fixes https://gitlab.com/kicad/code/kicad/issues/5893
5 years ago
Mark Roszko
a28a0e14ba
Fix conversion warnings
5 years ago
Mario Luzeiro
cea1a56f5f
3D-Viewer: set default alpha when import from legacy
keep the current alpha when import colors from stackup.
request a refresh instead of a reload when using OpenGL render.
Fixes https://gitlab.com/kicad/code/kicad/issues/5717
5 years ago
Jeff Young
5b7c6e100d
Clip tech layers to board in 3D renderer.
Fixes https://gitlab.com/kicad/code/kicad/issues/4873
5 years ago
Jeff Young
3c01147f10
Fix 3D hole knock-out of silkscreen.
It still doesn't knock-out the board edges, but this is a good first
step.
Fixes https://gitlab.com/kicad/code/kicad/issues/4837
5 years ago
Mario Luzeiro
ab57c93c98
3D-Viewer: add selection color as an option
5 years ago
Mario Luzeiro
ec3c20bf84
3D-Viewer: do not use selection while on preview
5 years ago
Mario Luzeiro
5205709399
3D-Viewer: use LAYER_SELECT_OVERLAY color for selection
preserve material transparency while rendering as selected
5 years ago
Mario Luzeiro
6bc19dbfe9
3D-Viewer: intercect modules and cooper items
show module and net information.
highlight shapes when selected.
5 years ago
Mario Luzeiro
fe51cc947c
3D-Viewer: render 3D shapes in green if footprint is selected
5 years ago
Mario Luzeiro
0ab82ef66a
3D-Viewer: add an option to enable render of plated pads
by default this option is disabled and will render as in previous
version.
5 years ago
Mario Luzeiro
f0edbd088c
3D-Viewer: fixing z-fight issues
5 years ago
Mario Luzeiro
1ab968e72f
3D-Viewer: render different materials plated and non plated copper
implement on OpenGL
5 years ago
Jeff Young
2251716784
Don't show 3D models with their show flag set to false.
Fixes https://gitlab.com/kicad/code/kicad/issues/5548
5 years ago
Mario Luzeiro
820e3089a2
3D-Viewer: use the correct opacity meaning in the color settings
5 years ago
Mario Luzeiro
40d5746df6
3D-Viewer: Parameterize body board transparency
Fix/workarround raytracing render issues related with refraction
5 years ago