Giter VIP home page Giter VIP logo

freecad-lithophane's People

Contributors

furti avatar luzpaz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

freecad-lithophane's Issues

Improve logging by showing number of steps

Each command logs the steps performed and the time needed. We should improve the log to show the number of steps involved in the command.

e.g.

1/5 initializing
2/5 doing some stuff
...

Make it possible to cancel long running tasks

The make solid command can take a while. We should make it possible to cancel this command so that we don't have to close the FreeCAD instance when it takes too long for us to finish.

Create Box in a single loop

To create the box we iterate the image data 3 times. We should do this in a single loop to save some time.

Create nozzle size Property

The nozzle size of a 3D Printer defines how wide a line is that gets drawn.

We might use this to calculate the average of pixels in this radius. So we can reduce the number of pixels drastically.

Create Documentation

Document the General usage and available commands:

  • Import Image
  • Create Box
  • Show Pointcloud
  • Make Solid

Saving does not work with Python 3

Describe the bug
When saving a File with a lithophane Image we get "Bytes" object not serializeable. Problem ist, that in py3 the 'base64ImageOriginal' is a Bytes object and not a Unicode string. have to encode it.

To Reproduce
Steps to reproduce the behavior:

  1. Create lithophane Image
  2. Save file
  3. See error

Expected behavior
Saving should be possible with python 3

Scale: Width box has a limit of 100 mm

Describe the bug
The Width Box in the scale command has a Limit of 100 mm. Should be increased to 100m like in the Length box.

To Reproduce
Steps to reproduce the behavior:

  1. Import Lithophane
  2. Select Lithophane and start "Scale" command
  3. Enter something above 100mm in the Width box

Expected behavior
Width box should take Values up to 100 m

FreeCAD Version Info:

All versions

Handle transparency

The import does not handle transparency right now.

  • Transparency should be handled as "white" by default
  • Make it possible to change the "height" for the alpha channel

Partial Tube

Hi furti. First of all, thank you very much for putting in the time and effort to create and maintain this workbench. It is extremely useful! I am using FreeCAD version 0.18.4.
This is not an issue, but a feature suggestion. One possible feature of interest would be to add an option to arrange the Lithophane as a partial tube. This way, the final product can stand on its own like the full tube, but the entire picture can be seen from one viewing angle.

Create zResolution property

3D Printers don't have infinite Resolution on the Z-Axis. So we can round the Pixel height to the nearest multiple of our Printers Resolution.

e.g. if our Printer can print layers of 0.1mm in height, it makes no sense for us to create Pixels at a height of 0.553. we should round this to 0.6.

A positive sideeffekt of this optimization is, that we can reduce a lot more Points because more Points share the same layer.

Error in "Create Solid" when no mesh is selected

Describe the bug
When running the "Create Solid" command with no mesh selected the following error is displayed in the console:

Running the Python command 'Make_Solid' failed:
Traceback (most recent call last):
  File "C:\Users\Daniel\AppData\Roaming\FreeCAD\Mod\FreeCAD-Lithophane\make_solid.py", line 81, in Activated
    mesh, meshLabel = lithophane_utils.findSelectedMesh()

'NoneType' object is not iterableRunning the Python command 'Make_Solid' failed:
Traceback (most recent call last):
  File "C:\Users\Daniel\AppData\Roaming\FreeCAD\Mod\FreeCAD-Lithophane\make_solid.py", line 81, in Activated
    mesh, meshLabel = lithophane_utils.findSelectedMesh()

'NoneType' object is not iterable

Document image viewer

Document that a double click on the LithophaneImage Shows the actual Image in a modal.

error tutorial

instead of -
If you want to use OpenSCAD for Boolean Operations, switch to the OpenSCAD Workbench and go to Edti > Preferences > OpenSCAD and set the OpenSCAD executable path.

should (probably because FC 0.19) -
If you want to use OpenSCAD for Boolean Operations, switch to the OpenSCAD Workbench and go to Edti > Preferences > Mod > OpenSCAD and set the OpenSCAD executable path.

In addition, I wrote a personal message on the forum.

Image of Tube is flipped along the y axis

Describe the bug
When creating a Tube Lithophane the image is flipped along the y axis somewhere during the process.
This is not expected and as a result text as an expample will be backwards.

To Reproduce
Steps to reproduce the behavior:

  1. Import Image
  2. Create Tube Lithophane

Expected behavior
I was expecting that the image does not change the orientation when creating a tube lithophane.
This behaviour does not exist for the Box Lithophane

FreeCAD Version Info:

OS: Windows 10 Version 2009
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24276 (Git)
Build type: Release
Branch: releases/FreeCAD-0-19
Hash: a88db11e0a908f6e38f92bfc5187b13ebe470438
Python version: 3.8.6+
Qt version: 5.15.1
Coin version: 4.0.1
OCC version: 7.5.0
Locale: German/Germany (de_DE)


Geometry commands not working after reload of saved file

Describe the bug
When reloading a FreeCAD file containing a lithophane Image, it is not possible to create geometry from the selected Image.

image

To Reproduce
Steps to reproduce the behavior:

  1. Import Image
  2. Save File
  3. Close File
  4. Open Saved File
  5. Select Image and click the "Create Box" command

Expected behavior
The geometry should be created.

FreeCAD Version Info:

Same with 0.17, 0.18, 0.18 Py3/Qt5

Exported .stl file from lithophane workbench contains one line:

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

FreeCAD Version Info:


Make image selectable in 3D view

The image is displayed in the 3D view now but can only be selected in the tree view. This is somewhat suboptimal when the task view is showbn and we want to select the image.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.