Close



Page 7 of 8 FirstFirst ... 5678 LastLast
Results 61 to 70 of 72

Hybrid View

  1. #1
    Senior Engineer
    Join Date
    Jun 2014
    Location
    Burnley, UK
    Posts
    1,662
    I just ordered my Christmas goose, £65. Gobsmacked I was.

  2. #2
    Super Moderator Roxy's Avatar
    Join Date
    Apr 2014
    Location
    Lone Star State
    Posts
    2,182
    Quote Originally Posted by old man emu View Post
    Bugger it!

    I've just spent a good hour or so putting together something about modules and when I went to upload it I had been timed out. Stuff it. I'm going to bed
    ...
    OME
    This happens to me a alot... If you press the 'Back' button to return to the page before you submitted it... You can highlight all your text, and do a 'Copy' to get it to the clipboard. Then you can start at the top of the forum and drill back down to the thread you are trying to reply to, go to the very end and just do a 'Post Quick Reply' and do a Paste to recover where you were.

    In fact... I left this window open over night... And it just happened on this Reply.

  3. #3
    Super Moderator curious aardvark's Avatar
    Join Date
    Jul 2014
    Posts
    8,818
    Umm, yes ?

    There is no such thing as 'best practice'. Only what you are happiest using.
    If that's all it takes to save your own modules and use them in scripts. Then that's going to be extremely useful.
    The only thing I've used like that so far is the write.scad module. I actually made a different one for each font and renamed them for the font names. so i can just use: use <knewave.scad>
    To use the knewave font. Makes things a bit easier.

    Using a library of your own modules would make for simpler looking scripts, that's for sure.

    Also you're rotate extrude module just makes a bog standard straight sided ring. Shouldn't it make a round sided 'donut/torus' ?

    Here's some homework for you OME - find a decent module I can make different sized screw threads with. I've so far not managed to find one that actually works.

  4. #4
    Staff Engineer old man emu's Avatar
    Join Date
    Oct 2013
    Location
    Narellan, New South Wales, Australia
    Posts
    912
    Quote Originally Posted by curious aardvark View Post

    Also you're rotate extrude module just makes a bog standard straight sided ring. Shouldn't it make a round sided 'donut/torus' ?
    Pay attention!!. This is the OpenScad Help Centre, not the Geometry Help Centre. The code pasted here is just an example copied from the blog page to illustrate the topic "Modules"

    Quote Originally Posted by curious aardvark View Post
    Here's some homework for you OME - find a decent module I can make different sized screw threads with. I've so far not managed to find one that actually works.
    Hey! I'm not some pheasant phucker's pimp! Get your own screw (but ask if she has a friend.)

    Maybe this one love you long time:

    uploads-74-10-9c-ff-15-screwthread_v2.scad

    OME
    Last edited by old man emu; 12-09-2014 at 06:34 AM.

  5. #5
    Senior Engineer
    Join Date
    Jun 2014
    Location
    Burnley, UK
    Posts
    1,662
    I think that using the "module" function is the only way to make openscad files easy to understand by the people that did not write them.

    If you stick all the separate things it does in modules then just call them from the bottom of the file it really is a lot easier to remember what is what.

  6. #6
    Super Moderator curious aardvark's Avatar
    Join Date
    Jul 2014
    Posts
    8,818
    Pay attention!!. This is the OpenScad Help Centre, not the Geometry Help Centre. The code pasted here is just an example copied from the blog page to illustrate the topic "Modules"
    Listen, I didn't even understand the question in the geometry thread. So have not looked at it since :-)

    And using examples from thje openscad manual is just going to confuse everybody :-)
    Not sure who wrote that manual, but I'm leaning towards someone with aspergers.
    They defintiely don't share any frame of reference with me :-)

  7. #7
    Staff Engineer old man emu's Avatar
    Join Date
    Oct 2013
    Location
    Narellan, New South Wales, Australia
    Posts
    912
    I agree that I didn't put the question about the square doughnut very well, but it did generate some lively discussion, have minds whirring over, and introduced us to an expert in the field.

    I'm with you in saying that the OpenScad manual is not instructive. It clearly was not written with the intention of enlightening people like you and me who just wanted to use OpenScad to make objects. The manual was obviously written by programmers for programmers and that is why it is full of jargon such as, (You can instantiate the module by passing values (or formulas) for the parameters just like a C function call)

    Instantiate??????

    Techopedia explains Instantiate
    Instantiation is the creation of an instance of an abstraction, object class (also known as a template) or other computer process whereby objects are used. Each instance created by instantiation is unique depending on the variation of the elements within the object. Until an object becomes instantiated, none of the code within the relevant class declarations is used.

    Prior to modern OOP methods, instantiate had a similar meaning in relation to the creation of data within an empty template. For example, the entry of a record into a database was considered to be instantiation.


    Remember this. It will be in the End of Year examination of the core topic Obfuscation 101.

    The manual presumes too much prior knowledge of programming, which is why I started this thread with a request for a description of the syntax, and then realised that I needed to know the meanings of it symbols and punctuation before I could move on to writing some code. I'm also wondering if OpenScad is an efficient way to end up with an *.stl file that is needed for slicing. I haven't tried converting any code to an stl file.

    I find that it is very easy to make typographical errors in writing this code. I had to edit the code in the example I posted in Post #60 because the original author had mixed up the order of parameters here
    ring(h,r,rw);

    OME
    Last edited by old man emu; 12-10-2014 at 06:29 AM.

  8. #8
    Super Moderator Roxy's Avatar
    Join Date
    Apr 2014
    Location
    Lone Star State
    Posts
    2,182
    OpenScad has been stagnant for a whole year. No bug fixes or improvements. It almost looked like the development effort was dead. Well, it turns out they were very busy!!! There is a new release 2015.03 that adds a lot of important features and simplifies the code to do a number of things. It seems very stable and so far, it appears to be fully backward compatible.

    Two of the best things in the new version are the ability to generate text directly to put on your models and the offset() command.

    Check it out: http://www.openscad.org/downloads.html

    Actually... There is one more thing that is super important. The ability to set and reset a variable within any scope. This dramatically simplifies a number of things.
    Last edited by Roxy; 04-16-2015 at 02:28 PM.

  9. #9
    Super Moderator curious aardvark's Avatar
    Join Date
    Jul 2014
    Posts
    8,818
    latest scad release is NOT the latest release.
    go here : http://www.openscad.org/downloads.html

    on the right click on: Development Snapshots
    Takes you down to the part of the page with the ACTUAL latest releases.

    Some cool new features that, as far as I can find out - just aren't listed. You have to meander through the manual untill you see: 'new in release 2016.*.*'
    How I found out you could do a partial rotate extrude.

    Must be some other stuff in there as well. I just haven't gone through the whole manual yet.

  10. #10
    This is a very informative topic. It helped me a lot this time.

Page 7 of 8 FirstFirst ... 5678 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •