Commit Graph

149 Commits

Author SHA1 Message Date
wmayer
ce36b29cb7 fix scan coverity issues 2017-04-11 15:06:37 +02:00
Abdullah Tahiri
96fcedbd30 Sketcher: Carbon Copy - Allow cross-body sketcher links
=======================================================

The instructions are shown on the status bar.

press CTRL to allow cross-body link

press ALT to by-pass directional requirements

press CTRL+ALT to allow a cross-body link and by-pass directional requirements
2017-04-10 18:55:23 +02:00
Abdullah Tahiri
4fe698e1ee Sketcher: Carbon Copy
=====================

Carbon copy checks for parallel planes, translated origin and rotated axes, so that it can provide flipping detection when using reverse mappings.

This commit enables you to press CTRL will activating the tool in order to bypass this checks. Without the checks you will get a sketch exactly as the one
you want to copy, there are no corrections at all. This enables you to copy a profile on a new plane at a different direction for example for lofting purposes.
2017-04-10 08:57:25 +02:00
Abdullah Tahiri
6a67a7dbb7 Sketcher: Carbon Copy - inform user of the limitations and disallow selection 2017-04-10 08:57:25 +02:00
Abdullah Tahiri
97090f3e0a Sketcher: Carbon Copy toolbar command 2017-04-10 08:57:25 +02:00
Abdullah Tahiri
41a1d703e2 Sketcher: BSpline creation adapted to the more flexible python constructor 2017-04-08 12:58:06 +02:00
Abdullah Tahiri
d80437ed90 Sketcher: Enable showing knots on BSpline creation 2017-04-08 12:58:06 +02:00
wmayer
f2dc8c5d31 Some fixes of pr 538
fix -Wreturn-type
homogenous naming style
use official spelling of B-spline
2017-02-21 13:30:43 +01:00
Abdullah Tahiri
66982e21bd Sketcher: Polyline continuous mode support 2017-02-02 10:42:38 +01:00
Abdullah Tahiri
6ad51826d4 Sketcher: BSpline Creation - as single command for one-step undo 2017-01-26 21:31:03 +01:00
Abdullah Tahiri
bad73abe84 Sketcher: BSpline Creation fix - Remove introduced pole if creation cancelled 2017-01-26 21:31:03 +01:00
Abdullah Tahiri
cc31dac143 Sketcher: BSpline Creation improvement - Add constraints by groups 2017-01-26 21:31:03 +01:00
Abdullah Tahiri
ec8c514547 Sketcher: BSpline Creation acceleration - pole constraining on pole creation 2017-01-26 21:31:02 +01:00
Abdullah Tahiri
38fc7071c7 Sketcher: BSpline Creation solver call reduction 2017-01-26 21:31:02 +01:00
Abdullah Tahiri
bdc81aae2e Sketcher: BSpline Creation - pole circle on click
=================================================

This method creates the pole circles on every click. This allows to properly detect the closing of the curve
2017-01-26 21:31:02 +01:00
Abdullah Tahiri
c43b39d001 Sketcher: BSpline creation mode end on right-click
==================================================

Now the BSpline ends with right-click, but creates the BSpline if at least two poles have been entered.

If continous creation mode is enabled, then it only exits when right-clicking without having entered any pole.
2017-01-22 00:38:23 +01:00
wmayer
ad57478ab4 fix a couple of compiler warnings 2017-01-20 22:54:10 +01:00
wmayer
f5c0f579cb write consistently 'B-spline' in menus and tooltips 2017-01-20 20:59:32 +01:00
wmayer
0955ccf594 fix whitespaces 2017-01-20 19:22:50 +01:00
abdullahtahiriyo
3f0c9d7bc3 Merge branch 'master' into bspline_2017 2017-01-18 22:48:27 +01:00
wmayer
987630700d fix crashes in creation of parabola or hyperbola 2017-01-16 23:07:09 +01:00
Abdullah Tahiri
0ef082bcd4 Sketcher: Construction of periodic BSplines 2017-01-13 22:25:10 +01:00
Abdullah Tahiri
671e588739 Sketcher: BSpline autoconstraints on creation 2017-01-12 23:45:03 +01:00
Abdullah Tahiri
1155022a82 Sketcher: BSpline Weights internal geometry support 2017-01-11 01:17:07 +01:00
Abdullah Tahiri
c20b17f721 Sketxher: Basic creation method
===============================

