Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Laplacian-Meshes( Is it a complete project? ) #3

Open
coldcoda opened this issue Jan 28, 2019 · 12 comments
Open

Laplacian-Meshes( Is it a complete project? ) #3

coldcoda opened this issue Jan 28, 2019 · 12 comments

Comments

@coldcoda
Copy link

@ctralie @bmershon Hello!
I am learning the Laplacian Meshes and I have download this project.But there are many problems I don't know how to solve.

Can you tell me is it a complete project ?Because there are many functions can't be found.
as the follows:

  1. function named makeLaplacianMatrixSolverIGLSoft and solveLaplacianMatrixIGLSoft in meshView.py.
    1

2.function named getUniformLocation in Shader.py.
image

3.function named subspace_tde_amplification in RealSenseVideo.py.

image

4.function named estimateMeanCurvature in LapGUI.py.
image

5.The module named VideoTools also can't found.

image

If this isn't a complete project,can you share a complete project to me? Or Can you provide a way to solve these problems. I really want to learn this.

Thanks very much! Wishes for your reply!!

@ctralie
Copy link
Collaborator

ctralie commented Jan 28, 2019

Hello @coldcoda, thanks for your interest in this work. Actually, this was a project in a class I taught on digital 3D geometry:

http://www.ctralie.com/Teaching/COMPSCI290/Assignments/Group3_LaplacianMesh/

You can ignore most of the missing stuff you pointed out...it was vestigial from other projects and I forgot to get rid of it. The only thing that's important is the "getUniformLoction", which requires that you install pyOpenGL. See my instructions here:
http://www.ctralie.com/Teaching/COMPSCI290/Assignments/Mini3_ICP/#code

Hopefully that all helps you get started.
Best,
Chris

@coldcoda
Copy link
Author

Hello @ctralie , you said that function named "getUniformLocation" is important, and should install pyOpenGL. I have installed all of the important packages pointed at http://www.ctralie.com/Teaching/COMPSCI290/Assignments/Mini3_ICP/#code :
image
image

but it still has the problem with the function "getUniformLocation".
image
I'm sorry that I can't solve it by myself. So, can you help me again!!

Also, when I run LapGUI.py, there is a problem , and I'm so sorry I don't know why.
image

So sorry about my problem, maybe it's a very simple broblem, but I really don't know how to solve it. It has been bothering me for a long time!!

And I'm learning your class follow the step at http://www.ctralie.com/Teaching/COMPSCI290/Assignments/Group3_LaplacianMesh/
I will try my best to understand it!
Thanks for your reply!

Best,
Coldcoda

@coldcoda
Copy link
Author

hello @ctralie ,I'm so sorry to ask for your help again!!
I don't understand why I should do this as the picture,I think it should be Lii=1.
image
Because you have given the formula like this:
image
And, describe the matrix L here:
image
So I really don't understand why Lii isn't 1.

Can I receive your answer?
Thanks very much! Wishes for your reply!!

@coldcoda
Copy link
Author

coldcoda commented Mar 2, 2019

hello @ctralie @bmershon ,I'm so sorry to ask for your help again!!
I don't understand why I should do this as the picture,I think it should be Lii=1.
image

Because you have given the formula like this:
image

And, describe the matrix L here:
image

So I really don't understand why Lii isn't 1.

Can I receive your answer?
Thanks very much! Wishes for your reply!!

@ctralie
Copy link
Collaborator

ctralie commented Mar 2, 2019 via email

@coldcoda
Copy link
Author

Hello @ctralie @bmershon Since I received your letter, I have thought about it seriously for several days and checked some blogs to help me understand it.So It took me several days.
At first,I thought because the formula:
image
So,the matrix L should be like this(Lii=1,Lij=-1/di when i belongs to N(i),Lij=0 otherwise)
But now I think I understand that they are matrix transformations for easy computation.

Finally, I'd like to ask if I need to do this when I solve the equations by calling sparse least squares
x = scipy.sparse.linalg.lsqr(A, b)[0].
image

I think I don't need to do this,but when I try to print the Position of the anchors, It doesn't equal to the original position of the anchors.
image
image

I'm sorry to ask for help again.
Thanks very much! Wishes for your reply!!

@ctralie
Copy link
Collaborator

ctralie commented Mar 12, 2019 via email

@otori-bird
Copy link

otori-bird commented Dec 29, 2019

@coldcoda
@ctralie
i meet the same problem that i can't find 'getUniformLocation'.
and when i click 'Display Mesh Faces' or somthing like that, error occurs:
Traceback (most recent call last):
File "E:/lapalcian/LapGUI.py", line 91, in displayFaceNormalsCheckbox
self.displayFaceNormals = evt.Checked()
AttributeError: 'CommandEvent' object has no attribute 'Checked'

could you tell me how to solve it? thanks a lot

@ctralie
Copy link
Collaborator

ctralie commented Dec 29, 2019 via email

@otori-bird
Copy link

of course i did. It's PyOpenGL 3.1.4

微信图片_20191229215456

Did you pip install pyopengl?

On Sun, Dec 29, 2019, 12:53 AM otori-bird @.***> wrote: @coldcoda https://github.com/coldcoda @ctralie https://github.com/ctralie i meet the same problem that i can't find 'getUniformLocation'. could you tell me how to solve it? thanks a lot — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#3?email_source=notifications&email_token=AAJWDZS4UGNYMRKQLH3INS3Q3A3PDA5CNFSM4GSWBWE2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHYYTRY#issuecomment-569477575>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJWDZRD5ROCEJ3HBHJZ3WLQ3A3PDANCNFSM4GSWBWEQ .

@ctralie
Copy link
Collaborator

ctralie commented Dec 30, 2019 via email

@otori-bird
Copy link

Hmm, something must have changed in the PyOpenGL API somewhere. Sorry for the trouble! Unfortunately, I don't have time to help with this right now. But I have a related project in progress with implementations of cotangent and umbrella weights: https://github.com/ctralie/pyhks Compared to the assignment, it's missing a GUI that has you choose anchor points. But it at least shows how to construct some of these objects. You may also be interested in libigl, which has Python bindings: https://libigl.github.io/ There are even better techniques than Laplacian mesh editing there that accomplish the same thing All the best, Chris

On Sun, Dec 29, 2019 at 8:57 AM otori-bird @.> wrote: of course i did. It's PyOpenGL 3.1.4 [image: 微信图片_20191229215456] https://user-images.githubusercontent.com/53210109/71557790-21d7da80-2a86-11ea-908b-03038fd876ec.png Did you pip install pyopengl? … <#m_-3467974339379055778_> On Sun, Dec 29, 2019, 12:53 AM otori-bird @.> wrote: @coldcoda https://github.com/coldcoda https://github.com/coldcoda @ctralie https://github.com/ctralie https://github.com/ctralie i meet the same problem that i can't find 'getUniformLocation'. could you tell me how to solve it? thanks a lot — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#3 <#3>?email_source=notifications&email_token=AAJWDZS4UGNYMRKQLH3INS3Q3A3PDA5CNFSM4GSWBWE2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHYYTRY#issuecomment-569477575>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJWDZRD5ROCEJ3HBHJZ3WLQ3A3PDANCNFSM4GSWBWEQ . — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#3?email_source=notifications&email_token=AAJWDZQAG4ZWF3PDU4RHAZDQ3CUDLA5CNFSM4GSWBWE2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHZABNA#issuecomment-569508020>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJWDZXQH525E2VWJOKATQTQ3CUDLANCNFSM4GSWBWEQ .

ok, it's fine. i'll see if they work for me. thank u so much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants