discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

geared part

A
adrianv
Sat, Jun 1, 2019 1:46 PM

I think that ultimately trying to really solve the three points you raise is
hard and will block meaningful progress.  We just need to ignore those
issues and try to press forward, or nothing is going to happen.

It seemed clear to me that hoping for consensus was too much.  As I noted,
there's a vocal group that thinks we don't need libraries and seems kind of
opposed to the idea.  They argue that it's easier to just write stuff from
scratch rather than learning to use a library.  The sort of library that
might interest that group of people (if you could find one) is going to be
quite different from the sort of library that I think we need.  When I
raised this issue a few months ago it was pretty clear that finding any kind
consensus was going to be impossible.  I decided that it made more sense to
try to build something good and hope that people would use it.

It seems that right now there is no good solution to the name space problem.
And it's only made worse by the fact that we can't use "use" due to its
performance problems.  However, there are also not tons of libraries, so in
some sense, the chance of conflict is low.  One way to avoid conflict is to
put everything into one big library and design it so there's no conflict,
which is the approach BOSL is taking, I would say.

Package management is a nice idea.  Especially if we had some sort of
automatic package fetching mechanism that would just install necessary
packages.  But that would have to be done outside of OpenSCAD and raises
more issues.  I think package management is also not really a major issue
until there are lots of libraries.  At least two package management
approaches have been suggested over the years.  But it seems like this
presents an extra hurdle and extra complication for just building support
for a core library.

In BOSL there is validation code.  I haven't looked at it and don't know how
it works.  The examples in the manual are all automatically generated from
comments in the code, which serves as another check on code validity.

capveg wrote

I'm all for trying to find the Right Thing and am happy to apply my own
personal elbow grease to what ever the consensus happens to be.

That said, if folks follow the thread in the
https://github.com/openscad/MCAD/issues/32 issue task, a few meta issues
came up:

  1. If we do libraries, do we need to also do package management?
  2. What is the right way to create an automated test to verify that the
    library is doing what it claims (e.g., is the generated gear the correct
    size)?
  3. [didn't come up, but should have] How do we do name spacing, e.g., so
    that my library doesn't use names that conflict with your library?

My take is a lot of these problems seem like re-inventing the wheel to me
and may be harder to solve in openscad than is worth investigating, but
I'm
happy to be proven wrong.

  • Rob
    .

On Sat, Jun 1, 2019 at 3:54 PM adrianv <

avm4@

> wrote:

capveg wrote

Also see my question about a maintainer for MCAD libraries :-)
https://github.com/openscad/MCAD/issues/32  Maybe with the new release
(whoo!) of openscad, it's time to clean up the MCAD libraries too?  I

can

try to help a bit..

The MCAD libraries need more than a "clean up" to be a valuable tool.
When
I came to OpenSCAD I asked the question here, "where are the libraries"
and
the prevailing answer from the vocal responders was "We don't need
libraries.  Just write stuff yourself."  Maybe this explains the dismal
state of libraries for OpenSCAD.  What OpenSCAD needs (for the rest of us
who want to use a library) is a well written, well organized library that
extends its capabilities.  MCAD is a disorganized amalgamation of a bunch
of
random stuff, not a coherent and complete extension of base OpenSCAD.  It
does not seem like a good starting point for coming up with a good
library,
and certainly is far from being a good library as it stands.

I surveyed all the libraries I could find and concluded that BOSL was the
library with the most promise.  It tries to do what a basic foundational
library should do, and then adds a bunch of other interesting stuff
beyond
that.  It is actively maintained, well documented on its wiki with lots
of
examples, and work is underway to make an even better version in BOSL2.
I
suggest that it would be better to take a look at BOSL and help make it
better rather than trying to somehow fix MCAD---I think the latter would
be
wasted effort given that a much better option already exists.  (If you
find
a bug it actually gets fixed, and if you want to make suggestions for
major
additions or changes to BOSL2, the maintainer is listening.)

