## Assembly Challenge: hypnotic geometric thing

Discussion about the development of the Assembly workbench.
Kunda1
Posts: 6390
Joined: Thu Jan 05, 2017 9:03 pm

### Assembly Challenge: hypnotic geometric thing

phpBB [video]
Anyone interested in testing the different assembly workbenches to model this hypnotic thing?
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
DeepSOIC
Posts: 7291
Joined: Fri Aug 29, 2014 12:45 am
Location: Saint-Petersburg, Russia

### Re: Assembly Challenge: hypnotic geometric thing

Sketcher counts?
Attachments
kunda1-thingy-sketcher.FCStd
chrisb
Posts: 21295
Joined: Tue Mar 17, 2015 9:14 am

### Re: Assembly Challenge: hypnotic geometric thing

I would have bet that it works only of the diameters of both circles have a certain ratio, my guess was 1:2. Your sketch proves that it is arbitrary within certain limits.
cox
Posts: 963
Joined: Wed Nov 26, 2014 11:37 pm

### Re: Assembly Challenge: hypnotic geometric thing

I wonder if it is possible to drive more than one small wheels without them crashing in center?
Attachments
kunda1-thingy-sketcher2.FCStd
chrisb
Posts: 21295
Joined: Tue Mar 17, 2015 9:14 am

### Re: Assembly Challenge: hypnotic geometric thing

Open Sketcher and run the code in python console. Outside sketcher additional recompute is needed.

Code: Select all

``````import time
from PySide import QtCore

# call from console: execfile('/Users/cb/panhard/coupe/sanssoupapes/hypno.py')

step = 1.0
timeout = 0.001
angle = 720

def update():
global angle
angle -= step
App.ActiveDocument.Sketch.setDatum(37,App.Units.Quantity(str(angle)+' deg'))

while angle > 0:
update()
App.ActiveDocument.recompute()
time.sleep(timeout)
``````
Attachments
hypno_cb.FCStd
kbwbe
Posts: 933
Joined: Tue Apr 10, 2018 3:12 pm
Location: Germany, near Köln (Cologne)

### Re: Assembly Challenge: hypnotic geometric thing

Hi Guy's,

and now without sketcher but with A2plus...

Here is a video:
https://youtu.be/nUQezfutJYs

.
hypnoticon.png (109.65 KiB) Viewed 1212 times
.

A2plus has to be installed
1) Copy the attached script to your macro folder
2) Open the attached fcstd file
3) Start the macro

To speed it up i used modified solver accuracy...
With standard options the simulation will be slower.

Code: Select all

``````SOLVER_CONTROLDATA = {
#Index:(posAccuracy,spinAccuracy,completeSolvingRequired)
1:(0.1,0.1,True)
}
``````
Edit:
There was an error in the attached simulation script. It was only able to run on my local installation, but not on a standard installation. I replaced the attached script by a correct one. Sorry !
Also i simplified the script.
Attachments
simulation.py
hypnotic-asm.FCStd
Last edited by kbwbe on Fri Mar 01, 2019 11:43 pm, edited 1 time in total.
KBWBE

https://github.com/kbwbe/A2plus
roerich_64
Posts: 827
Joined: Thu May 21, 2015 7:00 pm
Location: Ostfriesland

### Re: Assembly Challenge: hypnotic geometric thing

@ Klaus: 1+
kbwbe
Posts: 933
Joined: Tue Apr 10, 2018 3:12 pm
Location: Germany, near Köln (Cologne)

### Re: Assembly Challenge: hypnotic geometric thing

The simulation script of my previous post needed to be fixed.
Please find attached the correct files.
Attachments
simulation.py
hypnotic-asm.FCStd
KBWBE

https://github.com/kbwbe/A2plus
Kunda1
Posts: 6390
Joined: Thu Jan 05, 2017 9:03 pm

### Re: Assembly Challenge: hypnotic geometric thing

Wow, what a great response + learning more about FreeCAD in the process!
Thanks to all that participated.
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
Zolko
Posts: 645
Joined: Mon Dec 17, 2018 10:02 am

### Re: Assembly Challenge: hypnotic geometric thing

DeepSOIC wrote:
Thu Feb 28, 2019 5:05 pm
Sketcher counts?

Code: Select all

``````kunda1-thingy-sketcher.FCStd
``````
And here is the assembly using your sketch as base (with Asm4):

hypnotic_0.98Mb.gif (1006.36 KiB) Viewed 1005 times
try the Assembly4 workbench for FreCAD v0.19
install with Tools > Addon Manager > Assembly4 — tutorials here and here

### Who is online

Users browsing this forum: No registered users and 2 guests