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

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