Skip to content

Instantly share code, notes, and snippets.

View nortikin's full-sized avatar
🌍
making 🙈 🙉 🙊

nikitron nortikin

🌍
making 🙈 🙉 🙊
View GitHub Profile
@nortikin
nortikin / COP2
Created December 23, 2014 18:19
COP2
for cen, med, nor in zip(centrs, medians, normals):
X,Y,Z = Vector((1,0,0)), Vector((0,1,0)), Vector((0,0,1))
x,y,z = nor[:]
anglf = Y.angle(med)
#print('angle',anglf)
quota = sqrt( x**2 + y**2 )
if quota > 1e-12:
Nx = Vector(( -y/quota, x/quota, 0 ))
Ny = Vector(( -x*z/quota,-y*z/quota,quota ))
@nortikin
nortikin / circles.json
Last active September 30, 2016 14:36
circles_onplane.json sverchok json
{
"export_version": "0.054",
"framed_nodes": {},
"groups": {},
"nodes": {
"Cylinder": {
"bl_idname": "CylinderNode",
"color": [
0.0,
0.5,
@nortikin
nortikin / kirp32.py
Last active August 29, 2015 14:17
УФМС Кирпичная, 32. Отслеживать списки.
# -*- coding: utf8 -*-
import urllib
import re
import sys
def wget(url):
ufile = urllib.urlopen(url)
if ufile.info().gettype() == 'text/html':
return ufile.read()
@nortikin
nortikin / rolloutuv.py
Last active September 30, 2016 14:38
rollout uv layout as scripted node to 3D sverchok SN1
import bmesh
from sv_bmesh_utils import *
#import numpy as np
def sv_main(object=[],layout=-1):
in_sockets = [
['s', 'object', object],
['s', 'layout', layout],
]
@nortikin
nortikin / particle_system.py
Last active September 30, 2016 14:38
particlesystem_with_names sverchok SN1
def sv_main(obj_id=[], particle_sys=0):
in_sockets = [
['s', 'obj_id', obj_id],
['s', 'particle_sys', particle_sys]]
out_sockets = [
['v', 'locations', []]
]
@nortikin
nortikin / doubleextrude.json
Last active September 30, 2016 14:35
sverchok json
{
"export_version": "0.055",
"framed_nodes": {},
"groups": {},
"nodes": {
"Area": {
"bl_idname": "AreaNode",
"color": [
0.6079999804496765,
0.6079999804496765,
@nortikin
nortikin / error.json
Last active September 30, 2016 14:35
bmesh props sverchok json
{
"export_version": "0.055",
"framed_nodes": {},
"groups": {},
"nodes": {
"Bmesh Viewer Draw": {
"bl_idname": "BmeshViewerNode",
"color": [
1.0,
0.30000001192092896,
@nortikin
nortikin / lamp.json
Last active September 30, 2016 14:35
lamp sverchok text in node's json
{
"faces": [
[
0,
1,
17,
16
],
[
1,
@nortikin
nortikin / particles_layout.json
Last active September 30, 2016 14:34
particles sverchok json
{
"export_version": "0.055",
"framed_nodes": {},
"groups": {},
"nodes": {
"Script Generator": {
"bl_idname": "SvScriptNode",
"color": [
0.0,
0.800000011920929,
@nortikin
nortikin / hiperboloid.json
Last active September 30, 2016 14:34
sverchok json
{
"export_version": "0.055",
"framed_nodes": {},
"groups": {},
"nodes": {
"Float Series": {
"bl_idname": "SvGenFloatRange",
"color": [
0.6079999804496765,
0.6079999804496765,