• S sverchok
  • Информация о проекте
    • Информация о проекте
    • Активность
    • Метки
    • Участники
  • Репозиторий
    • Репозиторий
    • Файлы
    • Коммиты
    • Ветки
    • Теги
    • Участники
    • Диаграмма
    • Сравнение
  • Задачи 148
    • Задачи 148
    • Список
    • Доски
    • Спринты
  • Запросы на слияние 21
    • Запросы на слияние 21
  • CI/CD
    • CI/CD
    • Конвейеры
    • Задания
    • Расписания
  • Развертывания
    • Развертывания
    • Окружения
    • Релизы
  • Пакеты и реестры
    • Пакеты и реестры
    • Реестр пакетов
    • Реестр контейнеров
  • Мониторинг
    • Мониторинг
    • Инциденты
  • Аналитика
    • Аналитика
    • Поток ценности
    • CI/CD
    • Репозиторий
  • Wiki
    • Wiki
  • Сниппеты
    • Сниппеты
  • Активность
  • Диаграмма
  • Создать новую задачу
  • Задания
  • Коммиты
  • Доски с задачами
Свернуть панель
  • nikitronn
  • sverchok
  • Запросы на слияние
  • !3476

"Apply field to curve": option to apply field to control points of NURBS curve

  • Ревью изменений

  • Скачать
  • Почтовые патчи
  • Простое отличие
Слиты nikitronn запросил слияние apply_field_nurbs в master Авг 22, 2020
  • Обзор 1
  • Коммиты 4
  • Конвейеры 0
  • Изменения 3

Created by: portnov

Optionally, for NURBS and NURBS-like curves, this node can apply a Vector Fields to control points of NURBS curve, instead of applying to all points of the curve. Such mode is supported for the following types of curves:

  • NURBS curves
  • Bezier curves
  • Cubic splines
  • Polylines
  • Circular arcs
  • Line segments

Some nodes, that output complex curves composed from simple curves (for example, "Rounded rectangle"), have NURBS output parameter; when it is checked, such nodes output NURBS curves, so "Apply Field to Curve" can work with them.

If this mode is enabled, then output curve will be always a NURBS curve.

Note that mathematically, for NURBS and Bezier curves, if you apply an affine transformation (such as translation, scale, rotation - i.e. vector field defined by a Matrix) to control points of a NURBS curve, you will have a curve of exactly the same shape, but translated / scaled / rotated according to the transformation. For any more complex transformation (attractor field, for example), the resulting curve will have different shape; and also it will be different from a curve that you would receive if you applied the vector field to all points of the curve instead.

Screenshot_20200822_111306 Screenshot_20200822_111321

Preflight checklist

Put an x letter in each brackets when you're done this item:

  • Code changes complete.
  • Code documentation complete.
  • Documentation for users complete (or not required, if user never sees these changes).
  • Manual testing done.
  • Unit-tests implemented.
  • Ready for merge.
Ответственный
Назначить
Проверяющие
Запросить ревью
Оценка трудозатрат
Исходная ветка: apply_field_nurbs