-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add wrapAtoms option to address Issue #770
- Loading branch information
Showing
4 changed files
with
285 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,222 @@ | ||
data_HKUST-1Fm-3m | ||
_audit_creation_method 'generated by CrystalMaker X for macOS' | ||
_cell_length_a 26.343000 | ||
_cell_length_b 26.343000 | ||
_cell_length_c 26.343000 | ||
_cell_angle_alpha 90.000000 | ||
_cell_angle_beta 90.000000 | ||
_cell_angle_gamma 90.000000 | ||
|
||
_symmetry_space_group_name_H-M 'F m -3 m' | ||
|
||
loop_ | ||
_symmetry_equiv_pos_as_xyz | ||
'+x,+y,+z' | ||
'+z,+x,+y' | ||
'+y,+z,+x' | ||
'+x,+y,-z' | ||
'+z,+x,-y' | ||
'+y,+z,-x' | ||
'-x,+y,+z' | ||
'-z,+x,+y' | ||
'-y,+z,+x' | ||
'-x,+y,-z' | ||
'-z,+x,-y' | ||
'-y,+z,-x' | ||
'+y,+x,+z' | ||
'+x,+z,+y' | ||
'+z,+y,+x' | ||
'+y,+x,-z' | ||
'+x,+z,-y' | ||
'+z,+y,-x' | ||
'+y,-x,+z' | ||
'+x,-z,+y' | ||
'+z,-y,+x' | ||
'+y,-x,-z' | ||
'+x,-z,-y' | ||
'+z,-y,-x' | ||
'-x,-y,-z' | ||
'-z,-x,-y' | ||
'-y,-z,-x' | ||
'-x,-y,+z' | ||
'-z,-x,+y' | ||
'-y,-z,+x' | ||
'+x,-y,-z' | ||
'+z,-x,-y' | ||
'+y,-z,-x' | ||
'+x,-y,+z' | ||
'+z,-x,+y' | ||
'+y,-z,+x' | ||
'-y,-x,-z' | ||
'-x,-z,-y' | ||
'-z,-y,-x' | ||
'-y,-x,+z' | ||
'-x,-z,+y' | ||
'-z,-y,+x' | ||
'-y,+x,-z' | ||
'-x,+z,-y' | ||
'-z,+y,-x' | ||
'-y,+x,+z' | ||
'-x,+z,+y' | ||
'-z,+y,+x' | ||
'+x,1/2+y,1/2+z' | ||
'1/2+x,1/2+y,+z' | ||
'1/2+x,+y,1/2+z' | ||
'+z,1/2+x,1/2+y' | ||
'1/2+z,1/2+x,+y' | ||
'1/2+z,+x,1/2+y' | ||
'+y,1/2+z,1/2+x' | ||
'1/2+y,1/2+z,+x' | ||
'1/2+y,+z,1/2+x' | ||
'+x,1/2+y,1/2-z' | ||
'1/2+x,1/2+y,-z' | ||
'1/2+x,+y,1/2-z' | ||
'+z,1/2+x,1/2-y' | ||
'1/2+z,1/2+x,-y' | ||
'1/2+z,+x,1/2-y' | ||
'+y,1/2+z,1/2-x' | ||
'1/2+y,1/2+z,-x' | ||
'1/2+y,+z,1/2-x' | ||
'-x,1/2+y,1/2+z' | ||
'1/2-x,1/2+y,+z' | ||
'1/2-x,+y,1/2+z' | ||
'-z,1/2+x,1/2+y' | ||
'1/2-z,1/2+x,+y' | ||
'1/2-z,+x,1/2+y' | ||
'-y,1/2+z,1/2+x' | ||
'1/2-y,1/2+z,+x' | ||
'1/2-y,+z,1/2+x' | ||
'-x,1/2+y,1/2-z' | ||
'1/2-x,1/2+y,-z' | ||
'1/2-x,+y,1/2-z' | ||
'-z,1/2+x,1/2-y' | ||
'1/2-z,1/2+x,-y' | ||
'1/2-z,+x,1/2-y' | ||
'-y,1/2+z,1/2-x' | ||
'1/2-y,1/2+z,-x' | ||
'1/2-y,+z,1/2-x' | ||
'+y,1/2+x,1/2+z' | ||
'1/2+y,1/2+x,+z' | ||
'1/2+y,+x,1/2+z' | ||
'+x,1/2+z,1/2+y' | ||
'1/2+x,1/2+z,+y' | ||
'1/2+x,+z,1/2+y' | ||
'+z,1/2+y,1/2+x' | ||
'1/2+z,1/2+y,+x' | ||
'1/2+z,+y,1/2+x' | ||
'+y,1/2+x,1/2-z' | ||
'1/2+y,1/2+x,-z' | ||
'1/2+y,+x,1/2-z' | ||
'+x,1/2+z,1/2-y' | ||
'1/2+x,1/2+z,-y' | ||
'1/2+x,+z,1/2-y' | ||
'+z,1/2+y,1/2-x' | ||
'1/2+z,1/2+y,-x' | ||
'1/2+z,+y,1/2-x' | ||
'+y,1/2-x,1/2+z' | ||
'1/2+y,1/2-x,+z' | ||
'1/2+y,-x,1/2+z' | ||
'+x,1/2-z,1/2+y' | ||
'1/2+x,1/2-z,+y' | ||
'1/2+x,-z,1/2+y' | ||
'+z,1/2-y,1/2+x' | ||
'1/2+z,1/2-y,+x' | ||
'1/2+z,-y,1/2+x' | ||
'+y,1/2-x,1/2-z' | ||
'1/2+y,1/2-x,-z' | ||
'1/2+y,-x,1/2-z' | ||
'+x,1/2-z,1/2-y' | ||
'1/2+x,1/2-z,-y' | ||
'1/2+x,-z,1/2-y' | ||
'+z,1/2-y,1/2-x' | ||
'1/2+z,1/2-y,-x' | ||
'1/2+z,-y,1/2-x' | ||
'-x,1/2-y,1/2-z' | ||
'1/2-x,1/2-y,-z' | ||
'1/2-x,-y,1/2-z' | ||
'-z,1/2-x,1/2-y' | ||
'1/2-z,1/2-x,-y' | ||
'1/2-z,-x,1/2-y' | ||
'-y,1/2-z,1/2-x' | ||
'1/2-y,1/2-z,-x' | ||
'1/2-y,-z,1/2-x' | ||
'-x,1/2-y,1/2+z' | ||
'1/2-x,1/2-y,+z' | ||
'1/2-x,-y,1/2+z' | ||
'-z,1/2-x,1/2+y' | ||
'1/2-z,1/2-x,+y' | ||
'1/2-z,-x,1/2+y' | ||
'-y,1/2-z,1/2+x' | ||
'1/2-y,1/2-z,+x' | ||
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-x,+z,1/2+y' | ||
'-z,1/2+y,1/2+x' | ||
'1/2-z,1/2+y,+x' | ||
'1/2-z,+y,1/2+x' | ||
|
||
loop_ | ||
_atom_site_label | ||
_atom_site_type_symbol | ||
_atom_site_occupancy | ||
_atom_site_fract_x | ||
_atom_site_fract_y | ||
_atom_site_fract_z | ||
C C 1.0 0.3219926 0.1780074 0.8870003 | ||
C_1 C 1.0 0.2968056 0.2031944 0.9313006 | ||
C_2 C 1.0 0.3654956 0.1993983 0.8654956 | ||
Cu Cu 1.0 0.2852655 0.7852655 0.5 | ||
H H 1.0 0.036243 0.1414797 0.8585203 | ||
H_1 H 1.0 0.3802054 0.2280018 0.8802054 | ||
O O 1.0 0.3166401 0.2431291 0.9477565 | ||
O_1 O 1.0 0.3434024 0.8434024 0.5 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
//Issue #770 | ||
//normalize per-atom when duplicate is true | ||
$.get('data/HKUST-1.cif', function(cif) { | ||
let m = viewer.addModel(cif, 'cif', | ||
{doAssembly: true, duplicateAssemblyAtoms: true, | ||
wrapAtoms: true}); | ||
|
||
viewer.addStyle('stick'); | ||
viewer.addUnitCell(m); | ||
|
||
viewer.zoomTo(); | ||
viewer.render(); | ||
}); |