Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help
Special pages
SBGrid Resources
SBGrid Consortium
SBGrid Data Bank
Software Webinars
PyMOL Webinar
PyMOL Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Collada geometry mode
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=Example= The following script creates two output files containing a single cylinder, one with the default collada_geometry_mode set to 0 (cgm0.dae) and the other set to 1 (cgm1.dae). <source lang="python"> reinitialize pseudoatom ps1, pos=[-0.5,0,0] pseudoatom ps2, pos=[0.5,0,0] hide nonbonded distance d, ps1, ps2 set dash_round_ends, 0 set dash_gap, 0 hide labels, d save cgm0.dae set collada_geometry_mode, 1 save cgm1.dae </source> Running <code>diff cgm0.dae cgm1.dae</code> on the two output files results in the following output, indicating that for collada_geometry_mode=1, <code>polylist</code> elements were used to create the ends of the cylinder, rather than <code>triangle</code> elements. <source lang="diff"> 70c70 < <triangles count="8" material="geom0-material"> --- > <polylist count="8" material="geom0-material"> 73a74 > <vcount>3 3 3 3 3 3 3 3 </vcount> 75,76c76,77 < </triangles> < <triangles count="8" material="geom0-material"> --- > </polylist> > <polylist count="8" material="geom0-material"> 79a81 > <vcount>3 3 3 3 3 3 3 3 </vcount> 81c83 < </triangles> --- > </polylist> </source>
Summary:
Please note that all contributions to PyMOL Wiki are considered to be released under the GNU Free Documentation License 1.2 (see
PyMOL Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Collada geometry mode
(section)
Add topic