discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Polyhedron generation from two parallel polygones?

A
adrianv
Wed, Jul 8, 2020 11:04 AM

Personally I think the approach dotSCAD uses is a little broken.  If you do
like he suggests and you install two libs that both provide sweep.scad
you'll not be sure which one you're using.  If you provide code to someone
else they won't know which of many sweep.scad files were intended.  So what
you should actually do is create a libraries/dotSCAD directory and copy
everything from dotSCAD/src into that location.  Add "libraries" to your
path.  And then you should be able to do

use<dotSCAD/sweep.scad>

for example.  (Note that trailing semicolons are not needed.)  Now it is
unambiguous.

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

Personally I think the approach dotSCAD uses is a little broken. If you do like he suggests and you install two libs that both provide sweep.scad you'll not be sure which one you're using. If you provide code to someone else they won't know which of many sweep.scad files were intended. So what you should actually do is create a libraries/dotSCAD directory and copy everything from dotSCAD/src into that location. Add "libraries" to your path. And then you should be able to do use<dotSCAD/sweep.scad> for example. (Note that trailing semicolons are not needed.) Now it is unambiguous. -- Sent from: http://forum.openscad.org/
D
dpa
Wed, Jul 8, 2020 11:14 AM

Hi Adrianv,
good point. And this works for me.
thank you

Hi Adrianv, good point. And this works for me. thank you
C
caterpillar
Wed, Jul 8, 2020 11:59 AM

dpa wrote

I see thank you. This reminds me of a long unsuccessful run. I just tried
it - again no success..  am I to stupid for this? I entered the correct*
path into every .profile:
(* when I call this path in Finder (via cmd+shift+g)
/Users/dpa/Documents/OpenSCAD/libraries/dotSCAD/src then I end up at the
correct path)

Are you using Windows? If that's your case, you should SET PATH=/Users/dpa/Documents/OpenSCAD/libraries/dotSCAD/src in your cmd.


https://openhome.cc

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

dpa wrote > I see thank you. This reminds me of a long unsuccessful run. I just tried > it - again no success.. am I to stupid for this? I entered the correct* > path into every .profile: > (* when I call this path in Finder (via cmd+shift+g) > /Users/dpa/Documents/OpenSCAD/libraries/dotSCAD/src then I end up at the > correct path) Are you using Windows? If that's your case, you should `SET PATH=/Users/dpa/Documents/OpenSCAD/libraries/dotSCAD/src` in your cmd. ----- https://openhome.cc -- Sent from: http://forum.openscad.org/
D
dpa
Wed, Jul 8, 2020 12:12 PM

Are you using Windows?

No, I'm on mac.

> Are you using Windows? > No, I'm on mac.
C
caterpillar
Wed, Jul 8, 2020 12:20 PM

adrianv wrote

Personally I think the approach dotSCAD uses is a little broken.  If you
do
like he suggests and you install two libs that both provide sweep.scad
you'll not be sure which one you're using.  If you provide code to someone
else they won't know which of many sweep.scad files were intended.

That's because I'm developing dotSCAD out of the libraries folder of
OpenSCAD. Setting OPENSCADPATH is convenient for me. I don't have to tell
myself I'm using dotSCAD when I'm developing dotSCAD.

People can have different ways to manage their libraries when using
OpenSCAD.

Coping everything from dotSCAD/src into a libraries/dotSCAD and use <dotSCAD/sweep.scad>; also cause errors when you send your code to someone
because he prefers to put the dotSCAD repo in the libraries folder of
OpenSCAD.

What users should do is reading OpenSCAD User Manual/Libraries carefully
and deciding how to manage their libraries. Before you send code to others,
write a document for it.


https://openhome.cc

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

adrianv wrote > Personally I think the approach dotSCAD uses is a little broken. If you > do > like he suggests and you install two libs that both provide sweep.scad > you'll not be sure which one you're using. If you provide code to someone > else they won't know which of many sweep.scad files were intended. That's because I'm developing dotSCAD out of the `libraries` folder of OpenSCAD. Setting `OPENSCADPATH` is convenient for me. I don't have to tell myself I'm using dotSCAD when I'm developing dotSCAD. People can have different ways to manage their libraries when using OpenSCAD. Coping everything from dotSCAD/src into a libraries/dotSCAD and `use <dotSCAD/sweep.scad>;` also cause errors when you send your code to someone because he prefers to put the dotSCAD repo in the libraries folder of OpenSCAD. What users should do is reading `OpenSCAD User Manual/Libraries` carefully and deciding how to manage their libraries. Before you send code to others, write a document for it. ----- https://openhome.cc -- Sent from: http://forum.openscad.org/
C
caterpillar
Wed, Jul 8, 2020 12:32 PM

dpa wrote

Are you using Windows?

No, I'm on mac.


OpenSCAD mailing list

Discuss@.openscad

Sorry, I have no experience about mac so cannot provide any help.


https://openhome.cc

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

dpa wrote >> Are you using Windows? >> > > No, I'm on mac. > > _______________________________________________ > OpenSCAD mailing list > Discuss@.openscad > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org Sorry, I have no experience about mac so cannot provide any help. ----- https://openhome.cc -- Sent from: http://forum.openscad.org/
NH
nop head
Wed, Jul 8, 2020 1:25 PM

I think OPENSCADPATH is intended to point to a folder of libraries, not a
single library. I point mine a folder called OpenSCADLibs where I put
libraries and include everything with <LIbName/file.scad> because even
though I only have my own library at the moment, I don't want to rule out
using another library.

On Wed, 8 Jul 2020 at 13:32, caterpillar caterpillar@openhome.cc wrote:

