Commit Graph

1495 Commits

Author SHA1 Message Date
Abdullah Tahiri
9bb2210c92 Part: Geometry extensions set interface
=======================================

unique_ptr is a move only type. Therefore it may only take an rvalue.

It does not make sense a pass by value for move only types (Item 41).
2019-07-14 12:37:31 +02:00
Abdullah Tahiri
460bb59320 Geometry extensions: remove unnecessary smart pointer deletion
==============================================================

When the geometry object is destroyed, std::vector's destructor is called, which in turn calls the destructor of the smart pointers.

If a weak_ptr corresponding to one of those shared_ptr is locked (elsewhere, if FC were multithread),
the underlaying resource will not be freed until said locked weak_ptr goes out of scope. It will then.
2019-07-14 12:37:31 +02:00
Abdullah Tahiri
b5f5d1c32f Part: GeometryStringExtension to extend a geometry by a string 2019-07-14 12:37:30 +02:00
Abdullah Tahiri
9cb2863a2e Part: Expose GeometryIntExtension python type 2019-07-14 12:37:30 +02:00
Abdullah Tahiri
7828c34ffe Part: Standard geometry extension adding an integer value 2019-07-14 12:37:30 +02:00
Abdullah Tahiri
1e2c627f26 Part: Excise GeometryExtension from Geometry 2019-07-14 12:37:30 +02:00
Abdullah Tahiri
ef30cc2527 Part: Geometry Python interface to get/set an extension 2019-07-14 12:37:29 +02:00
Abdullah Tahiri
2c65c5681f Part:: Bug fix in geometry set extension 2019-07-14 12:37:29 +02:00
Abdullah Tahiri
718d79fa94 Part: Geometry Extension Python object 2019-07-14 12:37:29 +02:00
Abdullah Tahiri
aedfb6a6a3 Geometry Extension based on smart pointers 2019-07-14 12:37:28 +02:00
Abdullah Tahiri
f977f47de3 Geometry: Extensions - release any allocated dynamic memory 2019-07-14 12:37:28 +02:00
Abdullah Tahiri
2400d63d70 Part: Geometry Extensions 2019-07-14 12:37:28 +02:00
wmayer
787f5184e8 Parametric refinement feature 2019-07-08 14:37:00 +02:00
mwganson
9a3fe1fb78 TaskCheckGeometry -- log geometry check errors to report view 2019-06-26 12:13:23 +02:00
mwganson
961ffce93e TaskCheckGeometry settings panel with runBOPCheck option 2019-06-26 12:02:43 +02:00
Abdullah Tahiri
e72b48e0cf ViewProviderAttachExtension: check for attach extension 2019-06-23 01:03:37 +02:00
Abdullah Tahiri
62975d2fcf Part Gui: Update attachment icon on attach extension change 2019-06-23 01:03:36 +02:00
Abdullah Tahiri
680364b171 Part Gui: New ViewProvider extension for overlaying icons related to Part::AttachExtension 2019-06-23 01:03:36 +02:00
wmayer
1031644fab improve doc string of Part.sortEdges 2019-06-20 14:41:50 +02:00
Yorik van Havre
236f890864 Merged translations from crowdin 2019-06-17 20:06:59 -03:00
wmayer
3590b65b33 issue #0003921: Crash when opening document with datum point intersecting line and plane 2019-06-16 19:31:06 +02:00
wmayer
fb94e46db9 improve exception handling Shape.distToShape 2019-06-13 21:49:13 +02:00
wmayer
1b26173580 use INCH instead of IN when setting units for STEP or IGES export 2019-06-13 12:40:01 +02:00
wmayer
b60a736c0d fixes 0004010: Box Selection + Part -> MakeCompound will crash FreeCAD 2019-06-12 11:20:48 +02:00
Abdullah Tahiri
aa9cd0d91c Partial Restore: ensure line segment length when x coordinate is exactly zero
fixes #4012
2019-06-08 16:52:49 +02:00
wmayer
13480d6d9c do some security checks to make sure Py::Module is valid 2019-06-03 17:57:52 +02:00
wmayer
e7236d7229 issue 0003986: Changing view attributes does not trigger 'File changed' status 2019-05-26 18:09:41 +02:00
easyw
6f2a611b66 Adding Part_BoxSelection.svg icon to Part Menu 2019-05-23 14:51:42 -04:00
easyw
eafe889f6c adding Part_BoxSelection.svg icon 2019-05-21 07:12:57 -04:00
easyw
95cac520d4 adding Part_BoxSelection icon 2019-05-21 07:12:57 -04:00
wmayer
b547373f35 fix Part build failure 2019-05-16 12:46:03 +02:00
Abdullah Tahiri
8550ce91ee PCH: Enable PartGui PCH 2019-05-16 12:46:03 +02:00
wmayer
f6ee90557d also support shapetype parameter in Part.makeRevolution() if first argument is an edge 2019-05-12 11:33:38 +02:00
Yorik van Havre
ed386410bc Merged latest translations from crowdin 2019-05-10 19:19:37 -03:00
Abdullah Tahiri
df38102017 PCH: Part GUI 2019-05-03 23:15:25 +02:00
Abdullah Tahiri
a56658489b Part: Make 3rd party libraries into PCH 2019-05-02 07:09:22 +02:00
wmayer
43bdef67d6 continue PCH on Part module 2019-05-01 16:10:38 +02:00
Abdullah Tahiri
3f42ee7664 Part: Missing PCH header 2019-04-30 15:35:25 +02:00
tomate44
fe56e51e08 add a python method to cut holes in a Part.Face, from a list of wires 2019-04-29 12:33:43 -03:00
wmayer
0ed5b77917 activate pCH on Part module 2019-04-28 15:33:25 +02:00
wmayer
684ac9db9a make colors of measurements customizable 2019-04-05 13:33:29 +02:00
luz.paz
e7489c079c More misc. typos 2019-03-31 11:42:37 +02:00
luz.paz
c985f9ee79 Misc typos and whitespace fixes
Found via `codespell -q 3 -I ../fc-word-whitelist.txt -S ./.git,*.po,*.ts,./ChangeLog.txt,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/CXX,./src/zipios++,./src/Base/swig*`
2019-03-31 11:42:36 +02:00
joha2
881756079c MeshToSolid: progress indicator and slightly modified sewing tolerance dialog 2019-03-31 11:30:03 +02:00
wmayer
741533941c fix handling of OCC exceptions, fix -Wunused-but-set-variable, fix -Wunused-parameter 2019-03-24 02:17:54 +01:00
wmayer
3c7d5bc151 Improve project on surface dialog:
make function undo/redoable
work on document that was active when the dialog was opened
handle case when object or document is deleted while dialog is open
2019-03-22 17:18:12 +01:00
MA-DEVELOP\apeltauer
64957a55eb transform sub shapes to global position 2019-03-22 17:18:12 +01:00
MA-DEVELOP\apeltauer
1ff37ee99c improve creating the edges/wire in parametric space 2019-03-22 17:18:11 +01:00
MA-DEVELOP\apeltauer
313a0be207 make a face copy 2019-03-22 17:18:11 +01:00
MA-DEVELOP\apeltauer
79af25d0ab make a explicit copy 2019-03-22 17:18:11 +01:00