Exemple #1
0
        public static XbimVector3D ToXbimVector3D(this IIfcDirection d)
        {
            var mf = d.Model.ModelFactors;

            return(new XbimVector3D(
                       PrecisionClamp(d.DirectionRatios[0], mf.Precision),
                       PrecisionClamp(d.DirectionRatios[1], mf.Precision),
                       d.DirectionRatios.Count > 2 ? PrecisionClamp(d.DirectionRatios[2], mf.Precision) : 0
                       ));
        }
 private static void WritePointCoord(TextHighliter sb, IIfcDirection ifcCartesianPoint, bool relative = false)
 {
     WritePointCoord(sb, ifcCartesianPoint.X, ifcCartesianPoint.Y, ifcCartesianPoint.Z, relative);
 }
 public static XbimVector3D ToXbimVector3D(IIfcDirection d)
 {
     return(new XbimVector3D(d.X, d.Y, d.Z));
 }