Assembly Challenge: hypnotic geometric thing

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

Assembly Challenge: hypnotic geometric thing

Post by Kunda1 » Thu Feb 28, 2019 4:46 pm

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
User avatar
DeepSOIC
Posts: 7291
Joined: Fri Aug 29, 2014 12:45 am
Location: Saint-Petersburg, Russia

Re: Assembly Challenge: hypnotic geometric thing

Post by DeepSOIC » Thu Feb 28, 2019 5:05 pm

Sketcher counts?
Attachments
kunda1-thingy-sketcher.FCStd
(4.6 KiB) Downloaded 50 times
chrisb
Posts: 21295
Joined: Tue Mar 17, 2015 9:14 am

Re: Assembly Challenge: hypnotic geometric thing

Post by chrisb » Thu Feb 28, 2019 5:40 pm

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

Post by cox » Thu Feb 28, 2019 6:43 pm

I wonder if it is possible to drive more than one small wheels without them crashing in center?
Attachments
kunda1-thingy-sketcher2.FCStd
(5.16 KiB) Downloaded 30 times
Need help? Feel free to ask, but please read the guidelines first
chrisb
Posts: 21295
Joined: Tue Mar 17, 2015 9:14 am

Re: Assembly Challenge: hypnotic geometric thing

Post by chrisb » Thu Feb 28, 2019 8:19 pm

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
(4.22 KiB) Downloaded 33 times
kbwbe
Posts: 933
Joined: Tue Apr 10, 2018 3:12 pm
Location: Germany, near Köln (Cologne)

Re: Assembly Challenge: hypnotic geometric thing

Post by kbwbe » Thu Feb 28, 2019 10:38 pm

Hi Guy's,

and now without sketcher but with A2plus...

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

.
hypnoticon.png
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 ! :oops:
Also i simplified the script.
Attachments
simulation.py
(800 Bytes) Downloaded 46 times
hypnotic-asm.FCStd
(18.23 KiB) Downloaded 40 times
Last edited by kbwbe on Fri Mar 01, 2019 11:43 pm, edited 1 time in total.
KBWBE

https://github.com/kbwbe/A2plus
latest release: v0.4.42b, installable via FreeCAD's addon manager
Tutorial: gripper assembly https://www.youtube.com/watch?v=QMxcQ5tssWk
Documentation: https://www.freecadweb.org/wiki/A2plus_Workbench
User avatar
roerich_64
Posts: 827
Joined: Thu May 21, 2015 7:00 pm
Location: Ostfriesland

Re: Assembly Challenge: hypnotic geometric thing

Post by roerich_64 » Thu Feb 28, 2019 10:54 pm

@ 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

Post by kbwbe » Fri Mar 01, 2019 11:46 pm

The simulation script of my previous post needed to be fixed.
Please find attached the correct files.
Attachments
simulation.py
(800 Bytes) Downloaded 47 times
hypnotic-asm.FCStd
(18.23 KiB) Downloaded 33 times
KBWBE

https://github.com/kbwbe/A2plus
latest release: v0.4.42b, installable via FreeCAD's addon manager
Tutorial: gripper assembly https://www.youtube.com/watch?v=QMxcQ5tssWk
Documentation: https://www.freecadweb.org/wiki/A2plus_Workbench
User avatar
Kunda1
Posts: 6390
Joined: Thu Jan 05, 2017 9:03 pm

Re: Assembly Challenge: hypnotic geometric thing

Post by Kunda1 » Sat Mar 02, 2019 12:32 am

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
User avatar
Zolko
Posts: 645
Joined: Mon Dec 17, 2018 10:02 am

Re: Assembly Challenge: hypnotic geometric thing

Post by Zolko » Mon Mar 04, 2019 1:50 pm

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
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
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests