Commit Graph

311 Commits

Author SHA1 Message Date
wmayer
61b62ee314 add class QuantityFormat to control user string of Quantity
do some code refactoration to reduce duplicate code
2016-08-06 19:06:29 +02:00
wmayer
f8dc307820 fix bug in factor for Pa in units system 2016-08-05 13:57:27 +02:00
wmayer
1e6981b089 use the unicode symbol for mu 2016-08-05 10:38:33 +02:00
wmayer
787cfc660d use const reference in schemaTranslate to avoid tmp. copy 2016-08-05 10:33:41 +02:00
wmayer
1783528282 improve whitespaces, fix typos 2016-08-05 10:00:12 +02:00
wmayer
affdb168b7 whitespace improvements 2016-08-04 17:45:04 +02:00
vdwalts
a42fd4b1fb Base: Units: add units for thermomechanical analysis 2016-08-04 17:45:04 +02:00
wmayer
c294c8bdbd + rename methods in Vector3 class
+ add convenience methods Cross and Dot to Vector3 class
+ fix bug in DistanceToLineSegment in Vector3 class
2016-07-30 15:14:47 +02:00
wmayer
56f5b9c568 + extend InventorBuilder to add an SoPolygonOffset node 2016-07-30 14:20:00 +02:00
wmayer
bcd19ad75b support any sequence type in init method of Vector class 2016-07-27 09:23:20 +02:00
wmayer
66dffafe88 implement method to convert escaped unicode to utf-8 encoded string 2016-07-24 16:14:40 +02:00
WandererFan
de7b7e50ab Use Units Decimals pref in Quantity::getUserString 2016-07-21 12:55:39 -04:00
wmayer
959b7c9809 issue #0002625: Wrong dimension (str) from Unit 2016-07-17 13:14:06 +02:00
wmayer
b3c7d8b3b4 improve whitespaces 2016-07-17 12:46:46 +02:00
Yorik van Havre
cb92f2b3ec Temporary workaround for the fractions issue in new imperial unit schema (using + between inches and fractions) 2016-07-09 14:01:07 -03:00
Yorik van Havre
4efe02c3cc Draft: Fixed buggy units display in Draft widgets 2016-07-03 18:41:33 -03:00
wmayer
6bf04e358e + support of seek operation on PyStreambuf 2016-06-14 13:59:02 +02:00
wmayer
ca6a33b3b8 + enable buffered writing in PyStreambuf 2016-06-13 19:22:15 +02:00
wmayer
135e6cf9de + prepare PyStreambuf for buffered writing 2016-06-12 18:20:31 +02:00
wmayer
a72c3a31e0 + optimize PyStreambuf::underflow() and fix failure for large files/buffers 2016-06-12 14:50:02 +02:00
wmayer
e4e018fe94 + fix possible crash when throw file exception 2016-06-11 16:25:06 +02:00
wmayer
38d5aebf4f + fix bug in PyStreambuf when reading binary data 2016-06-11 15:38:51 +02:00
wmayer
2e40dbb56e + extend PyStreambuf to write data 2016-06-11 11:54:01 +02:00
Yorik van Havre
26d25807fb Fixed buggy Building-US units schema 2016-05-29 12:15:35 -03:00
Yorik van Havre
71dd688d56 Added new units schema: US building (feet + inches + fraction) 2016-05-26 20:37:53 -03:00
Yorik van Havre
c8f12e5abb Added new units schema: Building Euro (everything in centimeters, areas/volumes in meters) 2016-05-25 19:10:48 -03:00
Wolfgang E. Sanyer
4f264cff28 Bug fix for ID#0002453
Note that the version of Bison and Flex used to generate the two .c files are newer than
in the last commit from 2010. Also,for anyine working on tbis in the future, dont forget
to run flex and bison on the .l and .y files respectively.
2016-05-20 10:05:18 +02:00
wmayer
3feaef3d2e + unify method names 2016-05-18 23:43:58 +02:00
DeepSOIC
7d7cf5c723 Attacher: add general purpose editor UI (python)
Added as PartGui.AttachmentEditor, and Part_EditAttachment gui command
2016-05-18 23:05:51 +02:00
wmayer
f3226a0867 + fix == operator of Rotation class, + add method isSame() 2016-05-18 18:08:40 +02:00
wmayer
c3c11a9b81 + implement rich compare protocol of Python interface for Placement & Rotation 2016-05-18 11:26:27 +02:00
David Pello
21ffb0305f BSD Porting fixes, conditional compilation and use of gettimeofday() 2016-05-15 12:08:43 +02:00
wmayer
bb342d88a3 + fixes #0002554: Py Quantity Constructor Angles 2016-05-14 19:30:43 +02:00
wmayer
a399368684 + if getcwd fails then use '.' 2016-05-11 09:24:29 +02:00
wmayer
2f3a793faf + on Windows use the unicode version to get cwd
+ on other platforms use getcwd in a platform independent way
2016-05-10 22:47:14 +02:00
Wolfgang E. Sanyer
5540dd81c2 Fixed bug ID0002513, where Mesh.export failed.
The failure occered when Mesh.export was passed just a filename, such as 'out.stl'. If
'/some/path/out.stl' was passed it succeeded.
2016-05-10 22:29:40 +02:00
wmayer
62ef3dd923 + add new class ParameterSerializer to load and save parameter files 2016-04-29 17:43:07 +02:00
jriegel
c88a8336dc Several enhancements
+ PLMXML Reader
+ Some meta information sorting
+ Making ProductRefs invisibly in Tree
2016-04-12 18:12:03 +02:00
jrheinlaender
b5bc152839 Fix compile error after rebase 2016-04-12 18:11:49 +02:00
jrheinlaender
f63a8d9ea6 Fixed build error on Ubuntu 2016-04-12 18:11:47 +02:00
Stefan Tröger
d50f7f1787 basic infrastructure 2016-04-12 18:11:46 +02:00
jriegel
5f8ebafd7d switch PartDesign to Bodies 2016-04-12 18:11:45 +02:00
jriegel
a037ffa728 First work for LibPack8 and PropertyUUID 2016-04-12 18:11:44 +02:00
Eivind Kvedalen
d62f9425fb Quantity: Added -= and += operators. 2016-04-02 12:01:04 +02:00
Ian Rees
7f42b2b8fb More fixes around Python exit codes 2016-03-27 13:01:04 +13:00
wmayer
8675778a68 + fix crash when raising SystemExitException if not called inside Python function 2016-03-21 18:50:57 +01:00
Bruce Lacey
05076993d6 Propagate sys.exit(code) up the call stack to the shell
SystemExitException is instantiated and thrown by Base::Interpreter
whenever the python interpreter executes a sys.exit(<exitCode>) call.
However, in the current implementation, the SystemExitException
effectively swallows the <exitCode> hence under this change,
SystemExitException has been extended to save the <exitCode> passed to
the sys.exit() call when it is instantiated and provides a new
getExitCode() accessor method to retrieve the <exitCode> in a
try/catch block.  MainGui.cpp was change to pass the corresponding
<exitCode> to the system exit() call so it is accessible in the shell.
2016-03-21 18:28:29 +01:00
wmayer
3f2d1e458d + issue #0002468: freecad-0.15.4671/src/Base/Handle.cpp:61: bad test ? 2016-03-09 22:13:05 +01:00
wmayer
ff5e147f5e + terminate xerces at program exit 2016-03-09 15:52:42 +01:00
vginkeo
8ec2665c1c FEM: C++98 compatible fix to constraint displacement reference deletion, update vertice, edge, face selection 2016-02-29 13:06:16 +01:00