https://github.com/revarbat/BOSL/wiki

Note that BOSL2 was started to break free from backwards compatibility
with
BOSL and it is unstable now, as the interface is being modified to make
things more uniform and to make some new features better integrated.  So
it's the place to look if you're interested in development, and where
things
are headed, but not if you want a stable library that will still run your
model next month without changes.  This means that now is the time to
make
proposals if you think there's something that should be really different.

https://github.com/revarbat/BOSL2/wiki

--
Sent from: http://forum.openscad.org/


OpenSCAD mailing list

Discuss@.openscad

Discuss@.openscad

I think that ultimately trying to really solve the three points you raise is hard and will block meaningful progress. We just need to ignore those issues and try to press forward, or nothing is going to happen. It seemed clear to me that hoping for consensus was too much. As I noted, there's a vocal group that thinks we don't need libraries and seems kind of opposed to the idea. They argue that it's easier to just write stuff from scratch rather than learning to use a library. The sort of library that might interest that group of people (if you could find one) is going to be quite different from the sort of library that I think we need. When I raised this issue a few months ago it was pretty clear that finding any kind consensus was going to be impossible. I decided that it made more sense to try to build something good and hope that people would use it. It seems that right now there is no good solution to the name space problem. And it's only made worse by the fact that we can't use "use" due to its performance problems. However, there are also not tons of libraries, so in some sense, the chance of conflict is low. One way to avoid conflict is to put everything into one big library and design it so there's no conflict, which is the approach BOSL is taking, I would say. Package management is a nice idea. Especially if we had some sort of automatic package fetching mechanism that would just install necessary packages. But that would have to be done outside of OpenSCAD and raises more issues. I think package management is also not really a major issue until there are lots of libraries. At least two package management approaches have been suggested over the years. But it seems like this presents an extra hurdle and extra complication for just building support for a core library. In BOSL there is validation code. I haven't looked at it and don't know how it works. The examples in the manual are all automatically generated from comments in the code, which serves as another check on code validity. capveg wrote > I'm all for trying to find the Right Thing and am happy to apply my own > personal elbow grease to what ever the consensus happens to be. > > That said, if folks follow the thread in the > https://github.com/openscad/MCAD/issues/32 issue task, a few meta issues > came up: > > 1) If we do libraries, do we need to also do package management? > 2) What is the right way to create an automated test to verify that the > library is doing what it claims (e.g., is the generated gear the correct > size)? > 3) [didn't come up, but should have] How do we do name spacing, e.g., so > that my library doesn't use names that conflict with your library? > > My take is a lot of these problems seem like re-inventing the wheel to me > and may be harder to solve in openscad than is worth investigating, but > I'm > happy to be proven wrong. > > - Rob > . > > On Sat, Jun 1, 2019 at 3:54 PM adrianv &lt; > avm4@ > &gt; wrote: > >> capveg wrote >> > Also see my question about a maintainer for MCAD libraries :-) >> > https://github.com/openscad/MCAD/issues/32 Maybe with the new release >> > (whoo!) of openscad, it's time to clean up the MCAD libraries too? I >> can >> > try to help a bit.. >> >> The MCAD libraries need more than a "clean up" to be a valuable tool. >> When >> I came to OpenSCAD I asked the question here, "where are the libraries" >> and >> the prevailing answer from the vocal responders was "We don't need >> libraries. Just write stuff yourself." Maybe this explains the dismal >> state of libraries for OpenSCAD. What OpenSCAD needs (for the rest of us >> who want to use a library) is a well written, well organized library that >> extends its capabilities. MCAD is a disorganized amalgamation of a bunch >> of >> random stuff, not a coherent and complete extension of base OpenSCAD. It >> does not seem like a good starting point for coming up with a good >> library, >> and certainly is far from being a good library as it stands. >> >> I surveyed all the libraries I could find and concluded that BOSL was the >> library with the most promise. It tries to do what a basic foundational >> library should do, and then adds a bunch of other interesting stuff >> beyond >> that. It is actively maintained, well documented on its wiki with lots >> of >> examples, and work is underway to make an even better version in BOSL2. >> I >> suggest that it would be better to take a look at BOSL and help make it >> better rather than trying to somehow fix MCAD---I think the latter would >> be >> wasted effort given that a much better option already exists. (If you >> find >> a bug it actually gets fixed, and if you want to make suggestions for >> major >> additions or changes to BOSL2, the maintainer is listening.) >> >> https://github.com/revarbat/BOSL/wiki >> >> Note that BOSL2 was started to break free from backwards compatibility >> with >> BOSL and it is unstable now, as the interface is being modified to make >> things more uniform and to make some new features better integrated. So >> it's the place to look if you're interested in development, and where >> things >> are headed, but not if you want a stable library that will still run your >> model next month without changes. This means that now is the time to >> make >> proposals if you think there's something that should be really different. >> >> https://github.com/revarbat/BOSL2/wiki >> >> >> >> >> -- >> Sent from: http://forum.openscad.org/ >> >> _______________________________________________ >> OpenSCAD mailing list >> > Discuss@.openscad >> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >> > > _______________________________________________ > OpenSCAD mailing list > Discuss@.openscad > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org -- Sent from: http://forum.openscad.org/
A
adrianv
Sat, Jun 1, 2019 1:55 PM

