Close



Results 1 to 10 of 72

Hybrid View

  1. #1
    Super Moderator curious aardvark's Avatar
    Join Date
    Jul 2014
    Posts
    8,816
    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 :-)

  2. #2
    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.

Posting Permissions

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