wmayer
40ba077f85
Part: [skip ci] print warning only if eof bit is not set, i.e. ignore it for empty files
2022-03-17 20:24:06 +01:00
Uwe
e4777d16f8
[Part] remove unused variable
...
MSVC complained about it
2022-03-12 15:44:27 +01:00
wmayer
ec8353ba99
Part: refactor PropertyPartShape::SaveDocFile and PropertyPartShape::RestoreDocFile
...
Set exception mask of std::istream::failbit | std::istream::badbit to istream to make sure it raises an exception for corrupted input files.
See: https://forum.freecadweb.org/viewtopic.php?p=536747
2022-03-11 22:06:38 +01:00
wmayer
d80e83a517
Part: set explicit format version number for BRep files to support all OCC versions
2021-12-11 23:31:41 +01:00
luz paz
e0ab0382b3
Part: remove py2 code
2021-04-25 11:29:35 +02:00
wmayer
8dfce38041
Part: [skip ci] implement getPyObject/setPyObject of TopoShape class
2020-10-16 13:46:44 +02:00
luz.paz
17ada69518
Part: [skip ci] fix header uniformity
...
This PR fixes header uniformity across all Part WB files
2019-12-22 00:59:47 +01:00
wmayer
e48c52c480
force strict ISO C++ (-Wpedantic)
...
for Drawing, Image, Inspection, Mesh, MeshPart, Part, Path, Points, Raytracing, ReverseEngineering, Spreadsheet, Start, Surface, Web
TODO: fix several -Woverflow in area
2019-09-18 11:32:42 +02:00
wmayer
fb3eb85586
add missing std:: namespace to build on Debian 10
2019-08-21 16:31:00 +02:00
wmayer
6795a28c99
add missing std:: namespace to build on Debian 10
2019-08-21 00:12:50 +02:00
Abdullah Tahiri
216926233f
Part: Make 3rd party libraries into PCH
2019-05-02 07:09:22 +02:00
wmayer
047a18ccb5
PVS: V601 The bool type is implicitly cast to the double type
...
PVS: V668 There is no sense in testing pointer against null, as the memory was allocated using the 'new' operator. The exception will be generated in the case of memory allocation error
2019-03-13 14:09:10 +01:00
wmayer
1c7a41af58
fix -Wignored-qualifiers
2018-08-19 12:38:57 +02:00
Markus Lampert
e13c09235f
Changed all catch types to references for polymorphic exceptions.
2018-08-08 15:45:30 +02:00
luz.paz
424cd49398
Typos and whitespace fixes
2018-08-07 11:13:31 -04:00
wmayer
4bf5a5f3b3
backport to OCCT < 6.8
2018-08-07 16:56:33 +02:00
Zheng, Lei
4028057b3c
PropertyPartShape: remove CopyShapeOnSave parameter
2018-08-06 19:01:37 +02:00
Zheng, Lei
94940c8471
PropertyPartShape: fix brep shape saving without copy
2018-08-06 19:01:09 +02:00
Zheng, Lei
54904d2f16
PropertyPartShape: add parameter to disable copy on save
...
By default PropertyPartShape uses BRepBuilderAPI_Copy to copy the shape
on saving, to get rid of the triangulation. However, OCCT seems to
perform a deep copy and shape sharing information is lost.
A new parameter, BaseApp/Preferences/Mod/Part/General/CopyShapeOnSave,
is added to disable this.
2018-08-06 19:00:58 +02:00
looooo
275db827aa
py3: Part: App: gathering commits relevant for Mod/Part/App
2017-03-01 17:10:46 +01:00
wmayer
d5e9afa52b
py3: ported Part to python3
2017-03-01 16:38:53 +01:00
Stefan Tröger
28c21914d0
Extensions: Handle static/dynamic cast
...
After the change of the virtual inheritance position in the inheritance chain some
formally added dynamic_cast's can be reverted to the old behaviour
2016-10-08 12:48:34 +02:00
Stefan Tröger
3e1ba47d61
Extensions: Handle new dynamic_cast's
2016-10-08 12:48:34 +02:00
Stefan Tröger
6fa964c53f
Extensions: Introduce classes and port App groups
2016-10-08 12:48:34 +02:00
wmayer
5bd455cc76
fix -Wdeprecated in Part & FreeCADGui
2016-09-22 15:32:49 +02:00
wmayer
7d38edb065
fix -Wextra in Part
2016-09-22 11:49:28 +02:00
wmayer
26865522ea
issue #0002666 : Error on Save File
2016-08-12 13:33:48 +02:00
Wolfgang E. Sanyer
d1d2f1f811
This commit adds getShape and setShape to TopoShape
2016-08-06 23:42:55 +02:00
wmayer
d962fda983
+ removed unneeded pure virtual method getFaces from PropertyComplexGeoData
...
+ extend interface of ComplexGeoData::getPoints to also return normals if available
2016-03-04 17:16:57 +01:00
wmayer
7353ac1ca4
+ issue #0002245 : BRep File cannot be written
2015-10-17 17:13:27 +02:00
Mateusz Skowroński
05f95c0506
Fix files encoding. Go from ISO8859-1 to UTF-8.
2015-09-21 19:50:49 -03:00
Eivind Kvedalen
9f452674fd
Part: Added getPaths(...) method to PropertyPartShape.
2015-09-21 14:51:04 +02:00
wmayer
eb05da7cd7
+ fixes #0001237 : the project file is not saved when the /tmp directory is full, but the user is not aware of it
2015-09-19 18:59:22 +02:00
wmayer
ef203bc260
+ fixes #0001238 : Preferences: set temp files directory
2015-09-19 16:07:33 +02:00
wmayer
22b7fb660c
+ save Brep in binary format for recovery files
2015-09-16 22:58:47 +02:00
wmayer
ad877e1ae1
+ Make Python API more pythonic
2013-10-11 13:57:05 +02:00
jriegel
ec0a5ccb0c
Merge branch 'refs/heads/double-precision-werner'
...
Conflicts:
src/App/Document.cpp
src/App/PropertyGeo.cpp
src/App/PropertyStandard.cpp
src/Base/Reader.cpp
src/Base/Reader.h
src/Gui/propertyeditor/PropertyItem.cpp
src/Mod/Fem/Gui/ViewProviderFemMesh.cpp
src/Mod/Inspection/Gui/ViewProviderInspection.cpp
src/Mod/Mesh/App/MeshProperties.cpp
src/Mod/Part/App/TopoShapeFacePyImp.cpp
src/Mod/PartDesign/App/FeatureRevolution.cpp
2013-09-26 00:05:05 +02:00
jriegel
abf1623f07
Add SchemaVersion to RestoreDocFile to distinquish double from float binary
2013-09-24 11:01:09 +02:00
wmayer
609072f140
+ in setPyObject() only use classes derived from Base::Exception
2013-07-05 15:29:04 +02:00
wmayer
bb63f7a4d5
Remove FileVersion from RestoreDocFile, convert point data back to floats
2013-03-29 15:23:51 +01:00
jrheinlaender
ad6444053b
Added FileVersion attribute to XML format to distinguish legacy float binary files from new double binary files
2013-03-27 11:47:18 +04:30
wmayer
be98bfc69d
Add missing break statement in switch block
2012-11-23 12:29:54 +01:00
wmayer
09e7c897d0
Keep faces colors on boolean operations
2012-06-01 13:07:29 +02:00
wmayer
050a7316ef
+ make try/catch block around sortEdges
...
+ set shape immutable when getting from feature
+ no use of tuples in removeShape
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5402 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2012-01-12 14:04:19 +00:00
wmayer
e741f3a2d4
+ make copy of shape and remove triangulation before exporting
...
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5205 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-12-02 11:10:23 +00:00
wmayer
120ca87015
+ unify DLL export defines to namespace names
...
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5000 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-10-10 13:44:52 +00:00