angular-stl-model-viewer | Angular component for rendering an STL model | 3D Printing library
kandi X-RAY | angular-stl-model-viewer Summary
kandi X-RAY | angular-stl-model-viewer Summary
this is an angular component to render stl-models with three.js. installation == - yarn add angular-stl-model-viewer - npm install angular-stl-model-viewer. usage == - import stlmodelviewermodule to your app module - use stl-model-viewer component in your html - alternatively use [stlmodelfiles]="['stlfilecontent']". the working basic example can be found in our [live demo][live-demo]. configuration == ## input properties | attr | type | default | details | | ------------ | ---------------------- | -------------------------------------------------------------------------------- |--------------------------------------------------- | | stlmodels | string[] | empty array | list of stl model paths | stlmodelfiles | string[] | empty array | list of stl model files/content | hascontrols | boolean | true | if true, the user can interact with the stl-models | | camera | three.camera | three.perspectivecamera( 35, windowinnerwidth / windowinnerheight, 1, 15 ) | the projection mode used for rendering the scene | | cameratarget | three.vector3
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of angular-stl-model-viewer
angular-stl-model-viewer Key Features
angular-stl-model-viewer Examples and Code Snippets
Community Discussions
Trending Discussions on angular-stl-model-viewer
QUESTION
I'm currently trying to set up a basic .stl viewer with the possibility to preview different materials on the model itself. I have Angular 9 as framework and the whole .stl showing part is working quite fine and easy. When I try to update the Material it's simply not updating it, but showing a very strange basic material I assume. Like mentioned in the heading I'm currently using a GitHub project based on Three.js which can be found here: https://github.com/tevim/angular-stl-model-viewer
Like mentioned in the Three documentation I tried to set the material.needsUpdate
and also the texture.needsUpdate
flag, both without any effect.
ANSWER
Answered 2020-May-15 at 19:54The STL file format does not support texture coordinates. And without these data, it's not possible to apply texture to your meshes.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install angular-stl-model-viewer
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page