Exemplo n.º 1
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;

            SetHashes(Center.GeometryHash + Normal.GeometryHash + Radius);
        }
Exemplo n.º 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();
        }
Exemplo n.º 3
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;

            SetHashes(origin.GeometryHash + normal.GeometryHash + Xdir.GeometryHash + YDir.GeometryHash);
        }
Exemplo n.º 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();
        }