Keep one semantic part attached to another while either part is resized.

Anchor coordinates are normalized inside each measured part: -0.5 is the minimum face, 0 the center and 0.5 the maximum face. The keywords min, center, max and auto are also accepted. auto infers the original contact/relative position from the imported model.

interface AsukaParametricAttachRule {
    id?: string;
    metadata?: Record<string, unknown>;
    positionOffset?: AsukaParametricVectorExpression;
    supportAnchor?: AsukaParametricVectorExpression;
    target: string;
    targetAnchor?: AsukaParametricVectorExpression;
    to: string;
    type: "attach";
    when?: AsukaParametricValue;
}

Hierarchy (view full)

Properties

id?: string
metadata?: Record<string, unknown>

Optional final offset in world units, useful for user-controlled spacing.

Attachment point on the support. Defaults to auto on every axis.

target: string

Attachment point on the target. Defaults to auto on every axis.

to: string

Semantic support part that the target follows.

type