KmolYuan
495a285c7e
Fix PyPI deployment.
2019-09-24 23:10:02 +08:00
KmolYuan
bc674db3d3
Merge branch 'python' of https://github.com/KmolYuan/solvespace into python
2019-09-24 14:02:55 +08:00
KmolYuan
67a87605db
Fix PyPI readme format.
2019-09-23 23:29:16 +08:00
KmolYuan
0b2cfc4201
Update badges.
2019-09-23 21:23:03 +08:00
KmolYuan
da23826f19
Add Windows build.
2019-09-23 21:06:58 +08:00
KmolYuan
d9abfe3d52
Add Windows build.
2019-09-23 16:48:18 +08:00
KmolYuan
cfe0c75f30
Update deployment config.
2019-09-23 12:55:51 +08:00
KmolYuan
c05df29b3b
Adjust CI config as matrix.
2019-09-20 16:58:10 +08:00
KmolYuan
813217bf00
Merge branch 'master' into python
2019-09-20 15:14:15 +08:00
Yuan
e9e0fd6cfe
Merge pull request #1 from solvespace/master
...
Update from original master.
2019-09-20 15:12:59 +08:00
phkahler
5d78f993ce
Make helix origin create a line even if it's in a different group.
...
Helix should always make a line for the axis.
2019-09-20 01:09:58 +00:00
phkahler
162897eca7
Reimplement DivPivoting as DivProjected.
...
The old implementation was an approximation, whereas the new one is exact.
2019-09-20 01:09:25 +00:00
KmolYuan
88201db0ea
Remove "setup_requires" option.
2019-09-13 14:36:55 +08:00
EvilSpirit
7f9117b2bf
Calculate area of selected faces, if any.
2019-09-11 10:38:10 +00:00
EvilSpirit
915f55aabc
Show volume of current group alongside total volume.
2019-09-11 10:38:10 +00:00
Ryan Pavlik
a0e992374d
Clean up virtual, override, default, and void params. NFC.
...
Found by clang-tidy.
2019-09-11 10:31:07 +00:00
Ryan Pavlik
ae417fc14c
Use emplace_back. NFC.
...
Found by clang-tidy.
2019-09-11 10:31:07 +00:00
Ryan Pavlik
34dccbf935
Don't call static methods through an instance. NFC.
...
Found by clang-tidy.
2019-09-11 10:31:07 +00:00
Maximilian Federle
219df31c53
Linux: add support for building snap packages.
2019-09-11 10:12:53 +00:00
Ryan Pavlik
b1e280e75f
Fix undefined behavior in IdList::end().
2019-09-11 09:44:30 +00:00
Ryan Pavlik
ec13839c92
Modify clang-format config to avoid single-line things. NFC.
2019-09-11 09:43:03 +00:00
KmolYuan
1c18ca015e
Replace "__class__" with "type()".
2019-09-10 17:34:12 +08:00
KmolYuan
d6dc4eaf6e
Update stub files.
2019-09-10 15:34:13 +08:00
Ryan Pavlik
bedea1ef3c
Avoid undefined behavior from out-of-range access. NFC.
2019-09-10 06:44:34 +00:00
Ryan Pavlik
b8ee0e941b
Remove extraneous semicolon. NFC.
2019-09-10 06:44:34 +00:00
Ryan Pavlik
78819ffca3
Fix "virtual function without virtual destructor" warning. NFC.
2019-09-10 06:44:34 +00:00
Ryan Pavlik
c959af1149
Fix a comment. NFC.
...
Found by clang-tidy.
2019-09-10 06:44:34 +00:00
Ryan Pavlik
3e566d7e67
Remove std::move from trivially-copyable types. NFC.
...
Found by clang-tidy
2019-09-10 06:44:34 +00:00
Ryan Pavlik
c0904e2ba8
Use IsEmpty() or .empty() to check if a container is empty. NFC.
...
Most found by clang-tidy.
2019-09-10 04:22:21 +00:00
Ryan Pavlik
61c0167ad7
Fix TTF iteration in case of an empty list.
2019-09-10 04:22:07 +00:00
Ryan Pavlik
15838dc5a1
For loop cleanup. NFC.
2019-09-10 04:21:57 +00:00
Ryan Pavlik
231dff6cd9
Add and use List::Last(). NFC.
2019-09-10 04:20:38 +00:00
whitequark
c5f3cd151a
Use the same @todo hot comment style everywhere.
2019-09-10 04:07:42 +00:00
Ryan Pavlik
d514a26f92
Fix use-after-free in revolve and helix.
...
Pointers get invalidated if a list has to be re-allocated.
CopyEntity can do that.
2019-09-10 04:07:42 +00:00
Ryan A. Pavlik
a4c0022815
Fix a warning about a virtual destructor.
2019-09-10 03:33:05 +00:00
Ryan A. Pavlik
43b2261e9c
CLI/testsuite: do not crash if a dialog is displayed.
2019-09-10 03:23:31 +00:00
KmolYuan
85e6277d2f
Add return None annotations.
2019-09-06 22:18:11 +08:00
KmolYuan
2606bfeb8f
Add test suit option of "setup.py".
2019-09-06 12:43:52 +08:00
KmolYuan
dcd2b1385a
Input requirements from the pip list.
2019-08-31 11:54:37 +08:00
KmolYuan
a5d120520e
Remove --user option.
2019-08-30 22:23:52 +08:00
phkahler
22e4011cb6
use std::vector in helix operations instead of fixed length array. Remove limit on number of sections. Delete definition of Revolved struct.
2019-08-25 14:30:37 +00:00
phkahler
e22c522c81
use std::vector in lathe operations instead of fixed length array
2019-08-25 14:30:37 +00:00
phkahler
2dd50d0f3a
Only allow lathe, revolve and helix for 2d sketches.
2019-08-25 14:30:37 +00:00
Ryan Pavlik
13820bf27d
Revert "IdList::RemoveTagged switch to std::remove_if from iteration. NFC."
...
This reverts commit 0bb6a348e3
.
2019-08-20 23:28:43 +00:00
Ryan Pavlik
b284e80785
Improve NextAfter. NFC.
2019-08-20 15:57:11 +00:00
Ryan Pavlik
533ca618eb
Fix a manual manipulation of List::n. NFC.
...
This broke encapsulation and thus caused problems for any deeper changes
to List.
2019-08-20 15:57:11 +00:00
Ryan Pavlik
dd738dd1fc
Add Last(). NFC.
...
Counterpart of First(). standard library calls this "back()".
2019-08-20 15:57:11 +00:00
Ryan Pavlik
610e35f6dd
Improve Clear(). NFC.
...
Was getting segfaults near here with another patch since removed from the branch.
Moving these assignments after the memfree means they still have
useful data when debugging a crash in memfree.
2019-08-20 15:57:11 +00:00
Ryan Pavlik
b9d035c805
Improve MoveSelfInto. NFC.
...
std::swap is an idiomatic way to do a move.
2019-08-20 15:57:11 +00:00
Ryan Pavlik
9fd09ddd8a
Add IdList::AllocForOneMore() based on List. NFC.
...
Also modifies a sizeof call.
2019-08-20 15:57:11 +00:00