Search found 153 matches

Go to advanced search

by project4
Wed Aug 01, 2018 6:48 pm
Forum: Assembly
Topic: Another approach to assembly solver (A2plus)
Replies: 1636
Views: 63126

Re: Another approach to assembly solver (A2plus)

Now that the solversystem outputs so much info about included parts... Wouldn't it be great upon failing _changed_ imported parts, that the solver just reminds "Please check part xyz for changed constraints!" with xyz being the part where the solver exited? I mean, instaed of all the error messages...
by project4
Wed Aug 01, 2018 6:04 am
Forum: Assembly
Topic: Another approach to assembly solver (A2plus)
Replies: 1636
Views: 63126

Re: Another approach to assembly solver (A2plus)

@Kbwbe @project4 Is there a way to check every x thousand steps if the solver is doing well and movement rotation are acctually reducing the gap to the target? Good thinking! That way the calculations could be stopped in case there is a problem with the solver logic... It shouldn't be a problem. Ju...
by project4
Tue Jul 31, 2018 5:32 pm
Forum: Assembly
Topic: Another approach to assembly solver (A2plus)
Replies: 1636
Views: 63126

Re: Another approach to assembly solver (A2plus)

kbwbe wrote:
Tue Jul 31, 2018 5:15 pm
Hi @all,
find feature update at github.

Solving of constraints can now be undone by FreeCAD's UNDO/REDO system.

If solving the constraints let you get undesired positions of your parts, simple hit FreeCAD's undo button. Your assembly looks again like before the wrong operation.
Well Done!
by project4
Mon Jul 30, 2018 6:58 pm
Forum: Assembly
Topic: Another approach to assembly solver (A2plus)
Replies: 1636
Views: 63126

Re: Another approach to assembly solver (A2plus)

Hi guys, Sorry for being less involved recently. There is a chance I'll have to step down from active involvement due to very big changes in my business that will require all of my time for some period. Hi @project4, saying it again: Thank you for all your work done within this project. I wish you ...
by project4
Mon Jul 30, 2018 5:45 pm
Forum: Assembly
Topic: Another approach to assembly solver (A2plus)
Replies: 1636
Views: 63126

Re: Another approach to assembly solver (A2plus)

Hi guys, Sorry for being less involved recently. There is a chance I'll have to step down from active involvement due to very big changes in my business that will require all of my time for some period. For now, I was playing with the code to try my rotations theory... With the experimental code any...
by project4
Sun Jul 29, 2018 7:10 pm
Forum: Assembly
Topic: Another approach to assembly solver (A2plus)
Replies: 1636
Views: 63126

Re: Another approach to assembly solver (A2plus)

Ok. Based on the printouts now I have the needed rotation center and the rotation angle... How do I apply it to the rigid.spin? I should probably get somehow the rotation axis... how do I do it? @kbwbe, @Turro75 Your math lessons are needed again :) Hi @project4, if you are working with 2 vectors, ...
by project4
Sun Jul 29, 2018 6:09 pm
Forum: Assembly
Topic: Another approach to assembly solver (A2plus)
Replies: 1636
Views: 63126

Re: Another approach to assembly solver (A2plus)

Try playing with vector.dot(vector) this what it does def dotproduct(first, other): "dotproduct(Vector,Vector) - returns the dot product of both vectors" if isinstance(first,FreeCAD.Vector) and isinstance(other,FreeCAD.Vector): return (first.x*other.x + first.y*other.y + first.z*other.z) def angle(...
by project4
Sun Jul 29, 2018 2:53 pm
Forum: Assembly
Topic: Another approach to assembly solver (A2plus)
Replies: 1636
Views: 63126

Re: Another approach to assembly solver (A2plus)

Substract spincenter to both v1 and v2, now you have two vectors which are both starting at origin and keep original angle. So now getangle gives you a reliable value. As Kbwbe already said be careful on using methods on spincenter as most of them modify spincenter too @kbwbe, @Turro75 Guys, It loo...
by project4
Sun Jul 29, 2018 9:22 am
Forum: Assembly
Topic: Another approach to assembly solver (A2plus)
Replies: 1636
Views: 63126

Re: Another approach to assembly solver (A2plus)

@kbwbe You will probably have faster answer than I'll get by myself... I have the spinCenter point. I have 2 vectors to 2 refPoints: # Pseuto-code: spinCenter = self.spinCenter v1 = spinCenter.add(dep.refPoint) v2 = spinCenter.add(foreignDep.refPoint) How do I get the angle between the 2 vectors? a...
by project4
Sun Jul 29, 2018 5:58 am
Forum: Assembly
Topic: Another approach to assembly solver (A2plus)
Replies: 1636
Views: 63126

Re: Another approach to assembly solver (A2plus)

@kbwbe You will probably have faster answer than I'll get by myself... I have the spinCenter point. I have 2 vectors to 2 refPoints: # Pseuto-code: spinCenter = self.spinCenter v1 = spinCenter.add(dep.refPoint) v2 = spinCenter.add(foreignDep.refPoint) How do I get the angle between the 2 vectors? an...

Go to advanced search