示例#1
0
    def __init__(self):
        self.faces: List = []

        self.texture: str = ""
        self.lightmap: str = ""

        self.render: bool = False
        self.shadow: bool = False
        self.beaming: bool = False
        self.rotate_texture: bool = False
        self.background_geom: bool = False

        self.animate_uv: bool = False
        self.uv_direction_x: float = 0.0
        self.uv_direction_y: float = 0.0
        self.uv_jitter: float = 0.0
        self.uv_jitter_speed: float = 0.0

        self.transparency_hint: int = 0
        self.ambient_color: Color = Color()
        self.diffuse_color: Color = Color()

        self.box_min: Vertex = Vertex()
        self.box_max: Vertex = Vertex()
        self.average: Vertex = Vertex()
        self.radius: float = 0.0
        self.area: float = 0.0

        self.inverted_counter: List[int] = []
示例#2
0
文件: wok.py 项目: NickHugi/PyKotor
 def __init__(self):
     self.box_min: Vertex = Vertex()
     self.box_max: Vertex = Vertex()
     self.left_child: Optional[AABB] = None
     self.right_child: Optional[AABB] = None
     self.face: Optional[Face] = None
     self.most_significant_plane: Axis = Axis(0)
示例#3
0
 def __init__(self):
     self.model_name: str = ""
     self.supermodel: str = ""
     self.root: Node = Node()
     self.animations: List[Animation] = []
     self.box_min: Vertex = Vertex()
     self.box_max: Vertex = Vertex()
     self.radius: float = 0.0
     self.animation_scale: float = 1.0
     self.enable_fog: bool = False
     self.model_type: ModelType = ModelType.Other
示例#4
0
文件: wok.py 项目: NickHugi/PyKotor
 def get_face_center(self) -> Vertex:
     vertex = Vertex()
     vertex.x = (self.vertices[0].x + self.vertices[1].x +
                 self.vertices[2].x) / 3
     vertex.y = (self.vertices[0].y + self.vertices[1].y +
                 self.vertices[2].y) / 3
     vertex.z = (self.vertices[0].z + self.vertices[1].z +
                 self.vertices[2].z) / 3
     return vertex
示例#5
0
文件: wok.py 项目: NickHugi/PyKotor
 def __init__(self):
     self.vertices: List[Vertex] = [Vertex(), Vertex(), Vertex()]
     self.material: Material = Material.Undefined
     self.transitions: List[int] = [-1, -1, -1]
示例#6
0
文件: wok.py 项目: NickHugi/PyKotor
 def __init__(self):
     self.walkmesh_type: WalkmeshType = WalkmeshType.Area
     self.position: Vertex = Vertex()
     self.faces: List[Face] = []
示例#7
0
文件: lyt.py 项目: NickHugi/PyKotor
 def __init__(self):
     self.name: str = ""
     self.position: Vertex = Vertex()
示例#8
0
文件: lyt.py 项目: NickHugi/PyKotor
 def __init__(self):
     self.model: str = ""
     self.name: str = ""
     self.unknown: int = 0
     self.position: Vertex = Vertex()
     self.orientation: Quaternion = Quaternion()
示例#9
0
文件: lyt.py 项目: NickHugi/PyKotor
 def __init__(self):
     self.model: str = ""
     self.position: Vertex = Vertex()