How about we stop throwing around all those negative claims of
things supposedly being useless or wasted effort? That includes
your dismissal of MCAD in a voice that is probably offending a
bit to those who wrote some of the scripts maybe 10 years ago
when OpenSCAD was still in its infancy and are still around here
reading those statement. Do you think that gets anyone motivated
improving things?

You're right.  I don't mean to insult the people who wrote things ten years
ago that are in MCAD, or to suggest that this effort was wasted.  Part of
the challenge of library design is having a vision for how the base language
should be extended, and such ideas take time to develop, and experience.  We
benefit now from the last ten years of development.

--
Sent from: http://forum.openscad.org/

> How about we stop throwing around all those negative claims of > things supposedly being useless or wasted effort? That includes > your dismissal of MCAD in a voice that is probably offending a > bit to those who wrote some of the scripts maybe 10 years ago > when OpenSCAD was still in its infancy and are still around here > reading those statement. Do you think that gets anyone motivated > improving things? You're right. I don't mean to insult the people who wrote things ten years ago that are in MCAD, or to suggest that this effort was wasted. Part of the challenge of library design is having a vision for how the base language should be extended, and such ideas take time to develop, and experience. We benefit now from the last ten years of development. -- Sent from: http://forum.openscad.org/
RS
Rob Sherwood
Sat, Jun 1, 2019 2:07 PM

On Sat, Jun 1, 2019 at 4:28 PM Torsten Paul Torsten.Paul@gmx.de wrote:

How about we stop throwing around all those negative claims of
things supposedly being useless or wasted effort? That includes
your dismissal of MCAD in a voice that is probably offending a
bit to those who wrote some of the scripts maybe 10 years ago
when OpenSCAD was still in its infancy and are still around here
reading those statement. Do you think that gets anyone motivated
improving things?

There seems to be some confusion about which person in the thread you're
replying to.  I'm the one that suggested MCAD in the first place (not
dismissed it) and one of the people who has been trying to provide patches
to update it.  As I posted originally, it works for me if you work around
the well known bugs.  I'll say again: I'm happy to help make it better but
there is not a consensus as to how to do that.

  • Rob
    .
On Sat, Jun 1, 2019 at 4:28 PM Torsten Paul <Torsten.Paul@gmx.de> wrote: > > How about we stop throwing around all those negative claims of > things supposedly being useless or wasted effort? That includes > your dismissal of MCAD in a voice that is probably offending a > bit to those who wrote some of the scripts maybe 10 years ago > when OpenSCAD was still in its infancy and are still around here > reading those statement. Do you think that gets anyone motivated > improving things? > There seems to be some confusion about which person in the thread you're replying to. I'm the one that suggested MCAD in the first place (not dismissed it) and one of the people who has been trying to provide patches to update it. As I posted originally, it works for me if you work around the well known bugs. I'll say again: I'm happy to help make it better but there is not a consensus as to how to do that. - Rob . > >
A
arnholm@arnholm.org
Sat, Jun 1, 2019 2:33 PM

