How to create an icosahedron nanocluster?
To create an icosahedron you could take the approach used in, by starting from a big cluster, and delete atoms that are not inside the required shape.
Attached is a scripting attempt; to see if an atom is inside the icosahedron, the script creates 12 anchors (the vertices), and, using combinations of 3 anchors, 20 planes (the surfaces). Anchors were introduced in 5.5 release. Then starting from a big super cell, each atom is checked if it is located on the inner side of each surface, and deleted if not.
Thanks for useful answer, but I haven't material studio 5.5 =(
However principle of building solids like this is clear.
You can modify the script to make it work in earlier versions of Materials Studio, by using atoms rather than anchors to create planes.
First, on line 119 create a temporary carbon atom (or any other element that is not in the nanocluster):
if( InProduct($point,$normal) > $distance )
Finally on line 109 make sure you do not delete the atoms that define the planes:
if(!IsInside($atom->XYZ,$DOC) && $atom->ElementSymbol ne "C")
Thank you for helpful answer, all works correct.