-
Notifications
You must be signed in to change notification settings - Fork 7
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
Updated the algo for SP3D2 #12
base: main
Are you sure you want to change the base?
Updated the algo for SP3D2 #12
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@priyansh-narang2308 thank you for the detailed pr that you have made. |
When I checked locally all the atoms are in the spawn point and the bonds are not formed (edges are not being created) ... did you change any logic of creating the bonds @priyansh-narang2308 ? |
Yeahh in my system earlier it was working but as soon as i created the helper functions idk what happened the bonds were not created and it was showing an error |
can you look into it or you need help with fixing this? |
Okay I will see what the issue is and since you have exams coming up ill create another issue to fix it if I can't @priyansh-narang2308 |
Hey @TharunKumarrA As i was unable to do it. |
Yeah no issue @priyansh-narang2308 ... you can work on some other issue |
Resolve #3
Edited the angle part for the sp3d2 hybridisation
Even Created a case for the molecule SF6(sp3d2 hybridised)
Included the radio button for sp3d2 and added sf6 to sample molucules
Added S and F to the Atom counters useState to be shown in the dropdown
This for the second atom for the bond to be made
Now in the molecule.js
Created a function calcSp3d2bondDirection which aclculates the unit vector representing the bond direction for a new ligand in an sp3d2 system.and also returns a default unit vector ([1,0,0]) if no good direction found.
Used normalizeVector which convert calculated directions into unit vectors.
Used validatePlanarArrangement checks if a set of bonds forms a planar arrangement(all bonds with same plaen).
and used getPlaneNormal which calculates the normal vector to the plane formed by the first two bonds .
OUTPUT SCREEN
Showing for the double bond.
Pls review.🫡🫡