// add shape. build from CA graph public CALocationShape(CACreationLocationShapeType type, ValueTuple <ushort, ushort, ushort> dimensions, double scale) : base(CACreationLocationType.Shape) { this.Scale = scale; switch (type) { case CACreationLocationShapeType.Ellipsoid: Locations = StaticMethods.AddEllipsoid(dimensions, scale).ToArray(); break; case CACreationLocationShapeType.Circle: Locations = StaticMethods.AddCircle((dimensions.Item1, dimensions.Item2), scale).ToArray(); break; } }