$ cd $ cd Sandpit/chisel/python $ ./developer-txt2map ../maps/complex3.txt txt2pen: pass Total rooms = 28 Total cuboids = 4760 Total cuboids expanded (optimised) = 0 Total entities used = 417 entities unused = 3679 Total brushes used = 4760 pen2map: pass
$ ./developer-txt2map ../maps/complex3.txt Total rooms = 28 Total cuboids = 4647 Total cuboids expanded (optimised) = 162 Total entities used = 375 entities unused = 3721 Total brushes used = 4647 pen2map: pass
chisel/python/student/chcuboid.py
# # canExtend - returns True if we can enlarge self to # contain pos, size. We can only do # this if pos, size joins or overlaps with self. # We have already tested for a superset or # subset elsewhere so this routine just # handles extending a cuboid. #
def _canExtend (self, pos, size): if chcuboid_enable_optimise: # # if the self x and y limits are the same as (pos and size) # then # see if we can extend the z axis to combine the cuboid # do the same for the z, x and y axis # do the same for the z, y and x axis # if self._xlimits (pos, size) and self._ylimits (pos, size): return self._Zextend (pos, size) if self._zlimits (pos, size) and self._xlimits (pos, size): return self._Yextend (pos, size) if self._zlimits (pos, size) and self._ylimits (pos, size): return self._Xextend (pos, size) return False
chisel/python/student/chcuboid.py
# # _xlimits - return True if self has the same x start, end as # defined by pos and size. # def _xlimits (self, pos, size): return self._limits (pos, size, 0)
This document was produced using groff-1.22.