mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-07-05 02:10:43 +02:00
15 lines
416 B
JavaScript
15 lines
416 B
JavaScript
import React from 'react';
|
|
import * as THREE from 'three';
|
|
import { Interface } from 'doodle3d-slicer';
|
|
import fileURL from '!url-loader!./models/combingtest.json';
|
|
import { render } from 'react-dom';
|
|
// import fileSaver from 'file-saver';
|
|
|
|
const jsonLoader = new THREE.JSONLoader();
|
|
jsonLoader.load(fileURL, geometry => {
|
|
render(
|
|
<Interface geometry={geometry} />,
|
|
document.getElementById('app')
|
|
);
|
|
});
|