Loading files
f245ea3a5This file is pinned to the selected release. Download the original to open it in your design tool.
/*
// title : Modular Project Design Example
// author : Moissette Mark, Simon Clark
// license : MIT License
// description : Demonstrating the structure of a multi-file project
// file : sphereShape.js
// tags : project, module, code, files, subfolder
*/
const { sphere } = require('@jscad/modeling').primitives
const { colorize } = require('@jscad/modeling').colors
const { translateZ } = require('@jscad/modeling').transforms
const sphereShape = (radius) => colorize([1, 0, 0, 1], translateZ(radius, sphere({ radius })))
module.exports = sphereShape