Code Monkey home page Code Monkey logo

lscm's People

Contributors

icemiliang 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

lscm's Issues

assertion:fixed vertices>=2 failed

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?

How to build on Ubuntu

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

Question and feature request.

Hi, I have a few questions.

  1. Is there a way to specify the number of fixed vertices, for example, fixing four vertices at (0,0), (0,1), (1,1), (1,0) ?
  2. (Feature request) If possible, could you please update the code to work for quadrangulation too? Thank you.

2 points are less in output.obj compare to input.obj file

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

How can I adapt this project to work with watertight meshes?

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!

List is not a template

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?

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.