Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

368
Views
¿Cómo leer triángulos y vértices del modelo desde el formato STL?

Necesito obtener información sobre los vértices y triángulos del modelo de formato STL, por favor dígame cómo extraer estos datos en ThreeJS

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Puede utilizar la clase STLLoader para esta tarea. Así que define una instancia del cargador y la usa para cargar un activo STL desde una ruta específica. En la devolución de llamada onLoad() , obtiene una instancia de BufferGeometry representa los datos de geometría del archivo STL.

 const loader = new STLLoader(); loader.load( './models/stl/ascii/slotted_disk.stl', function ( geometry ) { const material = new THREE.MeshBasicMaterial(); const mesh = new THREE.Mesh( geometry, material ); scene.add( mesh ); } );

Tenga en cuenta que la geometría no está indexada. Entonces, las caras/triángulos están definidos por tres vértices consecutivos en el atributo de búfer de position .

Ejemplo completo: https://threejs.org/examples/webgl_loader_stl

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!