
23 Jul
2021
23 Jul
'21
1:25 a.m.
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