Commit Graph

104 Commits

Author SHA1 Message Date
AjinkyaDahale
994b8a7fd3 Moved point on object to general constraint mode framework 2017-01-31 17:07:45 +01:00
AjinkyaDahale
63323ec85a Moved parallel to general constraint mode framework 2017-01-31 17:07:45 +01:00
AjinkyaDahale
de0301dc66 Moved coincident and vertical to general constraint mode framework 2017-01-31 17:07:45 +01:00
AjinkyaDahale
f2fbd8ba2b Moved CmdSketcherConstrainLock to general constraint mode framework 2017-01-31 17:07:45 +01:00
AjinkyaDahale
d1eab78b93 Generalize DrawSketchHandlerGenConstraint::releaseButton
The select-then-constrain method has been temporarily sacrificed
2017-01-31 17:07:45 +01:00
AjinkyaDahale
c4675b521c CmdSketcherConstraint::applyConstraint() is now used in DrawSketchHandlerGenConstraint 2017-01-31 17:07:45 +01:00
AjinkyaDahale
3b5c72357c Initial commit with DrawSketchHandlerGenConstraint
Plus made CmdSketcherConstrainHorizontal subclass of
CmdSketcherConstraint, and made it use DrawSketchHandlerGenConstraint.
2017-01-31 17:07:45 +01:00
AjinkyaDahale
d326c9e018 Replace All SelectionFilterGates in Constraint Modes by GenericConstraintSelection 2017-01-31 17:07:45 +01:00
AjinkyaDahale
24215170fc Addition to CmdSketcherConstraint and GenericConstraintSelection
Also making CmdSketcherConstrainLock a subclass of CmdSketcherConstraint
2017-01-31 17:07:45 +01:00
AjinkyaDahale
7718dd9aea Coincident constraint mode works on root (origin) too 2017-01-31 17:07:45 +01:00
AjinkyaDahale
137db465db Skeleton of general CmdSketcherConstraint Class 2017-01-31 17:07:45 +01:00
wmayer
d065c2fe5b fix whitespaces 2017-01-20 19:22:50 +01:00
abdullahtahiriyo
8d9af6f203 Merge branch 'master' into bspline_2017 2017-01-18 22:48:27 +01:00
Abdullah Tahiri
84041c0e50 Sketcher: BSpline SnellsLaw - unsupported 2017-01-15 22:34:14 +01:00
Abdullah Tahiri
6bf7d4d6c9 Sketcher: BSpline point-on-object - unsupported 2017-01-15 22:29:21 +01:00
AjinkyaDahale
4c001f40f3 Horizontal and Vertical Constraint creation modes 2017-01-15 17:00:45 +01:00
Abdullah Tahiri
6f09b31456 Sketcher: BSpline - Equality not supported user indication 2017-01-15 01:40:04 +01:00
Abdullah Tahiri
8f4eaf7587 Sketcher: BSpline - UI Perpendicularity 2017-01-15 01:27:46 +01:00
Abdullah Tahiri
14a34202a9 Sketcher: BSpline - Informing the user of non-supported tangencies 2017-01-15 00:57:05 +01:00
Abdullah Tahiri
bb6e480b3c Sketcher: BSpline simplified endpoint tangency/perpendicularity solver implementation
=====================================================================================

Support for tangency/perpendicularity using angle via point for BSpline with appropriate
endpoint multiplicity so that the endpoints goes thru the first and last poles (control points).

Warning: Not applicable to periodic BSplines.
Warning: Not applicable to any non-periodic BSpline with inappropriate endpoint conditions.
2017-01-15 00:42:25 +01:00
wmayer
268a575d28 make code a bit more readable 2017-01-09 10:07:59 +01:00
wmayer
ba28171f43 issue #0000753: angle constraint auto places the constraints visuals including its value in the wrong place 2017-01-08 16:47:06 +01:00
wmayer
0975bdc78c fix -Wunused-parameter 2017-01-04 18:20:43 +01:00
AjinkyaDahale
0caf0710d6 Coincident constraint making mode added
One small problem remains that the origin is not selectable as one point
in coincident constraint making mode.
2017-01-04 12:58:11 +01:00
AjinkyaDahale
a8d25c0723 Lock doesn't complain "no selection" 2017-01-04 12:58:11 +01:00
AjinkyaDahale
f3a5754e3e Lock constraint in always available when sketch is open
Earlier it was available only when a selection is made
2017-01-04 12:58:11 +01:00
AjinkyaDahale
640c6d0e06 Lock constraint can be applied with better selection
Can't yet start without selection: the button on toolbar is not active
without a selection yet
2017-01-04 12:58:11 +01:00
AjinkyaDahale
c312e254d1 Added DrawSketchHandlerLock 2017-01-04 12:58:11 +01:00
wmayer
a421803c09 fix whitespaces 2016-12-28 14:22:42 +01:00
Abdullah Tahiri
70fb71b11d Sketcher: Parabola perpendicularity constraint 2016-12-24 15:24:36 +01:00
Abdullah Tahiri
8fe59b20f7 Sketcher: Parabola tangency support
===================================

Support for tangency with any preexisting supported geometry using angle via point.
2016-12-24 15:02:52 +01:00
Abdullah Tahiri
507f5605d9 Sketch: Hyperbola tangency to line
==================================

As a way to lock a line to hyperbola tangency to a branch has not been identified, this tangency is implemented
by adding a point at the tangency point in order to avoid the jumping.
2016-11-27 18:45:33 +01:00
Abdullah Tahiri
1fe7154c27 Sketcher: Hyperbola perpendicularity constraint
=================================================

Line perpendicular to hyperbola using via point constraint.
2016-11-27 18:45:33 +01:00
Abdullah Tahiri
47a854e2ea Sketcher: Hyperbola Tangency to Curves
======================================

Implementation of the Tangency via point for all curves to Hyperbola (no line to Hyperbola yet).
2016-11-27 18:45:33 +01:00
wmayer
b1904dfd28 replace hard coded numbers with static constants 2016-10-23 13:44:26 +02:00
wmayer
c06b6f081f fix -Wextra in Sketcher 2016-09-22 18:34:35 +02:00
wmayer
d1d9db6d1c fix Coverity issues 2016-08-20 19:45:36 +02:00
wmayer
d4368eb186 Coverity issues: check return value of dynamic_cast or replace it with static_cast 2016-08-17 10:43:58 +02:00
wmayer
1febd2da5a make sure that action is created when calling updateAction 2016-07-02 13:19:25 +02:00
DeepSOIC
038b9e71c1 Sketcher: negative constraint value avoidance
by swapping elements being constrained at creation time, should the
precalculated value happen to be negative.
2016-03-12 21:28:37 +01:00
DeepSOIC
acec16d5dc Sketcher: never ever hide constraint value sign, anymore 2016-03-12 21:28:22 +01:00
wmayer
92b330bbcb + support of unicode names for sketch constraints 2015-09-24 03:17:47 +02:00
Mateusz Skowroński
05f95c0506 Fix files encoding. Go from ISO8859-1 to UTF-8. 2015-09-21 19:50:49 -03:00
Eivind Kvedalen
cacf7bdaf1 Sketcher: Added support for expressions. 2015-09-21 14:51:10 +02:00
wmayer
f0c9368f71 + minor changes 2015-09-13 23:24:12 +02:00
Abdullah Tahiri
4b9a379b90 Sketcher bug/feature request: arePointsCoincident/coincidence creation
======================================================================

1. SketchObject::arePointsCoincident upgraded to check for indirect coincidence.
2. Coincidence constraint creation now checks for indirect coincidences and avoids
creating redundant coincidence constraints (for example during box selection).
2015-09-09 22:56:14 +02:00
wmayer
756a9c8130 + fix various warnings with gcc 2015-09-01 19:29:39 +02:00
Alexander Golubev
62d130bea0 Mod/Sketcher: suppress warning
Warning was:
src/Mod/Sketcher/Gui/CommandConstraints.cpp|1031 col 28| warning: '&&' within '||' [-Wlogical-op-parentheses]
2015-08-29 18:35:58 +02:00
Alexander Golubev
dc94ec65b8 Mod/Sketcher: add missing brackets in conditions
Warning was:
src/Mod/Sketcher/Gui/CommandConstraints.cpp|131 col 99| warning: '&&' within '||' [-Wlogical-op-parentheses]
2015-08-29 18:35:58 +02:00
Abdullah Tahiri
e51628042a Sketcher: Auto Update Mode bug fix
==================================

Bug:
http://forum.freecadweb.org/viewtopic.php?f=10&t=11341&start=60#p92422

Why?
- When coding Auto Update Mode I forgot to solve the sketch when the constraint is cancelled to restore the solver level constraints.
2015-06-24 17:57:05 +02:00