示例#1
0
	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()
示例#2
0
	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
示例#3
0
    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
示例#4
0
    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
示例#5
0
	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
示例#6
0
	def __init__(self, parent):
		self.parent = parent
		self.format = GeomVertexFormat.getV3c4()
		self.node_path = None
		self.init_node_path()