This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//best version yet... | |
function processElement(element, ALL_IDS) { | |
let stylesheet = ''; | |
let svgString = ''; | |
// Check if the element has children (e.g., <g> elements) | |
if (element.children.length > 0) { | |
// If it's a group, process each child | |
let groupContent = ''; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//logic | |
//three components: | |
//front-door | |
float fd_width = chf("Front_Door_Width"); | |
//wide-garage | |
float wg_width = chf("Wide_Garage_Width"); | |
//narrow-garage | |
float ng_width = chf("Narrow_Garage_Width"); | |
//spacing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PS C:\Program Files\Ultimaker Cura 5.2.1> .\CuraEngine.exe | |
Cura_SteamEngine version 5.2.1 | |
Copyright (C) 2022 Ultimaker | |
This program is free software: you can redistribute it and/or modify | |
it under the terms of the GNU Affero General Public License as published by | |
the Free Software Foundation, either version 3 of the License, or | |
(at your option) any later version. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\Users\Reference>vulkaninfo | |
========== | |
VULKANINFO | |
========== | |
Vulkan Instance Version: 1.3.201 | |
Instance Extensions: count = 13 | |
=============================== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[1, 10, 5] | |
id:1-------- | |
c0:[Vector((1.0, 1.0, 1.0)), Vector((1.0, 1.0, 1.0)), Vector((2.5952634811401367, 4.673618316650391, 2.528850555419922)), Vector((0.0, 0.0, 0.0)), Vector((-2.174985408782959, 14.062763214111328, 12.237187385559082))] | |
c1:[Vector((4.53745698928833, 9.417943954467773, 2.810494899749756)), Vector((-2.3082613945007324, 1.2570186853408813, 5.259504795074463)), Vector((-1.3547754287719727, 17.855918884277344, 13.437776565551758))] | |
c2:[Vector((5.320581436157227, 3.0470848083496094, -3.7964653968811035)), Vector((-4.250454902648926, -3.487306594848633, 4.977860450744629)), Vector((1.1032078266143799, 16.89960289001465, 10.495382308959961))] | |
c3:[Vector((6.8457183837890625, 8.160924911499023, -2.449009895324707)), Vector((-1.5251367092132568, -5.113840103149414, -1.3474555015563965)), Vector((1.2449270486831665, 13.604747772216797, 8.606368064880371))] | |
id:10-------- | |
c0:[Vector((1.0, 1.0, 1.0)), Vector((1.0, 1.0, 1.0)), Vector((2.5952634811401367, 4.673618316650391, 2.528850555419922)), Vector((0. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pip install opencv-contrib-python --user | |
import cv2 as cv | |
import numpy as np | |
import argparse | |
import sys | |
import imutils | |
import glob | |
import os | |
import json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bpy | |
from mathutils import Vector, Quaternion | |
import numpy as np | |
import bmesh | |
import glob | |
import os | |
os.system('clear') | |
def lerp( t, a, b): | |
return a + t * (b - a) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
float fovx; //field of view in X - | |
float fovy; //field of view in Y - | |
float aperature_x; //aperture in X 41.4214 | |
float aperature_y; //aperture in Y - | |
float focal; //focal length 50 | |
float resx; //pixel resolution in X 320 | |
float resy; //pixel resolution in Y 243 | |
float pixel_aspect; //pixel aspect (width/height) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pip install opencv-contrib-python --user | |
import cv2 as cv | |
import numpy as np | |
import argparse | |
import sys | |
import imutils | |
import glob | |
import os | |
import json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node = hou.pwd() | |
geo = node.geometry() | |
import os | |
import glob | |
geo.addAttrib(hou.attribType.Point, "id", 0) | |
geo.addAttrib(hou.attribType.Point, "corner", 0) | |
geo.addAttrib(hou.attribType.Point, "name", "") | |
geo.addAttrib(hou.attribType.Point, "dimx", 0) | |
geo.addAttrib(hou.attribType.Point, "dimy", 0) |
NewerOlder