Search found 153 matches

Go to advanced search

by project4
Sun Jul 29, 2018 5:50 am
Forum: Assembly
Topic: Another approach to assembly solver (A2plus)
Replies: 1637
Views: 66326

Re: Another approach to assembly solver (A2plus)

Hmm... You're right about the 1/2 and 0.5 in the multiply. But it's very strange that the constants are not converted to float automatically... The "v2 = v0.add(Base.Vector(2,2,2))" resulted in "v2: Vector (0.0, 0.0, 0.0)" after all. If I change it to (2.0,2.0,2.0) it produces expected results. I s...
by project4
Sun Jul 29, 2018 5:18 am
Forum: Assembly
Topic: Another approach to assembly solver (A2plus)
Replies: 1637
Views: 66326

Re: Another approach to assembly solver (A2plus)

Now I'm really confused since even that simple code doesn't work :shock: v0 = Base.Vector(0,0,0) v1 = v0.add(Base.Vector(10,10,10)) v2 = v0.add(Base.Vector(2,2,2)) a = v2 a.multiply(1/2) FreeCAD.Console.PrintMessage("v0: {}\n".format(v0)) FreeCAD.Console.PrintMessage("v1: {}\n".format(v1)) FreeCAD....
by project4
Sat Jul 28, 2018 5:49 pm
Forum: Assembly
Topic: Another approach to assembly solver (A2plus)
Replies: 1637
Views: 66326

Re: Another approach to assembly solver (A2plus)

Branch "solver-stabilization" has been updated again. Rigid.calcSpinCenter() is fixed. Also some improvements for project-folder stuff are done. So project folder option is usable for different operation systems. Hi, Didn't have much time this weekend, but I'm playing with the code a bit and I thin...
by project4
Sat Jul 28, 2018 4:55 pm
Forum: Assembly
Topic: Another approach to assembly solver (A2plus)
Replies: 1637
Views: 66326

Re: Another approach to assembly solver (A2plus)

Branch "solver-stabilization" has been updated again. Rigid.calcSpinCenter() is fixed. Also some improvements for project-folder stuff are done. So project folder option is usable for different operation systems. Hi, Didn't have much time this weekend, but I'm playing with the code a bit and I thin...
by project4
Fri Jul 27, 2018 2:36 pm
Forum: Assembly
Topic: Another approach to assembly solver (A2plus)
Replies: 1637
Views: 66326

Re: Another approach to assembly solver (A2plus)

@kbwbe I'm playing with the rotations to see how it works and it looks like the spinCenter calculations doesn't work... What's wrong with that code? def calcSpinCenter(self): newSpinCenter = Base.Vector(0,0,0) countRefPoints = 0 for dep in self.dependencies: if dep.refPoint != None: newSpinCenter.ad...
by project4
Fri Jul 27, 2018 5:30 am
Forum: Assembly
Topic: Another approach to assembly solver (A2plus)
Replies: 1637
Views: 66326

Re: Another approach to assembly solver (A2plus)

Are you sure you saw the duplicates on latest version? I've added the list(set()) to getCandidates in the last change you took from me... Yes. But only 1 duplicate in 1 testcase. It was the motor of the pump. Therefore i could not solve the pump assembly. After my changes, it worked. !? Ohh... I se...
by project4
Thu Jul 26, 2018 5:02 pm
Forum: Assembly
Topic: Another approach to assembly solver (A2plus)
Replies: 1637
Views: 66326

Re: Another approach to assembly solver (A2plus)

Are you sure you saw the duplicates on latest version? I've added the list(set()) to getCandidates in the last change you took from me... Yes. But only 1 duplicate in 1 testcase. It was the motor of the pump. Therefore i could not solve the pump assembly. After my changes, it worked. !? Ohh... I se...
by project4
Thu Jul 26, 2018 4:43 pm
Forum: Assembly
Topic: Another approach to assembly solver (A2plus)
Replies: 1637
Views: 66326

Re: Another approach to assembly solver (A2plus)

Are you sure you saw the duplicates on latest version? I've added the list(set()) to getCandidates in the last change you took from me... Yes. But only 1 duplicate in 1 testcase. It was the motor of the pump. Therefore i could not solve the pump assembly. After my changes, it worked. !? Ohh... I se...
by project4
Thu Jul 26, 2018 1:21 pm
Forum: Assembly
Topic: Another approach to assembly solver (A2plus)
Replies: 1637
Views: 66326

Re: Another approach to assembly solver (A2plus)

Hi @project4, i updated branch "solver-stabilization". Changes are: bugfix in calculate chain, i recognized a double entry in worklist and system could not be solved. Now it looks as: def calculateChain(self, doc): self.stepCount = 0 rigCalcCount = 0 haveMore = True workList = [] if a2plib.isPartia...
by project4
Wed Jul 25, 2018 6:58 pm
Forum: Assembly
Topic: Another approach to assembly solver (A2plus)
Replies: 1637
Views: 66326

Re: Another approach to assembly solver (A2plus)

@project4, just tested your PR's. Everything is fine now. Good to have the button to toggle between solvermode "AllTogether" and "partial". Manuels crankshaft is no problem anymore, using partial system. Good work ! I had the crankshaft assembled before all the changes. All other models didn't work...

Go to advanced search