def get_as_section(self): """Gets global model information represented with SectionData structure class. :return: packed globals as section data :rtype: io_scs_tools.internals.structure.SectionData """ section = _SectionData("Global") section.props.append(("VertexCount", Piece.get_global_vertex_count())) section.props.append(("TriangleCount", Piece.get_global_triangle_count())) section.props.append(("MaterialCount", Material.get_global_part_count())) section.props.append(("PieceCount", Piece.get_global_piece_count())) section.props.append(("PartCount", Part.get_global_material_count())) section.props.append(("BoneCount", self._bone_count)) section.props.append(("LocatorCount", Locator.get_global_locator_count())) section.props.append(("Skeleton", self._skeleton)) return section
def get_as_section(self): """Gets global model information represented with SectionData structure class. :return: packed globals as section data :rtype: io_scs_tools.internals.structure.SectionData """ section = _SectionData("Global") section.props.append(("VertexCount", Piece.get_global_vertex_count())) section.props.append(("FaceCount", Piece.get_global_face_count())) section.props.append(("MaterialCount", Material.get_global_material_count())) section.props.append(("PieceCount", Piece.get_global_piece_count())) section.props.append(("PartCount", self.__part_count)) section.props.append(("BoneCount", Bones.get_global_bones_count())) section.props.append(("LocatorCount", Locator.get_global_locator_count())) section.props.append(("Skeleton", self.__skeleton)) section.props.append(("PieceSkinCount", PieceSkin.get_global_piece_skin_count())) return section