模型

Model object.

 

此处定义的方法如下:

getOffsets

getOffsets(self):

Get the global and local offsets associated with this model.

@return: Returns the offsets as a tuple of float lists: ([global],[local]).

@example:
# getOffsets can only be used in the export callback function 'finishModel'
# Returns the global and local offsets of the current model as float lists
model = Model(oid)
globalOffset, localOffset = model.getOffsets()

getReports

getReports(self):

Get the reports associated with this model.

@return: Returns the reports as a map of lists.

@example:
# getReports can only be used in the export callback function 'finishModel'
# Returns the collected list of all reported 'height' values per model during export
model = Model(oid)
reports = model.getReports()
if 'height' in reports:
	heights = reports['height']

在本主题中
  1. getOffsets
  2. getReports