Commit Graph

959 Commits

Author SHA1 Message Date
Abdullah Tahiri
6f46ce747b Sketcher: Enable reuse of constraint helper functions in other toolbars
=======================================================================

bool checkBothExternal(int GeoId1, int GeoId2);
void getIdsFromName(const std::string &name, const Sketcher::SketchObject* Obj, int &GeoId, Sketcher::PointPos &PosId);
bool inline isVertex(int GeoId, Sketcher::PointPos PosId);
bool inline isEdge(int GeoId, Sketcher::PointPos PosId);
bool isSimpleVertex(const Sketcher::SketchObject* Obj, int GeoId, Sketcher::PointPos PosId);
bool IsPointAlreadyOnCurve(int GeoIdCurve, int GeoIdPoint, Sketcher::PointPos PosIdPoint, Sketcher::SketchObject* Obj);
2017-04-08 12:58:06 +02:00
Abdullah Tahiri
0a9e647a01 Sketcher: Add toolbar command to increase knot multiplicity 2017-04-08 12:58:06 +02:00
Abdullah Tahiri
f36721e529 Sketcher: Enable showing knots on BSpline creation 2017-04-08 12:58:06 +02:00
Abdullah Tahiri
77e1d1327c Sketcher: Bspline toolbar command show/hide knot multiplicity geometry information layer 2017-04-08 12:58:06 +02:00
Abdullah Tahiri
e9c508f467 Sketcher: Bspline knot multiplicity geometry information layer 2017-04-08 12:58:06 +02:00
Abdullah Tahiri
6b81627949 Sketcher: Bspline - SketchObject - Delete Unused geometry extended to knots 2017-04-08 12:58:06 +02:00
Abdullah Tahiri
aaeb0c3407 Sketcher: Ensure that no point is set as construction by mistake/user mistake 2017-04-08 12:58:06 +02:00
Abdullah Tahiri
33be143f48 Sketcher: Solver bypass of knotpoints
Internal geometry knot points, which were added as fixed parameters to the solver according to a previous commit, are tracked in the corresponding bspline as solver level,
without being a parameter to the solver, and upon solving, the position thereof is updated by means of OCC functionality.

This allows to show the knot points and solidarily move them when moving a bspline.
2017-04-08 12:58:06 +02:00
Abdullah Tahiri
65b7e606e5 Sketcher: Construction points added as fixed parameters 2017-04-08 12:58:06 +02:00
Abdullah Tahiri
e66187695f Sketcher: SketchObject Expose internal geometry extended to knots
=================================================================

Very important remark:

Until now, points could not be construction = true.

For now on, if a point is construction = true, the solver will ignore it.
2017-04-08 12:58:06 +02:00
Abdullah Tahiri
c46c66d48a Sketcher: Bspline solver knot support - unfinished 2017-04-08 12:58:06 +02:00
Abdullah Tahiri
98baf57e18 Sketcher: Elements widget external geometry identification fix 2017-04-08 12:58:06 +02:00
Kunda
5aefa825b1 Typo fixes for doxygen and source comments
issue #0002914
2017-03-31 11:25:57 -03:00
AjinkyaDahale
8013ecc6d6 Issue #2682
Modifying a check in SketchObject::validateExternalLinks() for datums.
Hopefully will not cause trouble.
There is still a problem where if the check fails, all constraints will
be lost!
2017-03-21 12:10:21 +01:00
Georges Dupéron
ab4cbbaedf str(Sketcher.Constraint('Radius', 1, 2)) should not return "<Constraint '?'>"
str(Sketcher.Constraint('Radius', 1, 2)) should not return "<Constraint '?'>", it should return "<Constraint 'Radius'>"
2017-03-08 00:04:04 +01:00
Yorik van Havre
9f44809e9e Updated translations with latest files from crowdin 2017-03-06 11:53:09 -03:00
wmayer
9e90accc81 split sketcher settings page and move to its own group 2017-03-06 14:37:40 +01:00
wwmayer
94b6efde50 Merge pull request #583 from triplus/Font-size
Configurable coordinate info font size in Sketcher
2017-03-03 22:25:56 +01:00
triplus
67303633bf Configurable coordinate info font size in Sketcher
Useful on HiDPI displays and occasionally requested feature on the forum.
2017-03-03 19:27:10 +01:00
Kurt Kremitzki
d35dc721f3 Fix hexagon creation error 2017-03-03 11:17:37 -06:00
Kunda
9410e751e9 source typo fixes pt4 (only on py3 merged code) 2017-03-02 13:47:21 +01:00
looooo
0b6d098627 py3: Sketcher: remaining diff of python3-branch 2017-03-01 17:21:19 +01:00
wmayer
03c232fa82 py3: ported Skechter to python3 2017-03-01 17:20:20 +01:00
Priit Laes
3808a2e999 python: Sketcher: *.py: Fix python3 syntax 2017-03-01 17:20:12 +01:00
wmayer
05cdc342ef fixes #0002921, fixes #0002922 2017-02-24 19:54:16 +01:00
wmayer
74f7d9fd65 set continuous constraint mode consistently to true by default 2017-02-24 16:30:13 +01:00
wmayer
d6b8609c63 add missing word, fix layout 2017-02-24 16:24:24 +01:00
wmayer
b3aadee318 fix wrong return type 2017-02-24 15:44:28 +01:00
AjinkyaDahale
f5fc2b2bce Sketcher: costraint creation mode uses toolbar icons 2017-02-24 15:20:26 +01:00
AjinkyaDahale
286e71074a Sketcher: Added option to turn constraint creation modes on/off
Can be found below geometry creation "continous mode" option
2017-02-24 15:20:26 +01:00
AjinkyaDahale
10d9a6ec05 Sketcher: External edges in constraint modes (Symmetry) 2017-02-24 15:20:26 +01:00
AjinkyaDahale
0d96f0ca97 Sketcher: External edges in constraint modes (Angle) 2017-02-24 15:20:26 +01:00
AjinkyaDahale
9feaf8340f Sketcher: External edges in constraint modes (Equal) 2017-02-24 15:20:26 +01:00
AjinkyaDahale
f94ed49150 Sketcher: External edges in constraint modes (radius) 2017-02-24 15:20:26 +01:00
AjinkyaDahale
ca00469460 Sketcher: External edges in constraint modes (tangent) 2017-02-24 15:20:26 +01:00
AjinkyaDahale
f9857f0427 Sketcher: External edges in constraint modes (perpendicular) 2017-02-24 15:20:26 +01:00
AjinkyaDahale
4dfde986cf Sketcher: External edges in constraint modes (parallel) 2017-02-24 15:20:26 +01:00
AjinkyaDahale
e8c4c4d6fc Sketcher: External edges in constraint modes (DistanceX/Y) 2017-02-24 15:20:26 +01:00
AjinkyaDahale
350094a000 Sketcher: External edges in constraint modes (point on object) 2017-02-24 15:20:26 +01:00
AjinkyaDahale
e580727c1f Sketcher: External edges in constraint modes (distance) 2017-02-24 15:20:26 +01:00
AjinkyaDahale
f1dd824e78 [Sketcher] Moved angle to constraint creation mode
plus some cosmetic changes
2017-02-24 15:20:26 +01:00
wmayer
67fc7130cf fix various warnings 2017-02-21 22:51:26 +01:00
wmayer
a0aa4fdfef 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
97815c3f9b Sketcher: Delete non-suported BSpline constraints on NURBS conversion 2017-02-21 13:24:10 +01:00
Abdullah Tahiri
921bef24ef Sketcher: BSpline toolbar command support for Convert to NURBS external geometry 2017-02-21 13:24:10 +01:00
Abdullah Tahiri
3b18e87bd9 Sketcher: SketchObject convert to NURBS support for External Geometry 2017-02-21 13:24:10 +01:00
Abdullah Tahiri
d566c7dff1 Sketcher: Convert to NURBS command improvement - abortcommand 2017-02-21 13:24:10 +01:00
Abdullah Tahiri
dcfd6d0b14 Sketcher: Expose Internal Geometry for BSplines
===============================================

This commit changes the behaviour of expose internal geometry for bsplines and makes it converge with the implementation for other complex forms.

This functionality now does not introduce constraints (the DoF is not affected by its execution).

BSplines, when created, are still created as polynomic. However, exposing previously deleted or otherwise hidden (increase of degree) poles does not
constraint them.

why?

While a priori the old behaviour is advantageous for the user in many situations, it severely breaks NURBS-ized shapes and gets in the way of bsplines after
increasing the degree of the bspline.
2017-02-21 13:24:10 +01:00
Abdullah Tahiri
38f95844d6 Sketcher: Fix zero curvature normal exception 2017-02-21 13:24:10 +01:00
Abdullah Tahiri
78dee9a3b9 Sketcher: Convert to NURBS toolbar via python to enable undo 2017-02-21 13:24:10 +01:00