Commit Graph

13732 Commits

Author SHA1 Message Date
Bernd Hahnebach
f722e98777 Arch: import IFC, add comment 2019-08-21 06:57:53 +02:00
Yorik van Havre
efd9473f23 Arch: Further cleaning of IFC importer - moved aux functions to importIFCHelper 2019-08-20 19:44:19 -03:00
wmayer
6795a28c99 add missing std:: namespace to build on Debian 10 2019-08-21 00:12:50 +02:00
Yorik van Havre
aa344ffb39 Arch: Moved building of IFC relationship tables into separate function 2019-08-20 17:59:30 -03:00
Yorik van Havre
037be677cd Arch: Moved recycler class to exportIFC helper 2019-08-20 16:58:23 -03:00
triplus
83fb054a22 OpenSCAD fix missing icons
Forum discussion:

https://forum.freecadweb.org/viewtopic.php?f=21&t=38616
2019-08-20 10:32:02 -03:00
vocx-fc
f5f4fd5e07 Draft: _PointArray, removed the tabs, and replaced with four spaces; mixing spaces and tabs may cause a syntax error in Python 3 2019-08-20 10:31:01 -03:00
luz.paz
4f9aac9a4b AddonManager: Add workfeature icon
Closes https://github.com/Rentlau/WorkFeature-WB/issues/9
2019-08-20 10:30:16 -03:00
carlopav
b57132d53d Draft Edit: enable Part::Line editing
Implemented editing part lines. Preview still to come.
2019-08-20 10:29:50 -03:00
carlopav
ed021a042c Draft Edit: enable editing Part::Box
Added code to handle editing of part objects, ATM only for Part::Box
2019-08-20 10:29:50 -03:00
carlopav
4383652ff4 Draft Edit: bugfix when Draft is activated without document
Fixed bug when Draft is activated but no document is active
2019-08-20 10:29:50 -03:00
carlopav
644c2bae46 [Draft] Small bugfix in bezcurve editing
Solved bug when clicking on empty space while editing continuity.
2019-08-20 10:29:50 -03:00
carlopav
5e24782f40 [Draft] Draft Edit: completed subcommand key event
Completed subcommand key edit
2019-08-20 10:29:50 -03:00
carlopav
ef8ce0a820 [Draft] Draft Edit - various fixes (fixes #3537)
https://forum.freecadweb.org/viewtopic.php?f=3&t=29743&start=70
To solve issue with Hidpi display  (fixes #3537), but also to improve node selection, I used some of @looo code from pivy graphics into the tool. 
So:
- i got rid of the action function
- i separated selection and editing callbacks
- i got the mouse position from the callback event and not from FreeCADGui.ActiveDocument.ActiveView.getCursorPos()
- i rewrote the node selection mechanism using soraypickaction instead of getObjectInfo() and getObjectsInfo()
- i tried to put a bit of order in all the mess i made and try to document it.
- also fixed some of the preview code.
- i'm really really sorry for not being able to split the commit in multiple one, but the changes are huge and i was just able to separate minor things...
2019-08-20 10:29:50 -03:00
Dion Moult
43418e7505 Add undefined IFC type data - this is special to freecad and not part of the IFC spec 2019-08-20 13:31:57 +02:00
Dion Moult
0fa3e789bf Convert old json files to include more metadata as per IFC4 standard 2019-08-20 13:31:38 +02:00
Dion Moult
5971203f47 Add contexts file for IFC2X3 2019-08-20 13:31:33 +02:00
Yorik van Havre
4ca71c16d4 Draft: removed degub message 2019-08-19 13:42:29 -03:00
Bernd Hahnebach
61a13287c2 Arch: workaround to make Arch loading without errors, but still this needs to be fixed 2019-08-19 09:14:49 +02:00
sliptonic
163013c92f Merge branch 'master' into fixes/tooltable 2019-08-18 12:32:35 -05:00
wmayer
b594274407 add missing header and forward declaration 2019-08-17 23:14:45 +02:00
Dubstar_04
056a8e07e5 Ensure the tool parameters are saved
Ensure the tool parameters are saved to the tool table
2019-08-17 19:51:45 +01:00
wmayer
f144049231 Fix clang compiler warnings:
+ fix -Winconsistent-missing-override
+ fix -Wunused-private-field
2019-08-17 19:53:39 +02:00
wmayer
9760ea62cd Fix clang compiler warnings:
+ fix -Winconsistent-missing-override
2019-08-17 19:53:21 +02:00
wmayer
319bbe5cc4 Fix clang compiler warnings:
+ fix -Winconsistent-missing-override
2019-08-17 19:53:07 +02:00
wmayer
33b6c9c293 Fix clang compiler warnings:
+ fix -Winconsistent-missing-override
2019-08-17 19:52:49 +02:00
wmayer
7f4378a87e Fix clang compiler warnings:
+ fix -Winconsistent-missing-override
+ fix -Wpessimizing-move (Geometry::clone: moving a temporary object prevents copy elision -> remove std::move call here)
2019-08-17 19:52:32 +02:00
Zheng, Lei
7747680d35 Draft: fix PathLinkArray 2019-08-17 15:32:51 +02:00
Zheng, Lei
cb83886826 Import: fix version header path 2019-08-17 15:32:51 +02:00
Zheng, Lei
0a4f1abf00 Draft: fix Link(Path)Array 2019-08-17 15:32:51 +02:00
Zheng, Lei
afeaec3d0d TechDraw: fix face based projection direction detection 2019-08-17 15:32:51 +02:00
Zheng, Lei
ecc857cdf1 TechDraw: fix projection group editing update 2019-08-17 15:32:51 +02:00
Zheng, Lei
6c46d24ee3 TechDraw: fix drawing update on undo/redo 2019-08-17 15:32:51 +02:00
Zheng, Lei
d049eed121 Draft: fix for python2 2019-08-17 15:32:50 +02:00
Zheng, Lei
fe0548cad5 Sketcher: auto undo when canceling constraint editing 2019-08-17 15:32:50 +02:00
Zheng, Lei
0f66755843 Sketcher: fix external editing 2019-08-17 15:32:50 +02:00
luz.paz
3bb578c825 Fix more typos 2019-08-17 15:32:49 +02:00
luz.paz
b869b6e29e Fix typos in various src/Mod directories 2019-08-17 15:32:49 +02:00
luz.paz
63a577fe07 Fix typos in src/Gio 2019-08-17 15:32:49 +02:00
Zheng, Lei
de93446a1c Test cases changes
Slight adjustment of various test cases due to various API changes.
2019-08-17 15:32:48 +02:00
Zheng, Lei
88b5b2a845 Draft/Arch related changes
* Add Draft_LinkArray and Draft_PathLinkArray that uses link for both
  data and visualization, which supports linking external objects

* Add link group support for draft snap

* Fix ArchWindows expression ambiguity
2019-08-17 15:32:47 +02:00
Zheng, Lei
cfc6c0ee89 Path changes
* Relaxed valid base shape requirement, as long as it can return a
  shape using part.getShape()

* Improve ViewProviderPath performance by sharing the same selection
  observer

* Relocate libarea binary installation
2019-08-17 15:15:48 +02:00
Zheng, Lei
2727ddc7c0 Fem: minor changes 2019-08-17 15:15:47 +02:00
Zheng, Lei
cd2b7e297c PartDesign changes
* Mostly for supporting in-place editing

* Add new SubShapeBinder that support cross coordinate system,
  external, and sub-object binding
2019-08-17 15:15:47 +02:00
Zheng, Lei
11321bb996 Spreadsheet changes
Various changes to support in-place editing, and more.
2019-08-17 15:15:47 +02:00
Zheng, Lei
a460fdc8b6 Import: add new implementation of STEP importer/exporter
For better supporting Link and groups. The original implementation can
still be used by uncheck the STEP import setting 'Use Link Group'.
2019-08-17 15:15:47 +02:00
Zheng, Lei
e90d09dc40 TechDraw: Link related changes
* Support link and group objects

* Support view sync by implementing view provider API getMDIView()

* Use handleChangedPropertyType() for object migration instead of
  reimplementing Restore() because of a lots of changes in
  PropertyContainer::Restore().

* Various other small fixes.
2019-08-17 15:15:46 +02:00
Zheng, Lei
f028ba42ff Part: changes to Part Module
* Added Part::Feature::getTopoShape/getShape() function that can obtain
  shape from any object with proper implementation of getSubObject(). It
  can even construct compound from group object with proper implementation
  of getSubObjects().

* Modified ViewProviderExt to work on any object, because it now obtain
  the shape using Part::Feature::getShape()

* Modified various Part features to obtain base/tool shapes using
  Part::getShape(), which allows them to be any type of object,
  including Link and groups.

* Modified various Part command to relax type requirement on selected
  objects.

* Add support of link and group to dimension, and add dimension refresh
  command

* Support link and group in simple command command, and add a few more
  copy command variations.

* Add special handling of 'Shape' attribute in PropertyContainerPy and
  use Part::Feature::getShape() to return shape for any object without
  Shape property. This allows many python feature work with any object
  without modification.

* GeometrySurface/CurvePy, add convenience attribute 'Rotation'

* TopoShapePy:

    * Extended support of sub shape attribute, e.g. Compound1, Solid2,
      SubShape3 ('SubShape' is used to access child shape of a compound)

    * makeWires(), new API to sort and return wires given a list of edges.

    * transformed/translated/rotated/scaled(), return a new shape with
      some transformation.

    * findPlane(), find the plane of a planar shape

    * isCoplanar(), check if two shape are coplanar
2019-08-17 15:08:35 +02:00
Zheng, Lei
fc87332709 Gui: Placement/DatumCS view provider changes
* Add always zoom invariant and always on top rendering to
  ViewProviderDatumCS

* Add a new utility class AxisOrigin for more efficient axis rendering.
  Also exposed to python.

* Change ViewProviderPlacement to use AxisOrigin for rendering.
  A single instance of AxisOrigin is shared by all
  ViewProviderPlacement. Selection context is used to distinguish among
  different instances.
2019-08-17 15:08:34 +02:00
Zheng, Lei
f7edaabe43 Gui: add box geometry element selection command
Implement box element selection that support linked and grouped objects.
Also modified original box selection command to support the same with
the same code.
2019-08-17 15:08:33 +02:00