Lines Matching refs:surface
2749 def drop_into_direction(self, direction, surface) :
2758 surface.rotate_(-sin,cos)
2759 self.drop_down(surface, zerro_plane = False)
2761 surface.rotate_(sin,cos)
2790 def drop_down(self, surface, zerro_plane = True) :
2795 # Get surface top point
2796 top = surface.bounds()[3]
2801 # Now get shortest distance from surface to polygon in positive x=0 direction
2802 # Such distance = min(distance(vertex, edge)...) where edge from surface and
2805 for poly in surface.polygon :
3138 surface = Polygon()
3146 poly.drop_down(surface)
3147 surface.add(poly)
3148 return surface
3155 surface = test_function(self.population[i][1])
3156 b = surface.bounds()
3163 surface = Polygon(poly.polygon)
3166 c = surface.centroid()
3167 surface.move(-c[0],-c[1])
3171 surface.rotate(p[2]*math.pi2)
3172 poly.drop_down(surface)
3173 surface.add(poly)
3174 surface.rotate(-p[2]*math.pi2)
3175 return surface
3238 #surface.draw()
3425 surface = Polygon()
3518 surface = population.test_spiece_centroid(population.population[0][1])
3519 b = surface.bounds()
3521 surface.move(x-b[0],y-b[1])
3522 surface.draw(width=2, color=colors[0])
3529 surface = Polygon(poly.polygon)
3536 c = surface.centroid()
3539 c = surface.centroid()
3548 surface.rotate_(-sin,cos)
3550 surface.draw(color = "Orange",width=4)
3552 surface.rotate_(sin,cos)
3555 poly.drop_into_direction(direction,surface)
3556 surface.add(poly)
3570 self.OptionParser.add_option("-z", "--Zsurface", action="store", type="float", dest="Zsurface", default="0.0", help="Z of the surface")
5802 self.header+="(Material surface at Z="+ str(self.options.Zsurface) + unit + ")\n"