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
import * as CreateSTLLoader from "three-stl-loader";
import * as THREE from "three"; // For the STLLoader
...
CreateSTLLoader(THREE);
let loader = new (<any>THREE).STLLoader();
I'm afraid I'm not sure whether I'm overlooking something, or what would be involved in making a better solution if I'm not. For what it's worth, I'm using @types/three for TypeScript definitions of Three.js itself.
The text was updated successfully, but these errors were encountered:
This is the best I can come up with:
I'm afraid I'm not sure whether I'm overlooking something, or what would be involved in making a better solution if I'm not. For what it's worth, I'm using @types/three for TypeScript definitions of Three.js itself.
The text was updated successfully, but these errors were encountered: