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(); }
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] }); }
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(); }