Plugin for Gaussian bells
- 
 %(#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  
- 
 @unknownuser said: alguien puede ayudarme? 
- 
 
- 
 
- 
 thank you very much for the help, great links 
Advertisement

 
                             
                             
                             
                             
                             
                             
                            