sketchucation logo sketchucation
    • Login
    🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Plugin for Gaussian bells

    Scheduled Pinned Locked Moved Developers' Forum
    5 Posts 2 Posters 184 Views 2 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.
    • D Offline
      dacastror
      last edited by

      %(#0040FF)[inserción de geometría en sketchup

      Hola, estoy empezando con Ruby y deseo realizar un pluing para crear geometría con muchos polígonos (entre 3000 y 10000 polígonos) y he notado que se forma un cuello de botella en alguna parte del proceso de la inserción, porque cuando inserto 2000 polígonos se demora 1.5 segundos y al insertar 4000 polígonos se demora 6.1 segundos. Además solo he aprendido a usar add_face, que por lo que he leído no es el más eficiente, al parecer es mejor fill_from_mesh, pero no sé usar esto, agradecería que alguien me pudiera indicar como usarlo para el siguiente caso:]

      English

      (translation of gloogle)
      Hi, I'm starting with Ruby and I want to make a pluing to create geometry with many polygons (between 3000 and 10000 polygons) and have noticed that forms a bottleneck somewhere in the insertion process, because when I insert takes 2000 polygons 1.5 seconds and inserting 4000 polygons it takes 6.1 seconds. Also I have only learned to use add_face, which from what I read is not the most efficient seems to be better fill_from_mesh, but I can not use this, be grateful if someone could tell me how to use it for the following case:

      ` # crear gaussiana con triangulos

      entities = Sketchup.active_model.entities

      n = 20 # size
      s = 4 # separacion
      w = 3 # tamaño de un elemento
      b = n/2.0 # posision

      (0..n-1).each { |i|
      (0..n-1).each { |j|

        k=8.0*Math.exp(-((i-b)**2+(j-b)**2)/10.0)     # funcion
        face = entities.add_face [i*s,j*s,k*s],[i*s,j*s+w,k*s],[i*s+w,j*s+w,k*s]
        face.pushpull -w-k
      

      }
      }`

      Para superar el problema del cuello de botella, pienso introducir la geometría por trozos, es decir en grupos de a 100 o 200 polígonos, pero no sé cómo hacer esto, agradezco su ayuda

      To overcome the bottleneck problem, I will introduce the piecewise geometry, ie in groups of 100 or 200 polygons, but I do not know how to do this, I appreciate your help

      ❓

      1 Reply Last reply Reply Quote 0
      • D Offline
        dacastror
        last edited by

        @unknownuser said:

        alguien puede ayudarme?

        1 Reply Last reply Reply Quote 0
        • Dan RathbunD Offline
          Dan Rathbun
          last edited by

          see:

          Intersect_with question/problem

          I'm not here much anymore.

          1 Reply Last reply Reply Quote 0
          • Dan RathbunD Offline
            Dan Rathbun
            last edited by

            And:

            Adding geometry to model - speed issues

            I'm not here much anymore.

            1 Reply Last reply Reply Quote 0
            • D Offline
              dacastror
              last edited by

              thank you very much for the help, great links

              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