fix edge rendering

This commit is contained in:
Val Erastov 2017-10-19 21:29:38 -07:00
parent 0340fc7f0d
commit e3c12d45cd

View file

@ -46,7 +46,7 @@ export class BREPSceneSolid extends SceneSolid {
const line = new THREE.Line(undefined, WIREFRAME_MATERIAL);
const contour = edge.curve.tessellate();
for (let p of contour) {
line.geometry.vertices.push(new THREE.Vector3().fromArray(p));
line.geometry.vertices.push(p.three());
}
this.wireframeGroup.add(line);
line.__TCAD_EDGE = edge;