diff options
author | Clemens Barth <barth@root-1.de> | 2012-03-01 22:47:55 +0400 |
---|---|---|
committer | Clemens Barth <barth@root-1.de> | 2012-03-01 22:47:55 +0400 |
commit | 3c8e1027172ef9a9323b3f9bdb865d1525c2794f (patch) | |
tree | e956207fbac2dea59ec9c1c8af89932bfdc0d265 /io_mesh_pdb/import_pdb.py | |
parent | 23745d3afee8bae3aee2822a1cdd482a0d92ad81 (diff) |
Importer
========
The length of the 'unit stick' of the dupliface structure that is used for
representing the sticks can now be explicitly chosen before loading a PDB
structure.
It was always on 0.05 Angstrom, which is a quite small value. Loading
structures with lots of sticks was therefore very slow. The value can now be
changed [from 0 to infinity]. I have set the default value onto 0.2 Angstrom,
which should be sufficient.
Note: The smaller the value, the better is the length precision. However, the
more single units need to be drawn (more vertices).
By time, I will change the wiki ... in some days.
Blendphys
Diffstat (limited to 'io_mesh_pdb/import_pdb.py')
-rw-r--r-- | io_mesh_pdb/import_pdb.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/io_mesh_pdb/import_pdb.py b/io_mesh_pdb/import_pdb.py index 1c2abe05..9b90d78b 100644 --- a/io_mesh_pdb/import_pdb.py +++ b/io_mesh_pdb/import_pdb.py @@ -567,7 +567,7 @@ def DEF_atom_pdb_custom_datafile(path_datafile): def DEF_atom_pdb_main(use_mesh,Ball_azimuth,Ball_zenith, Ball_radius_factor,radiustype,Ball_distance_factor, use_sticks,use_sticks_color,use_sticks_smooth, - use_sticks_bonds,Stick_dist, + use_sticks_bonds, Stick_unit, Stick_dist, Stick_sectors,Stick_diameter,put_to_center, use_camera,use_lamp,path_datafile): @@ -1186,7 +1186,7 @@ def DEF_atom_pdb_main(use_mesh,Ball_azimuth,Ball_zenith, if use_sticks == True and all_sticks != []: - dl = 0.05 + dl = Stick_unit if use_sticks_color == False: bpy.ops.object.material_slot_add() |