Search found 7851 matches

by DeepSOIC
Fri Dec 30, 2022 10:27 pm
Forum: Part Design module development
Topic: Sketcher performance - where do those CPU cycles go.
Replies: 37
Views: 10681

Re: Sketcher performance - where do those CPU cycles go.

Ummm... so... if you're using Sketcher** for landscaping (100 m order of magnitude), construction or heavy machinery (10m oom), machinery (1m oom) or plastic-3d-printables (0.1-0.01m), you can rest assured the Sketcher will do its best in (attempting to) compute everything with 1Å precision? Is my ...
by DeepSOIC
Thu Dec 29, 2022 12:16 am
Forum: Announcements & Features
Topic: B-Spline Constraints: Fully Funded! Thanks everybody!
Replies: 256
Views: 5826902

Re: B-Spline Constraints: Fully Funded! Thanks everybody!

Hi everyone! abdullah has kindly asked me to have a look at this. I have looked at some of the code of the pull-request (jnxd's sketcher-point-on-bspline branch at 44fb105b4d1d6a8aa724e1384dc5ae570894b1fe), but did not compile it, and did not fully read this discussion. Here's my opinion. I have no ...
by DeepSOIC
Tue Dec 27, 2022 1:16 am
Forum: Part Design module development
Topic: Sketcher performance - where do those CPU cycles go.
Replies: 37
Views: 10681

Re: Sketcher performance - where do those CPU cycles go.

have a look here, for example:
https://github.com/DeepSOIC/FreeCAD-ell ... DogLeg.cpp
it is my reimplementation of sketcher's dogleg solver, with slight twists due to architecture change, but also with quite a few more comments.
by DeepSOIC
Tue Dec 27, 2022 1:10 am
Forum: Part Design module development
Topic: Sketcher performance - where do those CPU cycles go.
Replies: 37
Views: 10681

Re: Sketcher performance - where do those CPU cycles go.

Question - is the success condition of the iterative solving absolute or relative to the sketch size? Does the solver stop once an absolute precision has been reached or is the precision relative to sketch size? it is hypot(err1, err2, ...) < convergence (convergence = 1e-10 by default; err1 and er...
by DeepSOIC
Thu Dec 22, 2022 6:10 pm
Forum: Part Design module development
Topic: Sketcher performance - where do those CPU cycles go.
Replies: 37
Views: 10681

Re: Sketcher performance - where do those CPU cycles go.

If I am to go with "angles=>distance" in re errors, I'll probably derive some distance from the elements in the constraint and return the length of the "error chord" (circle with radius the derived distance, use the error angle, return the chord len) I think this is approximatel...
by DeepSOIC
Thu Dec 22, 2022 12:15 pm
Forum: Part Design module development
Topic: Sketcher performance - where do those CPU cycles go.
Replies: 37
Views: 10681

Re: Sketcher performance - where do those CPU cycles go.

acolomitchi wrote: Wed Dec 21, 2022 11:35 pm eliminate the "impedance mismatch" between large linear dimensions vs angles in the (-pi, pi) range, leading to fudge factors that don't quite work
okay, i see you already know quite a bit about this =) , I hope you'll actually fix it.
by DeepSOIC
Thu Dec 22, 2022 11:05 am
Forum: Part Design module development
Topic: Sketcher performance - where do those CPU cycles go.
Replies: 37
Views: 10681

Re: Sketcher performance - where do those CPU cycles go.

I'll try to define the "constraint errors" and their gradients into "square distance errors" wherever they are defined in terms of "distance errors". I'm not 100% sure what you are up to, but be careful with it. 1) if the gradient of error function zeroes out where err...
by DeepSOIC
Mon Dec 05, 2022 12:45 am
Forum: Help on using FreeCAD
Topic: Lattice 2 - ParaSeries - Array - Position and Count
Replies: 3
Views: 474

Re: Lattice 2 - ParaSeries - Array - Position and Count

Set PolarArray's "Values Source" property to Generator.
by DeepSOIC
Fri Nov 04, 2022 8:57 pm
Forum: Help on using FreeCAD
Topic: Face array
Replies: 16
Views: 1343

Re: Face array

Is there some guarantee that Lattice2 will always match exactly that Placement from PlacementSubsequence with that Face from Faces of dodecahedron and then the Edges and Vertices of that Face that that Placement itself refers to? It's complicated. Lattice2 will try to find the matching vertex. The ...
by DeepSOIC
Fri Nov 04, 2022 7:30 pm
Forum: Help on using FreeCAD
Topic: Face array
Replies: 16
Views: 1343

Re: Face array

Well, it took me a while to figure this out, but here we go.
arrayedplacementdodecahedron-aligned-deepsoic.FCStd
(32.49 KiB) Downloaded 39 times
Subsequence001 does the alignment. Subsequence002 harmonizes normals.