List of my modules...

Module: Pixels in closed surface

Description:

Given an set of input surfaces, all assumed to be closed surfaces, and an input image (used to define dimension, resolution, location, etc.), creates a similar output image in which a pixel is set to the surface number if the centre of the pixel is inside that surface.
Example : The image shows, in transparent, the closed surface, an octogon, and a slice of the resulting image, where the white pixels are the ones flagged as being inside the surface.


NOTES :

Connections:

Image

[required]
Input image, of type HxUniformScalarField3, used only to define the output (dimensions, size, location).

Triangles

[required]
Input surfaces, of type HxSurface. One patch in the surface represents a closed surface. They are all processed independently.

Ports:

Patch



Allows to choose whether only one patch, i.e. closed surface, is taken, or all of them.

Patch_number



If one patch is selected previously, this port selects the patch number.

Just_Do_It



Pressing this button starts the computation.

Commands:

Additional options can be accessed when typing in the console Pixels_In_Closed_Surface COMMAND_NAME.

verbose

Displays timing information.

create

Runs the computation. Returns the name of the output, so it can be used in a script, such as set RESULT [Pixels_In_Closed_Surface create].