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

Question on D in plane equation #9

Open
YanhaoZhang opened this issue Jul 29, 2024 · 0 comments
Open

Question on D in plane equation #9

YanhaoZhang opened this issue Jul 29, 2024 · 0 comments

Comments

@YanhaoZhang
Copy link

Hi, Thanks a lot for this interesting work. I am reading the code and have a quick question about the calculation of D in $Ax+By+Cz+D=0$. From the equation, $n_r=[A,B,C]$ and $D=d_r n_r \cdot v$

However, from the code

A = nm[:,0].unsqueeze(-1)
B = nm[:,1].unsqueeze(-1)
C = nm[:,2].unsqueeze(-1)
C = -torch.sigmoid(C)
z_vals_p0 = dm[:,0].unsqueeze(-1)
D = -z_vals_p0*C

It seems to be $D=-d_r \sigma(C)$. May I ask for some explanation? Thanks a lot.

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

1 participant