Yorik van Havre
2175eb0939
Draft: Added convenience methods to the Draft Working Plane to set top, front and side positions
2020-04-09 16:59:01 +02:00
vocx-fc
106cd631e0
Draft: WorkingPlane.py clean up imports and docstrings
...
Small spacing fixes like imports in separate lines
for more clarity, and the position of the license.
Cleaned up the class docstring, so it is in only one place
below the class definition. Also small fixes
in the docstrings of the class methods.
The class is now in upper case `Plane` to conform with Python
guidelines. An alias in lowercase `plane` is still provided
for compatibility purposes; this will be deprecated
in the future.
2020-04-07 18:12:06 +02:00
luz.paz
8cfa85cf18
Draft: [skip ci] Fix header uniformity
...
This PR fixes header uniformity across all Draft files
2019-12-27 00:16:12 +01:00
Yorik van Havre
91ca523f54
Draft: Moved SelectPlane stuff from DraftGui to its own ui file
2019-09-02 22:15:58 -03:00
luz.paz
020a66cddf
Fix misc. typos
...
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*,./src/Mod/Robot/App/kdl_cp,./src/Mod/Import/App/SCL,./src/WindowsInstaller -L od,orign,orginx,orginy`
2019-08-14 14:36:53 -03:00
vocx-fc
813338d62e
Draft: WorkingPlane, improved Pythonic style, line length < 79 characters; shorter variables
...
to save space and have line lengths < 79 characters; added whitespace to comments
and used the self.__repr__() method to shorten the impression to the terminal;
broke the line inside parentheses to make the line shorter; inside alignToSelection() test for faces first
to use alignToFace(), which actually works; leave alignToCurve() for later,
as it doesn't actually do anything at the moment; improved docstrings in isOrtho(),
the orthogonality is tested for u, v, and axis, on the global axis +Y only;
removed wrongly placed comment in restore() method;
improved file docstring at the top.
2019-08-14 14:31:56 -03:00
vocx-fc
b7ad13b34f
Draft: WorkingPlane, Pythonic style, improved the docstrings, use a shape of type Part.Face
2019-08-09 16:54:50 -03:00
vocx-fc
3eda73fae9
Draft: WorkingPlane, Pythonic style, improved the docstrings; moved the description of the points within the parameter section
2019-08-09 16:54:50 -03:00
vocx-fc
817f076e2e
Draft: WorkingPlane, Pythonic style, improved the docstrings
2019-08-09 16:54:50 -03:00
vocx-fc
8aa3f38a7b
Draft: WorkingPlane, Pythonic style, improved the docstrings
2019-08-09 16:54:50 -03:00
vocx-fc
abf3139563
Draft: WorkingPlane, Pythonic style, improved the docstrings
2019-08-09 16:54:50 -03:00
vocx-fc
fbc3abc0de
Draft: WorkingPlane, Pythonic style, improved the docstrings
2019-08-09 16:54:50 -03:00
vocx-fc
41300ee257
Draft: WorkingPlane, Pythonic style, improved the docstrings; added the other getLocalRot() and getGlobalRot() related functions to the 'See also' sections; need to verify their operation as some of these methods seem to just return the original point
2019-08-09 16:54:50 -03:00
vocx-fc
3f84f43564
Draft: WorkingPlane, Pythonic style, improved the docstrings; added a graphic to explain the type of point that the functions return; maybe getLocalCoords() should be named getRelativeCoords(), as the return value is a relative vector referred to the plane.
2019-08-09 16:54:50 -03:00
vocx-fc
212640b3ce
Draft: WorkingPlane, Pythonic style, improved the docstring; why does the projection invert the direction of the component, that is, -x instead of x, if the angle between the vectors x and u is larger than 1 radian? Why specifically 1 radian?
2019-08-09 16:54:50 -03:00
vocx-fc
a5451e6234
Draft: WorkingPlane, Pythonic style, improved the docstrings
2019-08-09 16:54:50 -03:00
vocx-fc
b430036a8b
Draft: WorkingPlane, Pythonic style, improved the docstrings
2019-08-09 16:54:50 -03:00
vocx-fc
8b6a3222b6
Draft: WorkingPlane, Pythonic style, improved the docstring
2019-08-09 16:54:50 -03:00
vocx-fc
8004f89e20
Draft: WorkingPlane, Pythonic style, improved the docstring
2019-08-09 16:54:50 -03:00
vocx-fc
6a87b6fe57
Draft: WorkingPlane, Pythonic style, improved the docstrings
2019-08-09 16:54:50 -03:00
vocx-fc
f0eafbc25f
Draft: WorkingPlane, Pythonic style, improved the docstrings
2019-08-09 16:54:50 -03:00
vocx-fc
a7d70a7aa3
Draft: WorkingPlane, Pythonic style, improved the docstring
2019-08-09 16:54:50 -03:00
vocx-fc
a569bed31b
Draft: WorkingPlane, Pythonic style, improved the docstring; these methods only work when 'FreeCAD.GuiUp' is True; it should print a message to the console indicating that.
2019-08-09 16:54:50 -03:00
vocx-fc
15b186bbfe
Draft: WorkingPlane, Pythonic style, improved the docstring; setup() only works when 'FreeCAD.GuiUp' is True, otherwise it fails silently. This should be change to print a message to the console.
2019-08-09 16:54:50 -03:00
vocx-fc
e7aaf4b771
Draft: WorkingPlane, Pythonic style, improved the docstrings; alignToSelection() only works when 'FreeCADGui.Selection' is available, that is, when the graphical interface is loaded.
2019-08-09 16:54:50 -03:00
vocx-fc
8ade7083d6
Draft: WorkingPlane, Pythonic style, improved the docstrings; alignToSelection() only really works with Faces because it calls alignToFace(); it doesn't work with Edges nor Wires because alignToCurve() isn't fully implemented.
2019-08-09 16:54:50 -03:00
vocx-fc
0ec668a057
Draft: WorkingPlane, Pythonic style, improved the docstrings
2019-08-09 16:54:50 -03:00
vocx-fc
df54c400a0
Draft: WorkingPlane, Pythonic style, improved the docstring, although alignToCurve is not yet implemented so it doesn't do anything
2019-08-09 16:54:50 -03:00
vocx-fc
7ef7c17d03
Draft: WorkingPlane, Pythonic style, improved the docstring.
2019-08-09 16:54:50 -03:00
vocx-fc
f900e57036
Draft: WorkingPlane, Pythonic style, improved the docstring.
2019-08-09 16:54:50 -03:00
vocx-fc
a941c0179e
Draft: WorkingPlane, Pythonic style, improved the docstrings.
2019-08-09 16:54:50 -03:00
vocx-fc
5eaa98629d
Draft: WorkingPlane, Pythonic style, improved the docstrings, in particular offsetToPoint(); I have some doubts about the implementation in 3D space as it seems to calculate a projected distance, and not the real distance; I don't think this is very helpful when the direction is different from perpendicular (normal); perpendicular distance is certainly the most common case, so I don't know if there is any problem at all in practice.
2019-08-09 16:54:50 -03:00
vocx-fc
5fd074bfa9
Draft: WorkingPlane, Pythonic style, docstring of the initialization of the plane class
2019-08-09 16:54:50 -03:00
vocx-fc
c02260de90
Draft: WorkingPlane, Pythonic style, docstring of the plane class
2019-08-09 16:54:50 -03:00
vocx-fc
4ce2e481e5
Draft: WorkingPlane, Pythonic style, docstring of the plane class
2019-08-09 16:54:50 -03:00
vocx-fc
1037258387
Draft: WorkingPlane, Pythonic style, added whitespace
2019-08-09 16:54:50 -03:00
vocx-fc
d8e154ec17
Draft: WorkingPlane, moved document docstring to the top
2019-08-09 16:54:50 -03:00
vocx-fc
b518898ddb
Draft: WorkingPlane, Pythonic style, added spaces after commas, and removed trailing whitespace
2019-08-09 16:54:50 -03:00
vocx-fc
14c6df1cba
Draft: WorkingPlane, Pythonic style, added spaces after commas
2019-08-09 16:54:50 -03:00
vocx-fc
664441e9be
Draft: WorkingPlane, Pythonic style, added spaces after commas
2019-08-09 16:54:50 -03:00
vocx-fc
b63407489f
Draft: WorkingPlane, Pythonic style, added spaces
2019-08-09 16:54:50 -03:00
vocx-fc
77fab9f03f
Draft: WorkingPlane, Pythonic style, add spaces
2019-08-09 16:54:50 -03:00
vocx-fc
c5fab90679
Draft: WorkingPlane, removed excessive indentation
2019-08-09 16:54:50 -03:00
vocx-fc
a4ec930790
Draft: WorkingPlane, removed unnecessary semi-colons and indentation
2019-08-09 16:54:50 -03:00
Yorik van Havre
8932d9296e
Arch: Lightweight mode for Arch References
2019-07-11 19:37:10 -03:00
Dion Moult
fccbc0ed24
Set working plane immediately upon clicking the set working plane button if you have a face selected
2019-05-20 11:10:40 -03:00
Yorik van Havre
ee8f7be4e8
Arch/Draft: Misc small fixes
...
* Properly handle offset2D and arch objects in Draft Stretch
* Allow the WP of Arch BuildingParts to stay weak
* Fixed Draft Edit making Wires not plane anymore
* Dont change the WP if already perpendicular to current view
* Fixed DXF import of Polyfaces
2018-12-10 10:21:17 -02:00
Yorik van Havre
0a61c78543
Arch: cache svg calculations in section planes/techdraw views for better performance
2018-08-28 21:03:25 -03:00
Yorik van Havre
ef2425732e
Arch: Handle placement change in BuildingPart + view management
2018-06-28 18:44:07 -03:00
Yorik van Havre
fcd778e8c1
Arch: initial BuildingPart development
2018-06-28 18:44:07 -03:00