deklanw
September 28, 2020, 4:46pm
1
Referring to this official example:
<!DOCTYPE html>
<html lang="en">
<head>
<title>three.js webgl - buffergeometry - lines</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<link type="text/css" rel="stylesheet" href="main.css">
</head>
<body>
<div id="container"></div>
<div id="info"><a href="https://threejs.org" target="_blank" rel="noopener">three.js</a> webgl - buffergeometry - lines</div>
<script type="module">
import * as THREE from '../build/three.module.js';
import Stats from './jsm/libs/stats.module.js';
import { GUI } from './jsm/libs/dat.gui.module.js';
This file has been truncated. show original
Suppose I had like 50,000 such lines in logical sets of around 10. Most of the time I would like to show all of them, but sometimes I’d like to show one set of 10 and hide the other 49,990, and then go back to showing all, etc.
Is there a way to do this?
Any help appreciated!
deklanw
September 28, 2020, 10:18pm
3
This requires the sets to be contiguous in the array, right? That can’t be done, in this case, if so