Giter VIP home page Giter VIP logo

hash-octree's Introduction

HashOctree library

Build Status

HashOctree structure acts just like a normal octree structure but also saves a lot of memory by recognizing which sub-octrees are the same and holding them in a single sub-octree instance. Worst case scenario if every sub-octree is different it takes the same amount of memory as classic octree structure implemented in a 64-bit system.

Table of Contents

Installation

Requirements:

  • git
  • cmake version 3.9 or higher

Steps:

  1. Open bash
  2. Go to directory from which you want the library to be referenced
  3. Execute:
    git clone https://github.com/lpiekarski/hash-octree.git/
    cd hash-octree
    cmake .
    make hash-octree
  4. Link libhash-octree.a file to your project
  5. Use #include "{DIR}/hash-octree/include/hashoctree.h" in your code, where {DIR} is path to directory in which you called git clone

Usage

If you are looking for a guide on how to use this library check out the wiki pages. Most common use case is to create a HashOctree instance, insert some data into it using HashOctree::addDataShape and HashOctree::addDataPoint and then mutate contained data or test it for collision against some other objects.

How does it work

HashOctree structure contains a root sub-octree reference and a dictionary consisting of (parent key -> children keys) bindings. Keys are generated by a specific hashing function satisfying the following: keys of 2 different sub-octrees which have the same children' keys and store the same data are equal.

Release notes

There are currently no releases.

License

If you plan to use this library make sure you're familiar with its license terms.

hash-octree's People

Contributors

lpiekarski avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

mortal2000

hash-octree's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.