imrishabh18/3d-model-test

It loads a 3D model of an electronic component onto a circuit board with specified positioning.

Version
0.0.1
License
unset
Stars
0

index.tsx

PCBPCB preview for index.tsx
SchematicSchematic preview for index.tsx
import glbUrl from "./assets/test.glb"
export default () => (
  <board>
    <chip
      name="U1"
      cadModel={
        <cadassembly>
          <cadmodel
            modelUrl={glbUrl}
            modelUnitToMmScale={1000}
            positionOffset={{ x: 0, y: 0, z: 0.2 }}
          />
        </cadassembly>
      }
    />
  </board>
)