pub fn resolve(model: &Model) -> GeometryResult<UnitScale>Expand description
Resolve the project’s unit assignment.
Reads the length and angle units from IfcProject.UnitsInContext. Any
Err means the model has no usable scale; nothing is assumed.
§Errors
GeometryError::LengthUnitUndeclared when there is no project, no
assignment or no LENGTHUNIT; GeometryError::UnitsAmbiguous for two
projects or two units of one type; GeometryError::UnitUnreadable for a
declared length or angle unit without an exact factor;
GeometryError::UnitRecordDamaged for a unit record the reader reported
and GeometryError::UnitsIncomplete when its diagnostics may hide one
(#684). A missing angle unit
is not an error here: see UnitScale::angle.