mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-11-19 04:27:55 +01:00
use s6 string
This commit is contained in:
parent
ef74eebf8a
commit
3531d64dbf
@ -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