FreeCAD: Image mask to Pattern using Python. Commodore C64 Braille, hole, indentation, ventilation

preview_player
Показать описание
We create a macro to use an image of a Commodore 64 logo as a mask to create a pattern of sketch geometry that we can pad and pocket with. This video takes you line by line through a short macro that I have designed to create this effect. This is the short version of two videos which go into more detail about the python language that is being used for the FreeCAD Macro.

Long in-depth version:
Part 1:

Part 2:

This video follows the same route as the two videos and brings some improvements to the macro but we spend less time going in depth and concentrate on the task in hand.

Ideal for beginners and experts alike.

Donate:

Subscribe:

Browse my Redbubble Shop:

#freeCAD #tutorial #Python #CNC #3DPrinting #Retro
Рекомендации по теме
Комментарии
Автор

I am on the good old Universal Credit so funds are very tight round here, but I like what you are doing so when i get paid I am going to buy you a cuppa or two, you are doing a great service which should be rewarded ;)

AkiraFurball
Автор

This is very clever. I guess I need to learn Python now!

brucewilliams
Автор

0-x, 0-y would put it right way up if my thinking is correct..

Or..

outstep = radiusOfCircle * 1.5
outStartX = 0-((imageWidth *outstep)/2)
outStartY = 0-((ImageHeight* outstep)/2)

then in loop

vector (outStartX - x * outstep, outStartY - y *outstep, ...

Then iterate the list without steps to pick up every pixel so pixel perfect to the image and automatically adjust the output size based on circle diameter and outstep and rotate it correct way up with centre on origin..

I think.. been a very long times since I did any programming but I could be in the ball park :D

Not sure I really want to start coding again, it gets very I just know I am going to end up trying, its already bugging me being upside down, like a dog with a bone...

AkiraFurball
Автор

Thanks for all this effort !!Also thanks about the explanatory way !!! By the way, i would like to ask you if there is a way to install pandas library in FreeCAD?

giorgiogos