diff --git a/docs/index.html b/docs/index.html index b617bde3..94300bd3 100644 --- a/docs/index.html +++ b/docs/index.html @@ -38,7 +38,7 @@ - + @@ -134,7 +134,7 @@
  • English  
  • 日本語 (24%)
  • 中文 (22%)
  • -
  • Русский (15%)
  • +
  • Русский (17%)
  • Українська (2%)
  • diff --git a/docs/ja-JP/index.html b/docs/ja-JP/index.html index f3061a6b..d4ff083e 100644 --- a/docs/ja-JP/index.html +++ b/docs/ja-JP/index.html @@ -41,7 +41,7 @@ - + @@ -137,7 +137,7 @@

  • English  
  • 日本語 (24%)
  • 中文 (22%)
  • -
  • Русский (15%)
  • +
  • Русский (17%)
  • Українська (2%)
  • diff --git a/docs/news/2020-09-18.html b/docs/news/2020-09-18.html index 83a7a625..15583183 100644 --- a/docs/news/2020-09-18.html +++ b/docs/news/2020-09-18.html @@ -34,7 +34,7 @@ - + diff --git a/docs/news/2020-11-22.html b/docs/news/2020-11-22.html index b61efba0..29f23c6b 100644 --- a/docs/news/2020-11-22.html +++ b/docs/news/2020-11-22.html @@ -34,7 +34,7 @@ - + diff --git a/docs/news/index.html b/docs/news/index.html index 0cf5c7fd..43354283 100644 --- a/docs/news/index.html +++ b/docs/news/index.html @@ -33,7 +33,7 @@ - + diff --git a/docs/news/rss.xml b/docs/news/rss.xml index 56733238..b54b77f4 100644 --- a/docs/news/rss.xml +++ b/docs/news/rss.xml @@ -6,7 +6,7 @@ News updates for the primer on Bézier Curves by Pomax en-GB - Sun Jan 10 2021 21:31:18 +00:00 + Mon Jan 11 2021 19:02:57 +00:00 https://pomax.github.io/bezierinfo/images/og-image.png A Primer on Bézier Curves diff --git a/docs/ru-RU/index.html b/docs/ru-RU/index.html index 0c89a1e9..bd5bc2b2 100644 --- a/docs/ru-RU/index.html +++ b/docs/ru-RU/index.html @@ -34,7 +34,7 @@ - + @@ -127,7 +127,7 @@

  • English  
  • 日本語 (24%)
  • 中文 (22%)
  • -
  • Русский (15%)
  • +
  • Русский (17%)
  • Українська (2%)
  • @@ -192,7 +192,7 @@

  • Контроль над кривыми Безье, часть 2: Соотносительные Безье
  • Интервал Безье [0,1]
  • Bézier curvatures as matrix operations
  • -
  • de Casteljau's algorithm
  • +
  • Алгоритм де Кастельжо
  • Simplified drawing
  • Splitting curves
  • Splitting curves using matrices
  • @@ -1695,38 +1695,39 @@ function RationalBezier(3,t,w[],r[]):

    - de Casteljau's algorithm + Алгоритм де Кастельжо

    - If we want to draw Bézier curves, we can run through all values of t from 0 to 1 and then compute the weighted basis function - at each value, getting the x/y values we need to plot. Unfortunately, the more complex the curve gets, the more expensive - this computation becomes. Instead, we can use de Casteljau's algorithm to draw curves. This is a geometric approach to curve - drawing, and it's really easy to implement. So easy, in fact, you can do it by hand with a pencil and ruler. + Для зарисовки кривой Безье, мы можем пробежаться по всем значениям t от 0 до 1 и скомпилировать вывод базовой функции с + подставленными весами для каждого значения. К сожалению, чем замысловатее кривая, тем дороже обходиться это обчисление. Вместо этого, мы + можем воспользоваться Алгоритмом де Кастельжо для прорисовки кривых. Этот алгоритм позволяет прорисовывать кривые базируясь на + геометрических вычислениях и довольно прост в применении. На деле, настолько прост, что его можно воплотить при помощи карандаша и + линейки. +

    +

    + Вместо использования функции математического анализа для нахождения значений x/y для t, давайте сделаем + следующее:

    -

    Rather than using our calculus function to find x/y values for t, let's do this instead:

    - To see this in action, mouse-over the following sketch. Moving the mouse changes which curve point is explicitly evaluated using de - Casteljau's algorithm, moving the cursor left-to-right (or, of course, right-to-left), shows you how a curve is generated using this - approach. + Чтобы проверить это в действии, ведите ползунок под ниже представленным графиком слева направо и наоборот, задавая разные значения + t для иллюстрации геометрического построения.

    Scripts are disabled. Showing fallback image. - +
    -

    How to implement de Casteljau's algorithm

    -

    Let's just use the algorithm we just specified, and implement that:

    +

    Имплементация Алгоритма де Кастельжо

    +

    Запишем согласно предложенному алгоритму:

    @@ -1784,8 +1785,8 @@ function drawCurve(points[], t):

    - And done, that's the algorithm implemented. Except usually you don't get the luxury of overloading the "+" operator, so let's also give - the code for when you need to work with x and y values: + Готово, алгоритм воплощен. Помимо того факта, что зачастую мы не располагаем роскошью перенагрузки оператора "+", так давайте совместим + вычисление для значений x и y:

    @@ -1836,9 +1837,9 @@ function drawCurve(points[], t):

    - So what does this do? This draws a point, if the passed list of points is only 1 point long. Otherwise it will create a new list of - points that sit at the t ratios (i.e. the "markers" outlined in the above algorithm), and then call the draw function for this - new list. + И что это делает? Это зарисует точку на график, если длинна вводной points составляет всего одну точку. В противном случае — это создает + новый список для вводной, составленный из "маркеров", обчисленых пропорционально значению t между поточного списка точек вводной + и вызовет саму себя с новой вводной.

    diff --git a/docs/uk-UA/index.html b/docs/uk-UA/index.html index 767b8c29..d0ed191d 100644 --- a/docs/uk-UA/index.html +++ b/docs/uk-UA/index.html @@ -39,7 +39,7 @@ - + @@ -132,7 +132,7 @@
  • English  
  • 日本語 (24%)
  • 中文 (22%)
  • -
  • Русский (15%)
  • +
  • Русский (17%)
  • Українська (2%)
  • diff --git a/docs/zh-CN/index.html b/docs/zh-CN/index.html index c31b5537..61301f64 100644 --- a/docs/zh-CN/index.html +++ b/docs/zh-CN/index.html @@ -41,7 +41,7 @@ - + @@ -137,7 +137,7 @@

  • English  
  • 日本語 (24%)
  • 中文 (22%)
  • -
  • Русский (15%)
  • +
  • Русский (17%)
  • Українська (2%)