vcg

Remove self-intersections in Meshlab or vcglib

房东的猫 提交于 2019-12-25 01:24:57
问题 How to remove self-intersection of a mesh with the Meshlab application or vcglib? 回答1: This is out of the scope but there are some functions in CGAL. This is still experimental and not documented but you can use the function remove_self_intersection(). Depending on the type of self-intersections, you can also use the (also experimental) function autorefine_and_remove_self_intersections(). The first function is more likely to be used when you want to remove self-intersection due to loss of

Assertion Failure when using vcglib examples

非 Y 不嫁゛ 提交于 2019-12-24 13:34:13
问题 I want to use vcglib for reconstructing a surface based on a point cloud. But whenever I run my program (also with the provided examples, e.g. /vcglib/apps/sample/trimesh_allocate) I get the following output: trimesh_allocate: ../../../vcg/simplex/vertex/component.h:50: int vcg::vertex::EmptyCore::cFlags() const [with TT = MyUsedTypes]: Assertion `0' failed. Any ideas how to solve this? I am using QT-Creator 2.4.1 on Ubuntu 12.04. I do net get any compiler or linker errors. Thanks a lot in

Program crashes while creating VertexPointer of more then 400k Vertex in VCG

别等时光非礼了梦想. 提交于 2019-12-23 16:18:03
问题 I'm new to VCG and facing some problem with creating a VertexPointer of size 400K+ Vertex. The actual question was asked here in the solution's comment. I tried to make an array of VertexPointer MyMesh::VertexPointer vi[400000]; The program crashes with no error in the above line of code. This is MyMesh Declaration class MyFace; class MyVertex; struct MyUsedTypes : public vcg::UsedTypes< vcg::Use<MyVertex>::AsVertexType, vcg::Use<MyFace>::AsFaceType>{}; class MyVertex : public vcg::Vertex<

how to save color using vcglib?

拜拜、爱过 提交于 2019-12-21 21:37:20
问题 I'm trying to save color of vertices using vcglib but failed. Even if I read a file in and save it out without doing anything, the color of the original file is lost. Here is the code I wrote: vcg::tri::io::ImporterPLY<MyMesh>::Open(*srcMesh,"bunny.ply"); vcg::tri::io::ExporterPLY<MyMesh>::Save(*srcMesh,"out.ply"); After doing this, out.ply has no color while the source ply bunny.ply does. Could anybody give me some sample code to make this thing done? Thank you! 回答1: I had the exact same

Failed to to simplify 3D models with vcglib, Assertion `0' failed

为君一笑 提交于 2019-12-08 12:22:40
问题 I used vcglib to simplify 3D model file. I used the master_a8e87662 git repo. I run the sample trimesh_clustering to simplify a plf file format 3D model with this, ./trimesh_clustering ./Zeus.ply out.ply -k 1000 And get this error, Input mesh vn:152059 fn:304114 Clustering to 95472 cells Grid of 51 x 26 x 72 cells with cells size of 0.48 x 0.49 x 0.48 units trimesh_clustering: vcglib/vcg/simplex/vertex/component.h:75: vcg::vertex::EmptyCore<TT>::ColorType& vcg::vertex::EmptyCore<TT>::C()