ItemLiquidLevel modes
- Last UpdatedMay 02, 2023
- 2 minute read
Depending on the geometry of the container for ItemLiquidLevel, you can use a different interpolation to drive the fluid level modification.
|
Mode |
Description |
|---|---|
|
collapse |
No interpolation is used. The fluid collapses to the vertex of its geometry. |
|
linear |
Linear is the default mode. Linear interpolation is particularly suited for horizontal containers whose liquid top surface is squared. |
|
linearnew |
The Linearnew mode can be applied only to liquid meshes that are modeled using slices. This mode is a high-performing mode, particularly when the liquid mesh has a complex and irregular shape. Perimeter vertexes collapse to corresponding vertexes in the next slice using interpolation. Top and bottom internal vertexes change only their elevation. |
|
circular |
The circular interpolation is optimized for vertical containers whose liquid top surface is circular. |
|
bilinear_x |
The liquid level representation is based both on value and value_b because the level could be higher at one side. The top level surface is tilted on the x axis. |
|
bilinear_z |
The liquid level representation is based both on value and value_b because the level could be higher at one side. The top level surface is tilted on the z axis. |
|
plane |
The Plane mode can be applied only to liquid meshes that are modeled using slices. This mode enables tilting liquid around the surface center by setting surface normal with the planeNormal parameter. |
Using value_b and valueBase
Depending on the selected mode, the additional values of value_b and valueBase may be involved in the representation of the liquid level.
|
Value |
Description |
|---|---|
|
level_b |
The level_b value relates only to bilinear_x and bilinear_z modes. Use this value to tilt the upper surface of the liquid on the x or the z world axis. The surface is represented going from value to value_b height on the selected axis. |
|
levelBase |
The levelBase value assigns a height to the base of the liquid that is different from the bottom of the container. Typically, this value is involved in the representation of two distinct liquids that do not mix. For example, one liquid on top of another liquid in layers. This value works only with linear and circular modes. |