luz paz
f968fc8719
Fix source comment / documentation typos
5 years ago
Marek Roszko
dc28a91e16
Remove wx includes in x3d.h
5 years ago
Marek Roszko
c7345096f8
Use wxFFileInputStream explicitly when loading xml documents
wxFFile (FILE, buffered) is better than wxFile (syscalls)
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
Marek Roszko
56c4c845e8
Enum class WRL1NODES
5 years ago
Marek Roszko
88179ec52d
Bump version
5 years ago
Marek Roszko
130d64df48
enum class WRL1_ORDER
5 years ago
Marek Roszko
737a23f7e6
enum class WRL1_BINDING
5 years ago
Marek Roszko
57dbb7def0
enum class WRL2NODES
5 years ago
Seth Hillbrand
01426d914a
Fix merge error in stpz import
Don't exit early when loading files. Also adds a busy cursor as STEP
loading can take a while.
5 years ago
Seth Hillbrand
1d3159c1cb
Add support for PKZIP-based stpZ files
FreeCAD uses gzip-based stpZ files but many programs will compress using
the archive format of PKZIP (e.g. WinZIP). This handles the archive
format, taking the first file from the archive, which by the standard
should be the STEP file
Fixes https://gitlab.com/kicad/code/kicad/issues/5376
5 years ago
Marek Roszko
404eb535be
Correct fix to the TranslateToSG empty matindex case
5 years ago
Marek Roszko
22aa9132a3
Replace crash path in vrml1_faceset with pink!
5 years ago
Marek Roszko
7565f60a03
Swap wxFileInputStream/wxFileOutputStream for the buffered kind
5 years ago
Seth Hillbrand
cce11e40a1
Remove errant printf
5 years ago
Seth Hillbrand
75c2d1a0bf
Be diligent in our search for color information
Just because we find a label reference does not mean that is where the
color is stored. We do an exhaustive search through the hierarchy for
the correct color data
Fixes https://gitlab.com/kicad/code/kicad/issues/6107
5 years ago
Seth Hillbrand
4085757aeb
Remove beginning/ending spaces in translations
Adding space padding makes translations more difficult by increasing
string counts
5 years ago
Ian McInerney
b59c7e8632
Add stp.gz as a valid compressed step extension in the chooser dialog
Fixes https://gitlab.com/kicad/code/kicad/issues/5429
5 years ago
Seth Hillbrand
b51ca1ab0e
Bump OCE Plugin version
We modified how we search for color information. Changing the version
data will for models to reload instead of keeping the cached data with
(possibly) missing color information
5 years ago
Seth Hillbrand
a2168c6add
Seach full model for color information
Assemblies may not have their face information in the top level of the
file. Search recurses to get the explicit shape in sub assemblies as
well.
Fixes https://gitlab.com/kicad/code/kicad/issues/5163
5 years ago
Mark Roszko
a28a0e14ba
Fix conversion warnings
5 years ago
Seth Hillbrand
f1b1e59cf0
Catch error when decompressing
Make sure we catch errors when thrown by zlib
Fixes https://gitlab.com/kicad/code/kicad/issues/5376
5 years ago
Seth Hillbrand
17de78d1dd
3D: fix typo including extension '.'
Fixes https://gitlab.com/kicad/code/kicad/issues/5360
5 years ago
Seth Hillbrand
ccdcdf5071
Deal with case-sensitive extensions
Standards that specify differing case in the extension were designed by
marketing departments and should be rejected on sight. But here we are.
5 years ago
Seth Hillbrand
a8ade66fb6
3d: correct expanded model location
When expanding WRZ, make sure we are reading the new file and that it
has been created in the user's temporary directory.
Fixes https://gitlab.com/kicad/code/kicad/issues/5360
5 years ago
Seth Hillbrand
f5371ee65d
Fix build issue on MacOS
5 years ago
Ian McInerney
c8917a0951
Cleamup some compiler warnings
5 years ago
Seth Hillbrand
a38c2aad1f
ADDED: Support compressed STEP and VRML files
This adds support for opening .stpZ, step.gz and .wrz files where the
files have been compressed using ZIP or gzip according to the "standard"
published by the MBx volunteer forum at
https://www.cax-if.org/documents/rec_prac_file_compression_v12.pdf
Fixes https://gitlab.com/kicad/code/kicad/issues/2479
5 years ago
Seth Hillbrand
9f09c3872f
Ensure file reads always use the C-locale variant
Str2Double assumes current locale. We usually switch the locale when
reading files but we should be using the function that explicitly gets
the C-locale conversion.
6 years ago
Ian McInerney
e4b6487fca
Overhaul compiler warnings infrastructure
* Track our warnings separate from normal flags
* Remove all warnings from the SWIG code
* Add more GCC warnings
6 years ago
Ian McInerney
7bda8178d1
Move library includes to main CMake file
Placing them behind the SYSTEM directive tells CMake to tell
the compiler they are system libraries, so it shouldn't show
warnings created from them.
6 years ago
jean-pierre charras
5097d14875
More about do not mark translatable strings used in debug messages.
6 years ago
Seth Hillbrand
7c28c3838a
Comment-only changes
Makes class comments conform to coding standards
6 years ago
Mark Roszko
ae785194ce
Silence/fix double to float conversion warnings
6 years ago
Seth Hillbrand
6983c56cf8
Use const references where possible
This avoids copy cost on local vars where we only read.
6 years ago
Seth Hillbrand
b5f021ff9f
Cleanup: Replace push_back with emplace_back
In cases where we create a new item and immediately push into a
container, the emplace idiom is faster and more efficient.
6 years ago
Seth Hillbrand
4d2e953f42
Cleanup: Replace C-only deprecated headers
This replaces headers deprecated by C++14 with their equivalent
replacement
6 years ago
Seth Hillbrand
03813b3751
3d: Fix double-clear in oce loadmodel
7 years ago
Seth Hillbrand
e95d06e811
OCC: Fix issues for OpenCascade 7.3
OpenCascade 7.3 deprecates some TK libraries that were not required by
KiCad, therefore we should not include them in the compile.
Also correct missing compiles for STEP import/export induced by 584409b2e when using OCCT. There is no effect on OCE to this change.
8 years ago
Seth Hillbrand
584409b2ef
Make OpenCascade more secondary
The opencascade patch intrusively checked against libraries but broke
some build scripts. This restores the default cmake OCE behavior that was
changed by 2bab30d9a and makes the OpenCascade search truly secondary.
8 years ago
Seth Hillbrand
2bab30d9ac
Allow Kicad to use OpenCascade
Adds the option of using OpenCascade not just the community edition.
Fixes: lp:1628950
* https://bugs.launchpad.net/kicad/+bug/1628950
8 years ago
Seth Hillbrand
6fb47faebd
Workaround for IGES import bug in OCE-0.18
This changes the IGES import parameter precision to be file-defined
instead of hard-coded in KiCad. OCE-0.18 does not handle faces with
a set of points whose approximation creates a single point.
By allowing the file to set the precision level, we leave it to the
generating program to create a file with non-degenerate faces.
Fixes: lp:1738872
* https://bugs.launchpad.net/kicad/+bug/1738872
8 years ago
Seth Hillbrand
c69db6cf8f
Adding rounded rect and custom pad shapes to VRML export
Fixes: lp:1753552
* https://bugs.launchpad.net/kicad/+bug/1753552
8 years ago
Jean Philippe EIMER
e0f7958dbd
Compatibility fixes for GLM 0.9.9
Fixes: lp:1746546
* https://bugs.launchpad.net/kicad/+bug/1746546
8 years ago
Camille
3168d03fe5
Fix unnecessary copy initialization detected by clang-tidy
8 years ago
Marvin Schmidt
69974b73db
Remove some extra semicolons
8 years ago
Cirilo Bernardo
5013ea2e8e
Added comments on skipped patterns in VRML2 parser
9 years ago
Cirilo Bernardo
68bcdec87e
Workaround for non-ASCII filenames in Windows
9 years ago
jean-pierre charras
11dcb76fc9
Add -Wshadow compil option, if exists to warn about shadowed variables.
Swig auto generated .cxx file has a lot of shadowed variables, so this option cannot be used to compil all files.
9 years ago
Cirilo Bernardo
2b2b73ee4b
Fix bug: Footprint add 3D shape recognizes only files with lower case ext on Windows
Fixes: lp:1659027
https://bugs.launchpad.net/kicad/+bug/1659027
9 years ago