
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
hiccup-sdf-to-obj
Advanced tools
Tools for exporting hiccup-sdf
models to OBJs. Supports single CPU, threaded CPU and GPU mashing. Designed for offline export in node.js.
npm install hiccup-sdf-to-obj --save
const fs = require("fs")
const sdfToObj = require("hiccup-sdf-to-obj")
const tree = ["sphere"];
sdfToObj(tree, obj => {
fs.writeFileSync(path.join(__dirname, "sphere.obj"), obj);
});
$ node export-obj.js
Uses worker threads:
const fs = require("fs")
const sdfToObj = require("hiccup-sdf-to-obj/threaded")
const tree = ["sphere"];
sdfToObj(tree, obj => {
fs.writeFileSync(path.join(__dirname, "sphere.obj"), obj);
});
$ node --experimental-worker export-obj.js
Warning: currently map
from hiccup-sdf
is not supported in threaded export!
Uses offscreen Electron to render on GPU and mesh to OBJ.
const fs = require("fs")
const sdfToObj = require("hiccup-sdf-to-obj/gpu")
const tree = ["sphere"];
sdfToObj(tree, obj => {
fs.writeFileSync(path.join(__dirname, "sphere.obj"), obj);
});
$ node export-obj.js
All options are optional.
sdfToObj(tree, [options], callback)
tree
- hiccup-sdf
model treeoptions.size
- resolution for meshing, 128
is the default, for GPU meshing 256
usually gives nicer results, for single CPU 64
is recommended for speed (but ugly exports)options.threads
- number of threads to spawn, works only with threaded
exports, defaults to 4
callback(obj)
- callback called with obj string if succeeded, otherwise null
This project was developed in part at Laboratory, an artist residency for interactive arts: https://laboratoryspokane.com.
FAQs
export hiccup-sdf models to OBJ
The npm package hiccup-sdf-to-obj receives a total of 5 weekly downloads. As such, hiccup-sdf-to-obj popularity was classified as not popular.
We found that hiccup-sdf-to-obj demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.