Skip to main content

Mesh Size

Ensures the mesh dimensions do not exceed specified max size limits and meet min size requirements.

Parameter table

paramunitrequireddescription
xDimensionMaxSizemeternoThe maximum size for the X dimension of the mesh.
xDimensionMinSizemeternoThe minimum size for the X dimension of the mesh.
yDimensionMaxSizemeternoThe maximum size for the Y dimension of the mesh.
yDimensionMinSizemeternoThe minimum size for the Y dimension of the mesh.
zDimensionMaxSizemeternoThe maximum size for the Z dimension of the mesh.
zDimensionMinSizemeternoThe minimum size for the Z dimension of the mesh.
meshNamenoThe name of the mesh to be checked.
meshKeyNamenoThe key of the name of the mesh to be checked. This will be used if mesName is undefined.

Detailed description

This rule ensures each dimension (X, Y, Z) of the specified mesh is within the limits set by the maximum and minimum size parameters (xDimensionMaxSize, xDimensionMinSize, yDimensionMaxSize, yDimensionMinSize, zDimensionMaxSize, zDimensionMinSize). It checks that no dimension of the mesh exceeds its corresponding maximum limit or falls below the minimum limit. If any dimension does not comply, a correction process is initiated.

Correction

The correction process offers two types of proposals: rotating and scaling down the mesh:

  • Rotating proposals: Depending on the mesh and arguments, up to 24 different orientations may be tried to fit the mesh within the specified dimensions. However, the exact number of proposals (e.g., 4) depends on the specific mesh and parameters.
  • Scale proposals: Includes two scaling strategies:
    • One maintaining the original proportions (ratio) of the mesh.
    • Another adjusting each dimension independently, altering the original proportions.

Example: Suzanne The mesh 'Suzanne' initially exceeds the maximum dimensions, particularly noticeable with the ears sticking out beyond the allowed space defined by xDimensionSize: 1.704, yDimensionSize: 1.9688, zDimensionSize: 2.735. A rectangular cuboid representing the maximum dimensions is shown alongside Suzanne for scale comparison. In the correction proposals:

  • The 4 rotating proposals here: rotation-proposal-1 rotation-proposal-2 rotation-proposal-3 rotation-proposal-4

  • The 2 scale down proposals: scale-downproposal-1 scale-downproposal-1

How to setup

This rule ensures each dimension (X, Y, Z) of the specified mesh is within the limits set by the maximum and minimum size parameters Each parameter (xDimensionMaxSize, xDimensionMinSize, yDimensionMaxSize, yDimensionMinSize, zDimensionMaxSize, zDimensionMinSize) can be set independently to ensure the mesh fits within the project's spatial constraints. At least one dimension parameter must be specified to implement the rule.

Creator tips

When designing your mesh, ensure it complies with the specified dimensional limits to avoid corrections. Use pre-checks in your modeling software to adjust the dimensions according to the project's requirements while maintaining the integrity of your design. This can reduce the likelihood of needing extensive corrections like scaling or rotating, which might alter the original appearance of your mesh.

Examples

valuevalidmeshNamexDimensionMaxSizeyDimensionMaxSizezDimensionMaxSizedescription
suzanneSuzanne1.7041.96882.735Suzanne mesh exceeds the set dimension limits for the X dimension.
suzanneSuzanne322Suzanne mesh respects the set dimension limits.