Skip to main content

Inner Shape

Validates that the mesh lays entirely outside the reference mesh, effectively making the reference mesh an 'inner shape' and attempt to apply corrections if necessary to achieve this fit.

Parameter table

paramunitrequireddescription
meshNamenoThe name of the mesh to be checked. Optional; if not provided, the submission's name is used.
meshKeyNamenoThe key of the name of the mesh to be checked. This will be used if mesName is undefined.
referenceMeshyesThe mesh file that serves as the reference or 'inner shape'.
referenceMeshNameyesThe name of the reference mesh.

Detailed description

This rule checks whether the reference mesh is fully contained within the given mesh, ensuring the given mesh acts as an 'enclosing shape'.

The aim is to verify spatial relationships between two objects, particularly useful in scenarios requiring precise fitting or alignment.

The "Inner Shape" rule not only ensures that the reference mesh is fully contained within the given mesh but also offers an invaluable check for the object's orientation, particularly its height along the correct axis. For instance, in scenarios where the object's height must be aligned along the Z-axis and not the Y-axis, the "Inner Shape" rule plays a crucial role.

Correction

The correction process involves two main steps:

  1. Rotation: The mesh is rotated 90 degrees around each axis to explore different orientations that may fit within the given mesh more effectively.
  2. Scaling and Centering: The mesh is scaled up and its center is moved to coincide with the center of the reference mesh. This step continues until the reference mesh fits inside the given mesh, making the given mesh a valid 'enclosing shape'.

How to setup

To use the 'Inner Shape' rule, specify the meshName, referenceMesh, and referenceMeshName parameters according to your project needs. This rule is instrumental in maintaining the design integrity by ensuring meshes fit within designated spatial boundaries, crucial for performance optimization and aesthetic coherence in scenes.

Creator tips

  • When designing meshes, consider the spatial requirements and how they fit within their intended environments or alongside other objects.
  • Use the provided correction features to automate the fitting process, but always review automated adjustments for potential impacts on your design intentions.
  • Effective use of this rule can ensure that your models adhere to spatial constraints.