Esempio n. 1
0
        public Structural1DElement(double[] value, Structural1DElementType elementType, string propertyRef, StructuralVectorThree zAxis, StructuralVectorBoolSix[] endRelease, StructuralVectorThree[] offset, string applicationId = null, Dictionary <string, object> properties = null)
        {
            if (properties != null)
            {
                Properties = properties;
            }
            Value         = value.ToList();
            ElementType   = elementType;
            PropertyRef   = propertyRef;
            ZAxis         = zAxis;
            EndRelease    = endRelease == null ? null : endRelease.ToList();
            Offset        = offset == null ? null : offset.ToList();
            ApplicationId = applicationId;

            GenerateHash();
        }
Esempio n. 2
0
        public StructuralAxis(StructuralVectorThree xdir, StructuralVectorThree ydir, StructuralVectorThree normal, string applicationId = null, Dictionary <string, object> properties = null)
        {
            this.Normal        = normal;
            this.Xdir          = xdir;
            this.Ydir          = ydir;
            this.ApplicationId = applicationId;
            if (properties != null)
            {
                this.Properties = properties;
            }

            GenerateHash();
        }