Пример #1
0
        public SpecklePlane(SpecklePoint origin, SpeckleVector normal, SpeckleVector XDir, SpeckleVector YDir, string applicationId = null, Dictionary <string, object> properties = null)
        {
            this.Origin        = origin;
            this.Normal        = normal;
            this.Xdir          = XDir;
            this.Ydir          = YDir;
            this.ApplicationId = applicationId;
            this.Properties    = properties;

            GenerateHash();
        }
Пример #2
0
 public static BHG.Point FromSpeckle(this SCG.SpecklePoint specklePoint)
 {
     return(new BHG.Point {
         X = specklePoint.Value[0], Y = specklePoint.Value[1], Z = specklePoint.Value[2]
     });
 }
Пример #3
0
        public SpeckleAnnotation(string text, double textHeight, string fontName, bool bold, bool italic, SpecklePlane plane, SpecklePoint location, string applicationId = null, Dictionary <string, object> properties = null)
        {
            this.Text          = text;
            this.TextHeight    = textHeight;
            this.FontName      = fontName;
            this.Bold          = bold;
            this.Italic        = italic;
            this.Plane         = plane;
            this.Location      = location;
            this.ApplicationId = applicationId;
            this.Properties    = properties;

            GenerateHash();
        }