public SpeckleCircle(SpecklePoint center, SpeckleVector normal, double radius, string applicationId = null, Dictionary <string, object> properties = null)
        {
            this.Center        = center;
            this.Normal        = normal;
            this.Radius        = radius;
            this.ApplicationId = applicationId;
            this.Properties    = properties;

            SetHashes(Center.GeometryHash + Normal.GeometryHash + Radius);
        }
示例#2
0
        public SpeckleCircle(SpecklePoint center, SpeckleVector normal, double radius, string applicationId = null, Dictionary <string, object> properties = null)
        {
            this.Center        = center;
            this.Normal        = normal;
            this.Radius        = radius;
            this.ApplicationId = applicationId;
            this.Properties    = properties;

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

            SetHashes(origin.GeometryHash + normal.GeometryHash + Xdir.GeometryHash + YDir.GeometryHash);
        }
示例#4
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();
        }