On 2019-06-01 15:46, adrianv wrote:

It seemed clear to me that hoping for consensus was too much.  As I
noted,
there's a vocal group that thinks we don't need libraries and seems
kind of
opposed to the idea.  They argue that it's easier to just write stuff
from
scratch rather than learning to use a library.

I saw that discussion some time ago. Very odd.

The sort of library that
might interest that group of people (if you could find one) is going to
be
quite different from the sort of library that I think we need.  When I
raised this issue a few months ago it was pretty clear that finding any
kind
consensus was going to be impossible.  I decided that it made more
sense to
try to build something good and hope that people would use it.

Exactly.

To try to come up with "consensus" before something has been made is
usually a waste of time and will often drain away resources from useful
work. When good libraries appear they are useful regardless of
"consensus".

Libraries are meant to be a way of facilitating re-use of software
components. However, it is often forgotten that an ability to re-use
something is not the only requirement to a library. As Bjarne Stroustrup
once said: "For something to be re-usable, it must first be usable". It
may sound like a joke, but there are many "re-unusable" libraries in the
software world. It is harder to write a good re-usable library to be
used by many than to write a one-off piece of code.

The BOSL/BOSL2 libraries seem to be well documented, and that is one of
the most important aspects of making useful libraries.

Package management is a nice idea.  Especially if we had some sort of
automatic package fetching mechanism that would just install necessary
packages.  But that would have to be done outside of OpenSCAD and
raises
more issues.

If a library is found in a github repository, it can be cloned into a
location where the application can find it. That is for many practical
purposes a library package management system good enough.

Carsten Arnholm

On 2019-06-01 15:46, adrianv wrote: > It seemed clear to me that hoping for consensus was too much. As I > noted, > there's a vocal group that thinks we don't need libraries and seems > kind of > opposed to the idea. They argue that it's easier to just write stuff > from > scratch rather than learning to use a library. I saw that discussion some time ago. Very odd. > The sort of library that > might interest that group of people (if you could find one) is going to > be > quite different from the sort of library that I think we need. When I > raised this issue a few months ago it was pretty clear that finding any > kind > consensus was going to be impossible. I decided that it made more > sense to > try to build something good and hope that people would use it. Exactly. To try to come up with "consensus" before something has been made is usually a waste of time and will often drain away resources from useful work. When good libraries appear they are useful regardless of "consensus". Libraries are meant to be a way of facilitating re-use of software components. However, it is often forgotten that an ability to re-use something is not the only requirement to a library. As Bjarne Stroustrup once said: "For something to be re-usable, it must first be usable". It may sound like a joke, but there are many "re-unusable" libraries in the software world. It is harder to write a good re-usable library to be used by many than to write a one-off piece of code. The BOSL/BOSL2 libraries seem to be well documented, and that is one of the most important aspects of making useful libraries. > Package management is a nice idea. Especially if we had some sort of > automatic package fetching mechanism that would just install necessary > packages. But that would have to be done outside of OpenSCAD and > raises > more issues. If a library is found in a github repository, it can be cloned into a location where the application can find it. That is for many practical purposes a library package management system good enough. Carsten Arnholm
TP
Torsten Paul
Sat, Jun 1, 2019 2:36 PM

There seems to be some confusion about which person in
the thread you're replying to.

I'm not sure why, both the forum post reference and the
quotes in the text show that this was a reply to the post
from adrianv.

I saw your references to the pull requests and it's great
to see those contributions. I did answer to your post
separately and I think I pretty much share your point of
view regarding libraries.

ciao,
Torsten.

> There seems to be some confusion about which person in > the thread you're replying to. I'm not sure why, both the forum post reference and the quotes in the text show that this was a reply to the post from adrianv. I saw your references to the pull requests and it's great to see those contributions. I did answer to your post separately and I think I pretty much share your point of view regarding libraries. ciao, Torsten.
JF
Joe Francis
Sat, Jun 1, 2019 5:04 PM

On 6/1/19 9:33 AM, arnholm@arnholm.org wrote:

On 2019-06-01 15:46, adrianv wrote:

It seemed clear to me that hoping for consensus was too much.  As I
noted,
there's a vocal group that thinks we don't need libraries and seems
kind of
opposed to the idea.  They argue that it's easier to just write stuff
from
scratch rather than learning to use a library.

I saw that discussion some time ago. Very odd.

It's not just that they don't like the idea, it's that they're actively
hostile to the idea of libraries to the point I've talked to a handful
of people who wanted to get involved but stay away because of it.

It's really a shame.  A good library ecosystem detracts nothing from
users who don't want to use it, they can just continue to not use it. 
At the same time, there's very clearly a lot to be gained by some users
(and users who don't yet use OpenSCAD!) by having a good library ecosystem.

On 6/1/19 9:33 AM, arnholm@arnholm.org wrote: > On 2019-06-01 15:46, adrianv wrote: >> It seemed clear to me that hoping for consensus was too much.  As I >> noted, >> there's a vocal group that thinks we don't need libraries and seems >> kind of >> opposed to the idea.  They argue that it's easier to just write stuff >> from >> scratch rather than learning to use a library. > > I saw that discussion some time ago. Very odd. It's not just that they don't like the idea, it's that they're actively hostile to the idea of libraries to the point I've talked to a handful of people who wanted to get involved but stay away because of it. It's really a shame.  A good library ecosystem detracts nothing from users who don't want to use it, they can just continue to not use it.  At the same time, there's very clearly a lot to be gained by some users (and users who don't yet use OpenSCAD!) by having a good library ecosystem.
JF
Joe Francis
Sat, Jun 1, 2019 5:17 PM
  1. [didn't come up, but should have] How do we do name spacing,

e.g., so that my library doesn't use names that conflict with
your library?

I have not seen any common way to do that yet. Some libs use a
simple prefix. The solution mid/long term is certainly to support
namespace in the language but so far there's not much detailed
discussion how to do that in compatible way.

My take in experimenting with this is that separate namespaces is less
of a show stopper than people think, assuming a couple things.

1)  You only have libraries you are using for the current project on
your OPENSCADPATH (like scad_bundler does)
2)  The libraries are well-structured so that you can "use" files that
only import the parts of the "public API" you need into your code and
don't require you to "include" a broad range of "internal functions" to
make them work.

I very much think we have all the pieces in place to build good, usable
libraries, but they are underutilized and under-contributed-to because
the prevailing method of "share it on thingiverse" is terrible for
distribution, updates, and collaboration.  Because of that, we haven't
really figured out, as a community, "best practices" for making great
libraries that are heavily useful and reusable.

