[chimerax-users] create mask from "shapes"

Roberto Marabini roberto at cnb.csic.es
Fri Jul 23 01:25:03 PDT 2021


Hi,

    It is possible to create a mask from a shape?. For example from the
result of  "*shape icosahedron".*

    If the command does not exist I guess I may create it as follows

* the input would be the 3D map to be masked and the shape to be used as
mask
* request all the (varray, tarray) from the shape.
* from varray,tarray build the  triangles that define the surface of the
shape
* for each triangle create the normal vector
* multiply each normal vector by the position of each voxel (dot product)
* keep those voxels that have negative dot products for all the triangles.

  thanks for the help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimerax-users/attachments/20210723/96cc1fd7/attachment.html>


More information about the ChimeraX-users mailing list