MeshToImageEngine
Compute a rasterization image from several meshes
Templates:
- ImageB
- ImageD
- ImageUC
- ImageUS
Target: image
namespace: sofa::component::engine
parents:
- DataEngine
Data
| Name | Description | Default value |
|---|---|---|
| name | object name | unnamed |
| printLog | if true, emits extra messages at runtime. | 0 |
| tags | list of the subsets the object belongs to | |
| bbox | this object bounding box | |
| componentState | The state of the component among (Dirty, Valid, Undefined, Loading, Invalid). | Undefined |
| listening | if true, handle the events, otherwise ignore the events | 0 |
| voxelSize | voxel Size (redondant with and not priority over nbVoxels) | 1 1 1 |
| nbVoxels | number of voxel (redondant with and priority over voxelSize) | 0 0 0 |
| rotateImage | orient the image bounding box according to the mesh (OBB) | 0 |
| padSize | size of border in number of voxels | 0 |
| subdiv | number of subdivisions for face rasterization (if needed, increase to avoid holes) | 4 |
| image | 0 0 0 0 0 | |
| transform | 0 0 0 0 0 0 1 1 1 0 1 0 | |
| backgroundValue | pixel value at background | 0 |
| nbMeshes | number of meshes to voxelize (Note that the last one write on the previous ones) | 1 |
| gridSnap | align voxel centers on voxelSize multiples for perfect image merging (nbVoxels and rotateImage should be off) | 1 |
| worldGridAligned | perform rasterization on a world aligned grid using nbVoxels and voxelSize | 0 |
| Inputs | ||
| position1 | input positions for mesh (1) | |
| edges1 | input edges for mesh (1) | |
| triangles1 | input triangles for mesh (1) | |
| value1 | pixel value on mesh surface (1) | |
| fillInside1 | fill the mesh using insideValue?(1) | |
| insideValue1 | pixel value inside the mesh(1) | |
| roiIndices1 | List of Regions Of Interest, vertex indices(1) | |
| roiValue1 | pixel value for ROIs, list of values(1) | |
Links
| Name | Description | Destination type name |
|---|---|---|
| context | Graph Node containing this object (or BaseContext::getDefault() if no graph is used) | BaseContext |
| slaves | Sub-objects used internally by this object | BaseObject |
| master | nullptr for regular objects, or master object for which this object is one sub-objects | BaseObject |