For non-periodic case.

No autoconstraints or internal geometry at this point.
2017-01-07 20:21:19 +01:00
AjinkyaDahale
1230f493d5 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
ecd1f465b0 Added DrawSketchHandlerLock 2017-01-04 12:58:11 +01:00
wmayer
cbf717f317 fix whitespaces 2016-12-28 14:22:42 +01:00
wwmayer
309d46137e Merge pull request #401 from abdullahtahiriyo/parabola_2017
Parabola 2017
2016-12-28 13:48:13 +01:00
Abdullah Tahiri
b6919f8627 Sketcher: Parabola creation method autoconstraints 2016-12-24 03:10:44 +01:00
Abdullah Tahiri
9858368b65 Sketcher: Parabola Expose Internal Geometry
==========================================

Also automatically on creation
2016-12-22 16:10:52 +01:00
Abdullah Tahiri
6f6cc6d961 Sketcher: Parabola Creation Command
===================================

With exception of exposure of internal geometry.
2016-12-19 22:58:20 +01:00
wmayer
2d68ca2f6e fix CID 154893 2016-12-18 11:57:52 +01:00
wmayer
1855c80f36 replace Part.Line with Part.LineSegment 2016-11-30 21:25:18 +01:00
wmayer
b503d55299 port hyperbola branch to new tools classes 2016-11-27 22:43:58 +01:00
Abdullah Tahiri
bc728c217b Sketcher: Fixing compilation warnings 2016-11-27 18:45:33 +01:00
Abdullah Tahiri
22457c41dd Sketcher: Hyperbola construction endpoints autoconstraints
==========================================================

Support for coincident autoconstraint for endpoints
2016-11-27 18:45:33 +01:00
Abdullah Tahiri
a879296ca7 Sketcher: Minor fix - hyperbolic arc icon reference 2016-11-27 18:45:33 +01:00
Abdullah Tahiri
cdb14deb99 Sketcher Hyperbola: Creation method autoconstraints
Correction of center and curve on major axis position.

Still to fix the endpoints (determination of CCW or CW drawn curve)
2016-11-27 18:45:33 +01:00
Abdullah Tahiri
3a33fc292e Sketcher hyperbola creation fix
removing line to origin during creation
2016-11-27 18:45:33 +01:00
Abdullah Tahiri
96ae5272db Sketcher Hyperbola: Creation Method improvements
- Avoid unnecessary recomputes
- Create as construction
- Continuous mode creation
2016-11-27 18:45:33 +01:00
Abdullah Tahiri
b6c1e15493 Hyperbola InternalAlignment
Focus is working.
2016-11-27 18:45:33 +01:00
DeepSOIC
6fce841404 Sketcher: Hyperbola: fix crash when drawing a new one 2016-11-27 18:45:33 +01:00
Abdullah Tahiri
590e3fbec6 Sketcher: New Feature: Hyperbola/ArcOfHyperbola
===============================================

- ArcOfHyperbola creation method
- Solver representation (undefined moving)
- SketchObjectPyImp (here we still miss the Part->Partdesign conversion)
- Sketch validation for hyperbola
- Hyperbola creation method: shows the "proof of concept", but it is very buggy!!

Notes:
- Missing icons, probably missing geo normal curve implementation - rebasing -
- Fixes to adapt Hyperbola to Derivector implementation and make it compile
2016-11-27 18:45:33 +01:00
wmayer
e54e9515fc rename 2d tool classes to be consistent with 3d classes 2016-11-21 14:29:51 +01:00
wmayer
68ea7fdac5 fix coverity issues 2016-10-08 17:43:30 +02:00
wmayer
15d7ae5e2c fix -Wextra in Sketcher 2016-09-22 18:34:35 +02:00
wmayer
7f2a9da5d3 fix Coverity issues 2016-08-22 13:15:21 +02:00
wmayer
d39bd4906b fix Coverity issues 2016-08-20 19:45:36 +02:00
wmayer
1e2e24b652 + rename methods in Vector3 class
+ add convenience methods Cross and Dot to Vector3 class
+ fix bug in DistanceToLineSegment in Vector3 class
2016-07-30 15:14:47 +02:00