xeolabs / xeogl

A WebGL-based 3D engine for technical visualization. Not actively maintained.
http://xeogl.org
Other
1.15k stars 264 forks source link

Wrong edges on large STL files #274

Closed Artur-Sampaio closed 5 years ago

Artur-Sampaio commented 5 years ago

Describe the bug When loading large STL files, enabling edge rendering causes edges to be completely wrong.

To Reproduce Steps to reproduce the behavior:

  1. On line 616 of STLModel.js, replace

var mesh = new xeogl.Mesh(model, { id: model.id + "#" + entityCount++, geometry: geometry, material: material });

with

var mesh = new xeogl.Mesh(model, { id: model.id + "#" + entityCount++, geometry: geometry, material: material, edges: true, edgeThreshold: 20 });

  1. Run the importing_stl_F1Concept example
  2. See error

Expected behavior The object edges will be all over the place.

Screenshots image

Desktop (please complete the following information):