Socket
Book a DemoInstallSign in
Socket

linear-octree

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

linear-octree

A sparse, linear octree data structure.

Source
npmnpm
Version
0.0.0
Version published
Weekly downloads
7
-61.11%
Maintainers
1
Weekly downloads
 
Created
Source

Linear Octree

Build status npm version Peer dependencies

:warning: WIP :warning:

A sparse, linear octree data structure. For a pointer-based implementation see sparse-octree.

Demo · Documentation

Installation

This library requires the peer dependencies iterator-result and math-ds.

npm install iterator-result math-ds
npm install linear-octree

Usage

Objects
import { Octree } from "linear-octree";

// TODO

Features

  • Linear structure
    • Packs positional data into numeric keys
    • Constant time access to octants, parents and neighbors at any depth level
    • Low memory usage
    • Constant depth
  • Adheres to a common octant layout
  • Supports raycasting
    • Uses a 3D supercover variant of the DDA line algorithm
  • Supports culling
  • Can be extended to manage any data

Octree Helper

The octree-helper module provides an octree visualization tool for three.js.

Contributing

Maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.

Keywords

partition

FAQs

Package last updated on 26 Oct 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts