Search found 7851 matches
- Wed Mar 29, 2023 5:18 pm
- Forum: Python scripting and macros
- Topic: Selection bug: selected object missing in getSelection()/getSelectionEx
- Replies: 10
- Views: 2746
Re: Selection bug: selected object missing in getSelection()/getSelectionEx
thanks for looking into this. BTW, i have another selection api bug: viewtopic.php?t=77219. It is unlikely to be related, though.
- Wed Mar 29, 2023 5:13 pm
- Forum: Python scripting and macros
- Topic: [not bug] GetSelectionEx: selection order information is incomplete
- Replies: 3
- Views: 1175
[not bug] GetSelectionEx: selection order information is incomplete
1. make two Part Cubes, move them apart 2. select edges in this order: select-order.png 3. >>> [(so.Object.Name, so.SubElementNames) for so in Gui.Selection.getSelectionEx()] [('Box001', ('Edge12', 'Edge10')), ('Box', ('Edge12', 'Edge10'))] As it should be clear from the console dump, it is impossib...
- Wed Mar 29, 2023 2:30 pm
- Forum: Help on using FreeCAD
- Topic: Sketcher toolbars missing/appear on other workbenches
- Replies: 11
- Views: 2554
Re: Sketcher toolbars missing/appear on other workbenches
So keeping this weird behavior for the sake of potential maybe-in-the-future addon workbench seems not ideal. A sketcher addon would make more sense to take the form of an additional toolbar. Because if you have an addon that needs to work in edit mode, then it's very likely that you would need ske...
- Wed Mar 29, 2023 1:53 pm
- Forum: Help on using FreeCAD
- Topic: Sketcher toolbars missing/appear on other workbenches
- Replies: 11
- Views: 2554
- Wed Mar 29, 2023 12:48 pm
- Forum: Python scripting and macros
- Topic: Selection bug: selected object missing in getSelection()/getSelectionEx
- Replies: 10
- Views: 2746
Selection bug: selected object missing in getSelection()/getSelectionEx
1. open this file: selection-bug.FCStd 2. in model tree, select Cube and then Cut 3. >>> [o.Name for o in Gui.Selection.getSelection()] ['Cut'] Cube is missing from selection. The same happens with getSelectionEx() and is seen in selection view. If i select these things in 3d view, everything works ...
- Wed Mar 29, 2023 11:22 am
- Forum: Help on using FreeCAD
- Topic: Sketcher toolbars missing/appear on other workbenches
- Replies: 11
- Views: 2554
Sketcher toolbars missing/appear on other workbenches
Hi everyone! It's been a while. EDIT: https://github.com/FreeCAD/FreeCAD/issues/9135 Seems like a bug. My sketcher toolbars are misbehaving. 1. reset config, restart FreeCAD 2. set startup workbench to Sketcher. Restart FreeCAD. so far so good, Sketcher workbench is loaded, with almost no toolbars 3...
- Tue Jan 03, 2023 12:33 pm
- Forum: Part Design module development
- Topic: Sketcher performance - where do those CPU cycles go.
- Replies: 37
- Views: 10977
Re: Sketcher performance - where do those CPU cycles go.
I used the DeriVector2 arithmetic to transform ConstraintL2LAngle and ConstraintP2PAngle from radians to size/dimensions errors I haven't seen how you actually did that, but i have worries. If the error is just angles, the solver sees that only rotationg the lines will help to reduce the error, whi...
- Sun Jan 01, 2023 1:24 pm
- Forum: Part Design module development
- Topic: Sketcher performance - where do those CPU cycles go.
- Replies: 37
- Views: 10977
Re: Sketcher performance - where do those CPU cycles go.
A cheap criterion to stop the iterations is on the line of "when the rate of convergence is smaller than a limit" - on the ground of "diminishing returns - too much effort to squeeze the improvements in the least significant bits". I have an impression that usually, if the solve...
- Sun Jan 01, 2023 2:10 am
- Forum: Part Design module development
- Topic: Sketcher performance - where do those CPU cycles go.
- Replies: 37
- Views: 10977
Re: Sketcher performance - where do those CPU cycles go.
Ideally, we should derive solution_accuracy of solved sketch from constraint errors, and write out shape tolerances as something like 3*(solution_accuracy). I'm not sure if it's possible for sketches with remaining degrees of freedom, though. 1e-7 mm is not hard-wired into OCC, it's just a default t...
- Sat Dec 31, 2022 11:43 am
- Forum: Part Design module development
- Topic: Sketcher performance - where do those CPU cycles go.
- Replies: 37
- Views: 10977
Re: Sketcher performance - where do those CPU cycles go.
acolomitchi wrote: ↑Sat Dec 31, 2022 1:18 am That is to say: in the unit (1.0) range, the absolute imprecision of going through square/sqrt is around 1e-8;
Code: Select all
>>> sqrt(pi)**2 - pi
-4.440892098500626e-16