Giter Club home page Giter Club logo

vertexenumeration3d's Introduction

Vertex Enumeration 3D

VertexEnumeration3D is an efficient tool to enumerate all vertices of a 3D polytope.

Feature

  1. Only 3 header files are all you needed.

  2. This tool is more efficient and robust than cddlib for 3D polytopes.

  3. Any nonzero-volume polytope is acceptable even with degenrate vertices(one shared by more than 3 facets).

  4. An order of magnitude faster than cddlib by leveraging polar duality and mature convex hull algorithms.

Interface

Only one function is needed.

 bool geo_utils::enumerateVs(const Eigen::MatrixX4d &hPoly, 
                            Eigen::MatrixXd &vPoly);

Inputs:

hPoly: 
    An Eigen matrix with size N*4. N is the number of halfspaces. The i-th row 
    is (h0, h1, h2, h3) defining a halfspace as h0*x + h1*y + h2*z + h3 <= 0.

    A 3D polytope is defined by the halfspace intersection, thus an arbitrary 
    number of redundant halfspaces is acceptable.

Outputs:

vPoly:
    An Eigen matrix with size 3*M. M is the number of vertices.

Example: src/polyve.cpp.

If an interior point of the polytope is already known, the following function can be used instead.

void enumerateVs(const Eigen::MatrixX4d &hPoly, 
                 const Eigen::Vector3d &inner, 
                 Eigen::MatrixXd &vPoly)

Results

The ground-truth polytope is visualized by blue facets with green edges. The white sphere is an interior point automatically found by the tool. The red spheres are enumerated vertices, which are consistent with the ground truth.

vertexenumeration3d's People

Contributors

zhepeiwang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

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.