3) [didn't come up, but should have] How do we do name spacing, >> e.g., so that my library doesn't use names that conflict with >> your library? > I have not seen any common way to do that yet. Some libs use a > simple prefix. The solution mid/long term is certainly to support > namespace in the language but so far there's not much detailed > discussion how to do that in compatible way. > My take in experimenting with this is that separate namespaces is less of a show stopper than people think, assuming a couple things. 1)  You only have libraries you are using for the current project on your OPENSCADPATH (like scad_bundler does) 2)  The libraries are well-structured so that you can "use" files that only import the parts of the "public API" you need into your code and don't require you to "include" a broad range of "internal functions" to make them work. I very much think we have all the pieces in place to build good, usable libraries, but they are underutilized and under-contributed-to because the prevailing method of "share it on thingiverse" is terrible for distribution, updates, and collaboration.  Because of that, we haven't really figured out, as a community, "best practices" for making great libraries that are heavily useful and reusable.
NH
nop head
Sat, Jun 1, 2019 6:05 PM

Another aspect to this is frameworks. My own library is set up for
automation with Python scripts. It makes BOMS, stl files, dxf files,
assembly diagrams and build documentation like the Mendel90 build manual,
which was largely manual but is now automated  for every new project I make
using Markdown fragments in the OpenSCAD comments.. For that to work it has
lots of conventions and a very particular coding style. For example any
module that makes and stl must be called something_stl() and call a module
stl("something"). Then it appears on the BOM, gets generated automatically
and rendered for the build instructions.

For example this code:
//
//! * Attach the four feet using 10mm M3 dome screws, washers above and
below and nyloc nuts
//
module feet_assembly()
assembly("feet") {
base_assembly();

foot_positions()
    foot_assembly(base_thickness, foot);

}

Generates this:
Feet AssemblyVitamins
QtyDescription
8 Washer M3 x 7mm x 0.5mm
4 Screw M3 dome x 10mm
4 Nut M3 nyloc3D Printed parts
4 x foot.stl

[image: foot.png]
Sub-assemblies
1 x base_assembly

[image: base_assembled_tn.png]
Assembly instructions
[image: feet_assembly.png]

  • Attach the four feet using 10mm M3 dome screws, washers above and
    below and nyloc nuts

[image: feet_assembled.png]

For that reason I could never use anybody else's library. For example if I
wanted an involute gear I wouldn't use MCAD because it wouldn't fit in my
framework. I would look up the maths and write my own, so that any gears I
designed got added to the BOM, STL file automatically generated and
rendered into the build instructions. The only reason I haven't done that
is because I haven't designed anything with gears in it. My own library
only has things I have used, nothing more, nothing less.

On Sat, 1 Jun 2019 at 18:18, Joe Francis joe@lostapathy.com wrote:

  1. [didn't come up, but should have] How do we do name spacing,

e.g., so that my library doesn't use names that conflict with
your library?

I have not seen any common way to do that yet. Some libs use a
simple prefix. The solution mid/long term is certainly to support
namespace in the language but so far there's not much detailed
discussion how to do that in compatible way.

My take in experimenting with this is that separate namespaces is less of
a show stopper than people think, assuming a couple things.

  1. You only have libraries you are using for the current project on your
    OPENSCADPATH (like scad_bundler does)
  2. The libraries are well-structured so that you can "use" files that
    only import the parts of the "public API" you need into your code and don't
    require you to "include" a broad range of "internal functions" to make them
    work.

I very much think we have all the pieces in place to build good, usable
libraries, but they are underutilized and under-contributed-to because the
prevailing method of "share it on thingiverse" is terrible for
distribution, updates, and collaboration.  Because of that, we haven't
really figured out, as a community, "best practices" for making great
libraries that are heavily useful and reusable.


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

Another aspect to this is frameworks. My own library is set up for automation with Python scripts. It makes BOMS, stl files, dxf files, assembly diagrams and build documentation like the Mendel90 build manual, which was largely manual but is now automated for every new project I make using Markdown fragments in the OpenSCAD comments.. For that to work it has lots of conventions and a very particular coding style. For example any module that makes and stl must be called something_stl() and call a module stl("something"). Then it appears on the BOM, gets generated automatically and rendered for the build instructions. For example this code: // //! * Attach the four feet using 10mm M3 dome screws, washers above and below and nyloc nuts // module feet_assembly() assembly("feet") { base_assembly(); foot_positions() foot_assembly(base_thickness, foot); } Generates this: Feet AssemblyVitamins QtyDescription 8 Washer M3 x 7mm x 0.5mm 4 Screw M3 dome x 10mm 4 Nut M3 nyloc3D Printed parts 4 x foot.stl [image: foot.png] Sub-assemblies 1 x base_assembly [image: base_assembled_tn.png] Assembly instructions [image: feet_assembly.png] - Attach the four feet using 10mm M3 dome screws, washers above and below and nyloc nuts [image: feet_assembled.png] For that reason I could never use anybody else's library. For example if I wanted an involute gear I wouldn't use MCAD because it wouldn't fit in my framework. I would look up the maths and write my own, so that any gears I designed got added to the BOM, STL file automatically generated and rendered into the build instructions. The only reason I haven't done that is because I haven't designed anything with gears in it. My own library only has things I have used, nothing more, nothing less. On Sat, 1 Jun 2019 at 18:18, Joe Francis <joe@lostapathy.com> wrote: > 3) [didn't come up, but should have] How do we do name spacing, > > e.g., so that my library doesn't use names that conflict with > your library? > > I have not seen any common way to do that yet. Some libs use a > simple prefix. The solution mid/long term is certainly to support > namespace in the language but so far there's not much detailed > discussion how to do that in compatible way. > > > > My take in experimenting with this is that separate namespaces is less of > a show stopper than people think, assuming a couple things. > > 1) You only have libraries you are using for the current project on your > OPENSCADPATH (like scad_bundler does) > 2) The libraries are well-structured so that you can "use" files that > only import the parts of the "public API" you need into your code and don't > require you to "include" a broad range of "internal functions" to make them > work. > > I very much think we have all the pieces in place to build good, usable > libraries, but they are underutilized and under-contributed-to because the > prevailing method of "share it on thingiverse" is terrible for > distribution, updates, and collaboration. Because of that, we haven't > really figured out, as a community, "best practices" for making great > libraries that are heavily useful and reusable. > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >
J
jon
Sun, Jun 2, 2019 2:18 PM

The part I'm trying to duplicate looks like this:
http://www.jonbondy.com/scan0001.jpg

I ended up scanning it so that I could try to take off the dimensions
more accurately (the original scan is much higher resolution).

Now I want to lay the scan under my part, in OpenSCAD, so that I can
manipulate the design until it conforms to the scan.

Best I can do is surface() the scan file as a PNG.

I wonder how often it would be useful to put an image file down just as
a template

:)

Jon

The part I'm trying to duplicate looks like this: http://www.jonbondy.com/scan0001.jpg I ended up scanning it so that I could try to take off the dimensions more accurately (the original scan is much higher resolution). Now I want to lay the scan under my part, in OpenSCAD, so that I can manipulate the design until it conforms to the scan. Best I can do is surface() the scan file as a PNG. I wonder how often it would be useful to put an image file down just as a template :) Jon
NH
nop head
Sun, Jun 2, 2019 2:45 PM

I use InkScape to trace the edges and use the OpenSCAD plugin on
Thingiverse to output a polygon in OpenSCAD source format.

On Sun, 2 Jun 2019 at 15:18, jon jon@jonbondy.com wrote:

The part I'm trying to duplicate looks like this:
http://www.jonbondy.com/scan0001.jpg

I ended up scanning it so that I could try to take off the dimensions
more accurately (the original scan is much higher resolution).

Now I want to lay the scan under my part, in OpenSCAD, so that I can
manipulate the design until it conforms to the scan.

Best I can do is surface() the scan file as a PNG.

I wonder how often it would be useful to put an image file down just as
a template

:)

Jon


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

I use InkScape to trace the edges and use the OpenSCAD plugin on Thingiverse to output a polygon in OpenSCAD source format. On Sun, 2 Jun 2019 at 15:18, jon <jon@jonbondy.com> wrote: > The part I'm trying to duplicate looks like this: > http://www.jonbondy.com/scan0001.jpg > > I ended up scanning it so that I could try to take off the dimensions > more accurately (the original scan is much higher resolution). > > Now I want to lay the scan under my part, in OpenSCAD, so that I can > manipulate the design until it conforms to the scan. > > Best I can do is surface() the scan file as a PNG. > > I wonder how often it would be useful to put an image file down just as > a template > > :) > > Jon > > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >