parse.py

changeset 69
a24c4490d9f2
parent 62
f0a6bf48b05e
child 94
109fb7cf658f
equal deleted inserted replaced
68:c19dd0d3248e 69:a24c4490d9f2
32 def quadrilaterals(self): 32 def quadrilaterals(self):
33 yield from self.filter_by_type(linetypes.Quadrilateral) 33 yield from self.filter_by_type(linetypes.Quadrilateral)
34 @property 34 @property
35 def has_header(self): 35 def has_header(self):
36 return self.header and not isinstance(self.header, header.BadHeader) 36 return self.header and not isinstance(self.header, header.BadHeader)
37 def find_first_header_object(self, object_type):
38 return self.body[self.header.first_occurrence[object_type]]
37 39
38 def model_vertices( 40 def model_vertices(
39 model, 41 model,
40 transformation_matrix = None, 42 transformation_matrix = None,
41 file_cache = None, 43 file_cache = None,

mercurial