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

Script node examples · Изменения

История страницы
Updated Script node examples (markdown) создал Май 26, 2021 по автору Dealga McArdle's avatar Dealga McArdle
Скрыть пробелы
Построчно Рядом
Script-node-examples.md
Просмотреть страницу @c588b8ba
...@@ -78,7 +78,7 @@ pi_vals = np.tile(pi_vals, n_petals) ...@@ -78,7 +78,7 @@ pi_vals = np.tile(pi_vals, n_petals)
amps = np.cos(pi_vals) * amp amps = np.cos(pi_vals) * amp
unit_circle = np.linspace(0, TAU, N, endpoint=False) unit_circle = np.linspace(0, TAU, N, endpoint=False)
circle_coords = np.array([np.sin(unit_circle), np.cos(unit_circle), np.zeros(N)]) circle_coords = np.array([np.sin(unit_circle), np.cos(unit_circle), np.zeros(N)])
coords = circle_coords.T* (profile_radius + amps.reshape((-1, 1))) coords = circle_coords.T * (profile_radius + amps.reshape((-1, 1)))
verts.append(coords.tolist()) verts.append(coords.tolist())
...@@ -87,4 +87,5 @@ edge_indices_b = np.roll(edge_indices_a, -1) ...@@ -87,4 +87,5 @@ edge_indices_b = np.roll(edge_indices_a, -1)
final_edges = np.array([edge_indices_a, edge_indices_b]).T.tolist() final_edges = np.array([edge_indices_a, edge_indices_b]).T.tolist()
edges.append(final_edges) edges.append(final_edges)
``` ```
\ No newline at end of file i'm sure it's possible to write that even shorter using numpy, but this will give an idea.
\ No newline at end of file
Клонировать репозиторий
  • For Users:

    • Installation
    • Interface overview
    • Web resources about Sverchok
    • FAQ
  • Customisation:

    • Set up GitHub account for exporting node trees from Sverchok
    • Custom Defaults
    • Sverchok Extensions
    • Dependencies and their installation
      • Simple dependencies
      • PIP
        • Side modules
      • SciPy
      • SciKit image
      • Circlify
      • PyMcubes
      • GeomDL
      • FreeCAD
      • Open3D
  • Examples:

    • Profile Node Examples
    • Script Node Examples
  • Versions:

    • Sverchok for Blender 2.8x Release Notes
    • Sverchok for Blender 2.79 Installation
  • For Developers:

    • Install Development version
    • Contributing
      • Git practices
    • Building documentation tarball
    • Macros
    • Sverchok Node Tutorial
      • High-level node howto
      • Details
    • ShaderLib2D