Learn about JSCAD, the JavaScript-based CAD system that powers parametric 3D design in STL.Show.
JSCAD is a modern, JavaScript-based computer-aided design (CAD) system that allows you to create 3D models using code. Unlike traditional CAD software that relies on graphical interfaces, JSCAD uses programming to define geometry, making it perfect for parametric design, automation, and precise control.
Create 3D models using JavaScript programming instead of graphical tools
Easily modify designs by changing parameters without recreating geometry
Runs in web browsers, making it accessible and platform-independent
JSCAD is often compared to OpenSCAD, another popular code-based CAD system. Here's how they differ:
STL.Show integrates JSCAD seamlessly to provide a powerful, web-based 3D design experience.
Basic geometric shapes that form the building blocks of your 3D models.
cube() - Rectangular boxsphere() - Perfect spherecylinder() - Circular cylindertorus() - Donut shapepolyhedron() - Custom 3D shapepoly3() - Custom polygonpath2() - 2D pathgeom2() - 2D geometryOperations that modify the position, orientation, and size of geometric objects.
translate() - Move objectsrotate() - Rotate objectsmirror() - Reflect objectstransform() - Custom transformationsscale() - Resize objectscenter() - Center objectsalign() - Align objectsoffset() - Expand/shrinkCombine multiple objects using mathematical set operations to create complex shapes.
union() - Combine objectssubtract() - Remove from objectintersect() - Keep overlaps onlyUnderstanding the typical workflow for creating JSCAD designs in STL.Show.
Start with a new code object, open an example, or import existing JSCAD code.
New Code Object
Open Examples
Import Code File
Use the integrated code editor to write JSCAD code with syntax highlighting and real-time error detection.
function main() {
return cube({size: 10})
}If your code includes parameters, configure them using the automatic parameter UI.
function getParameterDefinitions() {
return [
{name: 'size', type: 'number', initial: 10, caption: 'Size'},
{name: 'segments', type: 'number', initial: 16, caption: 'Segments'}
]
}Compile your JSCAD code to generate 3D geometry and view it in the scene.
Now that you understand JSCAD basics, explore these areas to build your skills: