mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-12-23 11:33:49 +01:00
use s6 string
This commit is contained in:
parent
61e7a59177
commit
ed76a9f255
@ -7,11 +7,11 @@ export default function createLines(geometry, settings) {
|
||||
var lineLookup = {};
|
||||
|
||||
var addLine = (a, b) => {
|
||||
var index = lineLookup[b + '_' + a];
|
||||
var index = lineLookup[`${b}_${a}`];
|
||||
|
||||
if (index === undefined) {
|
||||
index = lines.length;
|
||||
lineLookup[a + '_' + b] = index;
|
||||
lineLookup[`${a}_${b}`] = index;
|
||||
|
||||
lines.push({
|
||||
line: new THREE.Line3(geometry.vertices[a], geometry.vertices[b]),
|
||||
|
Loading…
Reference in New Issue
Block a user