Alex Shvartzkop
9345b73af5
Don't crash when OCC fails to read a model and didn't open the doc.
2 years ago
Alex Shvartzkop
e9c5b4755b
3D OCE plugin: make two-sided faces for non-solid shapes (shells).
Fixes single-face shells display in the 3D viewer.
2 years ago
Marek Roszko
aa0d39dfe4
Fix the moving truck leaving behind IO_ERROR and friends
2 years ago
Marek Roszko
b5d5eb842a
Start a kicommon shared lib
2 years ago
jean-pierre charras
3a4f3cb0b8
Minor Coverity and compil warnings fixes.
2 years ago
Marek Roszko
dd8dc4e513
Add a sequential read flagged fopen helper
Trying to squeeze out some kind of gain by informing the OS we will read a file sequentially.
In particular our FILE_LINE_READER just uses fgetc until the end
3 years ago
Marek Roszko
ea077bc34d
Banish ignore.h to core
3 years ago
qu1ck
0c049eccc7
Fix a bunch of compiler warnings
3 years ago
Nimish Telang
f7bf3011fb
Use bundled Find{CURL,ZLIB}.cmake
3 years ago
Marek Roszko
c6540575b5
Fix step colors some more
Fixes https://gitlab.com/kicad/code/kicad/-/issues/13611
I need to refactor the overall structure and know what to do, but ugh lazy
3 years ago
Marek Roszko
df022acc11
Fix step model colors again
Fixes https://gitlab.com/kicad/code/kicad/-/issues/13882
3 years ago
Marek Roszko
ffaaa17d1c
IGES files love faces instead of solids, maybe support them
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/11175
3 years ago
Marek Roszko
b154e47774
Start adding support for STEP with RGB+A
3 years ago
Seth Hillbrand
5ed7e28252
Remove KICAD_OCC build option
We don't really support builds without OCC these days. Removing to
clear up build flags and settings
3 years ago
Wayne Stambaugh
898ec0d094
Fix wxWidgets 3.1 and later deprecated build warnings.
wxWidgets 3.1 has deprecated wxPATH_NORM_ALL when normalizing file
paths when calling wxFileName::Normalize(). This change keeps the
existing behavior except in places where our own internal
ExpandEnvVarSubstitutions() to expand environment variables.
3 years ago
luz paz
79fa911e0e
Fix various typos
Found via `codespell -q 3 -S *.po,./thirdparty,./Documentation/changelogs -L aactual,acount,aline,alocation,alog,anormal,anumber,aother,apoints,aparent,aray,ba,busses,dout,einstance,leaded,modul,ontext,ot,overide,serie,te,,tesselate,tesselator,tht`
3 years ago
Marek Roszko
7256831944
vrml2 box translation to scenegraph can reserve space in the vectors
3 years ago
Marek Roszko
85fbfae1f4
emplace instead of insert vrml node nodes
3 years ago
Marek Roszko
25507ad6cf
Don't forget to cache bust oce
4 years ago
Marek Roszko
2de4906d65
Avoid loading duplicate shapes due to hierarchy structure
Fix https://gitlab.com/kicad/code/kicad/-/issues/9416
Fix https://gitlab.com/kicad/code/kicad/-/issues/6107
4 years ago
Marek Roszko
b438810b6b
Fix double parsing solids from step models resulting in triangle z-fighting
Fix https://gitlab.com/kicad/code/kicad/-/issues/9416
Fix https://gitlab.com/kicad/code/kicad/-/issues/9835
Fix https://gitlab.com/kicad/code/kicad/-/issues/10554
4 years ago
Marek Roszko
e9f4f5ab2a
Fix autocomplete woops resize -> reserve
4 years ago
Marek Roszko
d211ef1ea3
Ensure we close the occt document at the end of loading
4 years ago
Marek Roszko
41f54349a5
Replace inserts/push_backs with emplace in some spots
4 years ago
Jeff Young
34a9a165c9
More wide-string declarations.
4 years ago
Seth Hillbrand
098e8f7d9b
Revert "cmake: adding KICAD_MACOSX_APP_BUNDLE option"
This reverts commit ea9f960cc1
.
Reverted for updates as this currently breaks kicad-mac-builder
4 years ago
Davide Gerhard
ea9f960cc1
cmake: adding KICAD_MACOSX_APP_BUNDLE option
ADDED: with cmake KICAD_MACOSX_APP_BUNDLE option the user can disable
the macOS app bundle creation when compiling on macOS. This permit to
use/install KiCad like any other *nix platform (/usr/bin, /usr/share,
ecc.). By default, cmake build the app bundle.
4 years ago
Wayne Stambaugh
44e4abde0e
Fix X3D model parser.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/10385
4 years ago
Ian McInerney
e57bde6582
Remove last vestiges of the KICAD_USE_OCE build flag
This build flag was removed in a previous commit, but some last uses
remained.
4 years ago
Christoph Moench-Tegeder
8f87638de5
remove references to old OpenCascade API
@mroszko figured out that the "new" API exists in all supported
OpenCascade versions (>=7.3 for KiCad 6), so just remove the old
code.
4 years ago
Christoph Moench-Tegeder
12152d4331
Adapt OCE 3D plugin to OpenCascade 7.6.0
In line with
https://dev.opencascade.org/doc/overview/html/occt__upgrade.html#upgrade_occt760_poly
the Poly_Triangulation does not provide direct access to the internal
arrays anymore - use the accessor functions instead.
4 years ago
Marek Roszko
8baea9004f
Bump oce plugin version to cache bust I think
Fixes https://gitlab.com/kicad/code/kicad/-/issues/9458
4 years ago
Marek Roszko
d3e5739364
Restore ability to process compound step shapes correctly
Fix #9458
4 years ago
Marek Roszko
f2783a86e0
On second thought, make the label dump runtime based on enabled log masks
4 years ago
Marek Roszko
0acd707650
Add step label dumping helper
4 years ago
Marek Roszko
4a3658027e
Simplify getting the absolute string tag for a label
It actually is roughly equivalent as TagList() does a loop to build the list but this is a bit cleaner to read
4 years ago
Marek Roszko
e77cdad6fa
Add useful helper function for getting label name
4 years ago
Marek Roszko
e81b516a82
Process step components by labels rather than shapes.
Labels are the true structure. Extracting purely just shapes won't get you instances of shapes that are virtually placed by reference labels.
Note, this may break the 3d placement of existing user models but they were most likely wrong loaded in the first place and losing any location data as simple as a boring offset from 0. There's no way to preserve the broken behavior and still allow complex step assemblies to locate correctly.
Fixes https://gitlab.com/kicad/code/kicad/issues/4181
4 years ago
Marek Roszko
8c8d66a181
Add some wxLogTrace to the oce loader
4 years ago
Seth Hillbrand
9a8d1246cc
We don't keep a CHANGELOG.TXT
Direct interested readers to AUTHORS.TXT instead.
4 years ago
jean-pierre charras
4670309ec1
kicad2step: fix broken handing of UTF8 filenames.
the conversion between UTF8 std::strings and wxString were missing in some places.
3D model: fix management of file having double ext .stp.gz
Fixes #9038
https://gitlab.com/kicad/code/kicad/issues/9038
4 years ago
Wayne Stambaugh
d36fbb864f
KiCad2Step code cleaning.
4 years ago
Wayne Stambaugh
11becc5a68
Fix 3D view format specifiers for all platforms (hopefully).
4 years ago
Wayne Stambaugh
c71ab17892
Fix 3D view format specifiers and remove overly aggressive assertion.
4 years ago
Wayne Stambaugh
728b160719
3D plugin debugging output fixes.
4 years ago
Wayne Stambaugh
4c457b5ed3
More NULL expunging.
4 years ago
Marek Roszko
c794a6ce7a
Add pdb install option for msvc
4 years ago
luz paz
f968fc8719
Fix source comment / documentation typos
4 years ago
Marek Roszko
dc28a91e16
Remove wx includes in x3d.h
4 years ago
Marek Roszko
c7345096f8
Use wxFFileInputStream explicitly when loading xml documents
wxFFile (FILE, buffered) is better than wxFile (syscalls)
5 years ago