icemiliang / lscm Goto Github PK
View Code? Open in Web Editor NEWLeast squares conformal mapping implemented in C++
License: MIT License
Least squares conformal mapping implemented in C++
License: MIT License
hi,when i run:"./main ../data/human.obj output.obj". It report :
main: /home/yejiawei/Desktop/lscm-master/src/LSCM.cpp:73: void MeshLib::LSCM::project(): Assertion `m_fix_vertices.size()>=2' failed.
so it seems like m_fix_vertice do not contain at least 2 vertices. I check the human. obj , and I do find two fixed vertices with "fix 0.0 0.0".
could you pls help me?
Hi,
I want to try your code. I found that it has no Makefile (I am not familiar with config.mk also). I created a cmakelist and build the repo but it has the error in the Parse.h: "SList.h: No such file or directory". What is SList.h and how can I have it?
Thanks
Excuse me. Could you please tell me how to fix the vertices of my obj?
Hi, I have a few questions.
I have tested code on my test file. Code run without error, but the number of points in output file is less compare to input file by 2 points. I had fixed 2 points in input file as per you suggested in repository.Is there any thing going wrong? I had attached the test file below.
test_file = test_simple_sample.obj.zip
Number of points in input file = 63
Number of points in output file = 61
Hi, thanks for your amazing work. However I've encountered the following error while testing with my own mesh model:
(eric) vcl@vcl-dl-2:/backup1/eric/lscm$ sh test_watertight.sh
make -C src clean
make[1]: 进入目录“/backup1/eric/lscm/src”
rm -f Boundary.o lscm.o Edge.o Face.o FormTrait.o HalfEdge.o Homology.o Mesh.o Vertex.o Graph.o
rm -f libmesh++.a
make[1]: 离开目录“/backup1/eric/lscm/src”
rm -f main
make -C src
make[1]: 进入目录“/backup1/eric/lscm/src”
g++ -Wall -pedantic -O3 -std=c++11 -Isrc/ -I/usr/include/ -Iinclude/ -I../include/ -c Boundary.cpp
g++ -Wall -pedantic -O3 -std=c++11 -Isrc/ -I/usr/include/ -Iinclude/ -I../include/ -c lscm.cpp
lscm.cpp: In member function ‘void MeshLib::LSCM::parameterize()’:
lscm.cpp:68:39: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘std::vector<MeshLib::Vertex*>::size_type {aka long unsigned int}’ [-Wformat=]
printf("%d\n", m_fix_vertices.size());
~~~~~~~~~~~~~~~~~~~~~^
g++ -Wall -pedantic -O3 -std=c++11 -Isrc/ -I/usr/include/ -Iinclude/ -I../include/ -c Edge.cpp
g++ -Wall -pedantic -O3 -std=c++11 -Isrc/ -I/usr/include/ -Iinclude/ -I../include/ -c Face.cpp
g++ -Wall -pedantic -O3 -std=c++11 -Isrc/ -I/usr/include/ -Iinclude/ -I../include/ -c FormTrait.cpp
g++ -Wall -pedantic -O3 -std=c++11 -Isrc/ -I/usr/include/ -Iinclude/ -I../include/ -c HalfEdge.cpp
g++ -Wall -pedantic -O3 -std=c++11 -Isrc/ -I/usr/include/ -Iinclude/ -I../include/ -c Homology.cpp
g++ -Wall -pedantic -O3 -std=c++11 -Isrc/ -I/usr/include/ -Iinclude/ -I../include/ -c Mesh.cpp
g++ -Wall -pedantic -O3 -std=c++11 -Isrc/ -I/usr/include/ -Iinclude/ -I../include/ -c Vertex.cpp
g++ -Wall -pedantic -O3 -std=c++11 -Isrc/ -I/usr/include/ -Iinclude/ -I../include/ -c Graph.cpp
rm -f libmesh++.a
ar rs libmesh++.a Boundary.o lscm.o Edge.o Face.o FormTrait.o HalfEdge.o Homology.o Mesh.o Vertex.o Graph.o
ar: 正在创建 libmesh++.a
make[1]: 离开目录“/backup1/eric/lscm/src”
g++ -Wall -pedantic -O3 -std=c++11 -Isrc/ -I/usr/include/ -Iinclude/ -I../include/ -Lsrc/ -L/usr/lib/ -o main main.cpp -lmesh++
--> Reading mesh...
--> Computing conformal map...
0
main: lscm.cpp:69: void MeshLib::LSCM::parameterize(): Assertion `m_fix_vertices.size()>=2' failed.
Aborted (core dumped)
It seems that my model lacks some "fix vertices", which should be greater than zero (while my model got none). I find that the only difference is that my input mesh is genus-0 and watertight while your mesh contains clear "boundary".
I'm wondering what does "fix vertices" mean? Furthermore, can you show me a quick workaround for dealing with watertight meshes? Many thanks!
Sorry if this is a dumb question, but I get this error when I try to build,
E0864 - List is not a template
I'm very new to c++ and I'm not sure what to do, should I create the List class myself?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.