You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

15 lines
394 B

from hachoir_py2.field import StaticFieldSet, Float32
class Vertex(StaticFieldSet):
format = ((Float32, "x"), (Float32, "y"), (Float32, "z"))
def createValue(self):
return self["x"].value, self["y"].value, self["z"].value
class MapUV(StaticFieldSet):
format = ((Float32, "u"), (Float32, "v"))
def createValue(self):
return self["u"].value, self["v"].value