You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
innerRadius: number, outerRadius: number, segments?: number
Ring dimensions
ExtrudeLinear
height: number, twistAngle?: number
Linear extrusion with optional twist
ExtrudeRotate
angle: number, segments?: number
Rotational sweep
Polygon
points: [number,number][]
2D points array
Translate
offset: [number,number,number]
3D translation
Rotate
angles: [number,number,number]
Rotation angles in radians
Hull
children: React.ReactNode
Convex hull of children
Union
children: React.ReactNode
Boolean union of children
Subtract
children: React.ReactNode
Boolean subtraction
Why?
JSCAD allows you to create detailed 3D objects using boolean operations. This
is how modern CAD tools create precise 3D models. jscad-fiber is used to
create the 3D electronics library for tscircuit called
jscad-electronics
Example Wrapper
The library includes an ExampleWrapper component that provides a convenient way to display both the rendered 3D object and its source code: