def __init__(self, parent, point, coords): self.parent = parent self.format = GeomVertexFormat.getV3c4() self.point = point self.coords = coords self.node_path = None self.init_node_path()
def __init__(self, parent): self.parent = parent self.format = GeomVertexFormat.getV3c4() self.node_path = None self.node_path_line = None self.color = None self.direction = None
def _create_vertex_data(self): """Creates and fills the vertex data store.""" format = GeomVertexFormat.getV3c4() vdata = GeomVertexData('cloud', format, Geom.UHDynamic) vertex = GeomVertexWriter(vdata, 'vertex') color = GeomVertexWriter(vdata, 'color') for point, value in self._points.iteritems(): vertex.addData3f(point[0], point[1], value) color.addData4f(*self._color) self._vdata = vdata
def _create_vertex_data(self): """Creates and fills the vertex data store.""" format = GeomVertexFormat.getV3c4() vdata = GeomVertexData('cloud', format, Geom.UHDynamic) vertex = GeomVertexWriter(vdata, 'vertex') color = GeomVertexWriter(vdata, 'color') for index, point in enumerate(self._points): vertex.addData3f(*point[0:3]) if self._colors != None: color.addData4f(*self._colors[index]) else: color.addData4f(*self._color) self._vdata = vdata
def __init__(self, parent): self.parent = parent self.format = GeomVertexFormat.getV3c4() self.node_path = None self.tile_color = None self.x = None self.y = None self.z = None self.coords = None self.unknown1 = None self.surface_type = None self.unknown2 = None self.height = None self.depth = None self.slope_height = None self.slope_type = None self.unknown3 = None self.unknown4 = None self.cant_walk = None self.cant_cursor = None self.unknown5 = None self.is_hovered = False self.is_selected = False
def __init__(self, parent): self.parent = parent self.format = GeomVertexFormat.getV3c4() self.node_path = None self.init_node_path()