dpa wrote

Are you using Windows?

No, I'm on mac.


OpenSCAD mailing list

Discuss@.openscad

Sorry, I have no experience about mac so cannot provide any help.


https://openhome.cc

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


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

I think OPENSCADPATH is intended to point to a folder of libraries, not a single library. I point mine a folder called OpenSCADLibs where I put libraries and include everything with <LIbName/file.scad> because even though I only have my own library at the moment, I don't want to rule out using another library. On Wed, 8 Jul 2020 at 13:32, caterpillar <caterpillar@openhome.cc> wrote: > dpa wrote > >> Are you using Windows? > >> > > > > No, I'm on mac. > > > > _______________________________________________ > > OpenSCAD mailing list > > > Discuss@.openscad > > > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org > > Sorry, I have no experience about mac so cannot provide any help. > > > > ----- > https://openhome.cc > -- > Sent from: http://forum.openscad.org/ > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >
JB
Jordan Brown
Wed, Jul 8, 2020 1:30 PM

On 7/8/2020 6:25 AM, nop head wrote:

I think OPENSCADPATH is intended to point to a folder of libraries,
not a single library. I point mine a folder called OpenSCADLibs where
I put libraries and include everything with <LIbName/file.scad>
because even though I only have my own library at the moment, I don't
want to rule out using another library.

That seems like a good convention for libraries with more than one file,
but a library with a single file shouldn't require a folder to contain
that one file.

On 7/8/2020 6:25 AM, nop head wrote: > I think OPENSCADPATH is intended to point to a folder of libraries, > not a single library. I point mine a folder called OpenSCADLibs where > I put libraries and include everything with <LIbName/file.scad> > because even though I only have my own library at the moment, I don't > want to rule out using another library. That seems like a good convention for libraries with more than one file, but a library with a single file shouldn't require a folder to contain that one file.
RW
Rogier Wolff
Wed, Jul 8, 2020 1:35 PM

On Wed, Jul 08, 2020 at 02:25:29PM +0100, nop head wrote:

I think OPENSCADPATH is intended to point to a folder of libraries, not a
single library.

I don't know about the MAC and I don't know about OpenSCAD's
implementation, but guessing from the name: In classical Unix, a path
is a list of directories where the objects of interest might be found.

How to specify the second entry in the list (separated by a space?
Colon? Comma?) depends on the implementation.

Roger. 

--
** R.E.Wolff@BitWizard.nl ** https://www.BitWizard.nl/ ** +31-15-2049110 **
**    Delftechpark 11 2628 XJ  Delft, The Netherlands.  KVK: 27239233    **
The plan was simple, like my brother-in-law Phil. But unlike
Phil, this plan just might work.

On Wed, Jul 08, 2020 at 02:25:29PM +0100, nop head wrote: > I think OPENSCADPATH is intended to point to a folder of libraries, not a > single library. I don't know about the MAC and I don't know about OpenSCAD's implementation, but guessing from the name: In classical Unix, a path is a list of directories where the objects of interest might be found. How to specify the second entry in the list (separated by a space? Colon? Comma?) depends on the implementation. Roger. -- ** R.E.Wolff@BitWizard.nl ** https://www.BitWizard.nl/ ** +31-15-2049110 ** ** Delftechpark 11 2628 XJ Delft, The Netherlands. KVK: 27239233 ** The plan was simple, like my brother-in-law Phil. But unlike Phil, this plan just might work.
NH
nop head
Wed, Jul 8, 2020 1:57 PM

Actually, yes you can put several paths in OPENSCADPATH. It should have
been called OPENSCADPATHS!

The separator is ; on Windows and : on Linux. Mac is probably the same as
Linux.

On Wed, 8 Jul 2020 at 14:35, Rogier Wolff R.E.Wolff@bitwizard.nl wrote:

On Wed, Jul 08, 2020 at 02:25:29PM +0100, nop head wrote:

I think OPENSCADPATH is intended to point to a folder of libraries, not a
single library.

I don't know about the MAC and I don't know about OpenSCAD's
implementation, but guessing from the name: In classical Unix, a path
is a list of directories where the objects of interest might be found.

How to specify the second entry in the list (separated by a space?
Colon? Comma?) depends on the implementation.

     Roger.

--
** R.E.Wolff@BitWizard.nl ** https://www.BitWizard.nl/ ** +31-15-2049110
**
**    Delftechpark 11 2628 XJ  Delft, The Netherlands.  KVK: 27239233    **
The plan was simple, like my brother-in-law Phil. But unlike
Phil, this plan just might work.


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

Actually, yes you can put several paths in OPENSCADPATH. It should have been called OPENSCADPATHS! The separator is ; on Windows and : on Linux. Mac is probably the same as Linux. On Wed, 8 Jul 2020 at 14:35, Rogier Wolff <R.E.Wolff@bitwizard.nl> wrote: > On Wed, Jul 08, 2020 at 02:25:29PM +0100, nop head wrote: > > I think OPENSCADPATH is intended to point to a folder of libraries, not a > > single library. > > I don't know about the MAC and I don't know about OpenSCAD's > implementation, but guessing from the name: In classical Unix, a path > is a list of directories where the objects of interest might be found. > > How to specify the second entry in the list (separated by a space? > Colon? Comma?) depends on the implementation. > > Roger. > > -- > ** R.E.Wolff@BitWizard.nl ** https://www.BitWizard.nl/ ** +31-15-2049110 > ** > ** Delftechpark 11 2628 XJ Delft, The Netherlands. KVK: 27239233 ** > The plan was simple, like my brother-in-law Phil. But unlike > Phil, this plan just might work. > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >