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.
7 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
Simon Richter
b0f9864bc4
Clean up warnings from exception handlers
The exception objects caught are either not referenced at all, or only in
debug builds. This avoids the warnings for the unused variables.
9 years ago
Cirilo Bernardo
44ba343a7b
Changed test for invalid numeric strings in VRML files
9 years ago
Simon Wells
7a1d39ccc6
Add system to OCE includes, Change order of local includes for kicad2step
9 years ago
Simon Richter
ad088db6d2
Add more "override" markers.
9 years ago
Simon Richter
59c81976dc
Explicitly mark overriding functions.
9 years ago
Cirilo Bernardo
d3771d53ef
Updated VRML exporter and fixed some VRML related bugs
9 years ago
Dick Hollenbeck
7311f07eaf
SWIG Improvements
*) Extend SWIG support deeper into the BOARD class.
*) Move swig *.i files into a directory identified for SWIG, in preparation
for a parallel universe involving Phoenix's SIP.
*) Move swig files which will be common to both eeschema and pcbnew into
common/swig.
*) Sketch out a "common" python module, and plan on dovetailing that into a
libkicad_shared.{dll,so}
*) Add common/swig/ki_exceptions.i and define a macro HANDLE_EXCEPTIONS()
which is to be applied to any function which needs C++ to python
exception translation.
*) Move the test for SWIG tool into top level CMakeLists.txt file for use
in all python modules beyond pcbnew, i.e. eeschema and common.
*) Add SWIG_MODULE_pcbnew_EXTRA_DEPS which generates a better Makefile, one
which rebuilds the swig generated *.cxx file when one of its dependencies
change.
*) Re-architect the board.i file so that it can be split into multiple *.i
files easily.
*) Make some KIWAY from python progress, in preparation for Modular KiCad
phase III.
9 years ago
Nick Østergaard
caafcde585
Add KICAD_ prefix to build switches
KICAD_ prefix was added to the USE_OCE and USE_SCH_IO_MANAGER build
switches together with a small description to the devdocs from
compiling.md.
9 years ago
jp-charras
4a3cb050ed
Fix incorrect management of C locale in vrml plugin
9 years ago
Cirilo Bernardo
b656a8180a
Added 3D plugin for OCE; this plugin is activated by -DUSE_OCE=ON
9 years ago
Cirilo Bernardo
9b2dba2b1b
3D Viewer: fix swapped VRML material colors.
* Fix a bug in the VRML2 parser which exchanged the blue and green components
of the ambient lighting.
10 years ago
Cirilo Bernardo
dbef1d41c5
Remove dead code (Coverity CID 149046)
10 years ago
Cirilo Bernardo
47e2aab7de
PATCH: segfault in VRML2 plugin
The attached patch fixes a segfault in the VRML2 plugin
which is caused by Shape entities with empty vertex
lists.
10 years ago
Cirilo Bernardo
0ec15c9157
VRML plugin: VRML plugin. This patch modifies the behavior of the VRML name parser so that a name may be immediately succeeded by ] or }.
The previous behavior was to reject a valid name since the brace or bracket was considered an invalid character within a name.
10 years ago
Cirilo Bernardo
c2a60d14d7
3D: fix issues reported by Coverity scan
*** CID 143752: Incorrect expression (USELESS_CALL)
*** CID 143751: Incorrect expression (UNUSED_VALUE)
*** CID 143749: Uninitialized members (UNINIT_CTOR)
*** CID 143748: Uninitialized members (UNINIT_CTOR)
*** CID 143747: Uninitialized members (UNINIT_CTOR)
*** CID 143746: Uninitialized members (UNINIT_CTOR)
*** CID 143745: Uninitialized members (UNINIT_CTOR)
*** CID 143744: Uninitialized members (UNINIT_CTOR)
*** CID 143740: Null pointer dereferences (NULL_RETURNS)
*** CID 143739: Memory - corruptions (MISMATCHED_ITERATOR)
*** CID 143735: Integer handling issues (CONSTANT_EXPRESSION_RESULT)
*** CID 143734: Error handling issues (CHECKED_RETURN)
10 years ago
Cirilo Bernardo
20b40aba1c
Fixed bad delete/delete [] invocations and other warnings and errors as suggested by cppcheck
10 years ago
Cirilo Bernardo
18bb852030
Removed incorrect special treatment of commas within VRML files
10 years ago
Cirilo Bernardo
2dfd8064d4
Fix filename resolution within VRML2 Inline{}
10 years ago
Cirilo Bernardo
5e0e2538d0
Added comments to 3D Plugin CMake files regarding debugging output
10 years ago
Bernhard Stegmaier
5b0a250609
Fix compilation and install for OSX plus general code cleanup
10 years ago
Cirilo Bernardo
611d5de179
Removed code stubs for WWWInline support in VRML1; the construct will not be supported
10 years ago
Cirilo Bernardo
9195451e12
Switched SG* classes and plugin loader logging code from stderr to wxLogTrace
10 years ago
Cirilo Bernardo
c5984b207b
Changed IDF plugin debug log from stderr to wxLogTrace
10 years ago
Cirilo Bernardo
b0a26f32ef
Fixed bugs in VRML/X3D parser log code
10 years ago
Cirilo Bernardo
d2a13efc12
Changed VRML2 parser debug output from stderr to wxLogTrace
10 years ago
Cirilo Bernardo
d6af042c64
Revert accidental change to VRML logging levels
10 years ago
Cirilo Bernardo
14178ee521
Change logging of X3D and VRML1 parsers from stderr to wxLogTrace
10 years ago
Cirilo Bernardo
0d14fd0f9b
Fix scaling bug in vrml2_box.cpp
10 years ago
Cirilo Bernardo
684e41358a
Added support for VRML2 Inline{}
10 years ago
Cirilo Bernardo
970955d1a2
Improved non-compliant VRML1 model support by processing all top-level nodes (spec. mandates single top-level node which must be a grouping node)
10 years ago
Cirilo Bernardo
52e093087e
Relaxed VRML1 parsing rules to support yet more non-compliant models
10 years ago