Skip to main content

Match Size

Overview

Scales and repositions a source mesh so that its dimensions and alignment match the volume of a target "bounding box" mesh. This is ideal for fitting objects into specific containers or aligning multiple parts of a model relative to one another.


Inputs

NameTypeDescription
GeometryMeshDataThe source mesh that will be resized and moved.
Bounding BoxMeshDataThe reference mesh whose volume defines the target area.
Offset X/Y/ZfloatManual translation adjustments applied after the matching process.

Outputs

NameTypeDescription
OutputMeshDataThe transformed source mesh, now matching the target volume.

Parameters

NameTypeDescription
Justify X/Y/ZJustifyThe alignment point on the source mesh (e.g., Min, Center, Max).
Box X/Y/ZJustifyThe target alignment point within the Bounding Box volume (e.g., Min, Center, Max).

Behavior Notes

  • Fitting Logic: The node calculates the scale multiplier required to make the Geometry bounds equal to the Bounding Box bounds. If the bounding box is a cube and your geometry is a sphere, the sphere will be stretched into an ellipsoid to fill the box.
  • Alignment (Justification): The Justify and Box parameters allow for precise snapping. For example, setting both Y parameters to Min will ensure the bottom of your object sits perfectly on the floor of the bounding volume.
  • Workflow Tip: Use this in conjunction with the Bounding Box Node to create "containers" for procedural assets, ensuring they never exceed a specific physical footprint.