sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Mesh additions typo?

    Scheduled Pinned Locked Moved Developers' Forum
    5 Posts 4 Posters 209 Views 4 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • V Offline
      varadrem
      last edited by

      Hi, looking at the code of the support script "mesh_additions.rb"
      I found a line of code that make me think, according the context of the script, that is an code error or typo (IMHO)

          
      65    i1 = index_array[0]
      66    for i in 1...numpts do
      67        i2 = index_array[i]
      68        n1 = i1.length
      69        n2 = i2.length
      70        nest if( n1 < numsegments && n2 < numsegments )
      
      

      I think that in line 70 should be next instead of nest.
      There is no reference to "nest" in the index of methods in SketchUp Ruby API, and searched for some reference to "nest" in Ruby to no avail.

      Thanks in advance

      1 Reply Last reply Reply Quote 0
      • TIGT Offline
        TIG Moderator
        last edited by

        I've moved this into its rightful place in the Developers' Forum.

        You are indeed correct...
        It should read **next** not 'nest'.
        It skips processing the value[s] in the loop and moves onto the next one.
        It's an 8 year old typo !!

        TIG

        1 Reply Last reply Reply Quote 0
        • thomthomT Offline
          thomthom
          last edited by

          Where is mesh_additions.rb coming from?

          Thomas Thomassen — SketchUp Monkey & Coding addict
          List of my plugins and link to the CookieWare fund

          1 Reply Last reply Reply Quote 0
          • TIGT Offline
            TIG Moderator
            last edited by

            @thomthom said:

            Where is mesh_additions.rb coming from?

            It's an eight year old @Last script... I've PM'd you a copy [with nest >>> next !]...

            TIG

            1 Reply Last reply Reply Quote 0
            • J Offline
              Jim
              last edited by

              @thomthom said:

              Where is mesh_additions.rb coming from?

              It's used by a few Google SketchUp scripts on this page.

              Hi

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              Buy SketchPlus
              Buy SUbD
              Buy WrapR
              Buy eBook
              Buy Modelur
              Buy Vertex Tools
              Buy SketchCuisine
              Buy FormFonts

              Advertisement