Lithophane Workbench

Info about new community or project announcements, implemented features, classes, modules or APIs. Might get technical!
PLEASE DO NOT POST HELP REQUESTS OR OTHER DISCUSSIONS HERE!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
furti
Posts: 344
Joined: Mon Nov 27, 2017 5:27 pm

Re: Lithophane Workbench

Post by furti »

The Problem with Py3 and QT5 should be fixed now.

Did a Test with:

Code: Select all

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.14442 (Git)
Build type: Release
Branch: master
Hash: bb9d737ba1158fdba5d06df45ab3e213065139cd
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Austria (de_AT)

Code: Select all

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.13870 (Git)
Build type: Release
Branch: master
Hash: f0964a9c052ee666631cd9caec1655790964ecb6
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: German/Austria (de_AT)

Code: Select all

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13510 +12 (Git)
Build type: Release
Branch: 
Hash: 3bb5ff4e70c0c526f2d9dd69b1004155b2f527f2
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: German/Austria (de_AT)
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: Lithophane Workbench

Post by sgrogan »

furti wrote: Mon Aug 27, 2018 6:03 pm The Problem with Py3 and QT5 should be fixed now.
Thanks, it is working now.

I vote, +1, for inclusion in the add-ons manager.
"fight the good fight"
User avatar
furti
Posts: 344
Joined: Mon Nov 27, 2017 5:27 pm

Re: Lithophane Workbench

Post by furti »

easyw-fc wrote: Sun Aug 26, 2018 10:21 am you have to simply open an issue similar to this
Thanks for the hint. Created the issue. So hopefully it will be available via the Addon Manager soon :)

sgrogan wrote: Mon Aug 27, 2018 9:23 pm Thanks, it is working now.
Thanks for testing :)
User avatar
furti
Posts: 344
Joined: Mon Nov 27, 2017 5:27 pm

Re: Lithophane Workbench

Post by furti »

The newest version of the workbench can also handle the alpha channel of the Image now.

If a pixel is not fully opaque the alpha value will be used to caclulate the z value for the pixel.
  • 254 means maximum height
  • 0 means base height
  • And everything in between will be calculated accordingly
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Lithophane Workbench

Post by Kunda1 »

Lithophane WB added to FreeCAD Addons.
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
furti
Posts: 344
Joined: Mon Nov 27, 2017 5:27 pm

Re: Lithophane Workbench

Post by furti »

Kunda1 wrote: Thu Sep 06, 2018 7:32 pm Lithophane WB added to FreeCAD Addons
Thanks a lot for adding it. Will update the installation section in the quick start guide accordingly. :)
User avatar
furti
Posts: 344
Joined: Mon Nov 27, 2017 5:27 pm

Re: Lithophane Workbench

Post by furti »

When someone is getting the message "Select exactly one Lithophane Image to continue". The bug is fixed now. Simply update your workbench and it should work again (https://github.com/furti/FreeCAD-Lithophane/issues/23) :)
User avatar
furti
Posts: 344
Joined: Mon Nov 27, 2017 5:27 pm

Re: Lithophane Workbench

Post by furti »

Added a new Feature to the workbench :)


When importing an image, a greyscale version of it will be displayed in the 3D View. The size of the displayed image is equal to the size of the real geometry created. The image is displaye 1mm below the XY Plane. So we can draw on it pretty easy in top view.
image_3D_view.png
image_3D_view.png (68.63 KiB) Viewed 2670 times

There is also a new command "Scale Image" you can use to change the size of the image. This command can be used in two ways.
1. Change one of the two values to set a new Length or Width for the image. The other value will be adjusted accordingly
scale_image.png
scale_image.png (9.01 KiB) Viewed 2670 times
2. You can also select a Draft Line to scale the image accordingly. Lets say we want to Change the sail fo the windmill to be 20mm Long. We can do that in the following way:
  • Go To Top View
  • Switch to Draft Workbench and select the draft line tool
  • Draw a Line on top of a sail
windmill_line.png
windmill_line.png (122.54 KiB) Viewed 2670 times
  • Switch back to the Lithophane Workbench, select the image in the Tree View and start the "Scale Image" Command
windmill_select_line.png
windmill_select_line.png (85.1 KiB) Viewed 2670 times
The actual length of the line will be preselected.
  • Change the "Line Length" Field to 20mm and hit OK
The image will be recomputed. This might take a while. When finished the image should be way smaller in the 3D view. Now the one sail should be 20mm in length. We can check this by drawing another line above it and check its length.


Hope this is some useful feature :)
cox
Posts: 971
Joined: Wed Nov 26, 2014 11:37 pm

Re: Lithophane Workbench

Post by cox »

Fantastic, :-)
Need help? Feel free to ask, but please read the guidelines first
chrisb
Veteran
Posts: 53939
Joined: Tue Mar 17, 2015 9:14 am

Re: Lithophane Workbench

Post by chrisb »

Very helpful features! How about having a lock between X and Y which can be opened and closed, like it is often to be found in 2D drawing programs. There are cases where I have to scale only in one dimension. E.g. for an image of my mom I have to decrease it slightly in X but not in Y direction.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Locked