Я пытаюсь отобразить файл .stl с помощью stl-model-viewer в angular.
app.component. html: -
<h1>Hi There 3D data</h1>
<stl-model-viewer stlModel="./assets/base.stl"></stl-model-viewer>
app.component.s css: -
stl-model-viewer {
display: block;
height: 1000px;
width: 1000px;
}
app.component.ts: -
import { Component } from '@angular/core';
import * as THREE from 'three';
import {STLLoader} from 'three/examples/jsm/loaders/STLLoader'
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent {
title = 'stl-app';
}
Я также импортировал StlModelViewerModule в мой файл app.module.ts.
Я не вижу никаких 3D-данных на моей веб-странице.