Giter Site home page Giter Site logo

gaschler / bounding-mesh Goto Github PK

View Code? Open in Web Editor NEW
330.0 330.0 47.0 2.6 MB

Implementation of the bounding mesh and bounding convex decomposition algorithms for single-sided mesh approximation

Home Page: http://www.boundingmesh.com

License: BSD 2-Clause "Simplified" License

CMake 5.59% C++ 93.77% Dockerfile 0.63%

bounding-mesh's People

Contributors

davidmerzjr avatar edsterg avatar ericberberich avatar gaschler avatar mhsaar 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bounding-mesh's Issues

Eigen/src/Core/DenseBase.h:257: void Eigen::DenseBase<Derived>::resize(Eigen::Index, Eigen::Index) [with Derived = Eigen::Block<Eigen::Diagonal<Eigen::Matrix<double, 3, 3>, 0>, -1, 1, false>; Eigen::Index = long int]: Assertion `rows == this->rows() && cols == this->cols() && "DenseBase::resize() does not actually allow one to resize."

When using bounding-convex-decomposition this assertion fails:
bounding-convex-decomposition: /usr/include/eigen3/Eigen/src/Core/DenseBase.h:257: void Eigen::DenseBase::resize(Eigen::Index, Eigen::Index) [with Derived = Eigen::Block<Eigen::Diagonal<Eigen::Matrix<double, 3, 3>, 0>, -1, 1, false>; Eigen::Index = long int]: Assertion `rows == this->rows() && cols == this->cols() && "DenseBase::resize() does not actually allow one to resize."' failed.
I tracked the error down to the last line in VoxelSubset::ComputePrincipalAxes within SegmenterDownsampling.cpp, in case the svd contains singular values which are 0. Here svd.singularValues() returns all singular values including zeros while the left hand side only wants to assign the non-zero elements due to "head(svd.nonzeroSingularValues())". Removing the .head(...) part from the assignment solved the assertion error.

bounding-convex-decomposition Error: could not load mesh (STL)

I am having trouble getting the convex decomposition to work. I am able to run boundingmesh from the command line successfully as well as the GUI.

In a fresh install of Ubuntu 16.04 I am getting the following error when running bounding-convex-decomposition:

./bounding-convex-decomposition my_mesh.stl new_mesh.wrl
Loading mesh...
Couldn't load mesh from my_mesh.stl
Error: could not load mesh

README examples refers to old version

The README example for library usage has not been updated

  • compute has callback instead of mesh
  • compute returns a shared_ptr instead of a real ptr

Assertion 'rows() == other.rows()' fails in Debug mode

The assertion 'rows() == other.rows()' fails in Debug mode inside Decimator::solveConstrainedMinimizationInequalities.
This always happens, for instance in the first test case:

test 1
Start 1: testBoundingmeshTorus

1: Test command: Debug/boundingmesh "-v" "100" "examples/torus/torus.off" "Debug/torus_decimated.off"
1: Test timeout computed to be: 9.99988e+06
1: boundingmesh: /usr/include/eigen3/Eigen/src/Core/Assign.h:505: Derived& Eigen::DenseBase::lazyAssign(const Eigen::DenseBase&) [with OtherDerived = Eigen::Matrix<double, -0x00000000000000001, -0x00000000000000001>, Derived = Eigen::Matrix<double, -0x00000000000000001, 1>]: Assertion `rows() == other.rows() && cols() == other.cols()' failed.
1/6 Test # 1: testBoundingmeshTorus ...................***Exception: Other 0.18 sec
test 2

Decimator access first of empty loop

in "compute()" there is a loop on "executeEdgeContraction" that can remove elements from the queue, but the loop's condition doesn't check whether the queue is empty

testCgalEigenQuadraticProgramming fails

per the title, the testCgalEigenQuadraticProgramming gives the following output:

./testCgalEigenQuadraticProgramming
qem: 0.1 0 -0.02 0.3
0 1 0 0
-0.02 0 1 0
0.3 0 0 0.47
Number of constraints: 0
Solving 10 repetitions.
terminate called after throwing an instance of 'CGAL::Assertion_exception'
what(): CGAL ERROR: assertion violation!
Expr: j <= i
File: /usr/include/CGAL/QP_models.h
Line: 809
Aborted (core dumped)

I am on Ubuntu 16.04 and have cgal 4.7-4 installed

boundingmesh/Mesh.cpp:134: boundingmesh::Index boundingmesh::VertexPositionSet::addVertex(const Vector3&): Assertion `returned.second == true' failed.

Hi there,

When working with a set of meshes I found that one could not be convexly decomposed due to the above assertion in Mesh.cpp, line 134.
After a quick look I concluded that the assertion should not be really necessary as it only tests if a point was newly added to the set and otherwise a pointer to the already existing point would be returned. And indeed removing the assertion allowed to process the mesh and resulted in a decomposition which looks reasonable in Meshlab.

Broken links in README.md

Hello, I attended your presentation at the RSS Workshop and I am interested in using this for model simplification for ROS. I am also interested in the items below listed in the readme but the links appear to be broken.

  • Voxelize
  • Approximate Convex Decomposition
  • Convex Decomposition

bounding-mesh does not provide any way to install the core boundingmesh library

I would like to use the bounding-mesh core library as an optional dependency and would like to let the user of my application the choice to install the boundingmesh library.

Is there any reason not to provide an installation script for the core library and only installing the binaries ? If not, I can PR the cmake script that I am currently using to install it.

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.