Exemple #1
0
        public Polyline(IList <Vector3> @vertices) : base()
        {
            this.Vertices = @vertices;

            if (!Validator.DisableValidationOnConstruction)
            {
                Vertices = Vector3.RemoveSequentialDuplicates(Vertices);
                CheckSegmentLengthAndThrow(Edges());
            }
            _bounds = new BBox3(Vertices);
        }
Exemple #2
0
 protected virtual void ValidateVertices()
 {
     Vertices = Vector3.RemoveSequentialDuplicates(Vertices);
     CheckSegmentLengthAndThrow(Edges());
 }