Quantcast

miniature drawing in pictogram

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

miniature drawing in pictogram

merallas
Is it possible to configurate OpenScad in such a way that miniature pictures which are store in a folder are visualized in the pictograms when opening a map.  An example of such an option is shown in SketchUp.  It would be a very helpfull option to search for a specifik drawing.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: miniature drawing in pictogram

stonysmith
In simple terms, no.  SCAD files are plain text.  The feature where you see pictograms would require that a (binary) preview of the item be stored inside the SCAD file, and there's no feature for that.
tp3
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: miniature drawing in pictogram

tp3
On 04/11/2017 06:07 PM, stonysmith wrote:
> In simple terms, no.  SCAD files are plain text.  The feature
> where you see pictograms would require that a (binary) preview
> of the item be stored inside the SCAD file, and there's no
> feature for that.
>
In theory it could just try running a preview evaluation. So
I don't see any technical issue as such apart from the possible
high load it could cause. I don't know how different platforms
handle that. It might not work for all files though, especially
if those are not self contained.

I don't think it's possible to do with the current application
(except maybe on Linux?) without code changes and maybe even
need for special installation.

ciao,
  Torsten.





_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
-- Torsten
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: miniature drawing in pictogram

merallas
In reply to this post by merallas
It should be a feature in the SCAD program. This is also the case in SketchUp. The miniature drawings are only visible when the map is opened in the program. I hope the programmers will build in this option at some time in SCAD, also.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: miniature drawing in pictogram

stonysmith
In reply to this post by tp3
> In theory it could just try running a preview evaluation.

If the SCAD loads a number of STLs or computes a complicated minkowski, I've got items that even on just F5 run for over an hour.  Such a "preview evaluation" on a large directory of models would be intolerably slow. The only way to do it "efficiently" is store a thumbnail in the file.. adding complexity to the format. (it would need to be stored in a binary format)
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: miniature drawing in pictogram

kintel
Administrator
In reply to this post by merallas
> On Apr 11, 2017, at 16:51, merallas <[hidden email]> wrote:
>
> It should be a feature in the SCAD program.

Yep, I think that, at least on Mac, it’s pretty easy to modify an icon once a file is saved and we happen to have a bitmap lying around.
To make it work multi-platoform is probably pretty annoying, but we could simply implement something like this whenever someone with platform knowledge and motivation wants to give it a shot. Could be a good task for new developers with strong platform skills.

 -Marius


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: miniature drawing in pictogram

codifies
In reply to this post by stonysmith
On 12/04/17 00:44, stonysmith wrote:
> (it would need to be stored in a binary format)

nah, an embedded image in an email is not sent binary... but rather base64

but then that doesn't solve problems with integrating actual image
retrieval with the different mechanisms different platforms have for
generating previews....  (a problem you'd still have if it was embedded
binary)

likely a thundering pita and also likely permanently broken on some
platforms depending on how the end user chooses to set up their machine...



_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: miniature drawing in pictogram

Peter Falke
And than someone wants to have his/her preview rotated and scaled a certain way. How to implement that?

2017-04-12 9:20 GMT+02:00 Mr C Camacho <[hidden email]>:
On 12/04/17 00:44, stonysmith wrote:
(it would need to be stored in a binary format)

nah, an embedded image in an email is not sent binary... but rather base64

but then that doesn't solve problems with integrating actual image retrieval with the different mechanisms different platforms have for generating previews....  (a problem you'd still have if it was embedded binary)

likely a thundering pita and also likely permanently broken on some platforms depending on how the end user chooses to set up their machine...




_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Loading...