jscad-fiber
v0.0.71
Published
[View examples](https://tscircuit.github.io/jscad-fiber/) · [jscad](https://github.com/jscad/OpenJSCAD.org) · [tscircuit](https://github.com/tscircuit/tscircuit) · [jscad-electronics](https://github.com/tscircuit/jscad-electronics)
Downloads
2,819
Readme
jscad-fiber
View examples · jscad · tscircuit · jscad-electronics
This package allows you to create 3d CAD objects with React and jscad.
Usage
[!NOTE] Go to the
examples
directory to see examples of usage.
Create JSCad components with React.
import { JSCad3dView } from "jscad-fiber/viewer"
export default () => (
<JSCad3dView>
<union>
<substract from={<cube size={10} />}>
<sphere radius={6.8} />
</subtract>
<intersect>
<cube size={7} />
<sphere radius={4} />
</intersect>
</union>
</JSCad3dView/>
)
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