Commit Graph

759 Commits

Author SHA1 Message Date
carlopav
130d8413bf Draft: split extrude from Draft.py 2020-05-04 10:51:08 +02:00
carlopav
7683fdf220 Draft: split downgrade from Draft.py 2020-05-04 10:51:08 +02:00
carlopav
f959812327 Draft: split cut from Draft.py 2020-05-04 10:51:08 +02:00
carlopav
52d4749bac Draft: split upgrade from Draft.py
.
2020-05-04 10:51:08 +02:00
carlopav
b2180873a1 Draft: split draftify from Draft.py 2020-05-04 10:51:08 +02:00
carlopav
223c81a4f9 Draft: split fuse from Draft.py
.
2020-05-04 10:51:08 +02:00
carlopav
bedb026c17 Draft: split heal from Draft.py 2020-05-04 10:51:08 +02:00
carlopav
fd6d3da0be Draft: split mirror from Draft.py
.
2020-05-04 10:51:08 +02:00
carlopav
677865b680 Draft: split offset from Draft.py
.
2020-05-04 10:51:08 +02:00
carlopav
2edb34b2ff Draft split Split from Draft.py 2020-05-04 10:51:08 +02:00
carlopav
4b61a1bf73 Draft: split scale related functions from Draft.py
.
2020-05-04 10:51:08 +02:00
carlopav
77ea3a1a86 Draft: split join functions from Draft.py 2020-05-04 10:51:08 +02:00
carlopav
ad0a400da2 Draft: split isClosedEdge form Draft.py
.
2020-05-04 10:51:08 +02:00
carlopav
ac13cced02 Draft: split rotate from Draft.py 2020-05-04 10:51:08 +02:00
carlopav
25ae2dc921 Draft: split Move from Draft.py 2020-05-04 10:51:08 +02:00
carlopav
8157b86629 Draft: split FilterObjectsForModifiers from Draft.py 2020-05-04 10:51:08 +02:00
carlopav
2b79869274 Draft: delete makeWire from Draft.py 2020-05-04 10:51:08 +02:00
carlopav
54fad8e46a Draft: split makeCopy from Draft.py
.
2020-05-04 10:51:08 +02:00
wandererfan
c26c50e040 [Draft]PathArray TangentVector & gimbal lock
- allows user to specify orientation of copies
- prevents gimbal lock by using Base.Rotation instead of
  YRP transforms
2020-05-01 11:34:33 -04:00
carlopav
ea19060f64 Draft: fix bspline and bezcurve viewproviders
Finished to fix bspline and bezcurve wiewproviders.
2020-04-30 13:48:33 +02:00
vocx-fc
491ed28e1c Draft: change the icon depending on the Link array type
Add new icons for `App::Link` versions of polar array and circular
array.
2020-04-29 11:44:22 +02:00
vocx-fc
1a2c9adbf1 Draft: change the icon depending on the array type 2020-04-29 11:44:22 +02:00
carlopav
582a4c0d83 Draft: split Shape2DView from Draft.py 2020-04-29 11:41:02 +02:00
carlopav
0912046068 Draft: split Block from Draft.py 2020-04-29 11:41:02 +02:00
carlopav
a4f802847c Draft: split Shapestring from Draft.py 2020-04-29 11:41:02 +02:00
carlopav
bea4431b18 Draft: split makeSketch from Draft.py 2020-04-29 11:41:02 +02:00
carlopav
00ec299e06 Draft: split Facebinder from Draft.py 2020-04-29 11:41:02 +02:00
carlopav
b94ba1bf4c Draft: split WorkingPlaneProxy from Draft.py 2020-04-29 11:41:02 +02:00
carlopav
d450c20f06 Draft: split Ellipse from Draft.py
.
2020-04-29 11:41:02 +02:00
carlopav
2d99a2f343 Draft: split Point from Draft.py
.
2020-04-29 11:41:02 +02:00
carlopav
e4bfb0b21d Draft: split clone from Draft.py
.


.
2020-04-29 11:41:02 +02:00
carlopav
f1eaa0b93c Draft: split wire related tools from Draft.py
Line Polyline BezCurve BSpline
.


.


.
2020-04-29 11:41:02 +02:00
carlopav
4eab0bb787 Draft: split Polygon from Draft.py
.


.


.


.
2020-04-29 11:41:02 +02:00
carlopav
96b2dde9b2 Draft: split rectangle code from Draft.py
.


.
2020-04-29 11:41:02 +02:00
carlopav
a34ca76a4e Draft: split circle from Draft.py
.


.
2020-04-29 11:41:02 +02:00
carlopav
43f6721c6e Draft: parent classes of all Draft objects
Add DraftObject and ViewProviderDraft to serve as
the parent classes of all Draft objects
and all Draft view providers.

Inside `Draft.py` we need to import
`_DraftObject` from `draftobjects.base`;
and `_ViewProviderDraft`, `_ViewProviderDraftAlt`,
and `_ViewProviderDraftPart` from `draftviewproviders.view_base`.
.


.


.


.
2020-04-29 11:41:02 +02:00
Marcus Ding
3509f1a720 Add AxisReference property to Draft Array 2020-04-27 11:34:16 +02:00
vocx-fc
cb5aa765fb Draft: move Join GuiCommand to gui_join module
Occasionally it fails to join lines even if the lines
visually share a point.

This is a rounding error in the comparison of the shared point;
a small distance will result in the points being considered
different and thus the lines not joining.

The solution is to test properly the two points using
`DraftVecUtils.equals` which considers the value of
the `precision` set in the Draft preferences.
2020-04-24 13:49:13 +02:00
Yorik van Havre
6f2fd04518 Draft: Fixed further regressions 2020-04-21 12:46:08 +02:00
carlopav
164bbabbd8 [Draft] Cleanup of Annotation style branch
Further cleanup and guarded imports of Gui in modules.

.
2020-04-16 11:37:10 +02:00
carlopav
85bf45937e [Draft] Splitted object Text and Label from Draft.py
And based them on Draft Annotation object
2020-04-16 11:37:10 +02:00
carlopav
4855564bb8 [Draft] Group object for dimension styles 2020-04-16 11:37:10 +02:00
carlopav
6d8fe07312 [Draft] Annotation refactor and Cleanup
.


.
2020-04-16 11:37:10 +02:00
carlopav
530e8b6c58 [Draft] Split Dimension object and reorganize of annotation objects
part 1
2020-04-16 11:37:10 +02:00
carlopav
34cf98102c [Draft] Dimension style object
still have to split viewprovider from object.
[Draft] Dimension Style code cleanup

thx @vocx-fc for reviewing
further cleanup


[Draft] Dimension Style improvements

Added a property to the dimension object to link the dimension style.
Improved the update of dimensions when style changes. This can be done in 2 different ways: by setting AutoUpdate property to True or by activating Update function from the viewprovider context menu.
2020-04-16 11:37:10 +02:00
carlopav
08d949b088 [Draft] Rearrange annotation properties groups
ref. https://forum.freecadweb.org/viewtopic.php?f=23&t=43795&p=373731#p373731
bugfix
2020-04-16 11:37:10 +02:00
carlopav
116052cff0 [Draft] Annotation Scale bugfix
Now property ScaleMultiplier is checked for existence before the use.
2020-04-16 11:37:10 +02:00
carlopav
1d7b62e6ee [Draft] First implementation of annotation scale
The changes are minimal, mainly is just cleanup of existing code and documentation.
[Draft] Annotation scale for ViewProviderDraftText

Adding support for scale factor according to changes in dimensions.
[Draft] Annotation scale for ViewProviderDraftLabel

completed annotations scale
[Draft] Annotation scale for ViewProviderAngularDimension
2020-04-16 11:37:10 +02:00
carlopav
e65c61036b [Draft] Annotation scale support and statusbar widget
Initial commit
Preliminary support for Draft Dimensions


[Draft] Statusbar Widget code cleanup
2020-04-16 11:37:10 +02:00
vocx-fc
75623131fa Draft: new ShapeString icon for the tree view 2020-04-13 11:36:47 +02:00