mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-12-23 19:43:48 +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 lineLookup = {};
|
||||||
|
|
||||||
var addLine = (a, b) => {
|
var addLine = (a, b) => {
|
||||||
var index = lineLookup[b + '_' + a];
|
var index = lineLookup[`${b}_${a}`];
|
||||||
|
|
||||||
if (index === undefined) {
|
if (index === undefined) {
|
||||||
index = lines.length;
|
index = lines.length;
|
||||||
lineLookup[a + '_' + b] = index;
|
lineLookup[`${a}_${b}`] = index;
|
||||||
|
|
||||||
lines.push({
|
lines.push({
|
||||||
line: new THREE.Line3(geometry.vertices[a], geometry.vertices[b]),
|
line: new THREE.Line3(geometry.vertices[a], geometry.vertices[b]),
|
||||||
|
Loading…
Reference in New Issue
Block a user